lollms-webui/web/dist/assets/index-9fb50d9a.js
2024-07-21 21:50:34 +02:00

3907 lines
2.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=t(i);fetch(i.href,r)}})();function eb(n,e){const t=Object.create(null),s=n.split(",");for(let i=0;i<s.length;i++)t[s[i]]=!0;return e?i=>!!t[i.toLowerCase()]:i=>!!t[i]}const Kt={},Po=[],Os=()=>{},TI=()=>!1,xI=/^on[^a-z]/,nu=n=>xI.test(n),tb=n=>n.startsWith("onUpdate:"),tn=Object.assign,nb=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},CI=Object.prototype.hasOwnProperty,Lt=(n,e)=>CI.call(n,e),it=Array.isArray,Uo=n=>Sa(n)==="[object Map]",va=n=>Sa(n)==="[object Set]",jE=n=>Sa(n)==="[object Date]",wI=n=>Sa(n)==="[object RegExp]",gt=n=>typeof n=="function",nn=n=>typeof n=="string",vl=n=>typeof n=="symbol",Ht=n=>n!==null&&typeof n=="object",cw=n=>Ht(n)&&gt(n.then)&&gt(n.catch),dw=Object.prototype.toString,Sa=n=>dw.call(n),RI=n=>Sa(n).slice(8,-1),uw=n=>Sa(n)==="[object Object]",sb=n=>nn(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,od=eb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),su=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},AI=/-(\w)/g,Zs=su(n=>n.replace(AI,(e,t)=>t?t.toUpperCase():"")),NI=/\B([A-Z])/g,to=su(n=>n.replace(NI,"-$1").toLowerCase()),iu=su(n=>n.charAt(0).toUpperCase()+n.slice(1)),np=su(n=>n?`on${iu(n)}`:""),Sl=(n,e)=>!Object.is(n,e),Fo=(n,e)=>{for(let t=0;t<n.length;t++)n[t](e)},vd=(n,e,t)=>{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},Sd=n=>{const e=parseFloat(n);return isNaN(e)?n:e},OI=n=>{const e=nn(n)?Number(n):NaN;return isNaN(e)?n:e};let QE;const Xm=()=>QE||(QE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function jt(n){if(it(n)){const e={};for(let t=0;t<n.length;t++){const s=n[t],i=nn(s)?kI(s):jt(s);if(i)for(const r in i)e[r]=i[r]}return e}else{if(nn(n))return n;if(Ht(n))return n}}const II=/;(?![^(]*\))/g,MI=/:([^]+)/,DI=/\/\*[^]*?\*\//g;function kI(n){const e={};return n.replace(DI,"").split(II).forEach(t=>{if(t){const s=t.split(MI);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Fe(n){let e="";if(nn(n))e=n;else if(it(n))for(let t=0;t<n.length;t++){const s=Fe(n[t]);s&&(e+=s+" ")}else if(Ht(n))for(const t in n)n[t]&&(e+=t+" ");return e.trim()}const LI="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",PI=eb(LI);function pw(n){return!!n||n===""}function UI(n,e){if(n.length!==e.length)return!1;let t=!0;for(let s=0;t&&s<n.length;s++)t=Wr(n[s],e[s]);return t}function Wr(n,e){if(n===e)return!0;let t=jE(n),s=jE(e);if(t||s)return t&&s?n.getTime()===e.getTime():!1;if(t=vl(n),s=vl(e),t||s)return n===e;if(t=it(n),s=it(e),t||s)return t&&s?UI(n,e):!1;if(t=Ht(n),s=Ht(e),t||s){if(!t||!s)return!1;const i=Object.keys(n).length,r=Object.keys(e).length;if(i!==r)return!1;for(const o in n){const a=n.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!Wr(n[o],e[o]))return!1}}return String(n)===String(e)}function ib(n,e){return n.findIndex(t=>Wr(t,e))}const se=n=>nn(n)?n:n==null?"":it(n)||Ht(n)&&(n.toString===dw||!gt(n.toString))?JSON.stringify(n,_w,2):String(n),_w=(n,e)=>e&&e.__v_isRef?_w(n,e.value):Uo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,i])=>(t[`${s} =>`]=i,t),{})}:va(e)?{[`Set(${e.size})`]:[...e.values()]}:Ht(e)&&!it(e)&&!uw(e)?String(e):e;let Xn;class hw{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xn,!e&&Xn&&(this.index=(Xn.scopes||(Xn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Xn;try{return Xn=this,e()}finally{Xn=t}}}on(){Xn=this}off(){Xn=this.parent}stop(e){if(this._active){let t,s;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].stop();for(t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function FI(n){return new hw(n)}function BI(n,e=Xn){e&&e.active&&e.effects.push(n)}function fw(){return Xn}function GI(n){Xn&&Xn.cleanups.push(n)}const rb=n=>{const e=new Set(n);return e.w=0,e.n=0,e},mw=n=>(n.w&ur)>0,gw=n=>(n.n&ur)>0,VI=({deps:n})=>{if(n.length)for(let e=0;e<n.length;e++)n[e].w|=ur},zI=n=>{const{deps:e}=n;if(e.length){let t=0;for(let s=0;s<e.length;s++){const i=e[s];mw(i)&&!gw(i)?i.delete(n):e[t++]=i,i.w&=~ur,i.n&=~ur}e.length=t}},Td=new WeakMap;let nl=0,ur=1;const Zm=30;let As;const Br=Symbol(""),Jm=Symbol("");class ob{constructor(e,t=null,s){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,BI(this,s)}run(){if(!this.active)return this.fn();let e=As,t=rr;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=As,As=this,rr=!0,ur=1<<++nl,nl<=Zm?VI(this):XE(this),this.fn()}finally{nl<=Zm&&zI(this),ur=1<<--nl,As=this.parent,rr=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){As===this?this.deferStop=!0:this.active&&(XE(this),this.onStop&&this.onStop(),this.active=!1)}}function XE(n){const{deps:e}=n;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(n);e.length=0}}let rr=!0;const bw=[];function Ta(){bw.push(rr),rr=!1}function xa(){const n=bw.pop();rr=n===void 0?!0:n}function $n(n,e,t){if(rr&&As){let s=Td.get(n);s||Td.set(n,s=new Map);let i=s.get(t);i||s.set(t,i=rb()),Ew(i)}}function Ew(n,e){let t=!1;nl<=Zm?gw(n)||(n.n|=ur,t=!mw(n)):t=!n.has(As),t&&(n.add(As),As.deps.push(n))}function wi(n,e,t,s,i,r){const o=Td.get(n);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(t==="length"&&it(n)){const l=Number(s);o.forEach((u,d)=>{(d==="length"||d>=l)&&a.push(u)})}else switch(t!==void 0&&a.push(o.get(t)),e){case"add":it(n)?sb(t)&&a.push(o.get("length")):(a.push(o.get(Br)),Uo(n)&&a.push(o.get(Jm)));break;case"delete":it(n)||(a.push(o.get(Br)),Uo(n)&&a.push(o.get(Jm)));break;case"set":Uo(n)&&a.push(o.get(Br));break}if(a.length===1)a[0]&&eg(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);eg(rb(l))}}function eg(n,e){const t=it(n)?n:[...n];for(const s of t)s.computed&&ZE(s);for(const s of t)s.computed||ZE(s)}function ZE(n,e){(n!==As||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}function HI(n,e){var t;return(t=Td.get(n))==null?void 0:t.get(e)}const qI=eb("__proto__,__v_isRef,__isVue"),yw=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(vl)),YI=ru(),$I=ru(!1,!0),WI=ru(!0),KI=ru(!0,!0),JE=jI();function jI(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const s=Dt(this);for(let r=0,o=this.length;r<o;r++)$n(s,"get",r+"");const i=s[e](...t);return i===-1||i===!1?s[e](...t.map(Dt)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{n[e]=function(...t){Ta();const s=Dt(this)[e].apply(this,t);return xa(),s}}),n}function QI(n){const e=Dt(this);return $n(e,"has",n),e.hasOwnProperty(n)}function ru(n=!1,e=!1){return function(s,i,r){if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&r===(n?e?Rw:ww:e?Cw:xw).get(s))return s;const o=it(s);if(!n){if(o&&Lt(JE,i))return Reflect.get(JE,i,r);if(i==="hasOwnProperty")return QI}const a=Reflect.get(s,i,r);return(vl(i)?yw.has(i):qI(i))||(n||$n(s,"get",i),e)?a:un(a)?o&&sb(i)?a:a.value:Ht(a)?n?Nw(a):Wn(a):a}}const XI=vw(),ZI=vw(!0);function vw(n=!1){return function(t,s,i,r){let o=t[s];if(Ko(o)&&un(o)&&!un(i))return!1;if(!n&&(!xd(i)&&!Ko(i)&&(o=Dt(o),i=Dt(i)),!it(t)&&un(o)&&!un(i)))return o.value=i,!0;const a=it(t)&&sb(s)?Number(s)<t.length:Lt(t,s),l=Reflect.set(t,s,i,r);return t===Dt(r)&&(a?Sl(i,o)&&wi(t,"set",s,i):wi(t,"add",s,i)),l}}function JI(n,e){const t=Lt(n,e);n[e];const s=Reflect.deleteProperty(n,e);return s&&t&&wi(n,"delete",e,void 0),s}function eM(n,e){const t=Reflect.has(n,e);return(!vl(e)||!yw.has(e))&&$n(n,"has",e),t}function tM(n){return $n(n,"iterate",it(n)?"length":Br),Reflect.ownKeys(n)}const Sw={get:YI,set:XI,deleteProperty:JI,has:eM,ownKeys:tM},Tw={get:WI,set(n,e){return!0},deleteProperty(n,e){return!0}},nM=tn({},Sw,{get:$I,set:ZI}),sM=tn({},Tw,{get:KI}),ab=n=>n,ou=n=>Reflect.getPrototypeOf(n);function dc(n,e,t=!1,s=!1){n=n.__v_raw;const i=Dt(n),r=Dt(e);t||(e!==r&&$n(i,"get",e),$n(i,"get",r));const{has:o}=ou(i),a=s?ab:t?lb:Tl;if(o.call(i,e))return a(n.get(e));if(o.call(i,r))return a(n.get(r));n!==i&&n.get(e)}function uc(n,e=!1){const t=this.__v_raw,s=Dt(t),i=Dt(n);return e||(n!==i&&$n(s,"has",n),$n(s,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function pc(n,e=!1){return n=n.__v_raw,!e&&$n(Dt(n),"iterate",Br),Reflect.get(n,"size",n)}function ey(n){n=Dt(n);const e=Dt(this);return ou(e).has.call(e,n)||(e.add(n),wi(e,"add",n,n)),this}function ty(n,e){e=Dt(e);const t=Dt(this),{has:s,get:i}=ou(t);let r=s.call(t,n);r||(n=Dt(n),r=s.call(t,n));const o=i.call(t,n);return t.set(n,e),r?Sl(e,o)&&wi(t,"set",n,e):wi(t,"add",n,e),this}function ny(n){const e=Dt(this),{has:t,get:s}=ou(e);let i=t.call(e,n);i||(n=Dt(n),i=t.call(e,n)),s&&s.call(e,n);const r=e.delete(n);return i&&wi(e,"delete",n,void 0),r}function sy(){const n=Dt(this),e=n.size!==0,t=n.clear();return e&&wi(n,"clear",void 0,void 0),t}function _c(n,e){return function(s,i){const r=this,o=r.__v_raw,a=Dt(o),l=e?ab:n?lb:Tl;return!n&&$n(a,"iterate",Br),o.forEach((u,d)=>s.call(i,l(u),l(d),r))}}function hc(n,e,t){return function(...s){const i=this.__v_raw,r=Dt(i),o=Uo(r),a=n==="entries"||n===Symbol.iterator&&o,l=n==="keys"&&o,u=i[n](...s),d=t?ab:e?lb:Tl;return!e&&$n(r,"iterate",l?Jm:Br),{next(){const{value:h,done:f}=u.next();return f?{value:h,done:f}:{value:a?[d(h[0]),d(h[1])]:d(h),done:f}},[Symbol.iterator](){return this}}}}function Pi(n){return function(...e){return n==="delete"?!1:this}}function iM(){const n={get(r){return dc(this,r)},get size(){return pc(this)},has:uc,add:ey,set:ty,delete:ny,clear:sy,forEach:_c(!1,!1)},e={get(r){return dc(this,r,!1,!0)},get size(){return pc(this)},has:uc,add:ey,set:ty,delete:ny,clear:sy,forEach:_c(!1,!0)},t={get(r){return dc(this,r,!0)},get size(){return pc(this,!0)},has(r){return uc.call(this,r,!0)},add:Pi("add"),set:Pi("set"),delete:Pi("delete"),clear:Pi("clear"),forEach:_c(!0,!1)},s={get(r){return dc(this,r,!0,!0)},get size(){return pc(this,!0)},has(r){return uc.call(this,r,!0)},add:Pi("add"),set:Pi("set"),delete:Pi("delete"),clear:Pi("clear"),forEach:_c(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=hc(r,!1,!1),t[r]=hc(r,!0,!1),e[r]=hc(r,!1,!0),s[r]=hc(r,!0,!0)}),[n,t,e,s]}const[rM,oM,aM,lM]=iM();function au(n,e){const t=e?n?lM:aM:n?oM:rM;return(s,i,r)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?s:Reflect.get(Lt(t,i)&&i in s?t:s,i,r)}const cM={get:au(!1,!1)},dM={get:au(!1,!0)},uM={get:au(!0,!1)},pM={get:au(!0,!0)},xw=new WeakMap,Cw=new WeakMap,ww=new WeakMap,Rw=new WeakMap;function _M(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hM(n){return n.__v_skip||!Object.isExtensible(n)?0:_M(RI(n))}function Wn(n){return Ko(n)?n:lu(n,!1,Sw,cM,xw)}function Aw(n){return lu(n,!1,nM,dM,Cw)}function Nw(n){return lu(n,!0,Tw,uM,ww)}function fM(n){return lu(n,!0,sM,pM,Rw)}function lu(n,e,t,s,i){if(!Ht(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const r=i.get(n);if(r)return r;const o=hM(n);if(o===0)return n;const a=new Proxy(n,o===2?s:t);return i.set(n,a),a}function Bo(n){return Ko(n)?Bo(n.__v_raw):!!(n&&n.__v_isReactive)}function Ko(n){return!!(n&&n.__v_isReadonly)}function xd(n){return!!(n&&n.__v_isShallow)}function Ow(n){return Bo(n)||Ko(n)}function Dt(n){const e=n&&n.__v_raw;return e?Dt(e):n}function Hl(n){return vd(n,"__v_skip",!0),n}const Tl=n=>Ht(n)?Wn(n):n,lb=n=>Ht(n)?Nw(n):n;function cb(n){rr&&As&&(n=Dt(n),Ew(n.dep||(n.dep=rb())))}function db(n,e){n=Dt(n);const t=n.dep;t&&eg(t)}function un(n){return!!(n&&n.__v_isRef===!0)}function lt(n){return Iw(n,!1)}function mM(n){return Iw(n,!0)}function Iw(n,e){return un(n)?n:new gM(n,e)}class gM{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Dt(e),this._value=t?e:Tl(e)}get value(){return cb(this),this._value}set value(e){const t=this.__v_isShallow||xd(e)||Ko(e);e=t?e:Dt(e),Sl(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Tl(e),db(this))}}function mt(n){return un(n)?n.value:n}const bM={get:(n,e,t)=>mt(Reflect.get(n,e,t)),set:(n,e,t,s)=>{const i=n[e];return un(i)&&!un(t)?(i.value=t,!0):Reflect.set(n,e,t,s)}};function Mw(n){return Bo(n)?n:new Proxy(n,bM)}class EM{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:s}=e(()=>cb(this),()=>db(this));this._get=t,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}function yM(n){return new EM(n)}function vM(n){const e=it(n)?new Array(n.length):{};for(const t in n)e[t]=Dw(n,t);return e}class SM{constructor(e,t,s){this._object=e,this._key=t,this._defaultValue=s,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return HI(Dt(this._object),this._key)}}class TM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Cd(n,e,t){return un(n)?n:gt(n)?new TM(n):Ht(n)&&arguments.length>1?Dw(n,e,t):lt(n)}function Dw(n,e,t){const s=n[e];return un(s)?s:new SM(n,e,t)}class xM{constructor(e,t,s,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ob(e,()=>{this._dirty||(this._dirty=!0,db(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const e=Dt(this);return cb(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function CM(n,e,t=!1){let s,i;const r=gt(n);return r?(s=n,i=Os):(s=n.get,i=n.set),new xM(s,i,r||!i,t)}function or(n,e,t,s){let i;try{i=s?n(...s):n()}catch(r){cu(r,e,t)}return i}function us(n,e,t,s){if(gt(n)){const r=or(n,e,t,s);return r&&cw(r)&&r.catch(o=>{cu(o,e,t)}),r}const i=[];for(let r=0;r<n.length;r++)i.push(us(n[r],e,t,s));return i}function cu(n,e,t,s=!0){const i=e?e.vnode:null;if(e){let r=e.parent;const o=e.proxy,a=t;for(;r;){const u=r.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](n,o,a)===!1)return}r=r.parent}const l=e.appContext.config.errorHandler;if(l){or(l,null,10,[n,o,a]);return}}wM(n,t,i,s)}function wM(n,e,t,s=!0){console.error(n)}let xl=!1,tg=!1;const On=[];let Hs=0;const Go=[];let bi=null,Or=0;const kw=Promise.resolve();let ub=null;function Ue(n){const e=ub||kw;return n?e.then(this?n.bind(this):n):e}function RM(n){let e=Hs+1,t=On.length;for(;e<t;){const s=e+t>>>1;Cl(On[s])<n?e=s+1:t=s}return e}function pb(n){(!On.length||!On.includes(n,xl&&n.allowRecurse?Hs+1:Hs))&&(n.id==null?On.push(n):On.splice(RM(n.id),0,n),Lw())}function Lw(){!xl&&!tg&&(tg=!0,ub=kw.then(Uw))}function AM(n){const e=On.indexOf(n);e>Hs&&On.splice(e,1)}function NM(n){it(n)?Go.push(...n):(!bi||!bi.includes(n,n.allowRecurse?Or+1:Or))&&Go.push(n),Lw()}function iy(n,e=xl?Hs+1:0){for(;e<On.length;e++){const t=On[e];t&&t.pre&&(On.splice(e,1),e--,t())}}function Pw(n){if(Go.length){const e=[...new Set(Go)];if(Go.length=0,bi){bi.push(...e);return}for(bi=e,bi.sort((t,s)=>Cl(t)-Cl(s)),Or=0;Or<bi.length;Or++)bi[Or]();bi=null,Or=0}}const Cl=n=>n.id==null?1/0:n.id,OM=(n,e)=>{const t=Cl(n)-Cl(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function Uw(n){tg=!1,xl=!0,On.sort(OM);const e=Os;try{for(Hs=0;Hs<On.length;Hs++){const t=On[Hs];t&&t.active!==!1&&or(t,null,14)}}finally{Hs=0,On.length=0,Pw(),xl=!1,ub=null,(On.length||Go.length)&&Uw()}}function IM(n,e,...t){if(n.isUnmounted)return;const s=n.vnode.props||Kt;let i=t;const r=e.startsWith("update:"),o=r&&e.slice(7);if(o&&o in s){const d=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=s[d]||Kt;f&&(i=t.map(_=>nn(_)?_.trim():_)),h&&(i=t.map(Sd))}let a,l=s[a=np(e)]||s[a=np(Zs(e))];!l&&r&&(l=s[a=np(to(e))]),l&&us(l,n,6,i);const u=s[a+"Once"];if(u){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,us(u,n,6,i)}}function Fw(n,e,t=!1){const s=e.emitsCache,i=s.get(n);if(i!==void 0)return i;const r=n.emits;let o={},a=!1;if(!gt(n)){const l=u=>{const d=Fw(u,e,!0);d&&(a=!0,tn(o,d))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!r&&!a?(Ht(n)&&s.set(n,null),null):(it(r)?r.forEach(l=>o[l]=null):tn(o,r),Ht(n)&&s.set(n,o),o)}function du(n,e){return!n||!nu(e)?!1:(e=e.slice(2).replace(/Once$/,""),Lt(n,e[0].toLowerCase()+e.slice(1))||Lt(n,to(e))||Lt(n,e))}let Tn=null,uu=null;function wd(n){const e=Tn;return Tn=n,uu=n&&n.type.__scopeId||null,e}function no(n){uu=n}function so(){uu=null}function qe(n,e=Tn,t){if(!e||n._n)return n;const s=(...i)=>{s._d&&my(-1);const r=wd(e);let o;try{o=n(...i)}finally{wd(r),s._d&&my(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function sp(n){const{type:e,vnode:t,proxy:s,withProxy:i,props:r,propsOptions:[o],slots:a,attrs:l,emit:u,render:d,renderCache:h,data:f,setupState:_,ctx:m,inheritAttrs:E}=n;let b,g;const y=wd(n);try{if(t.shapeFlag&4){const S=i||s;b=Vs(d.call(S,S,h,r,_,f,m)),g=l}else{const S=e;b=Vs(S.length>1?S(r,{attrs:l,slots:a,emit:u}):S(r,null)),g=e.props?l:MM(l)}}catch(S){cl.length=0,cu(S,n,1),b=_e(ps)}let v=b;if(g&&E!==!1){const S=Object.keys(g),{shapeFlag:w}=v;S.length&&w&7&&(o&&S.some(tb)&&(g=DM(g,o)),v=Ri(v,g))}return t.dirs&&(v=Ri(v),v.dirs=v.dirs?v.dirs.concat(t.dirs):t.dirs),t.transition&&(v.transition=t.transition),b=v,wd(y),b}const MM=n=>{let e;for(const t in n)(t==="class"||t==="style"||nu(t))&&((e||(e={}))[t]=n[t]);return e},DM=(n,e)=>{const t={};for(const s in n)(!tb(s)||!(s.slice(9)in e))&&(t[s]=n[s]);return t};function kM(n,e,t){const{props:s,children:i,component:r}=n,{props:o,children:a,patchFlag:l}=e,u=r.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return s?ry(s,o,u):!!o;if(l&8){const d=e.dynamicProps;for(let h=0;h<d.length;h++){const f=d[h];if(o[f]!==s[f]&&!du(u,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?ry(s,o,u):!0:!!o;return!1}function ry(n,e,t){const s=Object.keys(e);if(s.length!==Object.keys(n).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(e[r]!==n[r]&&!du(t,r))return!0}return!1}function LM({vnode:n,parent:e},t){for(;e&&e.subTree===n;)(n=e.vnode).el=t,e=e.parent}const Bw=n=>n.__isSuspense;function PM(n,e){e&&e.pendingBranch?it(n)?e.effects.push(...n):e.effects.push(n):NM(n)}const fc={};function Fn(n,e,t){return Gw(n,e,t)}function Gw(n,e,{immediate:t,deep:s,flush:i,onTrack:r,onTrigger:o}=Kt){var a;const l=fw()===((a=gn)==null?void 0:a.scope)?gn:null;let u,d=!1,h=!1;if(un(n)?(u=()=>n.value,d=xd(n)):Bo(n)?(u=()=>n,s=!0):it(n)?(h=!0,d=n.some(S=>Bo(S)||xd(S)),u=()=>n.map(S=>{if(un(S))return S.value;if(Bo(S))return Pr(S);if(gt(S))return or(S,l,2)})):gt(n)?e?u=()=>or(n,l,2):u=()=>{if(!(l&&l.isUnmounted))return f&&f(),us(n,l,3,[_])}:u=Os,e&&s){const S=u;u=()=>Pr(S())}let f,_=S=>{f=y.onStop=()=>{or(S,l,4)}},m;if(Nl)if(_=Os,e?t&&us(e,l,3,[u(),h?[]:void 0,_]):u(),i==="sync"){const S=R2();m=S.__watcherHandles||(S.__watcherHandles=[])}else return Os;let E=h?new Array(n.length).fill(fc):fc;const b=()=>{if(y.active)if(e){const S=y.run();(s||d||(h?S.some((w,x)=>Sl(w,E[x])):Sl(S,E)))&&(f&&f(),us(e,l,3,[S,E===fc?void 0:h&&E[0]===fc?[]:E,_]),E=S)}else y.run()};b.allowRecurse=!!e;let g;i==="sync"?g=b:i==="post"?g=()=>Sn(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>pb(b));const y=new ob(u,g);e?t?b():E=y.run():i==="post"?Sn(y.run.bind(y),l&&l.suspense):y.run();const v=()=>{y.stop(),l&&l.scope&&nb(l.scope.effects,y)};return m&&m.push(v),v}function UM(n,e,t){const s=this.proxy,i=nn(n)?n.includes(".")?Vw(s,n):()=>s[n]:n.bind(s,s);let r;gt(e)?r=e:(r=e.handler,t=e);const o=gn;Qo(this);const a=Gw(i,r.bind(s),t);return o?Qo(o):Gr(),a}function Vw(n,e){const t=e.split(".");return()=>{let s=n;for(let i=0;i<t.length&&s;i++)s=s[t[i]];return s}}function Pr(n,e){if(!Ht(n)||n.__v_skip||(e=e||new Set,e.has(n)))return n;if(e.add(n),un(n))Pr(n.value,e);else if(it(n))for(let t=0;t<n.length;t++)Pr(n[t],e);else if(va(n)||Uo(n))n.forEach(t=>{Pr(t,e)});else if(uw(n))for(const t in n)Pr(n[t],e);return n}function B(n,e){const t=Tn;if(t===null)return n;const s=bu(t)||t.proxy,i=n.dirs||(n.dirs=[]);for(let r=0;r<e.length;r++){let[o,a,l,u=Kt]=e[r];o&&(gt(o)&&(o={mounted:o,updated:o}),o.deep&&Pr(a),i.push({dir:o,instance:s,value:a,oldValue:void 0,arg:l,modifiers:u}))}return n}function br(n,e,t,s){const i=n.dirs,r=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&(Ta(),us(l,t,8,[n.el,a,n,e]),xa())}}function zw(){const n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mi(()=>{n.isMounted=!0}),Ca(()=>{n.isUnmounting=!0}),n}const ns=[Function,Array],Hw={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ns,onEnter:ns,onAfterEnter:ns,onEnterCancelled:ns,onBeforeLeave:ns,onLeave:ns,onAfterLeave:ns,onLeaveCancelled:ns,onBeforeAppear:ns,onAppear:ns,onAfterAppear:ns,onAppearCancelled:ns},FM={name:"BaseTransition",props:Hw,setup(n,{slots:e}){const t=bb(),s=zw();let i;return()=>{const r=e.default&&_b(e.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const E of r)if(E.type!==ps){o=E;break}}const a=Dt(n),{mode:l}=a;if(s.isLeaving)return ip(o);const u=oy(o);if(!u)return ip(o);const d=wl(u,a,s,t);jo(u,d);const h=t.subTree,f=h&&oy(h);let _=!1;const{getTransitionKey:m}=u.type;if(m){const E=m();i===void 0?i=E:E!==i&&(i=E,_=!0)}if(f&&f.type!==ps&&(!tr(u,f)||_)){const E=wl(f,a,s,t);if(jo(f,E),l==="out-in")return s.isLeaving=!0,E.afterLeave=()=>{s.isLeaving=!1,t.update.active!==!1&&t.update()},ip(o);l==="in-out"&&u.type!==ps&&(E.delayLeave=(b,g,y)=>{const v=qw(s,f);v[String(f.key)]=f,b._leaveCb=()=>{g(),b._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return o}}},BM=FM;function qw(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 wl(n,e,t,s){const{appear:i,mode:r,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:_,onLeaveCancelled:m,onBeforeAppear:E,onAppear:b,onAfterAppear:g,onAppearCancelled:y}=e,v=String(n.key),S=qw(t,n),w=(D,T)=>{D&&us(D,s,9,T)},x=(D,T)=>{const O=T[1];w(D,T),it(D)?D.every(F=>F.length<=1)&&O():D.length<=1&&O()},A={mode:r,persisted:o,beforeEnter(D){let T=a;if(!t.isMounted)if(i)T=E||a;else return;D._leaveCb&&D._leaveCb(!0);const O=S[v];O&&tr(n,O)&&O.el._leaveCb&&O.el._leaveCb(),w(T,[D])},enter(D){let T=l,O=u,F=d;if(!t.isMounted)if(i)T=b||l,O=g||u,F=y||d;else return;let z=!1;const Z=D._enterCb=M=>{z||(z=!0,M?w(F,[D]):w(O,[D]),A.delayedLeave&&A.delayedLeave(),D._enterCb=void 0)};T?x(T,[D,Z]):Z()},leave(D,T){const O=String(n.key);if(D._enterCb&&D._enterCb(!0),t.isUnmounting)return T();w(h,[D]);let F=!1;const z=D._leaveCb=Z=>{F||(F=!0,T(),Z?w(m,[D]):w(_,[D]),D._leaveCb=void 0,S[O]===n&&delete S[O])};S[O]=n,f?x(f,[D,z]):z()},clone(D){return wl(D,e,t,s)}};return A}function ip(n){if(pu(n))return n=Ri(n),n.children=null,n}function oy(n){return pu(n)?n.children?n.children[0]:void 0:n}function jo(n,e){n.shapeFlag&6&&n.component?jo(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 _b(n,e=!1,t){let s=[],i=0;for(let r=0;r<n.length;r++){let o=n[r];const a=t==null?o.key:String(t)+String(o.key!=null?o.key:r);o.type===ze?(o.patchFlag&128&&i++,s=s.concat(_b(o.children,e,a))):(e||o.type!==ps)&&s.push(a!=null?Ri(o,{key:a}):o)}if(i>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function cn(n,e){return gt(n)?(()=>tn({name:n.name},e,{setup:n}))():n}const Vo=n=>!!n.type.__asyncLoader,pu=n=>n.type.__isKeepAlive,GM={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=bb(),s=t.ctx;if(!s.renderer)return()=>{const y=e.default&&e.default();return y&&y.length===1?y[0]:y};const i=new Map,r=new Set;let o=null;const a=t.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:h}}}=s,f=h("div");s.activate=(y,v,S,w,x)=>{const A=y.component;u(y,v,S,0,a),l(A.vnode,y,v,S,A,a,w,y.slotScopeIds,x),Sn(()=>{A.isDeactivated=!1,A.a&&Fo(A.a);const D=y.props&&y.props.onVnodeMounted;D&&is(D,A.parent,y)},a)},s.deactivate=y=>{const v=y.component;u(y,f,null,1,a),Sn(()=>{v.da&&Fo(v.da);const S=y.props&&y.props.onVnodeUnmounted;S&&is(S,v.parent,y),v.isDeactivated=!0},a)};function _(y){rp(y),d(y,t,a,!0)}function m(y){i.forEach((v,S)=>{const w=ag(v.type);w&&(!y||!y(w))&&E(S)})}function E(y){const v=i.get(y);!o||!tr(v,o)?_(v):o&&rp(o),i.delete(y),r.delete(y)}Fn(()=>[n.include,n.exclude],([y,v])=>{y&&m(S=>sl(y,S)),v&&m(S=>!sl(v,S))},{flush:"post",deep:!0});let b=null;const g=()=>{b!=null&&i.set(b,op(t.subTree))};return Mi(g),ql(g),Ca(()=>{i.forEach(y=>{const{subTree:v,suspense:S}=t,w=op(v);if(y.type===w.type&&y.key===w.key){rp(w);const x=w.component.da;x&&Sn(x,S);return}_(y)})}),()=>{if(b=null,!e.default)return null;const y=e.default(),v=y[0];if(y.length>1)return o=null,y;if(!Al(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return o=null,v;let S=op(v);const w=S.type,x=ag(Vo(S)?S.type.__asyncResolved||{}:w),{include:A,exclude:D,max:T}=n;if(A&&(!x||!sl(A,x))||D&&x&&sl(D,x))return o=S,v;const O=S.key==null?w:S.key,F=i.get(O);return S.el&&(S=Ri(S),v.shapeFlag&128&&(v.ssContent=S)),b=O,F?(S.el=F.el,S.component=F.component,S.transition&&jo(S,S.transition),S.shapeFlag|=512,r.delete(O),r.add(O)):(r.add(O),T&&r.size>parseInt(T,10)&&E(r.values().next().value)),S.shapeFlag|=256,o=S,Bw(v.type)?v:S}}},VM=GM;function sl(n,e){return it(n)?n.some(t=>sl(t,e)):nn(n)?n.split(",").includes(e):wI(n)?n.test(e):!1}function zM(n,e){Yw(n,"a",e)}function HM(n,e){Yw(n,"da",e)}function Yw(n,e,t=gn){const s=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(_u(e,s,t),t){let i=t.parent;for(;i&&i.parent;)pu(i.parent.vnode)&&qM(s,e,t,i),i=i.parent}}function qM(n,e,t,s){const i=_u(e,n,s,!0);$w(()=>{nb(s[e],i)},t)}function rp(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function op(n){return n.shapeFlag&128?n.ssContent:n}function _u(n,e,t=gn,s=!1){if(t){const i=t[n]||(t[n]=[]),r=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Ta(),Qo(t);const a=us(e,t,n,o);return Gr(),xa(),a});return s?i.unshift(r):i.push(r),r}}const Ii=n=>(e,t=gn)=>(!Nl||n==="sp")&&_u(n,(...s)=>e(...s),t),YM=Ii("bm"),Mi=Ii("m"),$M=Ii("bu"),ql=Ii("u"),Ca=Ii("bum"),$w=Ii("um"),WM=Ii("sp"),KM=Ii("rtg"),jM=Ii("rtc");function QM(n,e=gn){_u("ec",n,e)}const hb="components";function dt(n,e){return Kw(hb,n,!0,e)||n}const Ww=Symbol.for("v-ndc");function hu(n){return nn(n)?Kw(hb,n,!1)||n:n||Ww}function Kw(n,e,t=!0,s=!1){const i=Tn||gn;if(i){const r=i.type;if(n===hb){const a=ag(r,!1);if(a&&(a===e||a===Zs(e)||a===iu(Zs(e))))return r}const o=ay(i[n]||r[n],e)||ay(i.appContext[n],e);return!o&&s?r:o}}function ay(n,e){return n&&(n[e]||n[Zs(e)]||n[iu(Zs(e))])}function st(n,e,t,s){let i;const r=t&&t[s];if(it(n)||nn(n)){i=new Array(n.length);for(let o=0,a=n.length;o<a;o++)i[o]=e(n[o],o,void 0,r&&r[o])}else if(typeof n=="number"){i=new Array(n);for(let o=0;o<n;o++)i[o]=e(o+1,o,void 0,r&&r[o])}else if(Ht(n))if(n[Symbol.iterator])i=Array.from(n,(o,a)=>e(o,a,void 0,r&&r[a]));else{const o=Object.keys(n);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const u=o[a];i[a]=e(n[u],u,a,r&&r[a])}}else i=[];return t&&(t[s]=i),i}function An(n,e,t={},s,i){if(Tn.isCE||Tn.parent&&Vo(Tn.parent)&&Tn.parent.isCE)return e!=="default"&&(t.name=e),_e("slot",t,s&&s());let r=n[e];r&&r._c&&(r._d=!1),C();const o=r&&jw(r(t)),a=St(ze,{key:t.key||o&&o.key||`_${e}`},o||(s?s():[]),o&&n._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function jw(n){return n.some(e=>Al(e)?!(e.type===ps||e.type===ze&&!jw(e.children)):!0)?n:null}const ng=n=>n?oR(n)?bu(n)||n.proxy:ng(n.parent):null,ll=tn(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=>ng(n.parent),$root:n=>ng(n.root),$emit:n=>n.emit,$options:n=>fb(n),$forceUpdate:n=>n.f||(n.f=()=>pb(n.update)),$nextTick:n=>n.n||(n.n=Ue.bind(n.proxy)),$watch:n=>UM.bind(n)}),ap=(n,e)=>n!==Kt&&!n.__isScriptSetup&&Lt(n,e),XM={get({_:n},e){const{ctx:t,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=n;let u;if(e[0]!=="$"){const _=o[e];if(_!==void 0)switch(_){case 1:return s[e];case 2:return i[e];case 4:return t[e];case 3:return r[e]}else{if(ap(s,e))return o[e]=1,s[e];if(i!==Kt&&Lt(i,e))return o[e]=2,i[e];if((u=n.propsOptions[0])&&Lt(u,e))return o[e]=3,r[e];if(t!==Kt&&Lt(t,e))return o[e]=4,t[e];sg&&(o[e]=0)}}const d=ll[e];let h,f;if(d)return e==="$attrs"&&$n(n,"get",e),d(n);if((h=a.__cssModules)&&(h=h[e]))return h;if(t!==Kt&&Lt(t,e))return o[e]=4,t[e];if(f=l.config.globalProperties,Lt(f,e))return f[e]},set({_:n},e,t){const{data:s,setupState:i,ctx:r}=n;return ap(i,e)?(i[e]=t,!0):s!==Kt&&Lt(s,e)?(s[e]=t,!0):Lt(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(r[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!t[o]||n!==Kt&&Lt(n,o)||ap(e,o)||(a=r[0])&&Lt(a,o)||Lt(s,o)||Lt(ll,o)||Lt(i.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Lt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function ly(n){return it(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let sg=!0;function ZM(n){const e=fb(n),t=n.proxy,s=n.ctx;sg=!1,e.beforeCreate&&cy(e.beforeCreate,n,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:u,created:d,beforeMount:h,mounted:f,beforeUpdate:_,updated:m,activated:E,deactivated:b,beforeDestroy:g,beforeUnmount:y,destroyed:v,unmounted:S,render:w,renderTracked:x,renderTriggered:A,errorCaptured:D,serverPrefetch:T,expose:O,inheritAttrs:F,components:z,directives:Z,filters:M}=e;if(u&&JM(u,s,null),o)for(const P in o){const $=o[P];gt($)&&(s[P]=$.bind(t))}if(i){const P=i.call(t,t);Ht(P)&&(n.data=Wn(P))}if(sg=!0,r)for(const P in r){const $=r[P],J=gt($)?$.bind(t,t):gt($.get)?$.get.bind(t,t):Os,re=!gt($)&&gt($.set)?$.set.bind(t):Os,me=Je({get:J,set:re});Object.defineProperty(s,P,{enumerable:!0,configurable:!0,get:()=>me.value,set:Se=>me.value=Se})}if(a)for(const P in a)Qw(a[P],s,t,P);if(l){const P=gt(l)?l.call(t):l;Reflect.ownKeys(P).forEach($=>{zo($,P[$])})}d&&cy(d,n,"c");function H(P,$){it($)?$.forEach(J=>P(J.bind(t))):$&&P($.bind(t))}if(H(YM,h),H(Mi,f),H($M,_),H(ql,m),H(zM,E),H(HM,b),H(QM,D),H(jM,x),H(KM,A),H(Ca,y),H($w,S),H(WM,T),it(O))if(O.length){const P=n.exposed||(n.exposed={});O.forEach($=>{Object.defineProperty(P,$,{get:()=>t[$],set:J=>t[$]=J})})}else n.exposed||(n.exposed={});w&&n.render===Os&&(n.render=w),F!=null&&(n.inheritAttrs=F),z&&(n.components=z),Z&&(n.directives=Z)}function JM(n,e,t=Os){it(n)&&(n=ig(n));for(const s in n){const i=n[s];let r;Ht(i)?"default"in i?r=Is(i.from||s,i.default,!0):r=Is(i.from||s):r=Is(i),un(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function cy(n,e,t){us(it(n)?n.map(s=>s.bind(e.proxy)):n.bind(e.proxy),e,t)}function Qw(n,e,t,s){const i=s.includes(".")?Vw(t,s):()=>t[s];if(nn(n)){const r=e[n];gt(r)&&Fn(i,r)}else if(gt(n))Fn(i,n.bind(t));else if(Ht(n))if(it(n))n.forEach(r=>Qw(r,e,t,s));else{const r=gt(n.handler)?n.handler.bind(t):e[n.handler];gt(r)&&Fn(i,r,n)}}function fb(n){const e=n.type,{mixins:t,extends:s}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=n.appContext,a=r.get(e);let l;return a?l=a:!i.length&&!t&&!s?l=e:(l={},i.length&&i.forEach(u=>Rd(l,u,o,!0)),Rd(l,e,o)),Ht(e)&&r.set(e,l),l}function Rd(n,e,t,s=!1){const{mixins:i,extends:r}=e;r&&Rd(n,r,t,!0),i&&i.forEach(o=>Rd(n,o,t,!0));for(const o in e)if(!(s&&o==="expose")){const a=e2[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const e2={data:dy,props:uy,emits:uy,methods:il,computed:il,beforeCreate:kn,created:kn,beforeMount:kn,mounted:kn,beforeUpdate:kn,updated:kn,beforeDestroy:kn,beforeUnmount:kn,destroyed:kn,unmounted:kn,activated:kn,deactivated:kn,errorCaptured:kn,serverPrefetch:kn,components:il,directives:il,watch:n2,provide:dy,inject:t2};function dy(n,e){return e?n?function(){return tn(gt(n)?n.call(this,this):n,gt(e)?e.call(this,this):e)}:e:n}function t2(n,e){return il(ig(n),ig(e))}function ig(n){if(it(n)){const e={};for(let t=0;t<n.length;t++)e[n[t]]=n[t];return e}return n}function kn(n,e){return n?[...new Set([].concat(n,e))]:e}function il(n,e){return n?tn(Object.create(null),n,e):e}function uy(n,e){return n?it(n)&&it(e)?[...new Set([...n,...e])]:tn(Object.create(null),ly(n),ly(e??{})):e}function n2(n,e){if(!n)return e;if(!e)return n;const t=tn(Object.create(null),n);for(const s in e)t[s]=kn(n[s],e[s]);return t}function Xw(){return{app:null,config:{isNativeTag:TI,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let s2=0;function i2(n,e){return function(s,i=null){gt(s)||(s=tn({},s)),i!=null&&!Ht(i)&&(i=null);const r=Xw(),o=new Set;let a=!1;const l=r.app={_uid:s2++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:A2,get config(){return r.config},set config(u){},use(u,...d){return o.has(u)||(u&&gt(u.install)?(o.add(u),u.install(l,...d)):gt(u)&&(o.add(u),u(l,...d))),l},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),l},component(u,d){return d?(r.components[u]=d,l):r.components[u]},directive(u,d){return d?(r.directives[u]=d,l):r.directives[u]},mount(u,d,h){if(!a){const f=_e(s,i);return f.appContext=r,d&&e?e(f,u):n(f,u,h),a=!0,l._container=u,u.__vue_app__=l,bu(f.component)||f.component.proxy}},unmount(){a&&(n(null,l._container),delete l._container.__vue_app__)},provide(u,d){return r.provides[u]=d,l},runWithContext(u){Ad=l;try{return u()}finally{Ad=null}}};return l}}let Ad=null;function zo(n,e){if(gn){let t=gn.provides;const s=gn.parent&&gn.parent.provides;s===t&&(t=gn.provides=Object.create(s)),t[n]=e}}function Is(n,e,t=!1){const s=gn||Tn;if(s||Ad){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Ad._context.provides;if(i&&n in i)return i[n];if(arguments.length>1)return t&&gt(e)?e.call(s&&s.proxy):e}}function r2(n,e,t,s=!1){const i={},r={};vd(r,mu,1),n.propsDefaults=Object.create(null),Zw(n,e,i,r);for(const o in n.propsOptions[0])o in i||(i[o]=void 0);t?n.props=s?i:Aw(i):n.type.props?n.props=i:n.props=r,n.attrs=r}function o2(n,e,t,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=n,a=Dt(i),[l]=n.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const d=n.vnode.dynamicProps;for(let h=0;h<d.length;h++){let f=d[h];if(du(n.emitsOptions,f))continue;const _=e[f];if(l)if(Lt(r,f))_!==r[f]&&(r[f]=_,u=!0);else{const m=Zs(f);i[m]=rg(l,a,m,_,n,!1)}else _!==r[f]&&(r[f]=_,u=!0)}}}else{Zw(n,e,i,r)&&(u=!0);let d;for(const h in a)(!e||!Lt(e,h)&&((d=to(h))===h||!Lt(e,d)))&&(l?t&&(t[h]!==void 0||t[d]!==void 0)&&(i[h]=rg(l,a,h,void 0,n,!0)):delete i[h]);if(r!==a)for(const h in r)(!e||!Lt(e,h))&&(delete r[h],u=!0)}u&&wi(n,"set","$attrs")}function Zw(n,e,t,s){const[i,r]=n.propsOptions;let o=!1,a;if(e)for(let l in e){if(od(l))continue;const u=e[l];let d;i&&Lt(i,d=Zs(l))?!r||!r.includes(d)?t[d]=u:(a||(a={}))[d]=u:du(n.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,o=!0)}if(r){const l=Dt(t),u=a||Kt;for(let d=0;d<r.length;d++){const h=r[d];t[h]=rg(i,l,h,u[h],n,!Lt(u,h))}}return o}function rg(n,e,t,s,i,r){const o=n[t];if(o!=null){const a=Lt(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&gt(l)){const{propsDefaults:u}=i;t in u?s=u[t]:(Qo(i),s=u[t]=l.call(null,e),Gr())}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===to(t))&&(s=!0))}return s}function Jw(n,e,t=!1){const s=e.propsCache,i=s.get(n);if(i)return i;const r=n.props,o={},a=[];let l=!1;if(!gt(n)){const d=h=>{l=!0;const[f,_]=Jw(h,e,!0);tn(o,f),_&&a.push(..._)};!t&&e.mixins.length&&e.mixins.forEach(d),n.extends&&d(n.extends),n.mixins&&n.mixins.forEach(d)}if(!r&&!l)return Ht(n)&&s.set(n,Po),Po;if(it(r))for(let d=0;d<r.length;d++){const h=Zs(r[d]);py(h)&&(o[h]=Kt)}else if(r)for(const d in r){const h=Zs(d);if(py(h)){const f=r[d],_=o[h]=it(f)||gt(f)?{type:f}:tn({},f);if(_){const m=fy(Boolean,_.type),E=fy(String,_.type);_[0]=m>-1,_[1]=E<0||m<E,(m>-1||Lt(_,"default"))&&a.push(h)}}}const u=[o,a];return Ht(n)&&s.set(n,u),u}function py(n){return n[0]!=="$"}function _y(n){const e=n&&n.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:n===null?"null":""}function hy(n,e){return _y(n)===_y(e)}function fy(n,e){return it(e)?e.findIndex(t=>hy(t,n)):gt(e)&&hy(e,n)?0:-1}const eR=n=>n[0]==="_"||n==="$stable",mb=n=>it(n)?n.map(Vs):[Vs(n)],a2=(n,e,t)=>{if(e._n)return e;const s=qe((...i)=>mb(e(...i)),t);return s._c=!1,s},tR=(n,e,t)=>{const s=n._ctx;for(const i in n){if(eR(i))continue;const r=n[i];if(gt(r))e[i]=a2(i,r,s);else if(r!=null){const o=mb(r);e[i]=()=>o}}},nR=(n,e)=>{const t=mb(e);n.slots.default=()=>t},l2=(n,e)=>{if(n.vnode.shapeFlag&32){const t=e._;t?(n.slots=Dt(e),vd(e,"_",t)):tR(e,n.slots={})}else n.slots={},e&&nR(n,e);vd(n.slots,mu,1)},c2=(n,e,t)=>{const{vnode:s,slots:i}=n;let r=!0,o=Kt;if(s.shapeFlag&32){const a=e._;a?t&&a===1?r=!1:(tn(i,e),!t&&a===1&&delete i._):(r=!e.$stable,tR(e,i)),o=e}else e&&(nR(n,e),o={default:1});if(r)for(const a in i)!eR(a)&&!(a in o)&&delete i[a]};function og(n,e,t,s,i=!1){if(it(n)){n.forEach((f,_)=>og(f,e&&(it(e)?e[_]:e),t,s,i));return}if(Vo(s)&&!i)return;const r=s.shapeFlag&4?bu(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=n,u=e&&e.r,d=a.refs===Kt?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==l&&(nn(u)?(d[u]=null,Lt(h,u)&&(h[u]=null)):un(u)&&(u.value=null)),gt(l))or(l,a,12,[o,d]);else{const f=nn(l),_=un(l);if(f||_){const m=()=>{if(n.f){const E=f?Lt(h,l)?h[l]:d[l]:l.value;i?it(E)&&nb(E,r):it(E)?E.includes(r)||E.push(r):f?(d[l]=[r],Lt(h,l)&&(h[l]=d[l])):(l.value=[r],n.k&&(d[n.k]=l.value))}else f?(d[l]=o,Lt(h,l)&&(h[l]=o)):_&&(l.value=o,n.k&&(d[n.k]=o))};o?(m.id=-1,Sn(m,t)):m()}}}const Sn=PM;function d2(n){return u2(n)}function u2(n,e){const t=Xm();t.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:u,setElementText:d,parentNode:h,nextSibling:f,setScopeId:_=Os,insertStaticContent:m}=n,E=(N,V,Y,oe=null,ne=null,Te=null,Ae=!1,te=null,we=!!V.dynamicChildren)=>{if(N===V)return;N&&!tr(N,V)&&(oe=j(N),Se(N,ne,Te,!0),N=null),V.patchFlag===-2&&(we=!1,V.dynamicChildren=null);const{type:ge,ref:De,shapeFlag:k}=V;switch(ge){case fu:b(N,V,Y,oe);break;case ps:g(N,V,Y,oe);break;case ad:N==null&&y(V,Y,oe,Ae);break;case ze:z(N,V,Y,oe,ne,Te,Ae,te,we);break;default:k&1?w(N,V,Y,oe,ne,Te,Ae,te,we):k&6?Z(N,V,Y,oe,ne,Te,Ae,te,we):(k&64||k&128)&&ge.process(N,V,Y,oe,ne,Te,Ae,te,we,ue)}De!=null&&ne&&og(De,N&&N.ref,Te,V||N,!V)},b=(N,V,Y,oe)=>{if(N==null)s(V.el=a(V.children),Y,oe);else{const ne=V.el=N.el;V.children!==N.children&&u(ne,V.children)}},g=(N,V,Y,oe)=>{N==null?s(V.el=l(V.children||""),Y,oe):V.el=N.el},y=(N,V,Y,oe)=>{[N.el,N.anchor]=m(N.children,V,Y,oe,N.el,N.anchor)},v=({el:N,anchor:V},Y,oe)=>{let ne;for(;N&&N!==V;)ne=f(N),s(N,Y,oe),N=ne;s(V,Y,oe)},S=({el:N,anchor:V})=>{let Y;for(;N&&N!==V;)Y=f(N),i(N),N=Y;i(V)},w=(N,V,Y,oe,ne,Te,Ae,te,we)=>{Ae=Ae||V.type==="svg",N==null?x(V,Y,oe,ne,Te,Ae,te,we):T(N,V,ne,Te,Ae,te,we)},x=(N,V,Y,oe,ne,Te,Ae,te)=>{let we,ge;const{type:De,props:k,shapeFlag:I,transition:W,dirs:ye}=N;if(we=N.el=o(N.type,Te,k&&k.is,k),I&8?d(we,N.children):I&16&&D(N.children,we,null,oe,ne,Te&&De!=="foreignObject",Ae,te),ye&&br(N,null,oe,"created"),A(we,N,N.scopeId,Ae,oe),k){for(const ee in k)ee!=="value"&&!od(ee)&&r(we,ee,null,k[ee],Te,N.children,oe,ne,Me);"value"in k&&r(we,"value",null,k.value),(ge=k.onVnodeBeforeMount)&&is(ge,oe,N)}ye&&br(N,null,oe,"beforeMount");const K=(!ne||ne&&!ne.pendingBranch)&&W&&!W.persisted;K&&W.beforeEnter(we),s(we,V,Y),((ge=k&&k.onVnodeMounted)||K||ye)&&Sn(()=>{ge&&is(ge,oe,N),K&&W.enter(we),ye&&br(N,null,oe,"mounted")},ne)},A=(N,V,Y,oe,ne)=>{if(Y&&_(N,Y),oe)for(let Te=0;Te<oe.length;Te++)_(N,oe[Te]);if(ne){let Te=ne.subTree;if(V===Te){const Ae=ne.vnode;A(N,Ae,Ae.scopeId,Ae.slotScopeIds,ne.parent)}}},D=(N,V,Y,oe,ne,Te,Ae,te,we=0)=>{for(let ge=we;ge<N.length;ge++){const De=N[ge]=te?Wi(N[ge]):Vs(N[ge]);E(null,De,V,Y,oe,ne,Te,Ae,te)}},T=(N,V,Y,oe,ne,Te,Ae)=>{const te=V.el=N.el;let{patchFlag:we,dynamicChildren:ge,dirs:De}=V;we|=N.patchFlag&16;const k=N.props||Kt,I=V.props||Kt;let W;Y&&Er(Y,!1),(W=I.onVnodeBeforeUpdate)&&is(W,Y,V,N),De&&br(V,N,Y,"beforeUpdate"),Y&&Er(Y,!0);const ye=ne&&V.type!=="foreignObject";if(ge?O(N.dynamicChildren,ge,te,Y,oe,ye,Te):Ae||$(N,V,te,null,Y,oe,ye,Te,!1),we>0){if(we&16)F(te,V,k,I,Y,oe,ne);else if(we&2&&k.class!==I.class&&r(te,"class",null,I.class,ne),we&4&&r(te,"style",k.style,I.style,ne),we&8){const K=V.dynamicProps;for(let ee=0;ee<K.length;ee++){const Re=K[ee],xe=k[Re],Le=I[Re];(Le!==xe||Re==="value")&&r(te,Re,xe,Le,ne,N.children,Y,oe,Me)}}we&1&&N.children!==V.children&&d(te,V.children)}else!Ae&&ge==null&&F(te,V,k,I,Y,oe,ne);((W=I.onVnodeUpdated)||De)&&Sn(()=>{W&&is(W,Y,V,N),De&&br(V,N,Y,"updated")},oe)},O=(N,V,Y,oe,ne,Te,Ae)=>{for(let te=0;te<V.length;te++){const we=N[te],ge=V[te],De=we.el&&(we.type===ze||!tr(we,ge)||we.shapeFlag&70)?h(we.el):Y;E(we,ge,De,null,oe,ne,Te,Ae,!0)}},F=(N,V,Y,oe,ne,Te,Ae)=>{if(Y!==oe){if(Y!==Kt)for(const te in Y)!od(te)&&!(te in oe)&&r(N,te,Y[te],null,Ae,V.children,ne,Te,Me);for(const te in oe){if(od(te))continue;const we=oe[te],ge=Y[te];we!==ge&&te!=="value"&&r(N,te,ge,we,Ae,V.children,ne,Te,Me)}"value"in oe&&r(N,"value",Y.value,oe.value)}},z=(N,V,Y,oe,ne,Te,Ae,te,we)=>{const ge=V.el=N?N.el:a(""),De=V.anchor=N?N.anchor:a("");let{patchFlag:k,dynamicChildren:I,slotScopeIds:W}=V;W&&(te=te?te.concat(W):W),N==null?(s(ge,Y,oe),s(De,Y,oe),D(V.children,Y,De,ne,Te,Ae,te,we)):k>0&&k&64&&I&&N.dynamicChildren?(O(N.dynamicChildren,I,Y,ne,Te,Ae,te),(V.key!=null||ne&&V===ne.subTree)&&sR(N,V,!0)):$(N,V,Y,De,ne,Te,Ae,te,we)},Z=(N,V,Y,oe,ne,Te,Ae,te,we)=>{V.slotScopeIds=te,N==null?V.shapeFlag&512?ne.ctx.activate(V,Y,oe,Ae,we):M(V,Y,oe,ne,Te,Ae,we):q(N,V,we)},M=(N,V,Y,oe,ne,Te,Ae)=>{const te=N.component=y2(N,oe,ne);if(pu(N)&&(te.ctx.renderer=ue),v2(te),te.asyncDep){if(ne&&ne.registerDep(te,H),!N.el){const we=te.subTree=_e(ps);g(null,we,V,Y)}return}H(te,N,V,Y,ne,Te,Ae)},q=(N,V,Y)=>{const oe=V.component=N.component;if(kM(N,V,Y))if(oe.asyncDep&&!oe.asyncResolved){P(oe,V,Y);return}else oe.next=V,AM(oe.update),oe.update();else V.el=N.el,oe.vnode=V},H=(N,V,Y,oe,ne,Te,Ae)=>{const te=()=>{if(N.isMounted){let{next:De,bu:k,u:I,parent:W,vnode:ye}=N,K=De,ee;Er(N,!1),De?(De.el=ye.el,P(N,De,Ae)):De=ye,k&&Fo(k),(ee=De.props&&De.props.onVnodeBeforeUpdate)&&is(ee,W,De,ye),Er(N,!0);const Re=sp(N),xe=N.subTree;N.subTree=Re,E(xe,Re,h(xe.el),j(xe),N,ne,Te),De.el=Re.el,K===null&&LM(N,Re.el),I&&Sn(I,ne),(ee=De.props&&De.props.onVnodeUpdated)&&Sn(()=>is(ee,W,De,ye),ne)}else{let De;const{el:k,props:I}=V,{bm:W,m:ye,parent:K}=N,ee=Vo(V);if(Er(N,!1),W&&Fo(W),!ee&&(De=I&&I.onVnodeBeforeMount)&&is(De,K,V),Er(N,!0),k&&ke){const Re=()=>{N.subTree=sp(N),ke(k,N.subTree,N,ne,null)};ee?V.type.__asyncLoader().then(()=>!N.isUnmounted&&Re()):Re()}else{const Re=N.subTree=sp(N);E(null,Re,Y,oe,N,ne,Te),V.el=Re.el}if(ye&&Sn(ye,ne),!ee&&(De=I&&I.onVnodeMounted)){const Re=V;Sn(()=>is(De,K,Re),ne)}(V.shapeFlag&256||K&&Vo(K.vnode)&&K.vnode.shapeFlag&256)&&N.a&&Sn(N.a,ne),N.isMounted=!0,V=Y=oe=null}},we=N.effect=new ob(te,()=>pb(ge),N.scope),ge=N.update=()=>we.run();ge.id=N.uid,Er(N,!0),ge()},P=(N,V,Y)=>{V.component=N;const oe=N.vnode.props;N.vnode=V,N.next=null,o2(N,V.props,oe,Y),c2(N,V.children,Y),Ta(),iy(),xa()},$=(N,V,Y,oe,ne,Te,Ae,te,we=!1)=>{const ge=N&&N.children,De=N?N.shapeFlag:0,k=V.children,{patchFlag:I,shapeFlag:W}=V;if(I>0){if(I&128){re(ge,k,Y,oe,ne,Te,Ae,te,we);return}else if(I&256){J(ge,k,Y,oe,ne,Te,Ae,te,we);return}}W&8?(De&16&&Me(ge,ne,Te),k!==ge&&d(Y,k)):De&16?W&16?re(ge,k,Y,oe,ne,Te,Ae,te,we):Me(ge,ne,Te,!0):(De&8&&d(Y,""),W&16&&D(k,Y,oe,ne,Te,Ae,te,we))},J=(N,V,Y,oe,ne,Te,Ae,te,we)=>{N=N||Po,V=V||Po;const ge=N.length,De=V.length,k=Math.min(ge,De);let I;for(I=0;I<k;I++){const W=V[I]=we?Wi(V[I]):Vs(V[I]);E(N[I],W,Y,null,ne,Te,Ae,te,we)}ge>De?Me(N,ne,Te,!0,!1,k):D(V,Y,oe,ne,Te,Ae,te,we,k)},re=(N,V,Y,oe,ne,Te,Ae,te,we)=>{let ge=0;const De=V.length;let k=N.length-1,I=De-1;for(;ge<=k&&ge<=I;){const W=N[ge],ye=V[ge]=we?Wi(V[ge]):Vs(V[ge]);if(tr(W,ye))E(W,ye,Y,null,ne,Te,Ae,te,we);else break;ge++}for(;ge<=k&&ge<=I;){const W=N[k],ye=V[I]=we?Wi(V[I]):Vs(V[I]);if(tr(W,ye))E(W,ye,Y,null,ne,Te,Ae,te,we);else break;k--,I--}if(ge>k){if(ge<=I){const W=I+1,ye=W<De?V[W].el:oe;for(;ge<=I;)E(null,V[ge]=we?Wi(V[ge]):Vs(V[ge]),Y,ye,ne,Te,Ae,te,we),ge++}}else if(ge>I)for(;ge<=k;)Se(N[ge],ne,Te,!0),ge++;else{const W=ge,ye=ge,K=new Map;for(ge=ye;ge<=I;ge++){const ct=V[ge]=we?Wi(V[ge]):Vs(V[ge]);ct.key!=null&&K.set(ct.key,ge)}let ee,Re=0;const xe=I-ye+1;let Le=!1,Ze=0;const ht=new Array(xe);for(ge=0;ge<xe;ge++)ht[ge]=0;for(ge=W;ge<=k;ge++){const ct=N[ge];if(Re>=xe){Se(ct,ne,Te,!0);continue}let tt;if(ct.key!=null)tt=K.get(ct.key);else for(ee=ye;ee<=I;ee++)if(ht[ee-ye]===0&&tr(ct,V[ee])){tt=ee;break}tt===void 0?Se(ct,ne,Te,!0):(ht[tt-ye]=ge+1,tt>=Ze?Ze=tt:Le=!0,E(ct,V[tt],Y,null,ne,Te,Ae,te,we),Re++)}const Pe=Le?p2(ht):Po;for(ee=Pe.length-1,ge=xe-1;ge>=0;ge--){const ct=ye+ge,tt=V[ct],Ye=ct+1<De?V[ct+1].el:oe;ht[ge]===0?E(null,tt,Y,Ye,ne,Te,Ae,te,we):Le&&(ee<0||ge!==Pe[ee]?me(tt,Y,Ye,2):ee--)}}},me=(N,V,Y,oe,ne=null)=>{const{el:Te,type:Ae,transition:te,children:we,shapeFlag:ge}=N;if(ge&6){me(N.component.subTree,V,Y,oe);return}if(ge&128){N.suspense.move(V,Y,oe);return}if(ge&64){Ae.move(N,V,Y,ue);return}if(Ae===ze){s(Te,V,Y);for(let k=0;k<we.length;k++)me(we[k],V,Y,oe);s(N.anchor,V,Y);return}if(Ae===ad){v(N,V,Y);return}if(oe!==2&&ge&1&&te)if(oe===0)te.beforeEnter(Te),s(Te,V,Y),Sn(()=>te.enter(Te),ne);else{const{leave:k,delayLeave:I,afterLeave:W}=te,ye=()=>s(Te,V,Y),K=()=>{k(Te,()=>{ye(),W&&W()})};I?I(Te,ye,K):K()}else s(Te,V,Y)},Se=(N,V,Y,oe=!1,ne=!1)=>{const{type:Te,props:Ae,ref:te,children:we,dynamicChildren:ge,shapeFlag:De,patchFlag:k,dirs:I}=N;if(te!=null&&og(te,null,Y,N,!0),De&256){V.ctx.deactivate(N);return}const W=De&1&&I,ye=!Vo(N);let K;if(ye&&(K=Ae&&Ae.onVnodeBeforeUnmount)&&is(K,V,N),De&6)Oe(N.component,Y,oe);else{if(De&128){N.suspense.unmount(Y,oe);return}W&&br(N,null,V,"beforeUnmount"),De&64?N.type.remove(N,V,Y,ne,ue,oe):ge&&(Te!==ze||k>0&&k&64)?Me(ge,V,Y,!1,!0):(Te===ze&&k&384||!ne&&De&16)&&Me(we,V,Y),oe&&le(N)}(ye&&(K=Ae&&Ae.onVnodeUnmounted)||W)&&Sn(()=>{K&&is(K,V,N),W&&br(N,null,V,"unmounted")},Y)},le=N=>{const{type:V,el:Y,anchor:oe,transition:ne}=N;if(V===ze){Ee(Y,oe);return}if(V===ad){S(N);return}const Te=()=>{i(Y),ne&&!ne.persisted&&ne.afterLeave&&ne.afterLeave()};if(N.shapeFlag&1&&ne&&!ne.persisted){const{leave:Ae,delayLeave:te}=ne,we=()=>Ae(Y,Te);te?te(N.el,Te,we):we()}else Te()},Ee=(N,V)=>{let Y;for(;N!==V;)Y=f(N),i(N),N=Y;i(V)},Oe=(N,V,Y)=>{const{bum:oe,scope:ne,update:Te,subTree:Ae,um:te}=N;oe&&Fo(oe),ne.stop(),Te&&(Te.active=!1,Se(Ae,N,V,Y)),te&&Sn(te,V),Sn(()=>{N.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},Me=(N,V,Y,oe=!1,ne=!1,Te=0)=>{for(let Ae=Te;Ae<N.length;Ae++)Se(N[Ae],V,Y,oe,ne)},j=N=>N.shapeFlag&6?j(N.component.subTree):N.shapeFlag&128?N.suspense.next():f(N.anchor||N.el),pe=(N,V,Y)=>{N==null?V._vnode&&Se(V._vnode,null,null,!0):E(V._vnode||null,N,V,null,null,null,Y),iy(),Pw(),V._vnode=N},ue={p:E,um:Se,m:me,r:le,mt:M,mc:D,pc:$,pbc:O,n:j,o:n};let Ce,ke;return e&&([Ce,ke]=e(ue)),{render:pe,hydrate:Ce,createApp:i2(pe,Ce)}}function Er({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function sR(n,e,t=!1){const s=n.children,i=e.children;if(it(s)&&it(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Wi(i[r]),a.el=o.el),t||sR(o,a)),a.type===fu&&(a.el=o.el)}}function p2(n){const e=n.slice(),t=[0];let s,i,r,o,a;const l=n.length;for(s=0;s<l;s++){const u=n[s];if(u!==0){if(i=t[t.length-1],n[i]<u){e[s]=i,t.push(s);continue}for(r=0,o=t.length-1;r<o;)a=r+o>>1,n[t[a]]<u?r=a+1:o=a;u<n[t[r]]&&(r>0&&(e[s]=t[r-1]),t[r]=s)}}for(r=t.length,o=t[r-1];r-- >0;)t[r]=o,o=e[o];return t}const _2=n=>n.__isTeleport,ze=Symbol.for("v-fgt"),fu=Symbol.for("v-txt"),ps=Symbol.for("v-cmt"),ad=Symbol.for("v-stc"),cl=[];let Ns=null;function C(n=!1){cl.push(Ns=n?null:[])}function h2(){cl.pop(),Ns=cl[cl.length-1]||null}let Rl=1;function my(n){Rl+=n}function iR(n){return n.dynamicChildren=Rl>0?Ns||Po:null,h2(),Rl>0&&Ns&&Ns.push(n),n}function R(n,e,t,s,i,r){return iR(c(n,e,t,s,i,r,!0))}function St(n,e,t,s,i){return iR(_e(n,e,t,s,i,!0))}function Al(n){return n?n.__v_isVNode===!0:!1}function tr(n,e){return n.type===e.type&&n.key===e.key}const mu="__vInternal",rR=({key:n})=>n??null,ld=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?nn(n)||un(n)||gt(n)?{i:Tn,r:n,k:e,f:!!t}:n:null);function c(n,e=null,t=null,s=0,i=null,r=n===ze?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&rR(e),ref:e&&ld(e),scopeId:uu,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Tn};return a?(gb(l,t),r&128&&n.normalize(l)):t&&(l.shapeFlag|=nn(t)?8:16),Rl>0&&!o&&Ns&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Ns.push(l),l}const _e=f2;function f2(n,e=null,t=null,s=0,i=null,r=!1){if((!n||n===Ww)&&(n=ps),Al(n)){const a=Ri(n,e,!0);return t&&gb(a,t),Rl>0&&!r&&Ns&&(a.shapeFlag&6?Ns[Ns.indexOf(n)]=a:Ns.push(a)),a.patchFlag|=-2,a}if(C2(n)&&(n=n.__vccOpts),e){e=m2(e);let{class:a,style:l}=e;a&&!nn(a)&&(e.class=Fe(a)),Ht(l)&&(Ow(l)&&!it(l)&&(l=tn({},l)),e.style=jt(l))}const o=nn(n)?1:Bw(n)?128:_2(n)?64:Ht(n)?4:gt(n)?2:0;return c(n,e,t,s,i,o,r,!0)}function m2(n){return n?Ow(n)||mu in n?tn({},n):n:null}function Ri(n,e,t=!1){const{props:s,ref:i,patchFlag:r,children:o}=n,a=e?g2(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&rR(a),ref:e&&e.ref?t&&i?it(i)?i.concat(ld(e)):[i,ld(e)]:ld(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:o,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==ze?r===-1?16:r|16:r,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Ri(n.ssContent),ssFallback:n.ssFallback&&Ri(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function Xe(n=" ",e=0){return _e(fu,null,n,e)}function gu(n,e){const t=_e(ad,null,n);return t.staticCount=e,t}function G(n="",e=!1){return e?(C(),St(ps,null,n)):_e(ps,null,n)}function Vs(n){return n==null||typeof n=="boolean"?_e(ps):it(n)?_e(ze,null,n.slice()):typeof n=="object"?Wi(n):_e(fu,null,String(n))}function Wi(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:Ri(n)}function gb(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 i=e.default;i&&(i._c&&(i._d=!1),gb(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(mu in e)?e._ctx=Tn:i===3&&Tn&&(Tn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else gt(e)?(e={default:e,_ctx:Tn},t=32):(e=String(e),s&64?(t=16,e=[Xe(e)]):t=8);n.children=e,n.shapeFlag|=t}function g2(...n){const e={};for(let t=0;t<n.length;t++){const s=n[t];for(const i in s)if(i==="class")e.class!==s.class&&(e.class=Fe([e.class,s.class]));else if(i==="style")e.style=jt([e.style,s.style]);else if(nu(i)){const r=e[i],o=s[i];o&&r!==o&&!(it(r)&&r.includes(o))&&(e[i]=r?[].concat(r,o):o)}else i!==""&&(e[i]=s[i])}return e}function is(n,e,t,s=null){us(n,e,7,[t,s])}const b2=Xw();let E2=0;function y2(n,e,t){const s=n.type,i=(e?e.appContext:n.appContext)||b2,r={uid:E2++,vnode:n,type:s,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new hw(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jw(s,i),emitsOptions:Fw(s,i),emit:null,emitted:null,propsDefaults:Kt,inheritAttrs:s.inheritAttrs,ctx:Kt,data:Kt,props:Kt,attrs:Kt,slots:Kt,refs:Kt,setupState:Kt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=e?e.root:r,r.emit=IM.bind(null,r),n.ce&&n.ce(r),r}let gn=null;const bb=()=>gn||Tn;let Eb,lo,gy="__VUE_INSTANCE_SETTERS__";(lo=Xm()[gy])||(lo=Xm()[gy]=[]),lo.push(n=>gn=n),Eb=n=>{lo.length>1?lo.forEach(e=>e(n)):lo[0](n)};const Qo=n=>{Eb(n),n.scope.on()},Gr=()=>{gn&&gn.scope.off(),Eb(null)};function oR(n){return n.vnode.shapeFlag&4}let Nl=!1;function v2(n,e=!1){Nl=e;const{props:t,children:s}=n.vnode,i=oR(n);r2(n,t,i,e),l2(n,s);const r=i?S2(n,e):void 0;return Nl=!1,r}function S2(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=Hl(new Proxy(n.ctx,XM));const{setup:s}=t;if(s){const i=n.setupContext=s.length>1?x2(n):null;Qo(n),Ta();const r=or(s,n,0,[n.props,i]);if(xa(),Gr(),cw(r)){if(r.then(Gr,Gr),e)return r.then(o=>{by(n,o,e)}).catch(o=>{cu(o,n,0)});n.asyncDep=r}else by(n,r,e)}else aR(n,e)}function by(n,e,t){gt(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:Ht(e)&&(n.setupState=Mw(e)),aR(n,t)}let Ey;function aR(n,e,t){const s=n.type;if(!n.render){if(!e&&Ey&&!s.render){const i=s.template||fb(n).template;if(i){const{isCustomElement:r,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:l}=s,u=tn(tn({isCustomElement:r,delimiters:a},o),l);s.render=Ey(i,u)}}n.render=s.render||Os}Qo(n),Ta(),ZM(n),xa(),Gr()}function T2(n){return n.attrsProxy||(n.attrsProxy=new Proxy(n.attrs,{get(e,t){return $n(n,"get","$attrs"),e[t]}}))}function x2(n){const e=t=>{n.exposed=t||{}};return{get attrs(){return T2(n)},slots:n.slots,emit:n.emit,expose:e}}function bu(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(Mw(Hl(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in ll)return ll[t](n)},has(e,t){return t in e||t in ll}}))}function ag(n,e=!0){return gt(n)?n.displayName||n.name:n.name||e&&n.__name}function C2(n){return gt(n)&&"__vccOpts"in n}const Je=(n,e)=>CM(n,e,Nl);function yb(n,e,t){const s=arguments.length;return s===2?Ht(e)&&!it(e)?Al(e)?_e(n,null,[e]):_e(n,e):_e(n,null,e):(s>3?t=Array.prototype.slice.call(arguments,2):s===3&&Al(t)&&(t=[t]),_e(n,e,t))}const w2=Symbol.for("v-scx"),R2=()=>Is(w2),A2="3.3.4",N2="http://www.w3.org/2000/svg",Ir=typeof document<"u"?document:null,yy=Ir&&Ir.createElement("template"),O2={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 i=e?Ir.createElementNS(N2,n):Ir.createElement(n,t?{is:t}:void 0);return n==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:n=>Ir.createTextNode(n),createComment:n=>Ir.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Ir.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,s,i,r){const o=t?t.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===r||!(i=i.nextSibling)););else{yy.innerHTML=s?`<svg>${n}</svg>`:n;const a=yy.content;if(s){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]}};function I2(n,e,t){const s=n._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}function M2(n,e,t){const s=n.style,i=nn(t);if(t&&!i){if(e&&!nn(e))for(const r in e)t[r]==null&&lg(s,r,"");for(const r in t)lg(s,r,t[r])}else{const r=s.display;i?e!==t&&(s.cssText=t):e&&n.removeAttribute("style"),"_vod"in n&&(s.display=r)}}const vy=/\s*!important$/;function lg(n,e,t){if(it(t))t.forEach(s=>lg(n,e,s));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const s=D2(n,e);vy.test(t)?n.setProperty(to(s),t.replace(vy,""),"important"):n[s]=t}}const Sy=["Webkit","Moz","ms"],lp={};function D2(n,e){const t=lp[e];if(t)return t;let s=Zs(e);if(s!=="filter"&&s in n)return lp[e]=s;s=iu(s);for(let i=0;i<Sy.length;i++){const r=Sy[i]+s;if(r in n)return lp[e]=r}return e}const Ty="http://www.w3.org/1999/xlink";function k2(n,e,t,s,i){if(s&&e.startsWith("xlink:"))t==null?n.removeAttributeNS(Ty,e.slice(6,e.length)):n.setAttributeNS(Ty,e,t);else{const r=PI(e);t==null||r&&!pw(t)?n.removeAttribute(e):n.setAttribute(e,r?"":t)}}function L2(n,e,t,s,i,r,o){if(e==="innerHTML"||e==="textContent"){s&&o(s,i,r),n[e]=t??"";return}const a=n.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){n._value=t;const u=a==="OPTION"?n.getAttribute("value"):n.value,d=t??"";u!==d&&(n.value=d),t==null&&n.removeAttribute(e);return}let l=!1;if(t===""||t==null){const u=typeof n[e];u==="boolean"?t=pw(t):t==null&&u==="string"?(t="",l=!0):u==="number"&&(t=0,l=!0)}try{n[e]=t}catch{}l&&n.removeAttribute(e)}function yi(n,e,t,s){n.addEventListener(e,t,s)}function P2(n,e,t,s){n.removeEventListener(e,t,s)}function U2(n,e,t,s,i=null){const r=n._vei||(n._vei={}),o=r[e];if(s&&o)o.value=s;else{const[a,l]=F2(e);if(s){const u=r[e]=V2(s,i);yi(n,a,u,l)}else o&&(P2(n,a,o,l),r[e]=void 0)}}const xy=/(?:Once|Passive|Capture)$/;function F2(n){let e;if(xy.test(n)){e={};let s;for(;s=n.match(xy);)n=n.slice(0,n.length-s[0].length),e[s[0].toLowerCase()]=!0}return[n[2]===":"?n.slice(3):to(n.slice(2)),e]}let cp=0;const B2=Promise.resolve(),G2=()=>cp||(B2.then(()=>cp=0),cp=Date.now());function V2(n,e){const t=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=t.attached)return;us(z2(s,t.value),e,5,[s])};return t.value=n,t.attached=G2(),t}function z2(n,e){if(it(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const Cy=/^on[a-z]/,H2=(n,e,t,s,i=!1,r,o,a,l)=>{e==="class"?I2(n,s,i):e==="style"?M2(n,t,s):nu(e)?tb(e)||U2(n,e,t,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):q2(n,e,s,i))?L2(n,e,s,r,o,a,l):(e==="true-value"?n._trueValue=s:e==="false-value"&&(n._falseValue=s),k2(n,e,s,i))};function q2(n,e,t,s){return s?!!(e==="innerHTML"||e==="textContent"||e in n&&Cy.test(e)&&gt(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA"||Cy.test(e)&&nn(t)?!1:e in n}const Ui="transition",za="animation",Ms=(n,{slots:e})=>yb(BM,cR(n),e);Ms.displayName="Transition";const lR={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},Y2=Ms.props=tn({},Hw,lR),yr=(n,e=[])=>{it(n)?n.forEach(t=>t(...e)):n&&n(...e)},wy=n=>n?it(n)?n.some(e=>e.length>1):n.length>1:!1;function cR(n){const e={};for(const z in n)z in lR||(e[z]=n[z]);if(n.css===!1)return e;const{name:t="v",type:s,duration:i,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=r,appearActiveClass:u=o,appearToClass:d=a,leaveFromClass:h=`${t}-leave-from`,leaveActiveClass:f=`${t}-leave-active`,leaveToClass:_=`${t}-leave-to`}=n,m=$2(i),E=m&&m[0],b=m&&m[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:v,onLeave:S,onLeaveCancelled:w,onBeforeAppear:x=g,onAppear:A=y,onAppearCancelled:D=v}=e,T=(z,Z,M)=>{$i(z,Z?d:a),$i(z,Z?u:o),M&&M()},O=(z,Z)=>{z._isLeaving=!1,$i(z,h),$i(z,_),$i(z,f),Z&&Z()},F=z=>(Z,M)=>{const q=z?A:y,H=()=>T(Z,z,M);yr(q,[Z,H]),Ry(()=>{$i(Z,z?l:r),mi(Z,z?d:a),wy(q)||Ay(Z,s,E,H)})};return tn(e,{onBeforeEnter(z){yr(g,[z]),mi(z,r),mi(z,o)},onBeforeAppear(z){yr(x,[z]),mi(z,l),mi(z,u)},onEnter:F(!1),onAppear:F(!0),onLeave(z,Z){z._isLeaving=!0;const M=()=>O(z,Z);mi(z,h),uR(),mi(z,f),Ry(()=>{z._isLeaving&&($i(z,h),mi(z,_),wy(S)||Ay(z,s,b,M))}),yr(S,[z,M])},onEnterCancelled(z){T(z,!1),yr(v,[z])},onAppearCancelled(z){T(z,!0),yr(D,[z])},onLeaveCancelled(z){O(z),yr(w,[z])}})}function $2(n){if(n==null)return null;if(Ht(n))return[dp(n.enter),dp(n.leave)];{const e=dp(n);return[e,e]}}function dp(n){return OI(n)}function mi(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n._vtc||(n._vtc=new Set)).add(e)}function $i(n,e){e.split(/\s+/).forEach(s=>s&&n.classList.remove(s));const{_vtc:t}=n;t&&(t.delete(e),t.size||(n._vtc=void 0))}function Ry(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let W2=0;function Ay(n,e,t,s){const i=n._endId=++W2,r=()=>{i===n._endId&&s()};if(t)return setTimeout(r,t);const{type:o,timeout:a,propCount:l}=dR(n,e);if(!o)return s();const u=o+"end";let d=0;const h=()=>{n.removeEventListener(u,f),r()},f=_=>{_.target===n&&++d>=l&&h()};setTimeout(()=>{d<l&&h()},a+1),n.addEventListener(u,f)}function dR(n,e){const t=window.getComputedStyle(n),s=m=>(t[m]||"").split(", "),i=s(`${Ui}Delay`),r=s(`${Ui}Duration`),o=Ny(i,r),a=s(`${za}Delay`),l=s(`${za}Duration`),u=Ny(a,l);let d=null,h=0,f=0;e===Ui?o>0&&(d=Ui,h=o,f=r.length):e===za?u>0&&(d=za,h=u,f=l.length):(h=Math.max(o,u),d=h>0?o>u?Ui:za:null,f=d?d===Ui?r.length:l.length:0);const _=d===Ui&&/\b(transform|all)(,|$)/.test(s(`${Ui}Property`).toString());return{type:d,timeout:h,propCount:f,hasTransform:_}}function Ny(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max(...e.map((t,s)=>Oy(t)+Oy(n[s])))}function Oy(n){return Number(n.slice(0,-1).replace(",","."))*1e3}function uR(){return document.body.offsetHeight}const pR=new WeakMap,_R=new WeakMap,hR={name:"TransitionGroup",props:tn({},Y2,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=bb(),s=zw();let i,r;return ql(()=>{if(!i.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!Z2(i[0].el,t.vnode.el,o))return;i.forEach(j2),i.forEach(Q2);const a=i.filter(X2);uR(),a.forEach(l=>{const u=l.el,d=u.style;mi(u,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,$i(u,o))};u.addEventListener("transitionend",h)})}),()=>{const o=Dt(n),a=cR(o);let l=o.tag||ze;i=r,r=e.default?_b(e.default()):[];for(let u=0;u<r.length;u++){const d=r[u];d.key!=null&&jo(d,wl(d,a,s,t))}if(i)for(let u=0;u<i.length;u++){const d=i[u];jo(d,wl(d,a,s,t)),pR.set(d,d.el.getBoundingClientRect())}return _e(l,null,r)}}},K2=n=>delete n.mode;hR.props;const Qs=hR;function j2(n){const e=n.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function Q2(n){_R.set(n,n.el.getBoundingClientRect())}function X2(n){const e=pR.get(n),t=_R.get(n),s=e.left-t.left,i=e.top-t.top;if(s||i){const r=n.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${i}px)`,r.transitionDuration="0s",n}}function Z2(n,e,t){const s=n.cloneNode();n._vtc&&n._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),t.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=dR(s);return i.removeChild(s),r}const pr=n=>{const e=n.props["onUpdate:modelValue"]||!1;return it(e)?t=>Fo(e,t):e};function J2(n){n.target.composing=!0}function Iy(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const he={created(n,{modifiers:{lazy:e,trim:t,number:s}},i){n._assign=pr(i);const r=s||i.props&&i.props.type==="number";yi(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),r&&(a=Sd(a)),n._assign(a)}),t&&yi(n,"change",()=>{n.value=n.value.trim()}),e||(yi(n,"compositionstart",J2),yi(n,"compositionend",Iy),yi(n,"change",Iy))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,modifiers:{lazy:t,trim:s,number:i}},r){if(n._assign=pr(r),n.composing||document.activeElement===n&&n.type!=="range"&&(t||s&&n.value.trim()===e||(i||n.type==="number")&&Sd(n.value)===e))return;const o=e??"";n.value!==o&&(n.value=o)}},Ke={deep:!0,created(n,e,t){n._assign=pr(t),yi(n,"change",()=>{const s=n._modelValue,i=Xo(n),r=n.checked,o=n._assign;if(it(s)){const a=ib(s,i),l=a!==-1;if(r&&!l)o(s.concat(i));else if(!r&&l){const u=[...s];u.splice(a,1),o(u)}}else if(va(s)){const a=new Set(s);r?a.add(i):a.delete(i),o(a)}else o(fR(n,r))})},mounted:My,beforeUpdate(n,e,t){n._assign=pr(t),My(n,e,t)}};function My(n,{value:e,oldValue:t},s){n._modelValue=e,it(e)?n.checked=ib(e,s.props.value)>-1:va(e)?n.checked=e.has(s.props.value):e!==t&&(n.checked=Wr(e,fR(n,!0)))}const eD={created(n,{value:e},t){n.checked=Wr(e,t.props.value),n._assign=pr(t),yi(n,"change",()=>{n._assign(Xo(n))})},beforeUpdate(n,{value:e,oldValue:t},s){n._assign=pr(s),e!==t&&(n.checked=Wr(e,s.props.value))}},qt={deep:!0,created(n,{value:e,modifiers:{number:t}},s){const i=va(e);yi(n,"change",()=>{const r=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?Sd(Xo(o)):Xo(o));n._assign(n.multiple?i?new Set(r):r:r[0])}),n._assign=pr(s)},mounted(n,{value:e}){Dy(n,e)},beforeUpdate(n,e,t){n._assign=pr(t)},updated(n,{value:e}){Dy(n,e)}};function Dy(n,e){const t=n.multiple;if(!(t&&!it(e)&&!va(e))){for(let s=0,i=n.options.length;s<i;s++){const r=n.options[s],o=Xo(r);if(t)it(e)?r.selected=ib(e,o)>-1:r.selected=e.has(o);else if(Wr(Xo(r),e)){n.selectedIndex!==s&&(n.selectedIndex=s);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function Xo(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 tD=["ctrl","shift","alt","meta"],nD={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)=>tD.some(t=>n[`${t}Key`]&&!e.includes(t))},ae=(n,e)=>(t,...s)=>{for(let i=0;i<e.length;i++){const r=nD[e[i]];if(r&&r(t,e))return}return n(t,...s)},sD={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ai=(n,e)=>t=>{if(!("key"in t))return;const s=to(t.key);if(e.some(i=>i===s||sD[i]===s))return n(t)},Ot={beforeMount(n,{value:e},{transition:t}){n._vod=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):Ha(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),Ha(n,!0),s.enter(n)):s.leave(n,()=>{Ha(n,!1)}):Ha(n,e))},beforeUnmount(n,{value:e}){Ha(n,e)}};function Ha(n,e){n.style.display=e?n._vod:"none"}const iD=tn({patchProp:H2},O2);let ky;function rD(){return ky||(ky=d2(iD))}const oD=(...n)=>{const e=rD().createApp(...n),{mount:t}=e;return e.mount=s=>{const i=aD(s);if(!i)return;const r=e._component;!gt(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function aD(n){return nn(n)?document.querySelector(n):n}function lD(){return mR().__VUE_DEVTOOLS_GLOBAL_HOOK__}function mR(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const cD=typeof Proxy=="function",dD="devtools-plugin:setup",uD="plugin:settings:set";let co,cg;function pD(){var n;return co!==void 0||(typeof window<"u"&&window.performance?(co=!0,cg=window.performance):typeof global<"u"&&(!((n=global.perf_hooks)===null||n===void 0)&&n.performance)?(co=!0,cg=global.perf_hooks.performance):co=!1),co}function _D(){return pD()?cg.now():Date.now()}class hD{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 i=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},s);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}r=o},now(){return _D()}},t&&t.on(uD,(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(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}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 fD(n,e){const t=n,s=mR(),i=lD(),r=cD&&t.enableEarlyProxy;if(i&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(dD,n,e);else{const o=r?new hD(t,i):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 mD="store";function wa(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function gR(n){return n!==null&&typeof n=="object"}function gD(n){return n&&typeof n.then=="function"}function bD(n,e){return function(){return n(e)}}function bR(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 ER(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;Eu(n,t,[],n._modules.root,!0),vb(n,t,e)}function vb(n,e,t){var s=n._state,i=n._scope;n.getters={},n._makeLocalGettersCache=Object.create(null);var r=n._wrappedGetters,o={},a={},l=FI(!0);l.run(function(){wa(r,function(u,d){o[d]=bD(u,n),a[d]=Je(function(){return o[d]()}),Object.defineProperty(n.getters,d,{get:function(){return a[d].value},enumerable:!0})})}),n._state=Wn({data:e}),n._scope=l,n.strict&&TD(n),s&&t&&n._withCommit(function(){s.data=null}),i&&i.stop()}function Eu(n,e,t,s,i){var r=!t.length,o=n._modules.getNamespace(t);if(s.namespaced&&(n._modulesNamespaceMap[o],n._modulesNamespaceMap[o]=s),!r&&!i){var a=Sb(e,t.slice(0,-1)),l=t[t.length-1];n._withCommit(function(){a[l]=s.state})}var u=s.context=ED(n,o,t);s.forEachMutation(function(d,h){var f=o+h;yD(n,f,d,u)}),s.forEachAction(function(d,h){var f=d.root?h:o+h,_=d.handler||d;vD(n,f,_,u)}),s.forEachGetter(function(d,h){var f=o+h;SD(n,f,d,u)}),s.forEachChild(function(d,h){Eu(n,e,t.concat(h),d,i)})}function ED(n,e,t){var s=e==="",i={dispatch:s?n.dispatch:function(r,o,a){var l=Nd(r,o,a),u=l.payload,d=l.options,h=l.type;return(!d||!d.root)&&(h=e+h),n.dispatch(h,u)},commit:s?n.commit:function(r,o,a){var l=Nd(r,o,a),u=l.payload,d=l.options,h=l.type;(!d||!d.root)&&(h=e+h),n.commit(h,u,d)}};return Object.defineProperties(i,{getters:{get:s?function(){return n.getters}:function(){return yR(n,e)}},state:{get:function(){return Sb(n.state,t)}}}),i}function yR(n,e){if(!n._makeLocalGettersCache[e]){var t={},s=e.length;Object.keys(n.getters).forEach(function(i){if(i.slice(0,s)===e){var r=i.slice(s);Object.defineProperty(t,r,{get:function(){return n.getters[i]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function yD(n,e,t,s){var i=n._mutations[e]||(n._mutations[e]=[]);i.push(function(o){t.call(n,s.state,o)})}function vD(n,e,t,s){var i=n._actions[e]||(n._actions[e]=[]);i.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 gD(a)||(a=Promise.resolve(a)),n._devtoolHook?a.catch(function(l){throw n._devtoolHook.emit("vuex:error",l),l}):a})}function SD(n,e,t,s){n._wrappedGetters[e]||(n._wrappedGetters[e]=function(r){return t(s.state,s.getters,r.state,r.getters)})}function TD(n){Fn(function(){return n._state.data},function(){},{deep:!0,flush:"sync"})}function Sb(n,e){return e.reduce(function(t,s){return t[s]},n)}function Nd(n,e,t){return gR(n)&&n.type&&(t=e,e=n,n=n.type),{type:n,payload:e,options:t}}var xD="vuex bindings",Ly="vuex:mutations",up="vuex:actions",uo="vuex",CD=0;function wD(n,e){fD({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:[xD]},function(t){t.addTimelineLayer({id:Ly,label:"Vuex Mutations",color:Py}),t.addTimelineLayer({id:up,label:"Vuex Actions",color:Py}),t.addInspector({id:uo,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(s){if(s.app===n&&s.inspectorId===uo)if(s.filter){var i=[];xR(i,e._modules.root,s.filter,""),s.rootNodes=i}else s.rootNodes=[TR(e._modules.root,"")]}),t.on.getInspectorState(function(s){if(s.app===n&&s.inspectorId===uo){var i=s.nodeId;yR(e,i),s.state=ND(ID(e._modules,i),i==="root"?e.getters:e._makeLocalGettersCache,i)}}),t.on.editInspectorState(function(s){if(s.app===n&&s.inspectorId===uo){var i=s.nodeId,r=s.path;i!=="root"&&(r=i.split("/").filter(Boolean).concat(r)),e._withCommit(function(){s.set(e._state.data,r,s.state.value)})}}),e.subscribe(function(s,i){var r={};s.payload&&(r.payload=s.payload),r.state=i,t.notifyComponentUpdate(),t.sendInspectorTree(uo),t.sendInspectorState(uo),t.addTimelineEvent({layerId:Ly,event:{time:Date.now(),title:s.type,data:r}})}),e.subscribeAction({before:function(s,i){var r={};s.payload&&(r.payload=s.payload),s._id=CD++,s._time=Date.now(),r.state=i,t.addTimelineEvent({layerId:up,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:r}})},after:function(s,i){var r={},o=Date.now()-s._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},s.payload&&(r.payload=s.payload),r.state=i,t.addTimelineEvent({layerId:up,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:r}})}})})}var Py=8702998,RD=6710886,AD=16777215,vR={label:"namespaced",textColor:AD,backgroundColor:RD};function SR(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function TR(n,e){return{id:e||"root",label:SR(e),tags:n.namespaced?[vR]:[],children:Object.keys(n._children).map(function(t){return TR(n._children[t],e+t+"/")})}}function xR(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?[vR]:[]}),Object.keys(e._children).forEach(function(i){xR(n,e._children[i],t,s+i+"/")})}function ND(n,e,t){e=t==="root"?e:e[t];var s=Object.keys(e),i={state:Object.keys(n.state).map(function(o){return{key:o,editable:!0,value:n.state[o]}})};if(s.length){var r=OD(e);i.getters=Object.keys(r).map(function(o){return{key:o.endsWith("/")?SR(o):o,editable:!1,value:dg(function(){return r[o]})}})}return i}function OD(n){var e={};return Object.keys(n).forEach(function(t){var s=t.split("/");if(s.length>1){var i=e,r=s.pop();s.forEach(function(o){i[o]||(i[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),i=i[o]._custom.value}),i[r]=dg(function(){return n[t]})}else e[t]=dg(function(){return n[t]})}),e}function ID(n,e){var t=e.split("/").filter(function(s){return s});return t.reduce(function(s,i,r){var o=s[i];if(!o)throw new Error('Missing module "'+i+'" for path "'+e+'".');return r===t.length-1?o:o._children},e==="root"?n:n.root._children)}function dg(n){try{return n()}catch(e){return e}}var Ps=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)||{}},CR={namespaced:{configurable:!0}};CR.namespaced.get=function(){return!!this._rawModule.namespaced};Ps.prototype.addChild=function(e,t){this._children[e]=t};Ps.prototype.removeChild=function(e){delete this._children[e]};Ps.prototype.getChild=function(e){return this._children[e]};Ps.prototype.hasChild=function(e){return e in this._children};Ps.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)};Ps.prototype.forEachChild=function(e){wa(this._children,e)};Ps.prototype.forEachGetter=function(e){this._rawModule.getters&&wa(this._rawModule.getters,e)};Ps.prototype.forEachAction=function(e){this._rawModule.actions&&wa(this._rawModule.actions,e)};Ps.prototype.forEachMutation=function(e){this._rawModule.mutations&&wa(this._rawModule.mutations,e)};Object.defineProperties(Ps.prototype,CR);var io=function(e){this.register([],e,!1)};io.prototype.get=function(e){return e.reduce(function(t,s){return t.getChild(s)},this.root)};io.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(s,i){return t=t.getChild(i),s+(t.namespaced?i+"/":"")},"")};io.prototype.update=function(e){wR([],this.root,e)};io.prototype.register=function(e,t,s){var i=this;s===void 0&&(s=!0);var r=new Ps(t,s);if(e.length===0)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&wa(t.modules,function(a,l){i.register(e.concat(l),a,s)})};io.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1],i=t.getChild(s);i&&i.runtime&&t.removeChild(s)};io.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1];return t?t.hasChild(s):!1};function wR(n,e,t){if(e.update(t),t.modules)for(var s in t.modules){if(!e.getChild(s))return;wR(n.concat(s),e.getChild(s),t.modules[s])}}function MD(n){return new Kn(n)}var Kn=function(e){var t=this;e===void 0&&(e={});var s=e.plugins;s===void 0&&(s=[]);var i=e.strict;i===void 0&&(i=!1);var r=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 io(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var o=this,a=this,l=a.dispatch,u=a.commit;this.dispatch=function(f,_){return l.call(o,f,_)},this.commit=function(f,_,m){return u.call(o,f,_,m)},this.strict=i;var d=this._modules.root.state;Eu(this,d,[],this._modules.root),vb(this,d),s.forEach(function(h){return h(t)})},Tb={state:{configurable:!0}};Kn.prototype.install=function(e,t){e.provide(t||mD,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&wD(e,this)};Tb.state.get=function(){return this._state.data};Tb.state.set=function(n){};Kn.prototype.commit=function(e,t,s){var i=this,r=Nd(e,t,s),o=r.type,a=r.payload,l={type:o,payload:a},u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(h){h(a)})}),this._subscribers.slice().forEach(function(d){return d(l,i.state)}))};Kn.prototype.dispatch=function(e,t){var s=this,i=Nd(e,t),r=i.type,o=i.payload,a={type:r,payload:o},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,s.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(d){return d(o)})):l[0](o);return new Promise(function(d,h){u.then(function(f){try{s._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(a,s.state)})}catch{}d(f)},function(f){try{s._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(a,s.state,f)})}catch{}h(f)})})}};Kn.prototype.subscribe=function(e,t){return bR(e,this._subscribers,t)};Kn.prototype.subscribeAction=function(e,t){var s=typeof e=="function"?{before:e}:e;return bR(s,this._actionSubscribers,t)};Kn.prototype.watch=function(e,t,s){var i=this;return Fn(function(){return e(i.state,i.getters)},t,Object.assign({},s))};Kn.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})};Kn.prototype.registerModule=function(e,t,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),Eu(this,this.state,e,this._modules.get(e),s.preserveState),vb(this,this.state)};Kn.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var s=Sb(t.state,e.slice(0,-1));delete s[e[e.length-1]]}),ER(this)};Kn.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};Kn.prototype.hotUpdate=function(e){this._modules.update(e),ER(this,!0)};Kn.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t};Object.defineProperties(Kn.prototype,Tb);var DD=PD(function(n,e){var t={};return kD(e).forEach(function(s){var i=s.key,r=s.val;t[i]=function(){var a=this.$store.state,l=this.$store.getters;if(n){var u=UD(this.$store,"mapState",n);if(!u)return;a=u.context.state,l=u.context.getters}return typeof r=="function"?r.call(this,a,l):a[r]},t[i].vuex=!0}),t});function kD(n){return LD(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 LD(n){return Array.isArray(n)||gR(n)}function PD(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function UD(n,e,t){var s=n._modulesNamespaceMap[t];return s}function RR(n,e){return function(){return n.apply(e,arguments)}}const{toString:FD}=Object.prototype,{getPrototypeOf:xb}=Object,yu=(n=>e=>{const t=FD.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ti=n=>(n=n.toLowerCase(),e=>yu(e)===n),vu=n=>e=>typeof e===n,{isArray:Ra}=Array,Ol=vu("undefined");function BD(n){return n!==null&&!Ol(n)&&n.constructor!==null&&!Ol(n.constructor)&&_s(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const AR=ti("ArrayBuffer");function GD(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&AR(n.buffer),e}const VD=vu("string"),_s=vu("function"),NR=vu("number"),Su=n=>n!==null&&typeof n=="object",zD=n=>n===!0||n===!1,cd=n=>{if(yu(n)!=="object")return!1;const e=xb(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},HD=ti("Date"),qD=ti("File"),YD=ti("Blob"),$D=ti("FileList"),WD=n=>Su(n)&&_s(n.pipe),KD=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||_s(n.append)&&((e=yu(n))==="formdata"||e==="object"&&_s(n.toString)&&n.toString()==="[object FormData]"))},jD=ti("URLSearchParams"),QD=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yl(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let s,i;if(typeof n!="object"&&(n=[n]),Ra(n))for(s=0,i=n.length;s<i;s++)e.call(null,n[s],s,n);else{const r=t?Object.getOwnPropertyNames(n):Object.keys(n),o=r.length;let a;for(s=0;s<o;s++)a=r[s],e.call(null,n[a],a,n)}}function OR(n,e){e=e.toLowerCase();const t=Object.keys(n);let s=t.length,i;for(;s-- >0;)if(i=t[s],e===i.toLowerCase())return i;return null}const IR=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),MR=n=>!Ol(n)&&n!==IR;function ug(){const{caseless:n}=MR(this)&&this||{},e={},t=(s,i)=>{const r=n&&OR(e,i)||i;cd(e[r])&&cd(s)?e[r]=ug(e[r],s):cd(s)?e[r]=ug({},s):Ra(s)?e[r]=s.slice():e[r]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Yl(arguments[s],t);return e}const XD=(n,e,t,{allOwnKeys:s}={})=>(Yl(e,(i,r)=>{t&&_s(i)?n[r]=RR(i,t):n[r]=i},{allOwnKeys:s}),n),ZD=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),JD=(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)},ek=(n,e,t,s)=>{let i,r,o;const a={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),r=i.length;r-- >0;)o=i[r],(!s||s(o,n,e))&&!a[o]&&(e[o]=n[o],a[o]=!0);n=t!==!1&&xb(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},tk=(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},nk=n=>{if(!n)return null;if(Ra(n))return n;let e=n.length;if(!NR(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},sk=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&xb(Uint8Array)),ik=(n,e)=>{const s=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=s.next())&&!i.done;){const r=i.value;e.call(n,r[0],r[1])}},rk=(n,e)=>{let t;const s=[];for(;(t=n.exec(e))!==null;)s.push(t);return s},ok=ti("HTMLFormElement"),ak=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,s,i){return s.toUpperCase()+i}),Uy=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),lk=ti("RegExp"),DR=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),s={};Yl(t,(i,r)=>{let o;(o=e(i,r,n))!==!1&&(s[r]=o||i)}),Object.defineProperties(n,s)},ck=n=>{DR(n,(e,t)=>{if(_s(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const s=n[t];if(_s(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+"'")})}})},dk=(n,e)=>{const t={},s=i=>{i.forEach(r=>{t[r]=!0})};return Ra(n)?s(n):s(String(n).split(e)),t},uk=()=>{},pk=(n,e)=>(n=+n,Number.isFinite(n)?n:e),pp="abcdefghijklmnopqrstuvwxyz",Fy="0123456789",kR={DIGIT:Fy,ALPHA:pp,ALPHA_DIGIT:pp+pp.toUpperCase()+Fy},_k=(n=16,e=kR.ALPHA_DIGIT)=>{let t="";const{length:s}=e;for(;n--;)t+=e[Math.random()*s|0];return t};function hk(n){return!!(n&&_s(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const fk=n=>{const e=new Array(10),t=(s,i)=>{if(Su(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[i]=s;const r=Ra(s)?[]:{};return Yl(s,(o,a)=>{const l=t(o,i+1);!Ol(l)&&(r[a]=l)}),e[i]=void 0,r}}return s};return t(n,0)},mk=ti("AsyncFunction"),gk=n=>n&&(Su(n)||_s(n))&&_s(n.then)&&_s(n.catch),Ie={isArray:Ra,isArrayBuffer:AR,isBuffer:BD,isFormData:KD,isArrayBufferView:GD,isString:VD,isNumber:NR,isBoolean:zD,isObject:Su,isPlainObject:cd,isUndefined:Ol,isDate:HD,isFile:qD,isBlob:YD,isRegExp:lk,isFunction:_s,isStream:WD,isURLSearchParams:jD,isTypedArray:sk,isFileList:$D,forEach:Yl,merge:ug,extend:XD,trim:QD,stripBOM:ZD,inherits:JD,toFlatObject:ek,kindOf:yu,kindOfTest:ti,endsWith:tk,toArray:nk,forEachEntry:ik,matchAll:rk,isHTMLForm:ok,hasOwnProperty:Uy,hasOwnProp:Uy,reduceDescriptors:DR,freezeMethods:ck,toObjectSet:dk,toCamelCase:ak,noop:uk,toFiniteNumber:pk,findKey:OR,global:IR,isContextDefined:MR,ALPHABET:kR,generateString:_k,isSpecCompliantForm:hk,toJSONObject:fk,isAsyncFn:mk,isThenable:gk};function Mt(n,e,t,s,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),s&&(this.request=s),i&&(this.response=i)}Ie.inherits(Mt,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.response&&this.response.status?this.response.status:null}}});const LR=Mt.prototype,PR={};["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=>{PR[n]={value:n}});Object.defineProperties(Mt,PR);Object.defineProperty(LR,"isAxiosError",{value:!0});Mt.from=(n,e,t,s,i,r)=>{const o=Object.create(LR);return Ie.toFlatObject(n,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Mt.call(o,n.message,e,t,s,i),o.cause=n,o.name=n.name,r&&Object.assign(o,r),o};const bk=null;function pg(n){return Ie.isPlainObject(n)||Ie.isArray(n)}function UR(n){return Ie.endsWith(n,"[]")?n.slice(0,-2):n}function By(n,e,t){return n?n.concat(e).map(function(i,r){return i=UR(i),!t&&r?"["+i+"]":i}).join(t?".":""):e}function Ek(n){return Ie.isArray(n)&&!n.some(pg)}const yk=Ie.toFlatObject(Ie,{},null,function(e){return/^is[A-Z]/.test(e)});function Tu(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(E,b){return!Ie.isUndefined(b[E])});const s=t.metaTokens,i=t.visitor||d,r=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 u(m){if(m===null)return"";if(Ie.isDate(m))return m.toISOString();if(!l&&Ie.isBlob(m))throw new Mt("Blob is not supported. Use a Buffer instead.");return Ie.isArrayBuffer(m)||Ie.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,E,b){let g=m;if(m&&!b&&typeof m=="object"){if(Ie.endsWith(E,"{}"))E=s?E:E.slice(0,-2),m=JSON.stringify(m);else if(Ie.isArray(m)&&Ek(m)||(Ie.isFileList(m)||Ie.endsWith(E,"[]"))&&(g=Ie.toArray(m)))return E=UR(E),g.forEach(function(v,S){!(Ie.isUndefined(v)||v===null)&&e.append(o===!0?By([E],S,r):o===null?E:E+"[]",u(v))}),!1}return pg(m)?!0:(e.append(By(b,E,r),u(m)),!1)}const h=[],f=Object.assign(yk,{defaultVisitor:d,convertValue:u,isVisitable:pg});function _(m,E){if(!Ie.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(m),Ie.forEach(m,function(g,y){(!(Ie.isUndefined(g)||g===null)&&i.call(e,g,Ie.isString(y)?y.trim():y,E,f))===!0&&_(g,E?E.concat(y):[y])}),h.pop()}}if(!Ie.isObject(n))throw new TypeError("data must be an object");return _(n),e}function Gy(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Cb(n,e){this._pairs=[],n&&Tu(n,this,e)}const FR=Cb.prototype;FR.append=function(e,t){this._pairs.push([e,t])};FR.toString=function(e){const t=e?function(s){return e.call(this,s,Gy)}:Gy;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function vk(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function BR(n,e,t){if(!e)return n;const s=t&&t.encode||vk,i=t&&t.serialize;let r;if(i?r=i(e,t):r=Ie.isURLSearchParams(e)?e.toString():new Cb(e,t).toString(s),r){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+r}return n}class Sk{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){Ie.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Vy=Sk,GR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tk=typeof URLSearchParams<"u"?URLSearchParams:Cb,xk=typeof FormData<"u"?FormData:null,Ck=typeof Blob<"u"?Blob:null,wk={isBrowser:!0,classes:{URLSearchParams:Tk,FormData:xk,Blob:Ck},protocols:["http","https","file","blob","url","data"]},VR=typeof window<"u"&&typeof document<"u",Rk=(n=>VR&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),Ak=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Nk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:VR,hasStandardBrowserEnv:Rk,hasStandardBrowserWebWorkerEnv:Ak},Symbol.toStringTag,{value:"Module"})),$s={...Nk,...wk};function Ok(n,e){return Tu(n,new $s.classes.URLSearchParams,Object.assign({visitor:function(t,s,i,r){return $s.isNode&&Ie.isBuffer(t)?(this.append(s,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function Ik(n){return Ie.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Mk(n){const e={},t=Object.keys(n);let s;const i=t.length;let r;for(s=0;s<i;s++)r=t[s],e[r]=n[r];return e}function zR(n){function e(t,s,i,r){let o=t[r++];const a=Number.isFinite(+o),l=r>=t.length;return o=!o&&Ie.isArray(i)?i.length:o,l?(Ie.hasOwnProp(i,o)?i[o]=[i[o],s]:i[o]=s,!a):((!i[o]||!Ie.isObject(i[o]))&&(i[o]=[]),e(t,s,i[o],r)&&Ie.isArray(i[o])&&(i[o]=Mk(i[o])),!a)}if(Ie.isFormData(n)&&Ie.isFunction(n.entries)){const t={};return Ie.forEachEntry(n,(s,i)=>{e(Ik(s),i,t,0)}),t}return null}function Dk(n,e,t){if(Ie.isString(n))try{return(e||JSON.parse)(n),Ie.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(t||JSON.stringify)(n)}const wb={transitional:GR,adapter:["xhr","http"],transformRequest:[function(e,t){const s=t.getContentType()||"",i=s.indexOf("application/json")>-1,r=Ie.isObject(e);if(r&&Ie.isHTMLForm(e)&&(e=new FormData(e)),Ie.isFormData(e))return i&&i?JSON.stringify(zR(e)):e;if(Ie.isArrayBuffer(e)||Ie.isBuffer(e)||Ie.isStream(e)||Ie.isFile(e)||Ie.isBlob(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(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Ok(e,this.formSerializer).toString();if((a=Ie.isFileList(e))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Tu(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),Dk(e)):e}],transformResponse:[function(e){const t=this.transitional||wb.transitional,s=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&Ie.isString(e)&&(s&&!this.responseType||i)){const o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?Mt.from(a,Mt.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:$s.classes.FormData,Blob:$s.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=>{wb.headers[n]={}});const Rb=wb,kk=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"]),Lk=n=>{const e={};let t,s,i;return n&&n.split(`
`).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),s=o.substring(i+1).trim(),!(!t||e[t]&&kk[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e},zy=Symbol("internals");function qa(n){return n&&String(n).trim().toLowerCase()}function dd(n){return n===!1||n==null?n:Ie.isArray(n)?n.map(dd):String(n)}function Pk(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 Uk=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function _p(n,e,t,s,i){if(Ie.isFunction(s))return s.call(this,e,t);if(i&&(e=t),!!Ie.isString(e)){if(Ie.isString(s))return e.indexOf(s)!==-1;if(Ie.isRegExp(s))return s.test(e)}}function Fk(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function Bk(n,e){const t=Ie.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+t,{value:function(i,r,o){return this[s].call(this,e,i,r,o)},configurable:!0})})}class xu{constructor(e){e&&this.set(e)}set(e,t,s){const i=this;function r(a,l,u){const d=qa(l);if(!d)throw new Error("header name must be a non-empty string");const h=Ie.findKey(i,d);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||l]=dd(a))}const o=(a,l)=>Ie.forEach(a,(u,d)=>r(u,d,l));return Ie.isPlainObject(e)||e instanceof this.constructor?o(e,t):Ie.isString(e)&&(e=e.trim())&&!Uk(e)?o(Lk(e),t):e!=null&&r(t,e,s),this}get(e,t){if(e=qa(e),e){const s=Ie.findKey(this,e);if(s){const i=this[s];if(!t)return i;if(t===!0)return Pk(i);if(Ie.isFunction(t))return t.call(this,i,s);if(Ie.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=qa(e),e){const s=Ie.findKey(this,e);return!!(s&&this[s]!==void 0&&(!t||_p(this,this[s],s,t)))}return!1}delete(e,t){const s=this;let i=!1;function r(o){if(o=qa(o),o){const a=Ie.findKey(s,o);a&&(!t||_p(s,s[a],a,t))&&(delete s[a],i=!0)}}return Ie.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let s=t.length,i=!1;for(;s--;){const r=t[s];(!e||_p(this,this[r],r,e,!0))&&(delete this[r],i=!0)}return i}normalize(e){const t=this,s={};return Ie.forEach(this,(i,r)=>{const o=Ie.findKey(s,r);if(o){t[o]=dd(i),delete t[r];return}const a=e?Fk(r):String(r).trim();a!==r&&delete t[r],t[a]=dd(i),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ie.forEach(this,(s,i)=>{s!=null&&s!==!1&&(t[i]=e&&Ie.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(i=>s.set(i)),s}static accessor(e){const s=(this[zy]=this[zy]={accessors:{}}).accessors,i=this.prototype;function r(o){const a=qa(o);s[a]||(Bk(i,o),s[a]=!0)}return Ie.isArray(e)?e.forEach(r):r(e),this}}xu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ie.reduceDescriptors(xu.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(s){this[t]=s}}});Ie.freezeMethods(xu);const Ti=xu;function hp(n,e){const t=this||Rb,s=e||t,i=Ti.from(s.headers);let r=s.data;return Ie.forEach(n,function(a){r=a.call(t,r,i.normalize(),e?e.status:void 0)}),i.normalize(),r}function HR(n){return!!(n&&n.__CANCEL__)}function $l(n,e,t){Mt.call(this,n??"canceled",Mt.ERR_CANCELED,e,t),this.name="CanceledError"}Ie.inherits($l,Mt,{__CANCEL__:!0});function Gk(n,e,t){const s=t.config.validateStatus;!t.status||!s||s(t.status)?n(t):e(new Mt("Request failed with status code "+t.status,[Mt.ERR_BAD_REQUEST,Mt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Vk=$s.hasStandardBrowserEnv?{write(n,e,t,s,i,r){const o=[n+"="+encodeURIComponent(e)];Ie.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),Ie.isString(s)&&o.push("path="+s),Ie.isString(i)&&o.push("domain="+i),r===!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 zk(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Hk(n,e){return e?n.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):n}function qR(n,e){return n&&!zk(e)?Hk(n,e):e}const qk=$s.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let s;function i(r){let o=r;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=i(window.location.href),function(o){const a=Ie.isString(o)?i(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Yk(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function $k(n,e){n=n||10;const t=new Array(n),s=new Array(n);let i=0,r=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),d=s[r];o||(o=u),t[i]=l,s[i]=u;let h=r,f=0;for(;h!==i;)f+=t[h++],h=h%n;if(i=(i+1)%n,i===r&&(r=(r+1)%n),u-o<e)return;const _=d&&u-d;return _?Math.round(f*1e3/_):void 0}}function Hy(n,e){let t=0;const s=$k(50,250);return i=>{const r=i.loaded,o=i.lengthComputable?i.total:void 0,a=r-t,l=s(a),u=r<=o;t=r;const d={loaded:r,total:o,progress:o?r/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&u?(o-r)/l:void 0,event:i};d[e?"download":"upload"]=!0,n(d)}}const Wk=typeof XMLHttpRequest<"u",Kk=Wk&&function(n){return new Promise(function(t,s){let i=n.data;const r=Ti.from(n.headers).normalize();let{responseType:o,withXSRFToken:a}=n,l;function u(){n.cancelToken&&n.cancelToken.unsubscribe(l),n.signal&&n.signal.removeEventListener("abort",l)}let d;if(Ie.isFormData(i)){if($s.hasStandardBrowserEnv||$s.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((d=r.getContentType())!==!1){const[E,...b]=d?d.split(";").map(g=>g.trim()).filter(Boolean):[];r.setContentType([E||"multipart/form-data",...b].join("; "))}}let h=new XMLHttpRequest;if(n.auth){const E=n.auth.username||"",b=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";r.set("Authorization","Basic "+btoa(E+":"+b))}const f=qR(n.baseURL,n.url);h.open(n.method.toUpperCase(),BR(f,n.params,n.paramsSerializer),!0),h.timeout=n.timeout;function _(){if(!h)return;const E=Ti.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),g={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:n,request:h};Gk(function(v){t(v),u()},function(v){s(v),u()},g),h=null}if("onloadend"in h?h.onloadend=_:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(_)},h.onabort=function(){h&&(s(new Mt("Request aborted",Mt.ECONNABORTED,n,h)),h=null)},h.onerror=function(){s(new Mt("Network Error",Mt.ERR_NETWORK,n,h)),h=null},h.ontimeout=function(){let b=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const g=n.transitional||GR;n.timeoutErrorMessage&&(b=n.timeoutErrorMessage),s(new Mt(b,g.clarifyTimeoutError?Mt.ETIMEDOUT:Mt.ECONNABORTED,n,h)),h=null},$s.hasStandardBrowserEnv&&(a&&Ie.isFunction(a)&&(a=a(n)),a||a!==!1&&qk(f))){const E=n.xsrfHeaderName&&n.xsrfCookieName&&Vk.read(n.xsrfCookieName);E&&r.set(n.xsrfHeaderName,E)}i===void 0&&r.setContentType(null),"setRequestHeader"in h&&Ie.forEach(r.toJSON(),function(b,g){h.setRequestHeader(g,b)}),Ie.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),o&&o!=="json"&&(h.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&h.addEventListener("progress",Hy(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",Hy(n.onUploadProgress)),(n.cancelToken||n.signal)&&(l=E=>{h&&(s(!E||E.type?new $l(null,n,h):E),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(l),n.signal&&(n.signal.aborted?l():n.signal.addEventListener("abort",l)));const m=Yk(f);if(m&&$s.protocols.indexOf(m)===-1){s(new Mt("Unsupported protocol "+m+":",Mt.ERR_BAD_REQUEST,n));return}h.send(i||null)})},_g={http:bk,xhr:Kk};Ie.forEach(_g,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const qy=n=>`- ${n}`,jk=n=>Ie.isFunction(n)||n===null||n===!1,YR={getAdapter:n=>{n=Ie.isArray(n)?n:[n];const{length:e}=n;let t,s;const i={};for(let r=0;r<e;r++){t=n[r];let o;if(s=t,!jk(t)&&(s=_g[(o=String(t)).toLowerCase()],s===void 0))throw new Mt(`Unknown adapter '${o}'`);if(s)break;i[o||"#"+r]=s}if(!s){const r=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?r.length>1?`since :
`+r.map(qy).join(`
`):" "+qy(r[0]):"as no adapter specified";throw new Mt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:_g};function fp(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new $l(null,n)}function Yy(n){return fp(n),n.headers=Ti.from(n.headers),n.data=hp.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),YR.getAdapter(n.adapter||Rb.adapter)(n).then(function(s){return fp(n),s.data=hp.call(n,n.transformResponse,s),s.headers=Ti.from(s.headers),s},function(s){return HR(s)||(fp(n),s&&s.response&&(s.response.data=hp.call(n,n.transformResponse,s.response),s.response.headers=Ti.from(s.response.headers))),Promise.reject(s)})}const $y=n=>n instanceof Ti?n.toJSON():n;function Zo(n,e){e=e||{};const t={};function s(u,d,h){return Ie.isPlainObject(u)&&Ie.isPlainObject(d)?Ie.merge.call({caseless:h},u,d):Ie.isPlainObject(d)?Ie.merge({},d):Ie.isArray(d)?d.slice():d}function i(u,d,h){if(Ie.isUndefined(d)){if(!Ie.isUndefined(u))return s(void 0,u,h)}else return s(u,d,h)}function r(u,d){if(!Ie.isUndefined(d))return s(void 0,d)}function o(u,d){if(Ie.isUndefined(d)){if(!Ie.isUndefined(u))return s(void 0,u)}else return s(void 0,d)}function a(u,d,h){if(h in e)return s(u,d);if(h in n)return s(void 0,u)}const l={url:r,method:r,data:r,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:(u,d)=>i($y(u),$y(d),!0)};return Ie.forEach(Object.keys(Object.assign({},n,e)),function(d){const h=l[d]||i,f=h(n[d],e[d],d);Ie.isUndefined(f)&&h!==a||(t[d]=f)}),t}const $R="1.6.2",Ab={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Ab[n]=function(s){return typeof s===n||"a"+(e<1?"n ":" ")+n}});const Wy={};Ab.transitional=function(e,t,s){function i(r,o){return"[Axios v"+$R+"] Transitional option '"+r+"'"+o+(s?". "+s:"")}return(r,o,a)=>{if(e===!1)throw new Mt(i(o," has been removed"+(t?" in "+t:"")),Mt.ERR_DEPRECATED);return t&&!Wy[o]&&(Wy[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(r,o,a):!0}};function Qk(n,e,t){if(typeof n!="object")throw new Mt("options must be an object",Mt.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let i=s.length;for(;i-- >0;){const r=s[i],o=e[r];if(o){const a=n[r],l=a===void 0||o(a,r,n);if(l!==!0)throw new Mt("option "+r+" must be "+l,Mt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Mt("Unknown option "+r,Mt.ERR_BAD_OPTION)}}const hg={assertOptions:Qk,validators:Ab},Fi=hg.validators;class Od{constructor(e){this.defaults=e,this.interceptors={request:new Vy,response:new Vy}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Zo(this.defaults,t);const{transitional:s,paramsSerializer:i,headers:r}=t;s!==void 0&&hg.assertOptions(s,{silentJSONParsing:Fi.transitional(Fi.boolean),forcedJSONParsing:Fi.transitional(Fi.boolean),clarifyTimeoutError:Fi.transitional(Fi.boolean)},!1),i!=null&&(Ie.isFunction(i)?t.paramsSerializer={serialize:i}:hg.assertOptions(i,{encode:Fi.function,serialize:Fi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=r&&Ie.merge(r.common,r[t.method]);r&&Ie.forEach(["delete","get","head","post","put","patch","common"],m=>{delete r[m]}),t.headers=Ti.concat(o,r);const a=[];let l=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(t)===!1||(l=l&&E.synchronous,a.unshift(E.fulfilled,E.rejected))});const u=[];this.interceptors.response.forEach(function(E){u.push(E.fulfilled,E.rejected)});let d,h=0,f;if(!l){const m=[Yy.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,d=Promise.resolve(t);h<f;)d=d.then(m[h++],m[h++]);return d}f=a.length;let _=t;for(h=0;h<f;){const m=a[h++],E=a[h++];try{_=m(_)}catch(b){E.call(this,b);break}}try{d=Yy.call(this,_)}catch(m){return Promise.reject(m)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=Zo(this.defaults,e);const t=qR(e.baseURL,e.url);return BR(t,e.params,e.paramsSerializer)}}Ie.forEach(["delete","get","head","options"],function(e){Od.prototype[e]=function(t,s){return this.request(Zo(s||{},{method:e,url:t,data:(s||{}).data}))}});Ie.forEach(["post","put","patch"],function(e){function t(s){return function(r,o,a){return this.request(Zo(a||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Od.prototype[e]=t(),Od.prototype[e+"Form"]=t(!0)});const ud=Od;class Nb{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(r){t=r});const s=this;this.promise.then(i=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](i);s._listeners=null}),this.promise.then=i=>{let r;const o=new Promise(a=>{s.subscribe(a),r=a}).then(i);return o.cancel=function(){s.unsubscribe(r)},o},e(function(r,o,a){s.reason||(s.reason=new $l(r,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)}static source(){let e;return{token:new Nb(function(i){e=i}),cancel:e}}}const Xk=Nb;function Zk(n){return function(t){return n.apply(null,t)}}function Jk(n){return Ie.isObject(n)&&n.isAxiosError===!0}const fg={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(fg).forEach(([n,e])=>{fg[e]=n});const eL=fg;function WR(n){const e=new ud(n),t=RR(ud.prototype.request,e);return Ie.extend(t,ud.prototype,e,{allOwnKeys:!0}),Ie.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return WR(Zo(n,i))},t}const ln=WR(Rb);ln.Axios=ud;ln.CanceledError=$l;ln.CancelToken=Xk;ln.isCancel=HR;ln.VERSION=$R;ln.toFormData=Tu;ln.AxiosError=Mt;ln.Cancel=ln.CanceledError;ln.all=function(e){return Promise.all(e)};ln.spread=Zk;ln.isAxiosError=Jk;ln.mergeConfig=Zo;ln.AxiosHeaders=Ti;ln.formToJSON=n=>zR(Ie.isHTMLForm(n)?new FormData(n):n);ln.getAdapter=YR.getAdapter;ln.HttpStatusCode=eL;ln.default=ln;const de=ln;/*!
* vue-router v4.2.5
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const Io=typeof window<"u";function tL(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const Ft=Object.assign;function mp(n,e){const t={};for(const s in e){const i=e[s];t[s]=Ls(i)?i.map(n):n(i)}return t}const dl=()=>{},Ls=Array.isArray,nL=/\/$/,sL=n=>n.replace(nL,"");function gp(n,e,t="/"){let s,i={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(s=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),i=n(r)),a>-1&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=aL(s??e,t),{fullPath:s+(r&&"?")+r+o,path:s,query:i,hash:o}}function iL(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function Ky(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function rL(n,e,t){const s=e.matched.length-1,i=t.matched.length-1;return s>-1&&s===i&&Jo(e.matched[s],t.matched[i])&&KR(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function Jo(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function KR(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!oL(n[t],e[t]))return!1;return!0}function oL(n,e){return Ls(n)?jy(n,e):Ls(e)?jy(e,n):n===e}function jy(n,e){return Ls(e)?n.length===e.length&&n.every((t,s)=>t===e[s]):n.length===1&&n[0]===e}function aL(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),s=n.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let r=t.length-1,o,a;for(o=0;o<s.length;o++)if(a=s[o],a!==".")if(a==="..")r>1&&r--;else break;return t.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var Il;(function(n){n.pop="pop",n.push="push"})(Il||(Il={}));var ul;(function(n){n.back="back",n.forward="forward",n.unknown=""})(ul||(ul={}));function lL(n){if(!n)if(Io){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),sL(n)}const cL=/^[^#]+#/;function dL(n,e){return n.replace(cL,"#")+e}function uL(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 Cu=()=>({left:window.pageXOffset,top:window.pageYOffset});function pL(n){let e;if("el"in n){const t=n.el,s=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?s?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=uL(i,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Qy(n,e){return(history.state?history.state.position-e:-1)+n}const mg=new Map;function _L(n,e){mg.set(n,e)}function hL(n){const e=mg.get(n);return mg.delete(n),e}let fL=()=>location.protocol+"//"+location.host;function jR(n,e){const{pathname:t,search:s,hash:i}=e,r=n.indexOf("#");if(r>-1){let a=i.includes(n.slice(r))?n.slice(r).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),Ky(l,"")}return Ky(t,n)+s+i}function mL(n,e,t,s){let i=[],r=[],o=null;const a=({state:f})=>{const _=jR(n,location),m=t.value,E=e.value;let b=0;if(f){if(t.value=_,e.value=f,o&&o===m){o=null;return}b=E?f.position-E.position:0}else s(_);i.forEach(g=>{g(t.value,m,{delta:b,type:Il.pop,direction:b?b>0?ul.forward:ul.back:ul.unknown})})};function l(){o=t.value}function u(f){i.push(f);const _=()=>{const m=i.indexOf(f);m>-1&&i.splice(m,1)};return r.push(_),_}function d(){const{history:f}=window;f.state&&f.replaceState(Ft({},f.state,{scroll:Cu()}),"")}function h(){for(const f of r)f();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:u,destroy:h}}function Xy(n,e,t,s=!1,i=!1){return{back:n,current:e,forward:t,replaced:s,position:window.history.length,scroll:i?Cu():null}}function gL(n){const{history:e,location:t}=window,s={value:jR(n,t)},i={value:e.state};i.value||r(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,u,d){const h=n.indexOf("#"),f=h>-1?(t.host&&document.querySelector("base")?n:n.slice(h))+l:fL()+n+l;try{e[d?"replaceState":"pushState"](u,"",f),i.value=u}catch(_){console.error(_),t[d?"replace":"assign"](f)}}function o(l,u){const d=Ft({},e.state,Xy(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});r(l,d,!0),s.value=l}function a(l,u){const d=Ft({},i.value,e.state,{forward:l,scroll:Cu()});r(d.current,d,!0);const h=Ft({},Xy(s.value,l,null),{position:d.position+1},u);r(l,h,!1),s.value=l}return{location:s,state:i,push:a,replace:o}}function bL(n){n=lL(n);const e=gL(n),t=mL(n,e.state,e.location,e.replace);function s(r,o=!0){o||t.pauseListeners(),history.go(r)}const i=Ft({location:"",base:n,go:s,createHref:dL.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 EL(n){return typeof n=="string"||n&&typeof n=="object"}function QR(n){return typeof n=="string"||typeof n=="symbol"}const Bi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},XR=Symbol("");var Zy;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Zy||(Zy={}));function ea(n,e){return Ft(new Error,{type:n,[XR]:!0},e)}function ci(n,e){return n instanceof Error&&XR in n&&(e==null||!!(n.type&e))}const Jy="[^/]+?",yL={sensitive:!1,strict:!1,start:!0,end:!0},vL=/[.+*?^${}()[\]/\\]/g;function SL(n,e){const t=Ft({},yL,e),s=[];let i=t.start?"^":"";const r=[];for(const u of n){const d=u.length?[]:[90];t.strict&&!u.length&&(i+="/");for(let h=0;h<u.length;h++){const f=u[h];let _=40+(t.sensitive?.25:0);if(f.type===0)h||(i+="/"),i+=f.value.replace(vL,"\\$&"),_+=40;else if(f.type===1){const{value:m,repeatable:E,optional:b,regexp:g}=f;r.push({name:m,repeatable:E,optional:b});const y=g||Jy;if(y!==Jy){_+=10;try{new RegExp(`(${y})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${m}" (${y}): `+S.message)}}let v=E?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;h||(v=b&&u.length<2?`(?:/${v})`:"/"+v),b&&(v+="?"),i+=v,_+=20,b&&(_+=-8),E&&(_+=-20),y===".*"&&(_+=-50)}d.push(_)}s.push(d)}if(t.strict&&t.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}t.strict||(i+="/?"),t.end?i+="$":t.strict&&(i+="(?:/|$)");const o=new RegExp(i,t.sensitive?"":"i");function a(u){const d=u.match(o),h={};if(!d)return null;for(let f=1;f<d.length;f++){const _=d[f]||"",m=r[f-1];h[m.name]=_&&m.repeatable?_.split("/"):_}return h}function l(u){let d="",h=!1;for(const f of n){(!h||!d.endsWith("/"))&&(d+="/"),h=!1;for(const _ of f)if(_.type===0)d+=_.value;else if(_.type===1){const{value:m,repeatable:E,optional:b}=_,g=m in u?u[m]:"";if(Ls(g)&&!E)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const y=Ls(g)?g.join("/"):g;if(!y)if(b)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):h=!0);else throw new Error(`Missing required param "${m}"`);d+=y}}return d||"/"}return{re:o,score:s,keys:r,parse:a,stringify:l}}function TL(n,e){let t=0;for(;t<n.length&&t<e.length;){const s=e[t]-n[t];if(s)return s;t++}return n.length<e.length?n.length===1&&n[0]===40+40?-1:1:n.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function xL(n,e){let t=0;const s=n.score,i=e.score;for(;t<s.length&&t<i.length;){const r=TL(s[t],i[t]);if(r)return r;t++}if(Math.abs(i.length-s.length)===1){if(ev(s))return 1;if(ev(i))return-1}return i.length-s.length}function ev(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const CL={type:0,value:""},wL=/[a-zA-Z0-9_]/;function RL(n){if(!n)return[[]];if(n==="/")return[[CL]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(_){throw new Error(`ERR (${t})/"${u}": ${_}`)}let t=0,s=t;const i=[];let r;function o(){r&&i.push(r),r=[]}let a=0,l,u="",d="";function h(){u&&(t===0?r.push({type:0,value:u}):t===1||t===2||t===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a<n.length;){if(l=n[a++],l==="\\"&&t!==2){s=t,t=4;continue}switch(t){case 0:l==="/"?(u&&h(),o()):l===":"?(h(),t=1):f();break;case 4:f(),t=s;break;case 1:l==="("?t=2:wL.test(l)?f():(h(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:t=3:d+=l;break;case 3:h(),t=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,d="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${u}"`),h(),o(),i}function AL(n,e,t){const s=SL(RL(n.path),t),i=Ft(s,{record:n,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function NL(n,e){const t=[],s=new Map;e=sv({strict:!1,end:!0,sensitive:!1},e);function i(d){return s.get(d)}function r(d,h,f){const _=!f,m=OL(d);m.aliasOf=f&&f.record;const E=sv(e,d),b=[m];if("alias"in d){const v=typeof d.alias=="string"?[d.alias]:d.alias;for(const S of v)b.push(Ft({},m,{components:f?f.record.components:m.components,path:S,aliasOf:f?f.record:m}))}let g,y;for(const v of b){const{path:S}=v;if(h&&S[0]!=="/"){const w=h.record.path,x=w[w.length-1]==="/"?"":"/";v.path=h.record.path+(S&&x+S)}if(g=AL(v,h,E),f?f.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),_&&d.name&&!nv(g)&&o(d.name)),m.children){const w=m.children;for(let x=0;x<w.length;x++)r(w[x],g,f&&f.children[x])}f=f||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&l(g)}return y?()=>{o(y)}:dl}function o(d){if(QR(d)){const h=s.get(d);h&&(s.delete(d),t.splice(t.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=t.indexOf(d);h>-1&&(t.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return t}function l(d){let h=0;for(;h<t.length&&xL(d,t[h])>=0&&(d.record.path!==t[h].record.path||!ZR(d,t[h]));)h++;t.splice(h,0,d),d.record.name&&!nv(d)&&s.set(d.record.name,d)}function u(d,h){let f,_={},m,E;if("name"in d&&d.name){if(f=s.get(d.name),!f)throw ea(1,{location:d});E=f.record.name,_=Ft(tv(h.params,f.keys.filter(y=>!y.optional).map(y=>y.name)),d.params&&tv(d.params,f.keys.map(y=>y.name))),m=f.stringify(_)}else if("path"in d)m=d.path,f=t.find(y=>y.re.test(m)),f&&(_=f.parse(m),E=f.record.name);else{if(f=h.name?s.get(h.name):t.find(y=>y.re.test(h.path)),!f)throw ea(1,{location:d,currentLocation:h});E=f.record.name,_=Ft({},h.params,d.params),m=f.stringify(_)}const b=[];let g=f;for(;g;)b.unshift(g.record),g=g.parent;return{name:E,path:m,params:_,matched:b,meta:ML(b)}}return n.forEach(d=>r(d)),{addRoute:r,resolve:u,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function tv(n,e){const t={};for(const s of e)s in n&&(t[s]=n[s]);return t}function OL(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:IL(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}}}function IL(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 nv(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function ML(n){return n.reduce((e,t)=>Ft(e,t.meta),{})}function sv(n,e){const t={};for(const s in n)t[s]=s in e?e[s]:n[s];return t}function ZR(n,e){return e.children.some(t=>t===n||ZR(n,t))}const JR=/#/g,DL=/&/g,kL=/\//g,LL=/=/g,PL=/\?/g,eA=/\+/g,UL=/%5B/g,FL=/%5D/g,tA=/%5E/g,BL=/%60/g,nA=/%7B/g,GL=/%7C/g,sA=/%7D/g,VL=/%20/g;function Ob(n){return encodeURI(""+n).replace(GL,"|").replace(UL,"[").replace(FL,"]")}function zL(n){return Ob(n).replace(nA,"{").replace(sA,"}").replace(tA,"^")}function gg(n){return Ob(n).replace(eA,"%2B").replace(VL,"+").replace(JR,"%23").replace(DL,"%26").replace(BL,"`").replace(nA,"{").replace(sA,"}").replace(tA,"^")}function HL(n){return gg(n).replace(LL,"%3D")}function qL(n){return Ob(n).replace(JR,"%23").replace(PL,"%3F")}function YL(n){return n==null?"":qL(n).replace(kL,"%2F")}function Id(n){try{return decodeURIComponent(""+n)}catch{}return""+n}function $L(n){const e={};if(n===""||n==="?")return e;const s=(n[0]==="?"?n.slice(1):n).split("&");for(let i=0;i<s.length;++i){const r=s[i].replace(eA," "),o=r.indexOf("="),a=Id(o<0?r:r.slice(0,o)),l=o<0?null:Id(r.slice(o+1));if(a in e){let u=e[a];Ls(u)||(u=e[a]=[u]),u.push(l)}else e[a]=l}return e}function iv(n){let e="";for(let t in n){const s=n[t];if(t=HL(t),s==null){s!==void 0&&(e+=(e.length?"&":"")+t);continue}(Ls(s)?s.map(r=>r&&gg(r)):[s&&gg(s)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+t,r!=null&&(e+="="+r))})}return e}function WL(n){const e={};for(const t in n){const s=n[t];s!==void 0&&(e[t]=Ls(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return e}const KL=Symbol(""),rv=Symbol(""),Ib=Symbol(""),iA=Symbol(""),bg=Symbol("");function Ya(){let n=[];function e(s){return n.push(s),()=>{const i=n.indexOf(s);i>-1&&n.splice(i,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function Ki(n,e,t,s,i){const r=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const l=h=>{h===!1?a(ea(4,{from:t,to:e})):h instanceof Error?a(h):EL(h)?a(ea(2,{from:e,to:h})):(r&&s.enterCallbacks[i]===r&&typeof h=="function"&&r.push(h),o())},u=n.call(s&&s.instances[i],e,t,l);let d=Promise.resolve(u);n.length<3&&(d=d.then(l)),d.catch(h=>a(h))})}function bp(n,e,t,s){const i=[];for(const r of n)for(const o in r.components){let a=r.components[o];if(!(e!=="beforeRouteEnter"&&!r.instances[o]))if(jL(a)){const u=(a.__vccOpts||a)[e];u&&i.push(Ki(u,t,s,r,o))}else{let l=a();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${r.path}"`));const d=tL(u)?u.default:u;r.components[o]=d;const f=(d.__vccOpts||d)[e];return f&&Ki(f,t,s,r,o)()}))}}return i}function jL(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function ov(n){const e=Is(Ib),t=Is(iA),s=Je(()=>e.resolve(mt(n.to))),i=Je(()=>{const{matched:l}=s.value,{length:u}=l,d=l[u-1],h=t.matched;if(!d||!h.length)return-1;const f=h.findIndex(Jo.bind(null,d));if(f>-1)return f;const _=av(l[u-2]);return u>1&&av(d)===_&&h[h.length-1].path!==_?h.findIndex(Jo.bind(null,l[u-2])):f}),r=Je(()=>i.value>-1&&ZL(t.params,s.value.params)),o=Je(()=>i.value>-1&&i.value===t.matched.length-1&&KR(t.params,s.value.params));function a(l={}){return XL(l)?e[mt(n.replace)?"replace":"push"](mt(n.to)).catch(dl):Promise.resolve()}return{route:s,href:Je(()=>s.value.href),isActive:r,isExactActive:o,navigate:a}}const QL=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:ov,setup(n,{slots:e}){const t=Wn(ov(n)),{options:s}=Is(Ib),i=Je(()=>({[lv(n.activeClass,s.linkActiveClass,"router-link-active")]:t.isActive,[lv(n.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const r=e.default&&e.default(t);return n.custom?r:yb("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},r)}}}),Ei=QL;function XL(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 ZL(n,e){for(const t in e){const s=e[t],i=n[t];if(typeof s=="string"){if(s!==i)return!1}else if(!Ls(i)||i.length!==s.length||s.some((r,o)=>r!==i[o]))return!1}return!0}function av(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const lv=(n,e,t)=>n??e??t,JL=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(bg),i=Je(()=>n.route||s.value),r=Is(rv,0),o=Je(()=>{let u=mt(r);const{matched:d}=i.value;let h;for(;(h=d[u])&&!h.components;)u++;return u}),a=Je(()=>i.value.matched[o.value]);zo(rv,Je(()=>o.value+1)),zo(KL,a),zo(bg,i);const l=lt();return Fn(()=>[l.value,a.value,n.name],([u,d,h],[f,_,m])=>{d&&(d.instances[h]=u,_&&_!==d&&u&&u===f&&(d.leaveGuards.size||(d.leaveGuards=_.leaveGuards),d.updateGuards.size||(d.updateGuards=_.updateGuards))),u&&d&&(!_||!Jo(d,_)||!f)&&(d.enterCallbacks[h]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=i.value,d=n.name,h=a.value,f=h&&h.components[d];if(!f)return cv(t.default,{Component:f,route:u});const _=h.props[d],m=_?_===!0?u.params:typeof _=="function"?_(u):_:null,b=yb(f,Ft({},m,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(h.instances[d]=null)},ref:l}));return cv(t.default,{Component:b,route:u})||b}}});function cv(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const rA=JL;function eP(n){const e=NL(n.routes,n),t=n.parseQuery||$L,s=n.stringifyQuery||iv,i=n.history,r=Ya(),o=Ya(),a=Ya(),l=mM(Bi);let u=Bi;Io&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=mp.bind(null,j=>""+j),h=mp.bind(null,YL),f=mp.bind(null,Id);function _(j,pe){let ue,Ce;return QR(j)?(ue=e.getRecordMatcher(j),Ce=pe):Ce=j,e.addRoute(Ce,ue)}function m(j){const pe=e.getRecordMatcher(j);pe&&e.removeRoute(pe)}function E(){return e.getRoutes().map(j=>j.record)}function b(j){return!!e.getRecordMatcher(j)}function g(j,pe){if(pe=Ft({},pe||l.value),typeof j=="string"){const Y=gp(t,j,pe.path),oe=e.resolve({path:Y.path},pe),ne=i.createHref(Y.fullPath);return Ft(Y,oe,{params:f(oe.params),hash:Id(Y.hash),redirectedFrom:void 0,href:ne})}let ue;if("path"in j)ue=Ft({},j,{path:gp(t,j.path,pe.path).path});else{const Y=Ft({},j.params);for(const oe in Y)Y[oe]==null&&delete Y[oe];ue=Ft({},j,{params:h(Y)}),pe.params=h(pe.params)}const Ce=e.resolve(ue,pe),ke=j.hash||"";Ce.params=d(f(Ce.params));const N=iL(s,Ft({},j,{hash:zL(ke),path:Ce.path})),V=i.createHref(N);return Ft({fullPath:N,hash:ke,query:s===iv?WL(j.query):j.query||{}},Ce,{redirectedFrom:void 0,href:V})}function y(j){return typeof j=="string"?gp(t,j,l.value.path):Ft({},j)}function v(j,pe){if(u!==j)return ea(8,{from:pe,to:j})}function S(j){return A(j)}function w(j){return S(Ft(y(j),{replace:!0}))}function x(j){const pe=j.matched[j.matched.length-1];if(pe&&pe.redirect){const{redirect:ue}=pe;let Ce=typeof ue=="function"?ue(j):ue;return typeof Ce=="string"&&(Ce=Ce.includes("?")||Ce.includes("#")?Ce=y(Ce):{path:Ce},Ce.params={}),Ft({query:j.query,hash:j.hash,params:"path"in Ce?{}:j.params},Ce)}}function A(j,pe){const ue=u=g(j),Ce=l.value,ke=j.state,N=j.force,V=j.replace===!0,Y=x(ue);if(Y)return A(Ft(y(Y),{state:typeof Y=="object"?Ft({},ke,Y.state):ke,force:N,replace:V}),pe||ue);const oe=ue;oe.redirectedFrom=pe;let ne;return!N&&rL(s,Ce,ue)&&(ne=ea(16,{to:oe,from:Ce}),me(Ce,Ce,!0,!1)),(ne?Promise.resolve(ne):O(oe,Ce)).catch(Te=>ci(Te)?ci(Te,2)?Te:re(Te):$(Te,oe,Ce)).then(Te=>{if(Te){if(ci(Te,2))return A(Ft({replace:V},y(Te.to),{state:typeof Te.to=="object"?Ft({},ke,Te.to.state):ke,force:N}),pe||oe)}else Te=z(oe,Ce,!0,V,ke);return F(oe,Ce,Te),Te})}function D(j,pe){const ue=v(j,pe);return ue?Promise.reject(ue):Promise.resolve()}function T(j){const pe=Ee.values().next().value;return pe&&typeof pe.runWithContext=="function"?pe.runWithContext(j):j()}function O(j,pe){let ue;const[Ce,ke,N]=tP(j,pe);ue=bp(Ce.reverse(),"beforeRouteLeave",j,pe);for(const Y of Ce)Y.leaveGuards.forEach(oe=>{ue.push(Ki(oe,j,pe))});const V=D.bind(null,j,pe);return ue.push(V),Me(ue).then(()=>{ue=[];for(const Y of r.list())ue.push(Ki(Y,j,pe));return ue.push(V),Me(ue)}).then(()=>{ue=bp(ke,"beforeRouteUpdate",j,pe);for(const Y of ke)Y.updateGuards.forEach(oe=>{ue.push(Ki(oe,j,pe))});return ue.push(V),Me(ue)}).then(()=>{ue=[];for(const Y of N)if(Y.beforeEnter)if(Ls(Y.beforeEnter))for(const oe of Y.beforeEnter)ue.push(Ki(oe,j,pe));else ue.push(Ki(Y.beforeEnter,j,pe));return ue.push(V),Me(ue)}).then(()=>(j.matched.forEach(Y=>Y.enterCallbacks={}),ue=bp(N,"beforeRouteEnter",j,pe),ue.push(V),Me(ue))).then(()=>{ue=[];for(const Y of o.list())ue.push(Ki(Y,j,pe));return ue.push(V),Me(ue)}).catch(Y=>ci(Y,8)?Y:Promise.reject(Y))}function F(j,pe,ue){a.list().forEach(Ce=>T(()=>Ce(j,pe,ue)))}function z(j,pe,ue,Ce,ke){const N=v(j,pe);if(N)return N;const V=pe===Bi,Y=Io?history.state:{};ue&&(Ce||V?i.replace(j.fullPath,Ft({scroll:V&&Y&&Y.scroll},ke)):i.push(j.fullPath,ke)),l.value=j,me(j,pe,ue,V),re()}let Z;function M(){Z||(Z=i.listen((j,pe,ue)=>{if(!Oe.listening)return;const Ce=g(j),ke=x(Ce);if(ke){A(Ft(ke,{replace:!0}),Ce).catch(dl);return}u=Ce;const N=l.value;Io&&_L(Qy(N.fullPath,ue.delta),Cu()),O(Ce,N).catch(V=>ci(V,12)?V:ci(V,2)?(A(V.to,Ce).then(Y=>{ci(Y,20)&&!ue.delta&&ue.type===Il.pop&&i.go(-1,!1)}).catch(dl),Promise.reject()):(ue.delta&&i.go(-ue.delta,!1),$(V,Ce,N))).then(V=>{V=V||z(Ce,N,!1),V&&(ue.delta&&!ci(V,8)?i.go(-ue.delta,!1):ue.type===Il.pop&&ci(V,20)&&i.go(-1,!1)),F(Ce,N,V)}).catch(dl)}))}let q=Ya(),H=Ya(),P;function $(j,pe,ue){re(j);const Ce=H.list();return Ce.length?Ce.forEach(ke=>ke(j,pe,ue)):console.error(j),Promise.reject(j)}function J(){return P&&l.value!==Bi?Promise.resolve():new Promise((j,pe)=>{q.add([j,pe])})}function re(j){return P||(P=!j,M(),q.list().forEach(([pe,ue])=>j?ue(j):pe()),q.reset()),j}function me(j,pe,ue,Ce){const{scrollBehavior:ke}=n;if(!Io||!ke)return Promise.resolve();const N=!ue&&hL(Qy(j.fullPath,0))||(Ce||!ue)&&history.state&&history.state.scroll||null;return Ue().then(()=>ke(j,pe,N)).then(V=>V&&pL(V)).catch(V=>$(V,j,pe))}const Se=j=>i.go(j);let le;const Ee=new Set,Oe={currentRoute:l,listening:!0,addRoute:_,removeRoute:m,hasRoute:b,getRoutes:E,resolve:g,options:n,push:S,replace:w,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:H.add,isReady:J,install(j){const pe=this;j.component("RouterLink",Ei),j.component("RouterView",rA),j.config.globalProperties.$router=pe,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>mt(l)}),Io&&!le&&l.value===Bi&&(le=!0,S(i.location).catch(ke=>{}));const ue={};for(const ke in Bi)Object.defineProperty(ue,ke,{get:()=>l.value[ke],enumerable:!0});j.provide(Ib,pe),j.provide(iA,Aw(ue)),j.provide(bg,l);const Ce=j.unmount;Ee.add(j),j.unmount=function(){Ee.delete(j),Ee.size<1&&(u=Bi,Z&&Z(),Z=null,l.value=Bi,le=!1,P=!1),Ce()}}};function Me(j){return j.reduce((pe,ue)=>pe.then(()=>T(ue)),Promise.resolve())}return Oe}function tP(n,e){const t=[],s=[],i=[],r=Math.max(e.matched.length,n.matched.length);for(let o=0;o<r;o++){const a=e.matched[o];a&&(n.matched.find(u=>Jo(u,a))?s.push(a):t.push(a));const l=n.matched[o];l&&(e.matched.find(u=>Jo(u,l))||i.push(l))}return[t,s,i]}const nP="modulepreload",sP=function(n){return"/"+n},dv={},Ep=function(e,t,s){if(!t||t.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(t.map(r=>{if(r=sP(r),r in dv)return;dv[r]=!0;const o=r.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!s)for(let d=i.length-1;d>=0;d--){const h=i[d];if(h.href===r&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":nP,o||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),o)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})};var oA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function iP(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 i=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:function(){return n[s]}})}),t}var aA={exports:{}};(function(n,e){(function(s,i){n.exports=i()})(typeof self<"u"?self:oA,function(){return function(t){var s={};function i(r){if(s[r])return s[r].exports;var o=s[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=s,i.d=function(r,o,a){i.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:a})},i.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},i.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(o,"a",o),o},i.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},i.p="",i(i.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',table:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zM11 11V7M16 11V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},"./node_modules/classnames/dedupe.js":function(t,s,i){var r,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 u(g,y){for(var v=y.length,S=0;S<v;++S)E(g,y[S])}var d={}.hasOwnProperty;function h(g,y){g[y]=!0}function f(g,y){for(var v in y)d.call(y,v)&&(g[v]=!!y[v])}var _=/\s+/;function m(g,y){for(var v=y.split(_),S=v.length,w=0;w<S;++w)g[v[w]]=!0}function E(g,y){if(y){var v=typeof y;v==="string"?m(g,y):Array.isArray(y)?u(g,y):v==="object"?f(g,y):v==="number"&&h(g,y)}}function b(){for(var g=arguments.length,y=Array(g),v=0;v<g;v++)y[v]=arguments[v];var S=new l;u(S,y);var w=[];for(var x in S)S[x]&&w.push(x);return w.join(" ")}return b}();typeof t<"u"&&t.exports?t.exports=a:(r=[],o=(function(){return a}).apply(s,r),o!==void 0&&(t.exports=o))})()},"./node_modules/core-js/es/array/from.js":function(t,s,i){i("./node_modules/core-js/modules/es.string.iterator.js"),i("./node_modules/core-js/modules/es.array.from.js");var r=i("./node_modules/core-js/internals/path.js");t.exports=r.Array.from},"./node_modules/core-js/internals/a-function.js":function(t,s){t.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"./node_modules/core-js/internals/an-object.js":function(t,s,i){var r=i("./node_modules/core-js/internals/is-object.js");t.exports=function(o){if(!r(o))throw TypeError(String(o)+" is not an object");return o}},"./node_modules/core-js/internals/array-from.js":function(t,s,i){var r=i("./node_modules/core-js/internals/bind-context.js"),o=i("./node_modules/core-js/internals/to-object.js"),a=i("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),l=i("./node_modules/core-js/internals/is-array-iterator-method.js"),u=i("./node_modules/core-js/internals/to-length.js"),d=i("./node_modules/core-js/internals/create-property.js"),h=i("./node_modules/core-js/internals/get-iterator-method.js");t.exports=function(_){var m=o(_),E=typeof this=="function"?this:Array,b=arguments.length,g=b>1?arguments[1]:void 0,y=g!==void 0,v=0,S=h(m),w,x,A,D;if(y&&(g=r(g,b>2?arguments[2]:void 0,2)),S!=null&&!(E==Array&&l(S)))for(D=S.call(m),x=new E;!(A=D.next()).done;v++)d(x,v,y?a(D,g,[A.value,v],!0):A.value);else for(w=u(m.length),x=new E(w);w>v;v++)d(x,v,y?g(m[v],v):m[v]);return x.length=v,x}},"./node_modules/core-js/internals/array-includes.js":function(t,s,i){var r=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(u,d,h){var f=r(u),_=o(f.length),m=a(h,_),E;if(l&&d!=d){for(;_>m;)if(E=f[m++],E!=E)return!0}else for(;_>m;m++)if((l||m in f)&&f[m]===d)return l||m||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(t,s,i){var r=i("./node_modules/core-js/internals/a-function.js");t.exports=function(o,a,l){if(r(o),a===void 0)return o;switch(l){case 0:return function(){return o.call(a)};case 1:return function(u){return o.call(a,u)};case 2:return function(u,d){return o.call(a,u,d)};case 3:return function(u,d,h){return o.call(a,u,d,h)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(t,s,i){var r=i("./node_modules/core-js/internals/an-object.js");t.exports=function(o,a,l,u){try{return u?a(r(l)[0],l[1]):a(l)}catch(h){var d=o.return;throw d!==void 0&&r(d.call(o)),h}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(t,s,i){var r=i("./node_modules/core-js/internals/well-known-symbol.js"),o=r("iterator"),a=!1;try{var l=0,u={next:function(){return{done:!!l++}},return:function(){a=!0}};u[o]=function(){return this},Array.from(u,function(){throw 2})}catch{}t.exports=function(d,h){if(!h&&!a)return!1;var f=!1;try{var _={};_[o]=function(){return{next:function(){return{done:f=!0}}}},d(_)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(t,s){var i={}.toString;t.exports=function(r){return i.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,s,i){var r=i("./node_modules/core-js/internals/classof-raw.js"),o=i("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),l=r(function(){return arguments}())=="Arguments",u=function(d,h){try{return d[h]}catch{}};t.exports=function(d){var h,f,_;return d===void 0?"Undefined":d===null?"Null":typeof(f=u(h=Object(d),a))=="string"?f:l?r(h):(_=r(h))=="Object"&&typeof h.callee=="function"?"Arguments":_}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,s,i){var r=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(u,d){for(var h=o(d),f=l.f,_=a.f,m=0;m<h.length;m++){var E=h[m];r(u,E)||f(u,E,_(d,E))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(t,s,i){var r=i("./node_modules/core-js/internals/fails.js");t.exports=!r(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,i){var r=i("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=i("./node_modules/core-js/internals/object-create.js"),a=i("./node_modules/core-js/internals/create-property-descriptor.js"),l=i("./node_modules/core-js/internals/set-to-string-tag.js"),u=i("./node_modules/core-js/internals/iterators.js"),d=function(){return this};t.exports=function(h,f,_){var m=f+" Iterator";return h.prototype=o(r,{next:a(1,_)}),l(h,m,!1,!0),u[m]=d,h}},"./node_modules/core-js/internals/create-property-descriptor.js":function(t,s){t.exports=function(i,r){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:r}}},"./node_modules/core-js/internals/create-property.js":function(t,s,i){var r=i("./node_modules/core-js/internals/to-primitive.js"),o=i("./node_modules/core-js/internals/object-define-property.js"),a=i("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=function(l,u,d){var h=r(u);h in l?o.f(l,h,a(0,d)):l[h]=d}},"./node_modules/core-js/internals/define-iterator.js":function(t,s,i){var r=i("./node_modules/core-js/internals/export.js"),o=i("./node_modules/core-js/internals/create-iterator-constructor.js"),a=i("./node_modules/core-js/internals/object-get-prototype-of.js"),l=i("./node_modules/core-js/internals/object-set-prototype-of.js"),u=i("./node_modules/core-js/internals/set-to-string-tag.js"),d=i("./node_modules/core-js/internals/hide.js"),h=i("./node_modules/core-js/internals/redefine.js"),f=i("./node_modules/core-js/internals/well-known-symbol.js"),_=i("./node_modules/core-js/internals/is-pure.js"),m=i("./node_modules/core-js/internals/iterators.js"),E=i("./node_modules/core-js/internals/iterators-core.js"),b=E.IteratorPrototype,g=E.BUGGY_SAFARI_ITERATORS,y=f("iterator"),v="keys",S="values",w="entries",x=function(){return this};t.exports=function(A,D,T,O,F,z,Z){o(T,D,O);var M=function(Ee){if(Ee===F&&J)return J;if(!g&&Ee in P)return P[Ee];switch(Ee){case v:return function(){return new T(this,Ee)};case S:return function(){return new T(this,Ee)};case w:return function(){return new T(this,Ee)}}return function(){return new T(this)}},q=D+" Iterator",H=!1,P=A.prototype,$=P[y]||P["@@iterator"]||F&&P[F],J=!g&&$||M(F),re=D=="Array"&&P.entries||$,me,Se,le;if(re&&(me=a(re.call(new A)),b!==Object.prototype&&me.next&&(!_&&a(me)!==b&&(l?l(me,b):typeof me[y]!="function"&&d(me,y,x)),u(me,q,!0,!0),_&&(m[q]=x))),F==S&&$&&$.name!==S&&(H=!0,J=function(){return $.call(this)}),(!_||Z)&&P[y]!==J&&d(P,y,J),m[D]=J,F)if(Se={values:M(S),keys:z?J:M(v),entries:M(w)},Z)for(le in Se)(g||H||!(le in P))&&h(P,le,Se[le]);else r({target:D,proto:!0,forced:g||H},Se);return Se}},"./node_modules/core-js/internals/descriptors.js":function(t,s,i){var r=i("./node_modules/core-js/internals/fails.js");t.exports=!r(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/document-create-element.js":function(t,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/is-object.js"),a=r.document,l=o(a)&&o(a.createElement);t.exports=function(u){return l?a.createElement(u):{}}},"./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,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=i("./node_modules/core-js/internals/hide.js"),l=i("./node_modules/core-js/internals/redefine.js"),u=i("./node_modules/core-js/internals/set-global.js"),d=i("./node_modules/core-js/internals/copy-constructor-properties.js"),h=i("./node_modules/core-js/internals/is-forced.js");t.exports=function(f,_){var m=f.target,E=f.global,b=f.stat,g,y,v,S,w,x;if(E?y=r:b?y=r[m]||u(m,{}):y=(r[m]||{}).prototype,y)for(v in _){if(w=_[v],f.noTargetGet?(x=o(y,v),S=x&&x.value):S=y[v],g=h(E?v:m+(b?".":"#")+v,f.forced),!g&&S!==void 0){if(typeof w==typeof S)continue;d(w,S)}(f.sham||S&&S.sham)&&a(w,"sham",!0),l(y,v,w,f)}}},"./node_modules/core-js/internals/fails.js":function(t,s){t.exports=function(i){try{return!!i()}catch{return!0}}},"./node_modules/core-js/internals/function-to-string.js":function(t,s,i){var r=i("./node_modules/core-js/internals/shared.js");t.exports=r("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":function(t,s,i){var r=i("./node_modules/core-js/internals/classof.js"),o=i("./node_modules/core-js/internals/iterators.js"),a=i("./node_modules/core-js/internals/well-known-symbol.js"),l=a("iterator");t.exports=function(u){if(u!=null)return u[l]||u["@@iterator"]||o[r(u)]}},"./node_modules/core-js/internals/global.js":function(t,s,i){(function(r){var o="object",a=function(l){return l&&l.Math==Math&&l};t.exports=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof r==o&&r)||Function("return this")()}).call(this,i("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":function(t,s){var i={}.hasOwnProperty;t.exports=function(r,o){return i.call(r,o)}},"./node_modules/core-js/internals/hidden-keys.js":function(t,s){t.exports={}},"./node_modules/core-js/internals/hide.js":function(t,s,i){var r=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/create-property-descriptor.js");t.exports=r?function(l,u,d){return o.f(l,u,a(1,d))}:function(l,u,d){return l[u]=d,l}},"./node_modules/core-js/internals/html.js":function(t,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=r.document;t.exports=o&&o.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":function(t,s,i){var r=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/fails.js"),a=i("./node_modules/core-js/internals/document-create-element.js");t.exports=!r&&!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,i){var r=i("./node_modules/core-js/internals/fails.js"),o=i("./node_modules/core-js/internals/classof-raw.js"),a="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(l){return o(l)=="String"?a.call(l,""):Object(l)}:Object},"./node_modules/core-js/internals/internal-state.js":function(t,s,i){var r=i("./node_modules/core-js/internals/native-weak-map.js"),o=i("./node_modules/core-js/internals/global.js"),a=i("./node_modules/core-js/internals/is-object.js"),l=i("./node_modules/core-js/internals/hide.js"),u=i("./node_modules/core-js/internals/has.js"),d=i("./node_modules/core-js/internals/shared-key.js"),h=i("./node_modules/core-js/internals/hidden-keys.js"),f=o.WeakMap,_,m,E,b=function(A){return E(A)?m(A):_(A,{})},g=function(A){return function(D){var T;if(!a(D)||(T=m(D)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return T}};if(r){var y=new f,v=y.get,S=y.has,w=y.set;_=function(A,D){return w.call(y,A,D),D},m=function(A){return v.call(y,A)||{}},E=function(A){return S.call(y,A)}}else{var x=d("state");h[x]=!0,_=function(A,D){return l(A,x,D),D},m=function(A){return u(A,x)?A[x]:{}},E=function(A){return u(A,x)}}t.exports={set:_,get:m,has:E,enforce:b,getterFor:g}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(t,s,i){var r=i("./node_modules/core-js/internals/well-known-symbol.js"),o=i("./node_modules/core-js/internals/iterators.js"),a=r("iterator"),l=Array.prototype;t.exports=function(u){return u!==void 0&&(o.Array===u||l[a]===u)}},"./node_modules/core-js/internals/is-forced.js":function(t,s,i){var r=i("./node_modules/core-js/internals/fails.js"),o=/#|\.prototype\./,a=function(f,_){var m=u[l(f)];return m==h?!0:m==d?!1:typeof _=="function"?r(_):!!_},l=a.normalize=function(f){return String(f).replace(o,".").toLowerCase()},u=a.data={},d=a.NATIVE="N",h=a.POLYFILL="P";t.exports=a},"./node_modules/core-js/internals/is-object.js":function(t,s){t.exports=function(i){return typeof i=="object"?i!==null:typeof i=="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,i){var r=i("./node_modules/core-js/internals/object-get-prototype-of.js"),o=i("./node_modules/core-js/internals/hide.js"),a=i("./node_modules/core-js/internals/has.js"),l=i("./node_modules/core-js/internals/well-known-symbol.js"),u=i("./node_modules/core-js/internals/is-pure.js"),d=l("iterator"),h=!1,f=function(){return this},_,m,E;[].keys&&(E=[].keys(),"next"in E?(m=r(r(E)),m!==Object.prototype&&(_=m)):h=!0),_==null&&(_={}),!u&&!a(_,d)&&o(_,d,f),t.exports={IteratorPrototype:_,BUGGY_SAFARI_ITERATORS:h}},"./node_modules/core-js/internals/iterators.js":function(t,s){t.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(t,s,i){var r=i("./node_modules/core-js/internals/fails.js");t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"./node_modules/core-js/internals/native-weak-map.js":function(t,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/function-to-string.js"),a=r.WeakMap;t.exports=typeof a=="function"&&/native code/.test(o.call(a))},"./node_modules/core-js/internals/object-create.js":function(t,s,i){var r=i("./node_modules/core-js/internals/an-object.js"),o=i("./node_modules/core-js/internals/object-define-properties.js"),a=i("./node_modules/core-js/internals/enum-bug-keys.js"),l=i("./node_modules/core-js/internals/hidden-keys.js"),u=i("./node_modules/core-js/internals/html.js"),d=i("./node_modules/core-js/internals/document-create-element.js"),h=i("./node_modules/core-js/internals/shared-key.js"),f=h("IE_PROTO"),_="prototype",m=function(){},E=function(){var b=d("iframe"),g=a.length,y="<",v="script",S=">",w="java"+v+":",x;for(b.style.display="none",u.appendChild(b),b.src=String(w),x=b.contentWindow.document,x.open(),x.write(y+v+S+"document.F=Object"+y+"/"+v+S),x.close(),E=x.F;g--;)delete E[_][a[g]];return E()};t.exports=Object.create||function(g,y){var v;return g!==null?(m[_]=r(g),v=new m,m[_]=null,v[f]=g):v=E(),y===void 0?v:o(v,y)},l[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(t,s,i){var r=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=r?Object.defineProperties:function(d,h){a(d);for(var f=l(h),_=f.length,m=0,E;_>m;)o.f(d,E=f[m++],h[E]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(t,s,i){var r=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"),u=Object.defineProperty;s.f=r?u:function(h,f,_){if(a(h),f=l(f,!0),a(_),o)try{return u(h,f,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(h[f]=_.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,s,i){var r=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"),u=i("./node_modules/core-js/internals/to-primitive.js"),d=i("./node_modules/core-js/internals/has.js"),h=i("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;s.f=r?f:function(m,E){if(m=l(m),E=u(E,!0),h)try{return f(m,E)}catch{}if(d(m,E))return a(!o.f.call(m,E),m[E])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,s,i){var r=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");s.f=Object.getOwnPropertyNames||function(u){return r(u,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,i){var r=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"),u=a("IE_PROTO"),d=Object.prototype;t.exports=l?Object.getPrototypeOf:function(h){return h=o(h),r(h,u)?h[u]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,s,i){var r=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"),u=a(!1);t.exports=function(d,h){var f=o(d),_=0,m=[],E;for(E in f)!r(l,E)&&r(f,E)&&m.push(E);for(;h.length>_;)r(f,E=h[_++])&&(~u(m,E)||m.push(E));return m}},"./node_modules/core-js/internals/object-keys.js":function(t,s,i){var r=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 r(l,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,s,i){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);s.f=a?function(u){var d=o(this,u);return!!d&&d.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,s,i){var r=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(d,h){return r(d,h),o?l.call(d,h):d.__proto__=h,d}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(t,s,i){var r=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"),u=r.Reflect;t.exports=u&&u.ownKeys||function(h){var f=o.f(l(h)),_=a.f;return _?f.concat(_(h)):f}},"./node_modules/core-js/internals/path.js":function(t,s,i){t.exports=i("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(t,s,i){var r=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"),u=i("./node_modules/core-js/internals/set-global.js"),d=i("./node_modules/core-js/internals/function-to-string.js"),h=i("./node_modules/core-js/internals/internal-state.js"),f=h.get,_=h.enforce,m=String(d).split("toString");o("inspectSource",function(E){return d.call(E)}),(t.exports=function(E,b,g,y){var v=y?!!y.unsafe:!1,S=y?!!y.enumerable:!1,w=y?!!y.noTargetGet:!1;if(typeof g=="function"&&(typeof b=="string"&&!l(g,"name")&&a(g,"name",b),_(g).source=m.join(typeof b=="string"?b:"")),E===r){S?E[b]=g:u(b,g);return}else v?!w&&E[b]&&(S=!0):delete E[b];S?E[b]=g:a(E,b,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(t,s){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,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/hide.js");t.exports=function(a,l){try{o(r,a,l)}catch{r[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,s,i){var r=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(u,d,h){u&&!o(u=h?u:u.prototype,l)&&r(u,l,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(t,s,i){var r=i("./node_modules/core-js/internals/shared.js"),o=i("./node_modules/core-js/internals/uid.js"),a=r("keys");t.exports=function(l){return a[l]||(a[l]=o(l))}},"./node_modules/core-js/internals/shared.js":function(t,s,i){var r=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__",u=r[l]||o(l,{});(t.exports=function(d,h){return u[d]||(u[d]=h!==void 0?h:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(t,s,i){var r=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,u){var d=String(o(a)),h=r(l),f=d.length,_,m;return h<0||h>=f?u?"":void 0:(_=d.charCodeAt(h),_<55296||_>56319||h+1===f||(m=d.charCodeAt(h+1))<56320||m>57343?u?d.charAt(h):_:u?d.slice(h,h+2):(_-55296<<10)+(m-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,s,i){var r=i("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;t.exports=function(l,u){var d=r(l);return d<0?o(d+u,0):a(d,u)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,s,i){var r=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 r(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(t,s){var i=Math.ceil,r=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?r:i)(o)}},"./node_modules/core-js/internals/to-length.js":function(t,s,i){var r=i("./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(a){return a>0?o(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,s,i){var r=i("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(o){return Object(r(o))}},"./node_modules/core-js/internals/to-primitive.js":function(t,s,i){var r=i("./node_modules/core-js/internals/is-object.js");t.exports=function(o,a){if(!r(o))return o;var l,u;if(a&&typeof(l=o.toString)=="function"&&!r(u=l.call(o))||typeof(l=o.valueOf)=="function"&&!r(u=l.call(o))||!a&&typeof(l=o.toString)=="function"&&!r(u=l.call(o)))return u;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(t,s){var i=0,r=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++i+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(t,s,i){var r=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),!r(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(t,s,i){var r=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"),u=r.Symbol,d=o("wks");t.exports=function(h){return d[h]||(d[h]=l&&u[h]||(l?u:a)("Symbol."+h))}},"./node_modules/core-js/modules/es.array.from.js":function(t,s,i){var r=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(u){Array.from(u)});r({target:"Array",stat:!0,forced:l},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,s,i){var r=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",u=o.set,d=o.getterFor(l);a(String,"String",function(h){u(this,{type:l,string:String(h),index:0})},function(){var f=d(this),_=f.string,m=f.index,E;return m>=_.length?{value:void 0,done:!0}:(E=r(_,m,!0),f.index+=E.length,{value:E,done:!1})})},"./node_modules/webpack/buildin/global.js":function(t,s){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,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(E){for(var b=1;b<arguments.length;b++){var g=arguments[b];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(E[y]=g[y])}return E},o=function(){function E(b,g){for(var y=0;y<g.length;y++){var v=g[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(b,v.key,v)}}return function(b,g,y){return g&&E(b.prototype,g),y&&E(b,y),b}}(),a=i("./node_modules/classnames/dedupe.js"),l=h(a),u=i("./src/default-attrs.json"),d=h(u);function h(E){return E&&E.__esModule?E:{default:E}}function f(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}var _=function(){function E(b,g){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];f(this,E),this.name=b,this.contents=g,this.tags=y,this.attrs=r({},d.default,{class:"feather feather-"+b})}return o(E,[{key:"toSvg",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=r({},this.attrs,g,{class:(0,l.default)(this.attrs.class,g.class)});return"<svg "+m(y)+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]),E}();function m(E){return Object.keys(E).map(function(b){return b+'="'+E[b]+'"'}).join(" ")}s.default=_},"./src/icons.js":function(t,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=i("./src/icon.js"),o=h(r),a=i("./dist/icons.json"),l=h(a),u=i("./src/tags.json"),d=h(u);function h(f){return f&&f.__esModule?f:{default:f}}s.default=Object.keys(l.default).map(function(f){return new o.default(f,l.default[f],d.default[f])}).reduce(function(f,_){return f[_.name]=_,f},{})},"./src/index.js":function(t,s,i){var r=i("./src/icons.js"),o=h(r),a=i("./src/to-svg.js"),l=h(a),u=i("./src/replace.js"),d=h(u);function h(f){return f&&f.__esModule?f:{default:f}}t.exports={icons:o.default,toSvg:l.default,replace:d.default}},"./src/replace.js":function(t,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(m){for(var E=1;E<arguments.length;E++){var b=arguments[E];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(m[g]=b[g])}return m},o=i("./node_modules/classnames/dedupe.js"),a=d(o),l=i("./src/icons.js"),u=d(l);function d(m){return m&&m.__esModule?m:{default:m}}function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var E=document.querySelectorAll("[data-feather]");Array.from(E).forEach(function(b){return f(b,m)})}function f(m){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=_(m),g=b["data-feather"];delete b["data-feather"];var y=u.default[g].toSvg(r({},E,b,{class:(0,a.default)(E.class,b.class)})),v=new DOMParser().parseFromString(y,"image/svg+xml"),S=v.querySelector("svg");m.parentNode.replaceChild(S,m)}function _(m){return Array.from(m.attributes).reduce(function(E,b){return E[b.name]=b.value,E},{})}s.default=h},"./src/tags.json":function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(t,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=i("./src/icons.js"),o=a(r);function a(u){return u&&u.__esModule?u:{default:u}}function l(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!u)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[u])throw new Error("No icon matching '"+u+"'. See the complete list of icons at https://feathericons.com");return o.default[u].toSvg(d)}s.default=l},0:function(t,s,i){i("./node_modules/core-js/es/array/from.js"),t.exports=i("./src/index.js")}})})})(aA);var rP=aA.exports;const Ge=_r(rP);const pt=(n,e)=>{const t=n.__vccOpts||n;for(const[s,i]of e)t[s]=i;return t},oP={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),Ue(()=>{Ge.replace()})},showToast(n,e=3,t=!0){const s=parseInt((new Date().getTime()*Math.random()).toString()).toString(),i={id:s,log_type:t,message:n,show:!0};this.toastArr.push(i),Ue(()=>{Ge.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=s)},e*1e3)}},watch:{}},Es=n=>(no("data-v-46f379e5"),n=n(),so(),n),aP={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},lP={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"},cP={class:"flex flex-row flex-grow items-center h-auto"},dP={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"},uP=Es(()=>c("i",{"data-feather":"x"},null,-1)),pP=Es(()=>c("span",{class:"sr-only"},"Cross icon",-1)),_P=[uP,pP],hP={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"},fP=Es(()=>c("i",{"data-feather":"check"},null,-1)),mP=Es(()=>c("span",{class:"sr-only"},"Check icon",-1)),gP=[fP,mP],bP={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"},EP=Es(()=>c("i",{"data-feather":"info"},null,-1)),yP=Es(()=>c("span",{class:"sr-only"},null,-1)),vP=[EP,yP],SP={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"},TP=Es(()=>c("i",{"data-feather":"alert-triangle"},null,-1)),xP=Es(()=>c("span",{class:"sr-only"},null,-1)),CP=[TP,xP],wP=["title"],RP={class:"flex"},AP=["onClick"],NP=Es(()=>c("span",{class:"sr-only"},"Copy message",-1)),OP=Es(()=>c("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),IP=[NP,OP],MP=["onClick"],DP=Es(()=>c("span",{class:"sr-only"},"Close",-1)),kP=Es(()=>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)),LP=[DP,kP];function PP(n,e,t,s,i,r){return C(),R("div",aP,[_e(Qs,{name:"toastItem",tag:"div"},{default:qe(()=>[(C(!0),R(ze,null,st(i.toastArr,o=>(C(),R("div",{key:o.id,class:"relative"},[c("div",lP,[c("div",cP,[o.log_type==0?(C(),R("div",dP,_P)):G("",!0),o.log_type==1?(C(),R("div",hP,gP)):G("",!0),o.log_type==2?(C(),R("div",bP,vP)):G("",!0),o.log_type==3?(C(),R("div",SP,CP)):G("",!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},se(o.message),9,wP)]),c("div",RP,[c("button",{type:"button",onClick:ae(a=>r.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},IP,8,AP),c("button",{type:"button",onClick:a=>r.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},LP,8,MP)])])]))),128))]),_:1})])}const Wl=pt(oP,[["render",PP],["__scopeId","data-v-46f379e5"]]);var Pt={};const UP="Á",FP="á",BP="Ă",GP="ă",VP="∾",zP="∿",HP="∾̳",qP="Â",YP="â",$P="´",WP="А",KP="а",jP="Æ",QP="æ",XP="",ZP="𝔄",JP="𝔞",eU="À",tU="à",nU="ℵ",sU="ℵ",iU="Α",rU="α",oU="Ā",aU="ā",lU="⨿",cU="&",dU="&",uU="⩕",pU="⩓",_U="∧",hU="⩜",fU="⩘",mU="⩚",gU="∠",bU="⦤",EU="∠",yU="⦨",vU="⦩",SU="⦪",TU="⦫",xU="⦬",CU="⦭",wU="⦮",RU="⦯",AU="∡",NU="∟",OU="⊾",IU="⦝",MU="∢",DU="Å",kU="⍼",LU="Ą",PU="ą",UU="𝔸",FU="𝕒",BU="⩯",GU="≈",VU="⩰",zU="≊",HU="≋",qU="'",YU="",$U="≈",WU="≊",KU="Å",jU="å",QU="𝒜",XU="𝒶",ZU="≔",JU="*",eF="≈",tF="≍",nF="Ã",sF="ã",iF="Ä",rF="ä",oF="∳",aF="⨑",lF="≌",cF="϶",dF="",uF="∽",pF="⋍",_F="",hF="⫧",fF="⊽",mF="⌅",gF="⌆",bF="⌅",EF="⎵",yF="⎶",vF="≌",SF="Б",TF="б",xF="„",CF="∵",wF="∵",RF="∵",AF="⦰",NF="϶",OF="",IF="",MF="Β",DF="β",kF="ℶ",LF="≬",PF="𝔅",UF="𝔟",FF="⋂",BF="◯",GF="",VF="⨀",zF="⨁",HF="⨂",qF="⨆",YF="★",$F="▽",WF="△",KF="⨄",jF="",QF="⋀",XF="⤍",ZF="⧫",JF="▪",e3="▴",t3="▾",n3="◂",s3="▸",i3="␣",r3="▒",o3="░",a3="▓",l3="█",c3="=⃥",d3="≡⃥",u3="⫭",p3="⌐",_3="𝔹",h3="𝕓",f3="⊥",m3="⊥",g3="⋈",b3="⧉",E3="┐",y3="╕",v3="╖",S3="╗",T3="┌",x3="╒",C3="╓",w3="╔",R3="─",A3="═",N3="┬",O3="╤",I3="╥",M3="╦",D3="┴",k3="╧",L3="╨",P3="╩",U3="⊟",F3="⊞",B3="⊠",G3="┘",V3="╛",z3="╜",H3="╝",q3="└",Y3="╘",$3="╙",W3="╚",K3="│",j3="║",Q3="┼",X3="╪",Z3="╫",J3="╬",eB="┤",tB="╡",nB="╢",sB="╣",iB="├",rB="╞",oB="╟",aB="╠",lB="",cB="˘",dB="˘",uB="¦",pB="𝒷",_B="",hB="⁏",fB="∽",mB="⋍",gB="⧅",bB="\\",EB="⟈",yB="•",vB="•",SB="≎",TB="⪮",xB="≏",CB="≎",wB="≏",RB="Ć",AB="ć",NB="⩄",OB="⩉",IB="⩋",MB="∩",DB="⋒",kB="⩇",LB="⩀",PB="",UB="∩︀",FB="",BB="ˇ",GB="",VB="⩍",zB="Č",HB="č",qB="Ç",YB="ç",$B="Ĉ",WB="ĉ",KB="∰",jB="⩌",QB="⩐",XB="Ċ",ZB="ċ",JB="¸",e4="¸",t4="⦲",n4="¢",s4="·",i4="·",r4="𝔠",o4="",a4="Ч",l4="ч",c4="✓",d4="✓",u4="Χ",p4="χ",_4="ˆ",h4="≗",f4="↺",m4="↻",g4="⊛",b4="⊚",E4="⊝",y4="⊙",v4="®",S4="Ⓢ",T4="⊖",x4="⊕",C4="⊗",w4="○",R4="⧃",A4="≗",N4="⨐",O4="⫯",I4="⧂",M4="∲",D4="”",k4="",L4="♣",P4="♣",U4=":",F4="∷",B4="⩴",G4="≔",V4="≔",z4=",",H4="@",q4="∁",Y4="∘",$4="∁",W4="",K4="≅",j4="⩭",Q4="≡",X4="∮",Z4="∯",J4="∮",e5="𝕔",t5="",n5="∐",s5="∐",i5="©",r5="©",o5="℗",a5="∳",l5="↵",c5="✗",d5="",u5="𝒞",p5="𝒸",_5="⫏",h5="⫑",f5="⫐",m5="⫒",g5="⋯",b5="⤸",E5="⤵",y5="⋞",v5="⋟",S5="↶",T5="⤽",x5="⩈",C5="⩆",w5="≍",R5="",A5="⋓",N5="⩊",O5="⊍",I5="⩅",M5="",D5="↷",k5="⤼",L5="⋞",P5="⋟",U5="⋎",F5="⋏",B5="¤",G5="↶",V5="↷",z5="⋎",H5="⋏",q5="∲",Y5="∱",$5="⌭",W5="†",K5="‡",j5="ℸ",Q5="↓",X5="↡",Z5="⇓",J5="",eG="⫤",tG="⊣",nG="⤏",sG="˝",iG="Ď",rG="ď",oG="Д",aG="д",lG="‡",cG="⇊",dG="",uG="",pG="⤑",_G="⩷",hG="°",fG="∇",mG="Δ",gG="δ",bG="⦱",EG="⥿",yG="𝔇",vG="𝔡",SG="⥥",TG="⇃",xG="⇂",CG="´",wG="˙",RG="˝",AG="`",NG="˜",OG="⋄",IG="⋄",MG="⋄",DG="♦",kG="♦",LG="¨",PG="",UG="ϝ",FG="⋲",BG="÷",GG="÷",VG="⋇",zG="⋇",HG="Ђ",qG="ђ",YG="⌞",$G="⌍",WG="$",KG="𝔻",jG="𝕕",QG="¨",XG="˙",ZG="⃜",JG="≐",e6="≑",t6="≐",n6="∸",s6="∔",i6="⊡",r6="⌆",o6="∯",a6="¨",l6="⇓",c6="⇐",d6="⇔",u6="⫤",p6="⟸",_6="⟺",h6="⟹",f6="⇒",m6="⊨",g6="⇑",b6="⇕",E6="∥",y6="⤓",v6="↓",S6="↓",T6="⇓",x6="⇵",C6="̑",w6="⇊",R6="⇃",A6="⇂",N6="⥐",O6="⥞",I6="⥖",M6="↽",D6="⥟",k6="⥗",L6="⇁",P6="↧",U6="",F6="⤐",B6="⌟",G6="⌌",V6="𝒟",z6="𝒹",H6="Ѕ",q6="ѕ",Y6="⧶",$6="Đ",W6="đ",K6="⋱",j6="▿",Q6="▾",X6="⇵",Z6="⥯",J6="⦦",e9="Џ",t9="џ",n9="⟿",s9="É",i9="é",r9="⩮",o9="Ě",a9="ě",l9="Ê",c9="ê",d9="≖",u9="≕",p9="Э",_9="э",h9="⩷",f9="Ė",m9="ė",g9="≑",b9="",E9="≒",y9="𝔈",v9="𝔢",S9="⪚",T9="È",x9="è",C9="⪖",w9="⪘",R9="⪙",A9="∈",N9="⏧",O9="",I9="⪕",M9="⪗",D9="Ē",k9="ē",L9="∅",P9="∅",U9="◻",F9="∅",B9="▫",G9="",V9="",z9="",H9="Ŋ",q9="ŋ",Y9="",$9="Ę",W9="ę",K9="𝔼",j9="𝕖",Q9="⋕",X9="⧣",Z9="⩱",J9="ε",e8="Ε",t8="ε",n8="ϵ",s8="≖",i8="≕",r8="≂",o8="⪖",a8="⪕",l8="⩵",c8="=",d8="≂",u8="≟",p8="⇌",_8="≡",h8="⩸",f8="⧥",m8="⥱",g8="≓",b8="",E8="",y8="≐",v8="⩳",S8="≂",T8="Η",x8="η",C8="Ð",w8="ð",R8="Ë",A8="ë",N8="€",O8="!",I8="∃",M8="∃",D8="",k8="",L8="",P8="≒",U8="Ф",F8="ф",B8="♀",G8="ffi",V8="ff",z8="ffl",H8="𝔉",q8="𝔣",Y8="fi",$8="◼",W8="▪",K8="fj",j8="♭",Q8="fl",X8="▱",Z8="ƒ",J8="𝔽",eV="𝕗",tV="∀",nV="∀",sV="⋔",iV="⫙",rV="",oV="⨍",aV="½",lV="⅓",cV="¼",dV="⅕",uV="⅙",pV="⅛",_V="⅔",hV="⅖",fV="¾",mV="⅗",gV="⅜",bV="⅘",EV="⅚",yV="⅝",vV="⅞",SV="",TV="⌢",xV="𝒻",CV="",wV="ǵ",RV="Γ",AV="γ",NV="Ϝ",OV="ϝ",IV="⪆",MV="Ğ",DV="ğ",kV="Ģ",LV="Ĝ",PV="ĝ",UV="Г",FV="г",BV="Ġ",GV="ġ",VV="≥",zV="≧",HV="⪌",qV="⋛",YV="≥",$V="≧",WV="⩾",KV="⪩",jV="⩾",QV="⪀",XV="⪂",ZV="⪄",JV="⋛︀",ez="⪔",tz="𝔊",nz="𝔤",sz="≫",iz="⋙",rz="⋙",oz="ℷ",az="Ѓ",lz="ѓ",cz="⪥",dz="≷",uz="⪒",pz="⪤",_z="⪊",hz="⪊",fz="⪈",mz="≩",gz="⪈",bz="≩",Ez="⋧",yz="𝔾",vz="𝕘",Sz="`",Tz="≥",xz="⋛",Cz="≧",wz="⪢",Rz="≷",Az="⩾",Nz="≳",Oz="𝒢",Iz="",Mz="≳",Dz="⪎",kz="⪐",Lz="⪧",Pz="⩺",Uz=">",Fz=">",Bz="≫",Gz="⋗",Vz="⦕",zz="⩼",Hz="⪆",qz="⥸",Yz="⋗",$z="⋛",Wz="⪌",Kz="≷",jz="≳",Qz="≩︀",Xz="≩︀",Zz="ˇ",Jz="",eH="½",tH="",nH="Ъ",sH="ъ",iH="⥈",rH="↔",oH="⇔",aH="↭",lH="^",cH="ℏ",dH="Ĥ",uH="ĥ",pH="♥",_H="♥",hH="…",fH="⊹",mH="𝔥",gH="",bH="",EH="⤥",yH="⤦",vH="⇿",SH="∻",TH="↩",xH="↪",CH="𝕙",wH="",RH="―",AH="─",NH="𝒽",OH="",IH="ℏ",MH="Ħ",DH="ħ",kH="≎",LH="≏",PH="",UH="",FH="Í",BH="í",GH="",VH="Î",zH="î",HH="И",qH="и",YH="İ",$H="Е",WH="е",KH="¡",jH="⇔",QH="𝔦",XH="",ZH="Ì",JH="ì",e7="",t7="⨌",n7="∭",s7="⧜",i7="℩",r7="IJ",o7="ij",a7="Ī",l7="ī",c7="",d7="",u7="",p7="",_7="ı",h7="",f7="⊷",m7="Ƶ",g7="⇒",b7="℅",E7="∞",y7="⧝",v7="ı",S7="⊺",T7="∫",x7="∬",C7="",w7="∫",R7="⊺",A7="⋂",N7="⨗",O7="⨼",I7="",M7="",D7="Ё",k7="ё",L7="Į",P7="į",U7="𝕀",F7="𝕚",B7="Ι",G7="ι",V7="⨼",z7="¿",H7="𝒾",q7="",Y7="∈",$7="⋵",W7="⋹",K7="⋴",j7="⋳",Q7="∈",X7="",Z7="Ĩ",J7="ĩ",eq="І",tq="і",nq="Ï",sq="ï",iq="Ĵ",rq="ĵ",oq="Й",aq="й",lq="𝔍",cq="𝔧",dq="ȷ",uq="𝕁",pq="𝕛",_q="𝒥",hq="𝒿",fq="Ј",mq="ј",gq="Є",bq="є",Eq="Κ",yq="κ",vq="ϰ",Sq="Ķ",Tq="ķ",xq="К",Cq="к",wq="𝔎",Rq="𝔨",Aq="ĸ",Nq="Х",Oq="х",Iq="Ќ",Mq="ќ",Dq="𝕂",kq="𝕜",Lq="𝒦",Pq="𝓀",Uq="⇚",Fq="Ĺ",Bq="ĺ",Gq="⦴",Vq="",zq="Λ",Hq="λ",qq="⟨",Yq="⟪",$q="⦑",Wq="⟨",Kq="⪅",jq="",Qq="«",Xq="⇤",Zq="⤟",Jq="←",eY="↞",tY="⇐",nY="⤝",sY="↩",iY="↫",rY="⤹",oY="⥳",aY="↢",lY="⤙",cY="⤛",dY="⪫",uY="⪭",pY="⪭︀",_Y="⤌",hY="⤎",fY="",mY="{",gY="[",bY="⦋",EY="⦏",yY="⦍",vY="Ľ",SY="ľ",TY="Ļ",xY="ļ",CY="⌈",wY="{",RY="Л",AY="л",NY="⤶",OY="“",IY="„",MY="⥧",DY="⥋",kY="↲",LY="≤",PY="≦",UY="⟨",FY="⇤",BY="←",GY="←",VY="⇐",zY="⇆",HY="↢",qY="⌈",YY="⟦",$Y="⥡",WY="⥙",KY="⇃",jY="⌊",QY="↽",XY="↼",ZY="⇇",JY="↔",e$="↔",t$="⇔",n$="⇆",s$="⇋",i$="↭",r$="⥎",o$="↤",a$="⊣",l$="⥚",c$="⋋",d$="⧏",u$="⊲",p$="⊴",_$="⥑",h$="⥠",f$="⥘",m$="↿",g$="⥒",b$="↼",E$="⪋",y$="⋚",v$="≤",S$="≦",T$="⩽",x$="⪨",C$="⩽",w$="⩿",R$="⪁",A$="⪃",N$="⋚︀",O$="⪓",I$="⪅",M$="⋖",D$="⋚",k$="⪋",L$="⋚",P$="≦",U$="≶",F$="≶",B$="⪡",G$="≲",V$="⩽",z$="≲",H$="⥼",q$="⌊",Y$="𝔏",$$="𝔩",W$="≶",K$="⪑",j$="⥢",Q$="↽",X$="↼",Z$="⥪",J$="▄",eW="Љ",tW="љ",nW="⇇",sW="≪",iW="⋘",rW="⌞",oW="⇚",aW="⥫",lW="◺",cW="Ŀ",dW="ŀ",uW="⎰",pW="⎰",_W="⪉",hW="⪉",fW="⪇",mW="≨",gW="⪇",bW="≨",EW="⋦",yW="⟬",vW="⇽",SW="⟦",TW="⟵",xW="⟵",CW="⟸",wW="⟷",RW="⟷",AW="⟺",NW="⟼",OW="⟶",IW="⟶",MW="⟹",DW="↫",kW="↬",LW="⦅",PW="𝕃",UW="𝕝",FW="⨭",BW="⨴",GW="",VW="_",zW="↙",HW="↘",qW="◊",YW="◊",$W="⧫",WW="(",KW="⦓",jW="⇆",QW="⌟",XW="⇋",ZW="⥭",JW="",eK="⊿",tK="",nK="𝓁",sK="",iK="↰",rK="↰",oK="≲",aK="⪍",lK="⪏",cK="[",dK="",uK="",pK="Ł",_K="ł",hK="⪦",fK="⩹",mK="<",gK="<",bK="≪",EK="⋖",yK="⋋",vK="⋉",SK="⥶",TK="⩻",xK="◃",CK="⊴",wK="◂",RK="⦖",AK="⥊",NK="⥦",OK="≨︀",IK="≨︀",MK="¯",DK="♂",kK="✠",LK="✠",PK="↦",UK="↦",FK="↧",BK="↤",GK="↥",VK="▮",zK="⨩",HK="М",qK="м",YK="—",$K="∺",WK="∡",KK="",jK="",QK="𝔐",XK="𝔪",ZK="℧",JK="µ",ej="*",tj="⫰",nj="",sj="·",ij="⊟",rj="",oj="∸",aj="⨪",lj="∓",cj="⫛",dj="…",uj="∓",pj="⊧",_j="𝕄",hj="𝕞",fj="∓",mj="𝓂",gj="",bj="∾",Ej="Μ",yj="μ",vj="⊸",Sj="⊸",Tj="∇",xj="Ń",Cj="ń",wj="∠⃒",Rj="≉",Aj="⩰̸",Nj="≋̸",Oj="ʼn",Ij="≉",Mj="♮",Dj="",kj="♮",Lj=" ",Pj="≎̸",Uj="≏̸",Fj="⩃",Bj="Ň",Gj="ň",Vj="Ņ",zj="ņ",Hj="≇",qj="⩭̸",Yj="⩂",$j="Н",Wj="н",Kj="",jj="⤤",Qj="↗",Xj="⇗",Zj="↗",Jj="≠",eQ="≐̸",tQ="",nQ="",sQ="",iQ="",rQ="≢",oQ="⤨",aQ="≂̸",lQ="≫",cQ="≪",dQ=`
`,uQ="∄",pQ="∄",_Q="𝔑",hQ="𝔫",fQ="≧̸",mQ="≱",gQ="≱",bQ="≧̸",EQ="⩾̸",yQ="⩾̸",vQ="⋙̸",SQ="≵",TQ="≫⃒",xQ="≯",CQ="≯",wQ="≫̸",RQ="↮",AQ="⇎",NQ="⫲",OQ="∋",IQ="⋼",MQ="⋺",DQ="∋",kQ="Њ",LQ="њ",PQ="↚",UQ="⇍",FQ="‥",BQ="≦̸",GQ="≰",VQ="↚",zQ="⇍",HQ="↮",qQ="⇎",YQ="≰",$Q="≦̸",WQ="⩽̸",KQ="⩽̸",jQ="≮",QQ="⋘̸",XQ="≴",ZQ="≪⃒",JQ="≮",eX="⋪",tX="⋬",nX="≪̸",sX="∤",iX="",rX=" ",oX="𝕟",aX="",lX="⫬",cX="¬",dX="≢",uX="≭",pX="∦",_X="∉",hX="≠",fX="≂̸",mX="∄",gX="≯",bX="≱",EX="≧̸",yX="≫̸",vX="≹",SX="⩾̸",TX="≵",xX="≎̸",CX="≏̸",wX="∉",RX="⋵̸",AX="⋹̸",NX="∉",OX="⋷",IX="⋶",MX="⧏̸",DX="⋪",kX="⋬",LX="≮",PX="≰",UX="≸",FX="≪̸",BX="⩽̸",GX="≴",VX="⪢̸",zX="⪡̸",HX="∌",qX="∌",YX="⋾",$X="⋽",WX="⊀",KX="⪯̸",jX="⋠",QX="∌",XX="⧐̸",ZX="⋫",JX="⋭",eZ="⊏̸",tZ="⋢",nZ="⊐̸",sZ="⋣",iZ="⊂⃒",rZ="⊈",oZ="⊁",aZ="⪰̸",lZ="⋡",cZ="≿̸",dZ="⊃⃒",uZ="⊉",pZ="≁",_Z="≄",hZ="≇",fZ="≉",mZ="∤",gZ="∦",bZ="∦",EZ="⫽⃥",yZ="∂̸",vZ="⨔",SZ="⊀",TZ="⋠",xZ="⊀",CZ="⪯̸",wZ="⪯̸",RZ="⤳̸",AZ="↛",NZ="⇏",OZ="↝̸",IZ="↛",MZ="⇏",DZ="⋫",kZ="⋭",LZ="⊁",PZ="⋡",UZ="⪰̸",FZ="𝒩",BZ="𝓃",GZ="∤",VZ="∦",zZ="≁",HZ="≄",qZ="≄",YZ="∤",$Z="∦",WZ="⋢",KZ="⋣",jZ="⊄",QZ="⫅̸",XZ="⊈",ZZ="⊂⃒",JZ="⊈",eJ="⫅̸",tJ="⊁",nJ="⪰̸",sJ="⊅",iJ="⫆̸",rJ="⊉",oJ="⊃⃒",aJ="⊉",lJ="⫆̸",cJ="≹",dJ="Ñ",uJ="ñ",pJ="≸",_J="⋪",hJ="⋬",fJ="⋫",mJ="⋭",gJ="Ν",bJ="ν",EJ="#",yJ="№",vJ="",SJ="≍⃒",TJ="⊬",xJ="⊭",CJ="⊮",wJ="⊯",RJ="≥⃒",AJ=">⃒",NJ="⤄",OJ="⧞",IJ="⤂",MJ="≤⃒",DJ="<⃒",kJ="⊴⃒",LJ="⤃",PJ="⊵⃒",UJ="∼⃒",FJ="⤣",BJ="↖",GJ="⇖",VJ="↖",zJ="⤧",HJ="Ó",qJ="ó",YJ="⊛",$J="Ô",WJ="ô",KJ="⊚",jJ="О",QJ="о",XJ="⊝",ZJ="Ő",JJ="ő",eee="⨸",tee="⊙",nee="⦼",see="Œ",iee="œ",ree="⦿",oee="𝔒",aee="𝔬",lee="˛",cee="Ò",dee="ò",uee="⧁",pee="⦵",_ee="Ω",hee="∮",fee="↺",mee="⦾",gee="⦻",bee="‾",Eee="⧀",yee="Ō",vee="ō",See="Ω",Tee="ω",xee="Ο",Cee="ο",wee="⦶",Ree="⊖",Aee="𝕆",Nee="𝕠",Oee="⦷",Iee="“",Mee="",Dee="⦹",kee="⊕",Lee="↻",Pee="⩔",Uee="",Fee="⩝",Bee="",Gee="",Vee="ª",zee="º",Hee="⊶",qee="⩖",Yee="⩗",$ee="⩛",Wee="Ⓢ",Kee="𝒪",jee="",Qee="Ø",Xee="ø",Zee="⊘",Jee="Õ",ete="õ",tte="⨶",nte="⨷",ste="⊗",ite="Ö",rte="ö",ote="⌽",ate="‾",lte="⏞",cte="⎴",dte="⏜",ute="¶",pte="∥",_te="∥",hte="⫳",fte="⫽",mte="∂",gte="∂",bte="П",Ete="п",yte="%",vte=".",Ste="‰",Tte="⊥",xte="‱",Cte="𝔓",wte="𝔭",Rte="Φ",Ate="φ",Nte="ϕ",Ote="",Ite="☎",Mte="Π",Dte="π",kte="⋔",Lte="ϖ",Pte="ℏ",Ute="",Fte="ℏ",Bte="⨣",Gte="⊞",Vte="⨢",zte="+",Hte="∔",qte="⨥",Yte="⩲",$te="±",Wte="±",Kte="⨦",jte="⨧",Qte="±",Xte="",Zte="⨕",Jte="𝕡",ene="",tne="£",nne="⪷",sne="⪻",ine="≺",rne="≼",one="⪷",ane="≺",lne="≼",cne="≺",dne="⪯",une="≼",pne="≾",_ne="⪯",hne="⪹",fne="⪵",mne="⋨",gne="⪯",bne="⪳",Ene="≾",yne="",vne="″",Sne="",Tne="⪹",xne="⪵",Cne="⋨",wne="∏",Rne="∏",Ane="⌮",Nne="⌒",One="⌓",Ine="∝",Mne="∝",Dne="∷",kne="∝",Lne="≾",Pne="⊰",Une="𝒫",Fne="𝓅",Bne="Ψ",Gne="ψ",Vne="",zne="𝔔",Hne="𝔮",qne="⨌",Yne="𝕢",$ne="",Wne="⁗",Kne="𝒬",jne="𝓆",Qne="",Xne="⨖",Zne="?",Jne="≟",ese='"',tse='"',nse="⇛",sse="∽̱",ise="Ŕ",rse="ŕ",ose="√",ase="⦳",lse="⟩",cse="⟫",dse="⦒",use="⦥",pse="⟩",_se="»",hse="⥵",fse="⇥",mse="⤠",gse="⤳",bse="→",Ese="↠",yse="⇒",vse="⤞",Sse="↪",Tse="↬",xse="⥅",Cse="⥴",wse="⤖",Rse="↣",Ase="↝",Nse="⤚",Ose="⤜",Ise="",Mse="",Dse="⤍",kse="⤏",Lse="⤐",Pse="",Use="}",Fse="]",Bse="⦌",Gse="⦎",Vse="⦐",zse="Ř",Hse="ř",qse="Ŗ",Yse="ŗ",$se="⌉",Wse="}",Kse="Р",jse="р",Qse="⤷",Xse="⥩",Zse="”",Jse="”",eie="↳",tie="",nie="",sie="",iie="",rie="",oie="▭",aie="®",lie="®",cie="∋",die="⇋",uie="⥯",pie="⥽",_ie="⌋",hie="𝔯",fie="",mie="⥤",gie="⇁",bie="⇀",Eie="⥬",yie="Ρ",vie="ρ",Sie="ϱ",Tie="⟩",xie="⇥",Cie="→",wie="→",Rie="⇒",Aie="⇄",Nie="↣",Oie="⌉",Iie="⟧",Mie="⥝",Die="⥕",kie="⇂",Lie="⌋",Pie="⇁",Uie="⇀",Fie="⇄",Bie="⇌",Gie="⇉",Vie="↝",zie="↦",Hie="⊢",qie="⥛",Yie="⋌",$ie="⧐",Wie="⊳",Kie="⊵",jie="⥏",Qie="⥜",Xie="⥔",Zie="↾",Jie="⥓",ere="⇀",tre="˚",nre="≓",sre="⇄",ire="⇌",rre="",ore="⎱",are="⎱",lre="⫮",cre="⟭",dre="⇾",ure="⟧",pre="⦆",_re="𝕣",hre="",fre="⨮",mre="⨵",gre="⥰",bre=")",Ere="⦔",yre="⨒",vre="⇉",Sre="⇛",Tre="",xre="𝓇",Cre="",wre="↱",Rre="↱",Are="]",Nre="",Ore="",Ire="⋌",Mre="⋊",Dre="▹",kre="⊵",Lre="▸",Pre="⧎",Ure="⧴",Fre="⥨",Bre="℞",Gre="Ś",Vre="ś",zre="",Hre="⪸",qre="Š",Yre="š",$re="⪼",Wre="≻",Kre="≽",jre="⪰",Qre="⪴",Xre="Ş",Zre="ş",Jre="Ŝ",eoe="ŝ",toe="⪺",noe="⪶",soe="⋩",ioe="⨓",roe="≿",ooe="С",aoe="с",loe="⊡",coe="⋅",doe="⩦",uoe="⤥",poe="↘",_oe="⇘",hoe="↘",foe="§",moe=";",goe="⤩",boe="",Eoe="",yoe="✶",voe="𝔖",Soe="𝔰",Toe="⌢",xoe="♯",Coe="Щ",woe="щ",Roe="Ш",Aoe="ш",Noe="↓",Ooe="←",Ioe="",Moe="∥",Doe="→",koe="↑",Loe="­",Poe="Σ",Uoe="σ",Foe="ς",Boe="ς",Goe="",Voe="⩪",zoe="≃",Hoe="≃",qoe="⪞",Yoe="⪠",$oe="⪝",Woe="⪟",Koe="≆",joe="⨤",Qoe="⥲",Xoe="←",Zoe="∘",Joe="",eae="⨳",tae="⧤",nae="",sae="⌣",iae="⪪",rae="⪬",oae="⪬︀",aae="Ь",lae="ь",cae="⌿",dae="⧄",uae="/",pae="𝕊",_ae="𝕤",hae="♠",fae="♠",mae="∥",gae="⊓",bae="⊓︀",Eae="⊔",yae="⊔︀",vae="√",Sae="⊏",Tae="⊑",xae="⊏",Cae="⊑",wae="⊐",Rae="⊒",Aae="⊐",Nae="⊒",Oae="□",Iae="□",Mae="⊓",Dae="⊏",kae="⊑",Lae="⊐",Pae="⊒",Uae="⊔",Fae="▪",Bae="□",Gae="▪",Vae="→",zae="𝒮",Hae="𝓈",qae="",Yae="⌣",$ae="⋆",Wae="⋆",Kae="☆",jae="★",Qae="ϵ",Xae="ϕ",Zae="¯",Jae="⊂",ele="⋐",tle="⪽",nle="⫅",sle="⊆",ile="⫃",rle="⫁",ole="⫋",ale="⊊",lle="⪿",cle="⥹",dle="⊂",ule="⋐",ple="⊆",_le="⫅",hle="⊆",fle="⊊",mle="⫋",gle="⫇",ble="⫕",Ele="⫓",yle="⪸",vle="≻",Sle="≽",Tle="≻",xle="⪰",Cle="≽",wle="≿",Rle="⪰",Ale="⪺",Nle="⪶",Ole="⋩",Ile="≿",Mle="∋",Dle="∑",kle="∑",Lle="♪",Ple="¹",Ule="²",Fle="³",Ble="⊃",Gle="⋑",Vle="⪾",zle="⫘",Hle="⫆",qle="⊇",Yle="⫄",$le="⊃",Wle="⊇",Kle="⟉",jle="⫗",Qle="⥻",Xle="⫂",Zle="⫌",Jle="⊋",ece="⫀",tce="⊃",nce="⋑",sce="⊇",ice="⫆",rce="⊋",oce="⫌",ace="⫈",lce="⫔",cce="⫖",dce="⤦",uce="↙",pce="⇙",_ce="↙",hce="⤪",fce="ß",mce=" ",gce="⌖",bce="Τ",Ece="τ",yce="⎴",vce="Ť",Sce="ť",Tce="Ţ",xce="ţ",Cce="Т",wce="т",Rce="⃛",Ace="⌕",Nce="𝔗",Oce="𝔱",Ice="∴",Mce="∴",Dce="∴",kce="Θ",Lce="θ",Pce="ϑ",Uce="ϑ",Fce="≈",Bce="",Gce="",Vce="",zce="",Hce="≈",qce="",Yce="Þ",$ce="þ",Wce="˜",Kce="",jce="≃",Qce="≅",Xce="≈",Zce="⨱",Jce="⊠",ede="×",tde="⨰",nde="∭",sde="⤨",ide="⌶",rde="⫱",ode="",ade="𝕋",lde="𝕥",cde="⫚",dde="⤩",ude="‴",pde="™",_de="™",hde="▵",fde="▿",mde="◃",gde="⊴",bde="≜",Ede="▹",yde="⊵",vde="◬",Sde="≜",Tde="⨺",xde="⃛",Cde="⨹",wde="⧍",Rde="⨻",Ade="⏢",Nde="𝒯",Ode="𝓉",Ide="Ц",Mde="ц",Dde="Ћ",kde="ћ",Lde="Ŧ",Pde="ŧ",Ude="≬",Fde="↞",Bde="↠",Gde="Ú",Vde="ú",zde="↑",Hde="↟",qde="⇑",Yde="⥉",$de="Ў",Wde="ў",Kde="Ŭ",jde="ŭ",Qde="Û",Xde="û",Zde="У",Jde="у",eue="⇅",tue="Ű",nue="ű",sue="⥮",iue="⥾",rue="𝔘",oue="𝔲",aue="Ù",lue="ù",cue="⥣",due="↿",uue="↾",pue="▀",_ue="⌜",hue="⌜",fue="⌏",mue="◸",gue="Ū",bue="ū",Eue="¨",yue="_",vue="⏟",Sue="⎵",Tue="⏝",xue="",Cue="⊎",wue="Ų",Rue="ų",Aue="𝕌",Nue="𝕦",Oue="⤒",Iue="↑",Mue="↑",Due="⇑",kue="⇅",Lue="↕",Pue="↕",Uue="⇕",Fue="⥮",Bue="↿",Gue="↾",Vue="⊎",zue="↖",Hue="↗",que="υ",Yue="ϒ",$ue="ϒ",Wue="Υ",Kue="υ",jue="↥",Que="⊥",Xue="⇈",Zue="⌝",Jue="⌝",epe="⌎",tpe="Ů",npe="ů",spe="◹",ipe="𝒰",rpe="𝓊",ope="⋰",ape="Ũ",lpe="ũ",cpe="▵",dpe="▴",upe="⇈",ppe="Ü",_pe="ü",hpe="⦧",fpe="⦜",mpe="ϵ",gpe="ϰ",bpe="∅",Epe="ϕ",ype="ϖ",vpe="∝",Spe="↕",Tpe="⇕",xpe="ϱ",Cpe="ς",wpe="⊊︀",Rpe="⫋︀",Ape="⊋︀",Npe="⫌︀",Ope="ϑ",Ipe="⊲",Mpe="⊳",Dpe="⫨",kpe="⫫",Lpe="⫩",Ppe="В",Upe="в",Fpe="⊢",Bpe="⊨",Gpe="⊩",Vpe="⊫",zpe="⫦",Hpe="⊻",qpe="",Ype="",$pe="≚",Wpe="⋮",Kpe="|",jpe="‖",Qpe="|",Xpe="‖",Zpe="",Jpe="|",e_e="❘",t_e="≀",n_e="",s_e="𝔙",i_e="𝔳",r_e="⊲",o_e="⊂⃒",a_e="⊃⃒",l_e="𝕍",c_e="𝕧",d_e="∝",u_e="⊳",p_e="𝒱",__e="𝓋",h_e="⫋︀",f_e="⊊︀",m_e="⫌︀",g_e="⊋︀",b_e="⊪",E_e="⦚",y_e="Ŵ",v_e="ŵ",S_e="⩟",T_e="∧",x_e="⋀",C_e="≙",w_e="℘",R_e="𝔚",A_e="𝔴",N_e="𝕎",O_e="𝕨",I_e="℘",M_e="≀",D_e="≀",k_e="𝒲",L_e="𝓌",P_e="⋂",U_e="◯",F_e="",B_e="▽",G_e="𝔛",V_e="𝔵",z_e="⟷",H_e="⟺",q_e="Ξ",Y_e="ξ",$_e="⟵",W_e="⟸",K_e="⟼",j_e="⋻",Q_e="⨀",X_e="𝕏",Z_e="𝕩",J_e="⨁",ehe="⨂",the="⟶",nhe="⟹",she="𝒳",ihe="𝓍",rhe="⨆",ohe="⨄",ahe="△",lhe="",che="⋀",dhe="Ý",uhe="ý",phe="Я",_he="я",hhe="Ŷ",fhe="ŷ",mhe="Ы",ghe="ы",bhe="¥",Ehe="𝔜",yhe="𝔶",vhe="Ї",She="ї",The="𝕐",xhe="𝕪",Che="𝒴",whe="𝓎",Rhe="Ю",Ahe="ю",Nhe="ÿ",Ohe="Ÿ",Ihe="Ź",Mhe="ź",Dhe="Ž",khe="ž",Lhe="З",Phe="з",Uhe="Ż",Fhe="ż",Bhe="",Ghe="",Vhe="Ζ",zhe="ζ",Hhe="𝔷",qhe="",Yhe="Ж",$he="ж",Whe="⇝",Khe="𝕫",jhe="",Qhe="𝒵",Xhe="𝓏",Zhe="",Jhe="",efe={Aacute:UP,aacute:FP,Abreve:BP,abreve:GP,ac:VP,acd:zP,acE:HP,Acirc:qP,acirc:YP,acute:$P,Acy:WP,acy:KP,AElig:jP,aelig:QP,af:XP,Afr:ZP,afr:JP,Agrave:eU,agrave:tU,alefsym:nU,aleph:sU,Alpha:iU,alpha:rU,Amacr:oU,amacr:aU,amalg:lU,amp:cU,AMP:dU,andand:uU,And:pU,and:_U,andd:hU,andslope:fU,andv:mU,ang:gU,ange:bU,angle:EU,angmsdaa:yU,angmsdab:vU,angmsdac:SU,angmsdad:TU,angmsdae:xU,angmsdaf:CU,angmsdag:wU,angmsdah:RU,angmsd:AU,angrt:NU,angrtvb:OU,angrtvbd:IU,angsph:MU,angst:DU,angzarr:kU,Aogon:LU,aogon:PU,Aopf:UU,aopf:FU,apacir:BU,ap:GU,apE:VU,ape:zU,apid:HU,apos:qU,ApplyFunction:YU,approx:$U,approxeq:WU,Aring:KU,aring:jU,Ascr:QU,ascr:XU,Assign:ZU,ast:JU,asymp:eF,asympeq:tF,Atilde:nF,atilde:sF,Auml:iF,auml:rF,awconint:oF,awint:aF,backcong:lF,backepsilon:cF,backprime:dF,backsim:uF,backsimeq:pF,Backslash:_F,Barv:hF,barvee:fF,barwed:mF,Barwed:gF,barwedge:bF,bbrk:EF,bbrktbrk:yF,bcong:vF,Bcy:SF,bcy:TF,bdquo:xF,becaus:CF,because:wF,Because:RF,bemptyv:AF,bepsi:NF,bernou:OF,Bernoullis:IF,Beta:MF,beta:DF,beth:kF,between:LF,Bfr:PF,bfr:UF,bigcap:FF,bigcirc:BF,bigcup:GF,bigodot:VF,bigoplus:zF,bigotimes:HF,bigsqcup:qF,bigstar:YF,bigtriangledown:$F,bigtriangleup:WF,biguplus:KF,bigvee:jF,bigwedge:QF,bkarow:XF,blacklozenge:ZF,blacksquare:JF,blacktriangle:e3,blacktriangledown:t3,blacktriangleleft:n3,blacktriangleright:s3,blank:i3,blk12:r3,blk14:o3,blk34:a3,block:l3,bne:c3,bnequiv:d3,bNot:u3,bnot:p3,Bopf:_3,bopf:h3,bot:f3,bottom:m3,bowtie:g3,boxbox:b3,boxdl:E3,boxdL:y3,boxDl:v3,boxDL:S3,boxdr:T3,boxdR:x3,boxDr:C3,boxDR:w3,boxh:R3,boxH:A3,boxhd:N3,boxHd:O3,boxhD:I3,boxHD:M3,boxhu:D3,boxHu:k3,boxhU:L3,boxHU:P3,boxminus:U3,boxplus:F3,boxtimes:B3,boxul:G3,boxuL:V3,boxUl:z3,boxUL:H3,boxur:q3,boxuR:Y3,boxUr:$3,boxUR:W3,boxv:K3,boxV:j3,boxvh:Q3,boxvH:X3,boxVh:Z3,boxVH:J3,boxvl:eB,boxvL:tB,boxVl:nB,boxVL:sB,boxvr:iB,boxvR:rB,boxVr:oB,boxVR:aB,bprime:lB,breve:cB,Breve:dB,brvbar:uB,bscr:pB,Bscr:_B,bsemi:hB,bsim:fB,bsime:mB,bsolb:gB,bsol:bB,bsolhsub:EB,bull:yB,bullet:vB,bump:SB,bumpE:TB,bumpe:xB,Bumpeq:CB,bumpeq:wB,Cacute:RB,cacute:AB,capand:NB,capbrcup:OB,capcap:IB,cap:MB,Cap:DB,capcup:kB,capdot:LB,CapitalDifferentialD:PB,caps:UB,caret:FB,caron:BB,Cayleys:GB,ccaps:VB,Ccaron:zB,ccaron:HB,Ccedil:qB,ccedil:YB,Ccirc:$B,ccirc:WB,Cconint:KB,ccups:jB,ccupssm:QB,Cdot:XB,cdot:ZB,cedil:JB,Cedilla:e4,cemptyv:t4,cent:n4,centerdot:s4,CenterDot:i4,cfr:r4,Cfr:o4,CHcy:a4,chcy:l4,check:c4,checkmark:d4,Chi:u4,chi:p4,circ:_4,circeq:h4,circlearrowleft:f4,circlearrowright:m4,circledast:g4,circledcirc:b4,circleddash:E4,CircleDot:y4,circledR:v4,circledS:S4,CircleMinus:T4,CirclePlus:x4,CircleTimes:C4,cir:w4,cirE:R4,cire:A4,cirfnint:N4,cirmid:O4,cirscir:I4,ClockwiseContourIntegral:M4,CloseCurlyDoubleQuote:D4,CloseCurlyQuote:k4,clubs:L4,clubsuit:P4,colon:U4,Colon:F4,Colone:B4,colone:G4,coloneq:V4,comma:z4,commat:H4,comp:q4,compfn:Y4,complement:$4,complexes:W4,cong:K4,congdot:j4,Congruent:Q4,conint:X4,Conint:Z4,ContourIntegral:J4,copf:e5,Copf:t5,coprod:n5,Coproduct:s5,copy:i5,COPY:r5,copysr:o5,CounterClockwiseContourIntegral:a5,crarr:l5,cross:c5,Cross:d5,Cscr:u5,cscr:p5,csub:_5,csube:h5,csup:f5,csupe:m5,ctdot:g5,cudarrl:b5,cudarrr:E5,cuepr:y5,cuesc:v5,cularr:S5,cularrp:T5,cupbrcap:x5,cupcap:C5,CupCap:w5,cup:R5,Cup:A5,cupcup:N5,cupdot:O5,cupor:I5,cups:M5,curarr:D5,curarrm:k5,curlyeqprec:L5,curlyeqsucc:P5,curlyvee:U5,curlywedge:F5,curren:B5,curvearrowleft:G5,curvearrowright:V5,cuvee:z5,cuwed:H5,cwconint:q5,cwint:Y5,cylcty:$5,dagger:W5,Dagger:K5,daleth:j5,darr:Q5,Darr:X5,dArr:Z5,dash:J5,Dashv:eG,dashv:tG,dbkarow:nG,dblac:sG,Dcaron:iG,dcaron:rG,Dcy:oG,dcy:aG,ddagger:lG,ddarr:cG,DD:dG,dd:uG,DDotrahd:pG,ddotseq:_G,deg:hG,Del:fG,Delta:mG,delta:gG,demptyv:bG,dfisht:EG,Dfr:yG,dfr:vG,dHar:SG,dharl:TG,dharr:xG,DiacriticalAcute:CG,DiacriticalDot:wG,DiacriticalDoubleAcute:RG,DiacriticalGrave:AG,DiacriticalTilde:NG,diam:OG,diamond:IG,Diamond:MG,diamondsuit:DG,diams:kG,die:LG,DifferentialD:PG,digamma:UG,disin:FG,div:BG,divide:GG,divideontimes:VG,divonx:zG,DJcy:HG,djcy:qG,dlcorn:YG,dlcrop:$G,dollar:WG,Dopf:KG,dopf:jG,Dot:QG,dot:XG,DotDot:ZG,doteq:JG,doteqdot:e6,DotEqual:t6,dotminus:n6,dotplus:s6,dotsquare:i6,doublebarwedge:r6,DoubleContourIntegral:o6,DoubleDot:a6,DoubleDownArrow:l6,DoubleLeftArrow:c6,DoubleLeftRightArrow:d6,DoubleLeftTee:u6,DoubleLongLeftArrow:p6,DoubleLongLeftRightArrow:_6,DoubleLongRightArrow:h6,DoubleRightArrow:f6,DoubleRightTee:m6,DoubleUpArrow:g6,DoubleUpDownArrow:b6,DoubleVerticalBar:E6,DownArrowBar:y6,downarrow:v6,DownArrow:S6,Downarrow:T6,DownArrowUpArrow:x6,DownBreve:C6,downdownarrows:w6,downharpoonleft:R6,downharpoonright:A6,DownLeftRightVector:N6,DownLeftTeeVector:O6,DownLeftVectorBar:I6,DownLeftVector:M6,DownRightTeeVector:D6,DownRightVectorBar:k6,DownRightVector:L6,DownTeeArrow:P6,DownTee:U6,drbkarow:F6,drcorn:B6,drcrop:G6,Dscr:V6,dscr:z6,DScy:H6,dscy:q6,dsol:Y6,Dstrok:$6,dstrok:W6,dtdot:K6,dtri:j6,dtrif:Q6,duarr:X6,duhar:Z6,dwangle:J6,DZcy:e9,dzcy:t9,dzigrarr:n9,Eacute:s9,eacute:i9,easter:r9,Ecaron:o9,ecaron:a9,Ecirc:l9,ecirc:c9,ecir:d9,ecolon:u9,Ecy:p9,ecy:_9,eDDot:h9,Edot:f9,edot:m9,eDot:g9,ee:b9,efDot:E9,Efr:y9,efr:v9,eg:S9,Egrave:T9,egrave:x9,egs:C9,egsdot:w9,el:R9,Element:A9,elinters:N9,ell:O9,els:I9,elsdot:M9,Emacr:D9,emacr:k9,empty:L9,emptyset:P9,EmptySmallSquare:U9,emptyv:F9,EmptyVerySmallSquare:B9,emsp13:G9,emsp14:V9,emsp:z9,ENG:H9,eng:q9,ensp:Y9,Eogon:$9,eogon:W9,Eopf:K9,eopf:j9,epar:Q9,eparsl:X9,eplus:Z9,epsi:J9,Epsilon:e8,epsilon:t8,epsiv:n8,eqcirc:s8,eqcolon:i8,eqsim:r8,eqslantgtr:o8,eqslantless:a8,Equal:l8,equals:c8,EqualTilde:d8,equest:u8,Equilibrium:p8,equiv:_8,equivDD:h8,eqvparsl:f8,erarr:m8,erDot:g8,escr:b8,Escr:E8,esdot:y8,Esim:v8,esim:S8,Eta:T8,eta:x8,ETH:C8,eth:w8,Euml:R8,euml:A8,euro:N8,excl:O8,exist:I8,Exists:M8,expectation:D8,exponentiale:k8,ExponentialE:L8,fallingdotseq:P8,Fcy:U8,fcy:F8,female:B8,ffilig:G8,fflig:V8,ffllig:z8,Ffr:H8,ffr:q8,filig:Y8,FilledSmallSquare:$8,FilledVerySmallSquare:W8,fjlig:K8,flat:j8,fllig:Q8,fltns:X8,fnof:Z8,Fopf:J8,fopf:eV,forall:tV,ForAll:nV,fork:sV,forkv:iV,Fouriertrf:rV,fpartint:oV,frac12:aV,frac13:lV,frac14:cV,frac15:dV,frac16:uV,frac18:pV,frac23:_V,frac25:hV,frac34:fV,frac35:mV,frac38:gV,frac45:bV,frac56:EV,frac58:yV,frac78:vV,frasl:SV,frown:TV,fscr:xV,Fscr:CV,gacute:wV,Gamma:RV,gamma:AV,Gammad:NV,gammad:OV,gap:IV,Gbreve:MV,gbreve:DV,Gcedil:kV,Gcirc:LV,gcirc:PV,Gcy:UV,gcy:FV,Gdot:BV,gdot:GV,ge:VV,gE:zV,gEl:HV,gel:qV,geq:YV,geqq:$V,geqslant:WV,gescc:KV,ges:jV,gesdot:QV,gesdoto:XV,gesdotol:ZV,gesl:JV,gesles:ez,Gfr:tz,gfr:nz,gg:sz,Gg:iz,ggg:rz,gimel:oz,GJcy:az,gjcy:lz,gla:cz,gl:dz,glE:uz,glj:pz,gnap:_z,gnapprox:hz,gne:fz,gnE:mz,gneq:gz,gneqq:bz,gnsim:Ez,Gopf:yz,gopf:vz,grave:Sz,GreaterEqual:Tz,GreaterEqualLess:xz,GreaterFullEqual:Cz,GreaterGreater:wz,GreaterLess:Rz,GreaterSlantEqual:Az,GreaterTilde:Nz,Gscr:Oz,gscr:Iz,gsim:Mz,gsime:Dz,gsiml:kz,gtcc:Lz,gtcir:Pz,gt:Uz,GT:Fz,Gt:Bz,gtdot:Gz,gtlPar:Vz,gtquest:zz,gtrapprox:Hz,gtrarr:qz,gtrdot:Yz,gtreqless:$z,gtreqqless:Wz,gtrless:Kz,gtrsim:jz,gvertneqq:Qz,gvnE:Xz,Hacek:Zz,hairsp:Jz,half:eH,hamilt:tH,HARDcy:nH,hardcy:sH,harrcir:iH,harr:rH,hArr:oH,harrw:aH,Hat:lH,hbar:cH,Hcirc:dH,hcirc:uH,hearts:pH,heartsuit:_H,hellip:hH,hercon:fH,hfr:mH,Hfr:gH,HilbertSpace:bH,hksearow:EH,hkswarow:yH,hoarr:vH,homtht:SH,hookleftarrow:TH,hookrightarrow:xH,hopf:CH,Hopf:wH,horbar:RH,HorizontalLine:AH,hscr:NH,Hscr:OH,hslash:IH,Hstrok:MH,hstrok:DH,HumpDownHump:kH,HumpEqual:LH,hybull:PH,hyphen:UH,Iacute:FH,iacute:BH,ic:GH,Icirc:VH,icirc:zH,Icy:HH,icy:qH,Idot:YH,IEcy:$H,iecy:WH,iexcl:KH,iff:jH,ifr:QH,Ifr:XH,Igrave:ZH,igrave:JH,ii:e7,iiiint:t7,iiint:n7,iinfin:s7,iiota:i7,IJlig:r7,ijlig:o7,Imacr:a7,imacr:l7,image:c7,ImaginaryI:d7,imagline:u7,imagpart:p7,imath:_7,Im:h7,imof:f7,imped:m7,Implies:g7,incare:b7,in:"∈",infin:E7,infintie:y7,inodot:v7,intcal:S7,int:T7,Int:x7,integers:C7,Integral:w7,intercal:R7,Intersection:A7,intlarhk:N7,intprod:O7,InvisibleComma:I7,InvisibleTimes:M7,IOcy:D7,iocy:k7,Iogon:L7,iogon:P7,Iopf:U7,iopf:F7,Iota:B7,iota:G7,iprod:V7,iquest:z7,iscr:H7,Iscr:q7,isin:Y7,isindot:$7,isinE:W7,isins:K7,isinsv:j7,isinv:Q7,it:X7,Itilde:Z7,itilde:J7,Iukcy:eq,iukcy:tq,Iuml:nq,iuml:sq,Jcirc:iq,jcirc:rq,Jcy:oq,jcy:aq,Jfr:lq,jfr:cq,jmath:dq,Jopf:uq,jopf:pq,Jscr:_q,jscr:hq,Jsercy:fq,jsercy:mq,Jukcy:gq,jukcy:bq,Kappa:Eq,kappa:yq,kappav:vq,Kcedil:Sq,kcedil:Tq,Kcy:xq,kcy:Cq,Kfr:wq,kfr:Rq,kgreen:Aq,KHcy:Nq,khcy:Oq,KJcy:Iq,kjcy:Mq,Kopf:Dq,kopf:kq,Kscr:Lq,kscr:Pq,lAarr:Uq,Lacute:Fq,lacute:Bq,laemptyv:Gq,lagran:Vq,Lambda:zq,lambda:Hq,lang:qq,Lang:Yq,langd:$q,langle:Wq,lap:Kq,Laplacetrf:jq,laquo:Qq,larrb:Xq,larrbfs:Zq,larr:Jq,Larr:eY,lArr:tY,larrfs:nY,larrhk:sY,larrlp:iY,larrpl:rY,larrsim:oY,larrtl:aY,latail:lY,lAtail:cY,lat:dY,late:uY,lates:pY,lbarr:_Y,lBarr:hY,lbbrk:fY,lbrace:mY,lbrack:gY,lbrke:bY,lbrksld:EY,lbrkslu:yY,Lcaron:vY,lcaron:SY,Lcedil:TY,lcedil:xY,lceil:CY,lcub:wY,Lcy:RY,lcy:AY,ldca:NY,ldquo:OY,ldquor:IY,ldrdhar:MY,ldrushar:DY,ldsh:kY,le:LY,lE:PY,LeftAngleBracket:UY,LeftArrowBar:FY,leftarrow:BY,LeftArrow:GY,Leftarrow:VY,LeftArrowRightArrow:zY,leftarrowtail:HY,LeftCeiling:qY,LeftDoubleBracket:YY,LeftDownTeeVector:$Y,LeftDownVectorBar:WY,LeftDownVector:KY,LeftFloor:jY,leftharpoondown:QY,leftharpoonup:XY,leftleftarrows:ZY,leftrightarrow:JY,LeftRightArrow:e$,Leftrightarrow:t$,leftrightarrows:n$,leftrightharpoons:s$,leftrightsquigarrow:i$,LeftRightVector:r$,LeftTeeArrow:o$,LeftTee:a$,LeftTeeVector:l$,leftthreetimes:c$,LeftTriangleBar:d$,LeftTriangle:u$,LeftTriangleEqual:p$,LeftUpDownVector:_$,LeftUpTeeVector:h$,LeftUpVectorBar:f$,LeftUpVector:m$,LeftVectorBar:g$,LeftVector:b$,lEg:E$,leg:y$,leq:v$,leqq:S$,leqslant:T$,lescc:x$,les:C$,lesdot:w$,lesdoto:R$,lesdotor:A$,lesg:N$,lesges:O$,lessapprox:I$,lessdot:M$,lesseqgtr:D$,lesseqqgtr:k$,LessEqualGreater:L$,LessFullEqual:P$,LessGreater:U$,lessgtr:F$,LessLess:B$,lesssim:G$,LessSlantEqual:V$,LessTilde:z$,lfisht:H$,lfloor:q$,Lfr:Y$,lfr:$$,lg:W$,lgE:K$,lHar:j$,lhard:Q$,lharu:X$,lharul:Z$,lhblk:J$,LJcy:eW,ljcy:tW,llarr:nW,ll:sW,Ll:iW,llcorner:rW,Lleftarrow:oW,llhard:aW,lltri:lW,Lmidot:cW,lmidot:dW,lmoustache:uW,lmoust:pW,lnap:_W,lnapprox:hW,lne:fW,lnE:mW,lneq:gW,lneqq:bW,lnsim:EW,loang:yW,loarr:vW,lobrk:SW,longleftarrow:TW,LongLeftArrow:xW,Longleftarrow:CW,longleftrightarrow:wW,LongLeftRightArrow:RW,Longleftrightarrow:AW,longmapsto:NW,longrightarrow:OW,LongRightArrow:IW,Longrightarrow:MW,looparrowleft:DW,looparrowright:kW,lopar:LW,Lopf:PW,lopf:UW,loplus:FW,lotimes:BW,lowast:GW,lowbar:VW,LowerLeftArrow:zW,LowerRightArrow:HW,loz:qW,lozenge:YW,lozf:$W,lpar:WW,lparlt:KW,lrarr:jW,lrcorner:QW,lrhar:XW,lrhard:ZW,lrm:JW,lrtri:eK,lsaquo:tK,lscr:nK,Lscr:sK,lsh:iK,Lsh:rK,lsim:oK,lsime:aK,lsimg:lK,lsqb:cK,lsquo:dK,lsquor:uK,Lstrok:pK,lstrok:_K,ltcc:hK,ltcir:fK,lt:mK,LT:gK,Lt:bK,ltdot:EK,lthree:yK,ltimes:vK,ltlarr:SK,ltquest:TK,ltri:xK,ltrie:CK,ltrif:wK,ltrPar:RK,lurdshar:AK,luruhar:NK,lvertneqq:OK,lvnE:IK,macr:MK,male:DK,malt:kK,maltese:LK,Map:"⤅",map:PK,mapsto:UK,mapstodown:FK,mapstoleft:BK,mapstoup:GK,marker:VK,mcomma:zK,Mcy:HK,mcy:qK,mdash:YK,mDDot:$K,measuredangle:WK,MediumSpace:KK,Mellintrf:jK,Mfr:QK,mfr:XK,mho:ZK,micro:JK,midast:ej,midcir:tj,mid:nj,middot:sj,minusb:ij,minus:rj,minusd:oj,minusdu:aj,MinusPlus:lj,mlcp:cj,mldr:dj,mnplus:uj,models:pj,Mopf:_j,mopf:hj,mp:fj,mscr:mj,Mscr:gj,mstpos:bj,Mu:Ej,mu:yj,multimap:vj,mumap:Sj,nabla:Tj,Nacute:xj,nacute:Cj,nang:wj,nap:Rj,napE:Aj,napid:Nj,napos:Oj,napprox:Ij,natural:Mj,naturals:Dj,natur:kj,nbsp:Lj,nbump:Pj,nbumpe:Uj,ncap:Fj,Ncaron:Bj,ncaron:Gj,Ncedil:Vj,ncedil:zj,ncong:Hj,ncongdot:qj,ncup:Yj,Ncy:$j,ncy:Wj,ndash:Kj,nearhk:jj,nearr:Qj,neArr:Xj,nearrow:Zj,ne:Jj,nedot:eQ,NegativeMediumSpace:tQ,NegativeThickSpace:nQ,NegativeThinSpace:sQ,NegativeVeryThinSpace:iQ,nequiv:rQ,nesear:oQ,nesim:aQ,NestedGreaterGreater:lQ,NestedLessLess:cQ,NewLine:dQ,nexist:uQ,nexists:pQ,Nfr:_Q,nfr:hQ,ngE:fQ,nge:mQ,ngeq:gQ,ngeqq:bQ,ngeqslant:EQ,nges:yQ,nGg:vQ,ngsim:SQ,nGt:TQ,ngt:xQ,ngtr:CQ,nGtv:wQ,nharr:RQ,nhArr:AQ,nhpar:NQ,ni:OQ,nis:IQ,nisd:MQ,niv:DQ,NJcy:kQ,njcy:LQ,nlarr:PQ,nlArr:UQ,nldr:FQ,nlE:BQ,nle:GQ,nleftarrow:VQ,nLeftarrow:zQ,nleftrightarrow:HQ,nLeftrightarrow:qQ,nleq:YQ,nleqq:$Q,nleqslant:WQ,nles:KQ,nless:jQ,nLl:QQ,nlsim:XQ,nLt:ZQ,nlt:JQ,nltri:eX,nltrie:tX,nLtv:nX,nmid:sX,NoBreak:iX,NonBreakingSpace:rX,nopf:oX,Nopf:aX,Not:lX,not:cX,NotCongruent:dX,NotCupCap:uX,NotDoubleVerticalBar:pX,NotElement:_X,NotEqual:hX,NotEqualTilde:fX,NotExists:mX,NotGreater:gX,NotGreaterEqual:bX,NotGreaterFullEqual:EX,NotGreaterGreater:yX,NotGreaterLess:vX,NotGreaterSlantEqual:SX,NotGreaterTilde:TX,NotHumpDownHump:xX,NotHumpEqual:CX,notin:wX,notindot:RX,notinE:AX,notinva:NX,notinvb:OX,notinvc:IX,NotLeftTriangleBar:MX,NotLeftTriangle:DX,NotLeftTriangleEqual:kX,NotLess:LX,NotLessEqual:PX,NotLessGreater:UX,NotLessLess:FX,NotLessSlantEqual:BX,NotLessTilde:GX,NotNestedGreaterGreater:VX,NotNestedLessLess:zX,notni:HX,notniva:qX,notnivb:YX,notnivc:$X,NotPrecedes:WX,NotPrecedesEqual:KX,NotPrecedesSlantEqual:jX,NotReverseElement:QX,NotRightTriangleBar:XX,NotRightTriangle:ZX,NotRightTriangleEqual:JX,NotSquareSubset:eZ,NotSquareSubsetEqual:tZ,NotSquareSuperset:nZ,NotSquareSupersetEqual:sZ,NotSubset:iZ,NotSubsetEqual:rZ,NotSucceeds:oZ,NotSucceedsEqual:aZ,NotSucceedsSlantEqual:lZ,NotSucceedsTilde:cZ,NotSuperset:dZ,NotSupersetEqual:uZ,NotTilde:pZ,NotTildeEqual:_Z,NotTildeFullEqual:hZ,NotTildeTilde:fZ,NotVerticalBar:mZ,nparallel:gZ,npar:bZ,nparsl:EZ,npart:yZ,npolint:vZ,npr:SZ,nprcue:TZ,nprec:xZ,npreceq:CZ,npre:wZ,nrarrc:RZ,nrarr:AZ,nrArr:NZ,nrarrw:OZ,nrightarrow:IZ,nRightarrow:MZ,nrtri:DZ,nrtrie:kZ,nsc:LZ,nsccue:PZ,nsce:UZ,Nscr:FZ,nscr:BZ,nshortmid:GZ,nshortparallel:VZ,nsim:zZ,nsime:HZ,nsimeq:qZ,nsmid:YZ,nspar:$Z,nsqsube:WZ,nsqsupe:KZ,nsub:jZ,nsubE:QZ,nsube:XZ,nsubset:ZZ,nsubseteq:JZ,nsubseteqq:eJ,nsucc:tJ,nsucceq:nJ,nsup:sJ,nsupE:iJ,nsupe:rJ,nsupset:oJ,nsupseteq:aJ,nsupseteqq:lJ,ntgl:cJ,Ntilde:dJ,ntilde:uJ,ntlg:pJ,ntriangleleft:_J,ntrianglelefteq:hJ,ntriangleright:fJ,ntrianglerighteq:mJ,Nu:gJ,nu:bJ,num:EJ,numero:yJ,numsp:vJ,nvap:SJ,nvdash:TJ,nvDash:xJ,nVdash:CJ,nVDash:wJ,nvge:RJ,nvgt:AJ,nvHarr:NJ,nvinfin:OJ,nvlArr:IJ,nvle:MJ,nvlt:DJ,nvltrie:kJ,nvrArr:LJ,nvrtrie:PJ,nvsim:UJ,nwarhk:FJ,nwarr:BJ,nwArr:GJ,nwarrow:VJ,nwnear:zJ,Oacute:HJ,oacute:qJ,oast:YJ,Ocirc:$J,ocirc:WJ,ocir:KJ,Ocy:jJ,ocy:QJ,odash:XJ,Odblac:ZJ,odblac:JJ,odiv:eee,odot:tee,odsold:nee,OElig:see,oelig:iee,ofcir:ree,Ofr:oee,ofr:aee,ogon:lee,Ograve:cee,ograve:dee,ogt:uee,ohbar:pee,ohm:_ee,oint:hee,olarr:fee,olcir:mee,olcross:gee,oline:bee,olt:Eee,Omacr:yee,omacr:vee,Omega:See,omega:Tee,Omicron:xee,omicron:Cee,omid:wee,ominus:Ree,Oopf:Aee,oopf:Nee,opar:Oee,OpenCurlyDoubleQuote:Iee,OpenCurlyQuote:Mee,operp:Dee,oplus:kee,orarr:Lee,Or:Pee,or:Uee,ord:Fee,order:Bee,orderof:Gee,ordf:Vee,ordm:zee,origof:Hee,oror:qee,orslope:Yee,orv:$ee,oS:Wee,Oscr:Kee,oscr:jee,Oslash:Qee,oslash:Xee,osol:Zee,Otilde:Jee,otilde:ete,otimesas:tte,Otimes:nte,otimes:ste,Ouml:ite,ouml:rte,ovbar:ote,OverBar:ate,OverBrace:lte,OverBracket:cte,OverParenthesis:dte,para:ute,parallel:pte,par:_te,parsim:hte,parsl:fte,part:mte,PartialD:gte,Pcy:bte,pcy:Ete,percnt:yte,period:vte,permil:Ste,perp:Tte,pertenk:xte,Pfr:Cte,pfr:wte,Phi:Rte,phi:Ate,phiv:Nte,phmmat:Ote,phone:Ite,Pi:Mte,pi:Dte,pitchfork:kte,piv:Lte,planck:Pte,planckh:Ute,plankv:Fte,plusacir:Bte,plusb:Gte,pluscir:Vte,plus:zte,plusdo:Hte,plusdu:qte,pluse:Yte,PlusMinus:$te,plusmn:Wte,plussim:Kte,plustwo:jte,pm:Qte,Poincareplane:Xte,pointint:Zte,popf:Jte,Popf:ene,pound:tne,prap:nne,Pr:sne,pr:ine,prcue:rne,precapprox:one,prec:ane,preccurlyeq:lne,Precedes:cne,PrecedesEqual:dne,PrecedesSlantEqual:une,PrecedesTilde:pne,preceq:_ne,precnapprox:hne,precneqq:fne,precnsim:mne,pre:gne,prE:bne,precsim:Ene,prime:yne,Prime:vne,primes:Sne,prnap:Tne,prnE:xne,prnsim:Cne,prod:wne,Product:Rne,profalar:Ane,profline:Nne,profsurf:One,prop:Ine,Proportional:Mne,Proportion:Dne,propto:kne,prsim:Lne,prurel:Pne,Pscr:Une,pscr:Fne,Psi:Bne,psi:Gne,puncsp:Vne,Qfr:zne,qfr:Hne,qint:qne,qopf:Yne,Qopf:$ne,qprime:Wne,Qscr:Kne,qscr:jne,quaternions:Qne,quatint:Xne,quest:Zne,questeq:Jne,quot:ese,QUOT:tse,rAarr:nse,race:sse,Racute:ise,racute:rse,radic:ose,raemptyv:ase,rang:lse,Rang:cse,rangd:dse,range:use,rangle:pse,raquo:_se,rarrap:hse,rarrb:fse,rarrbfs:mse,rarrc:gse,rarr:bse,Rarr:Ese,rArr:yse,rarrfs:vse,rarrhk:Sse,rarrlp:Tse,rarrpl:xse,rarrsim:Cse,Rarrtl:wse,rarrtl:Rse,rarrw:Ase,ratail:Nse,rAtail:Ose,ratio:Ise,rationals:Mse,rbarr:Dse,rBarr:kse,RBarr:Lse,rbbrk:Pse,rbrace:Use,rbrack:Fse,rbrke:Bse,rbrksld:Gse,rbrkslu:Vse,Rcaron:zse,rcaron:Hse,Rcedil:qse,rcedil:Yse,rceil:$se,rcub:Wse,Rcy:Kse,rcy:jse,rdca:Qse,rdldhar:Xse,rdquo:Zse,rdquor:Jse,rdsh:eie,real:tie,realine:nie,realpart:sie,reals:iie,Re:rie,rect:oie,reg:aie,REG:lie,ReverseElement:cie,ReverseEquilibrium:die,ReverseUpEquilibrium:uie,rfisht:pie,rfloor:_ie,rfr:hie,Rfr:fie,rHar:mie,rhard:gie,rharu:bie,rharul:Eie,Rho:yie,rho:vie,rhov:Sie,RightAngleBracket:Tie,RightArrowBar:xie,rightarrow:Cie,RightArrow:wie,Rightarrow:Rie,RightArrowLeftArrow:Aie,rightarrowtail:Nie,RightCeiling:Oie,RightDoubleBracket:Iie,RightDownTeeVector:Mie,RightDownVectorBar:Die,RightDownVector:kie,RightFloor:Lie,rightharpoondown:Pie,rightharpoonup:Uie,rightleftarrows:Fie,rightleftharpoons:Bie,rightrightarrows:Gie,rightsquigarrow:Vie,RightTeeArrow:zie,RightTee:Hie,RightTeeVector:qie,rightthreetimes:Yie,RightTriangleBar:$ie,RightTriangle:Wie,RightTriangleEqual:Kie,RightUpDownVector:jie,RightUpTeeVector:Qie,RightUpVectorBar:Xie,RightUpVector:Zie,RightVectorBar:Jie,RightVector:ere,ring:tre,risingdotseq:nre,rlarr:sre,rlhar:ire,rlm:rre,rmoustache:ore,rmoust:are,rnmid:lre,roang:cre,roarr:dre,robrk:ure,ropar:pre,ropf:_re,Ropf:hre,roplus:fre,rotimes:mre,RoundImplies:gre,rpar:bre,rpargt:Ere,rppolint:yre,rrarr:vre,Rrightarrow:Sre,rsaquo:Tre,rscr:xre,Rscr:Cre,rsh:wre,Rsh:Rre,rsqb:Are,rsquo:Nre,rsquor:Ore,rthree:Ire,rtimes:Mre,rtri:Dre,rtrie:kre,rtrif:Lre,rtriltri:Pre,RuleDelayed:Ure,ruluhar:Fre,rx:Bre,Sacute:Gre,sacute:Vre,sbquo:zre,scap:Hre,Scaron:qre,scaron:Yre,Sc:$re,sc:Wre,sccue:Kre,sce:jre,scE:Qre,Scedil:Xre,scedil:Zre,Scirc:Jre,scirc:eoe,scnap:toe,scnE:noe,scnsim:soe,scpolint:ioe,scsim:roe,Scy:ooe,scy:aoe,sdotb:loe,sdot:coe,sdote:doe,searhk:uoe,searr:poe,seArr:_oe,searrow:hoe,sect:foe,semi:moe,seswar:goe,setminus:boe,setmn:Eoe,sext:yoe,Sfr:voe,sfr:Soe,sfrown:Toe,sharp:xoe,SHCHcy:Coe,shchcy:woe,SHcy:Roe,shcy:Aoe,ShortDownArrow:Noe,ShortLeftArrow:Ooe,shortmid:Ioe,shortparallel:Moe,ShortRightArrow:Doe,ShortUpArrow:koe,shy:Loe,Sigma:Poe,sigma:Uoe,sigmaf:Foe,sigmav:Boe,sim:Goe,simdot:Voe,sime:zoe,simeq:Hoe,simg:qoe,simgE:Yoe,siml:$oe,simlE:Woe,simne:Koe,simplus:joe,simrarr:Qoe,slarr:Xoe,SmallCircle:Zoe,smallsetminus:Joe,smashp:eae,smeparsl:tae,smid:nae,smile:sae,smt:iae,smte:rae,smtes:oae,SOFTcy:aae,softcy:lae,solbar:cae,solb:dae,sol:uae,Sopf:pae,sopf:_ae,spades:hae,spadesuit:fae,spar:mae,sqcap:gae,sqcaps:bae,sqcup:Eae,sqcups:yae,Sqrt:vae,sqsub:Sae,sqsube:Tae,sqsubset:xae,sqsubseteq:Cae,sqsup:wae,sqsupe:Rae,sqsupset:Aae,sqsupseteq:Nae,square:Oae,Square:Iae,SquareIntersection:Mae,SquareSubset:Dae,SquareSubsetEqual:kae,SquareSuperset:Lae,SquareSupersetEqual:Pae,SquareUnion:Uae,squarf:Fae,squ:Bae,squf:Gae,srarr:Vae,Sscr:zae,sscr:Hae,ssetmn:qae,ssmile:Yae,sstarf:$ae,Star:Wae,star:Kae,starf:jae,straightepsilon:Qae,straightphi:Xae,strns:Zae,sub:Jae,Sub:ele,subdot:tle,subE:nle,sube:sle,subedot:ile,submult:rle,subnE:ole,subne:ale,subplus:lle,subrarr:cle,subset:dle,Subset:ule,subseteq:ple,subseteqq:_le,SubsetEqual:hle,subsetneq:fle,subsetneqq:mle,subsim:gle,subsub:ble,subsup:Ele,succapprox:yle,succ:vle,succcurlyeq:Sle,Succeeds:Tle,SucceedsEqual:xle,SucceedsSlantEqual:Cle,SucceedsTilde:wle,succeq:Rle,succnapprox:Ale,succneqq:Nle,succnsim:Ole,succsim:Ile,SuchThat:Mle,sum:Dle,Sum:kle,sung:Lle,sup1:Ple,sup2:Ule,sup3:Fle,sup:Ble,Sup:Gle,supdot:Vle,supdsub:zle,supE:Hle,supe:qle,supedot:Yle,Superset:$le,SupersetEqual:Wle,suphsol:Kle,suphsub:jle,suplarr:Qle,supmult:Xle,supnE:Zle,supne:Jle,supplus:ece,supset:tce,Supset:nce,supseteq:sce,supseteqq:ice,supsetneq:rce,supsetneqq:oce,supsim:ace,supsub:lce,supsup:cce,swarhk:dce,swarr:uce,swArr:pce,swarrow:_ce,swnwar:hce,szlig:fce,Tab:mce,target:gce,Tau:bce,tau:Ece,tbrk:yce,Tcaron:vce,tcaron:Sce,Tcedil:Tce,tcedil:xce,Tcy:Cce,tcy:wce,tdot:Rce,telrec:Ace,Tfr:Nce,tfr:Oce,there4:Ice,therefore:Mce,Therefore:Dce,Theta:kce,theta:Lce,thetasym:Pce,thetav:Uce,thickapprox:Fce,thicksim:Bce,ThickSpace:Gce,ThinSpace:Vce,thinsp:zce,thkap:Hce,thksim:qce,THORN:Yce,thorn:$ce,tilde:Wce,Tilde:Kce,TildeEqual:jce,TildeFullEqual:Qce,TildeTilde:Xce,timesbar:Zce,timesb:Jce,times:ede,timesd:tde,tint:nde,toea:sde,topbot:ide,topcir:rde,top:ode,Topf:ade,topf:lde,topfork:cde,tosa:dde,tprime:ude,trade:pde,TRADE:_de,triangle:hde,triangledown:fde,triangleleft:mde,trianglelefteq:gde,triangleq:bde,triangleright:Ede,trianglerighteq:yde,tridot:vde,trie:Sde,triminus:Tde,TripleDot:xde,triplus:Cde,trisb:wde,tritime:Rde,trpezium:Ade,Tscr:Nde,tscr:Ode,TScy:Ide,tscy:Mde,TSHcy:Dde,tshcy:kde,Tstrok:Lde,tstrok:Pde,twixt:Ude,twoheadleftarrow:Fde,twoheadrightarrow:Bde,Uacute:Gde,uacute:Vde,uarr:zde,Uarr:Hde,uArr:qde,Uarrocir:Yde,Ubrcy:$de,ubrcy:Wde,Ubreve:Kde,ubreve:jde,Ucirc:Qde,ucirc:Xde,Ucy:Zde,ucy:Jde,udarr:eue,Udblac:tue,udblac:nue,udhar:sue,ufisht:iue,Ufr:rue,ufr:oue,Ugrave:aue,ugrave:lue,uHar:cue,uharl:due,uharr:uue,uhblk:pue,ulcorn:_ue,ulcorner:hue,ulcrop:fue,ultri:mue,Umacr:gue,umacr:bue,uml:Eue,UnderBar:yue,UnderBrace:vue,UnderBracket:Sue,UnderParenthesis:Tue,Union:xue,UnionPlus:Cue,Uogon:wue,uogon:Rue,Uopf:Aue,uopf:Nue,UpArrowBar:Oue,uparrow:Iue,UpArrow:Mue,Uparrow:Due,UpArrowDownArrow:kue,updownarrow:Lue,UpDownArrow:Pue,Updownarrow:Uue,UpEquilibrium:Fue,upharpoonleft:Bue,upharpoonright:Gue,uplus:Vue,UpperLeftArrow:zue,UpperRightArrow:Hue,upsi:que,Upsi:Yue,upsih:$ue,Upsilon:Wue,upsilon:Kue,UpTeeArrow:jue,UpTee:Que,upuparrows:Xue,urcorn:Zue,urcorner:Jue,urcrop:epe,Uring:tpe,uring:npe,urtri:spe,Uscr:ipe,uscr:rpe,utdot:ope,Utilde:ape,utilde:lpe,utri:cpe,utrif:dpe,uuarr:upe,Uuml:ppe,uuml:_pe,uwangle:hpe,vangrt:fpe,varepsilon:mpe,varkappa:gpe,varnothing:bpe,varphi:Epe,varpi:ype,varpropto:vpe,varr:Spe,vArr:Tpe,varrho:xpe,varsigma:Cpe,varsubsetneq:wpe,varsubsetneqq:Rpe,varsupsetneq:Ape,varsupsetneqq:Npe,vartheta:Ope,vartriangleleft:Ipe,vartriangleright:Mpe,vBar:Dpe,Vbar:kpe,vBarv:Lpe,Vcy:Ppe,vcy:Upe,vdash:Fpe,vDash:Bpe,Vdash:Gpe,VDash:Vpe,Vdashl:zpe,veebar:Hpe,vee:qpe,Vee:Ype,veeeq:$pe,vellip:Wpe,verbar:Kpe,Verbar:jpe,vert:Qpe,Vert:Xpe,VerticalBar:Zpe,VerticalLine:Jpe,VerticalSeparator:e_e,VerticalTilde:t_e,VeryThinSpace:n_e,Vfr:s_e,vfr:i_e,vltri:r_e,vnsub:o_e,vnsup:a_e,Vopf:l_e,vopf:c_e,vprop:d_e,vrtri:u_e,Vscr:p_e,vscr:__e,vsubnE:h_e,vsubne:f_e,vsupnE:m_e,vsupne:g_e,Vvdash:b_e,vzigzag:E_e,Wcirc:y_e,wcirc:v_e,wedbar:S_e,wedge:T_e,Wedge:x_e,wedgeq:C_e,weierp:w_e,Wfr:R_e,wfr:A_e,Wopf:N_e,wopf:O_e,wp:I_e,wr:M_e,wreath:D_e,Wscr:k_e,wscr:L_e,xcap:P_e,xcirc:U_e,xcup:F_e,xdtri:B_e,Xfr:G_e,xfr:V_e,xharr:z_e,xhArr:H_e,Xi:q_e,xi:Y_e,xlarr:$_e,xlArr:W_e,xmap:K_e,xnis:j_e,xodot:Q_e,Xopf:X_e,xopf:Z_e,xoplus:J_e,xotime:ehe,xrarr:the,xrArr:nhe,Xscr:she,xscr:ihe,xsqcup:rhe,xuplus:ohe,xutri:ahe,xvee:lhe,xwedge:che,Yacute:dhe,yacute:uhe,YAcy:phe,yacy:_he,Ycirc:hhe,ycirc:fhe,Ycy:mhe,ycy:ghe,yen:bhe,Yfr:Ehe,yfr:yhe,YIcy:vhe,yicy:She,Yopf:The,yopf:xhe,Yscr:Che,yscr:whe,YUcy:Rhe,yucy:Ahe,yuml:Nhe,Yuml:Ohe,Zacute:Ihe,zacute:Mhe,Zcaron:Dhe,zcaron:khe,Zcy:Lhe,zcy:Phe,Zdot:Uhe,zdot:Fhe,zeetrf:Bhe,ZeroWidthSpace:Ghe,Zeta:Vhe,zeta:zhe,zfr:Hhe,Zfr:qhe,ZHcy:Yhe,zhcy:$he,zigrarr:Whe,zopf:Khe,Zopf:jhe,Zscr:Qhe,zscr:Xhe,zwj:Zhe,zwnj:Jhe};var lA=efe,Mb=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Aa={},uv={};function tfe(n){var e,t,s=uv[n];if(s)return s;for(s=uv[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<n.length;e++)s[n.charCodeAt(e)]=n[e];return s}function wu(n,e,t){var s,i,r,o,a,l="";for(typeof e!="string"&&(t=e,e=wu.defaultChars),typeof t>"u"&&(t=!0),a=tfe(e),s=0,i=n.length;s<i;s++){if(r=n.charCodeAt(s),t&&r===37&&s+2<i&&/^[0-9a-f]{2}$/i.test(n.slice(s+1,s+3))){l+=n.slice(s,s+3),s+=2;continue}if(r<128){l+=a[r];continue}if(r>=55296&&r<=57343){if(r>=55296&&r<=56319&&s+1<i&&(o=n.charCodeAt(s+1),o>=56320&&o<=57343)){l+=encodeURIComponent(n[s]+n[s+1]),s++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(n[s])}return l}wu.defaultChars=";/?:@&=+$,-_.!~*'()#";wu.componentChars="-_.!~*'()";var nfe=wu,pv={};function sfe(n){var e,t,s=pv[n];if(s)return s;for(s=pv[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),s.push(t);for(e=0;e<n.length;e++)t=n.charCodeAt(e),s[t]="%"+("0"+t.toString(16).toUpperCase()).slice(-2);return s}function Ru(n,e){var t;return typeof e!="string"&&(e=Ru.defaultChars),t=sfe(e),n.replace(/(%[a-f0-9]{2})+/gi,function(s){var i,r,o,a,l,u,d,h="";for(i=0,r=s.length;i<r;i+=3){if(o=parseInt(s.slice(i+1,i+3),16),o<128){h+=t[o];continue}if((o&224)===192&&i+3<r&&(a=parseInt(s.slice(i+4,i+6),16),(a&192)===128)){d=o<<6&1984|a&63,d<128?h+="<22><>":h+=String.fromCharCode(d),i+=3;continue}if((o&240)===224&&i+6<r&&(a=parseInt(s.slice(i+4,i+6),16),l=parseInt(s.slice(i+7,i+9),16),(a&192)===128&&(l&192)===128)){d=o<<12&61440|a<<6&4032|l&63,d<2048||d>=55296&&d<=57343?h+="<22><><EFBFBD>":h+=String.fromCharCode(d),i+=6;continue}if((o&248)===240&&i+9<r&&(a=parseInt(s.slice(i+4,i+6),16),l=parseInt(s.slice(i+7,i+9),16),u=parseInt(s.slice(i+10,i+12),16),(a&192)===128&&(l&192)===128&&(u&192)===128)){d=o<<18&1835008|a<<12&258048|l<<6&4032|u&63,d<65536||d>1114111?h+="<22><><EFBFBD><EFBFBD>":(d-=65536,h+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}h+="<22>"}return h})}Ru.defaultChars=";/?:@&=+$,#";Ru.componentChars="";var ife=Ru,rfe=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 Md(){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 ofe=/^([a-z0-9.+-]+:)/i,afe=/:[0-9]*$/,lfe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,cfe=["<",">",'"',"`"," ","\r",`
`," "],dfe=["{","}","|","\\","^","`"].concat(cfe),ufe=["'"].concat(dfe),_v=["%","/","?",";","#"].concat(ufe),hv=["/","?","#"],pfe=255,fv=/^[+a-z0-9A-Z_-]{0,63}$/,_fe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mv={javascript:!0,"javascript:":!0},gv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function hfe(n,e){if(n&&n instanceof Md)return n;var t=new Md;return t.parse(n,e),t}Md.prototype.parse=function(n,e){var t,s,i,r,o,a=n;if(a=a.trim(),!e&&n.split("#").length===1){var l=lfe.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=ofe.exec(a);if(u&&(u=u[0],i=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(e||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(u&&mv[u])&&(a=a.substr(2),this.slashes=!0)),!mv[u]&&(o||u&&!gv[u])){var d=-1;for(t=0;t<hv.length;t++)r=a.indexOf(hv[t]),r!==-1&&(d===-1||r<d)&&(d=r);var h,f;for(d===-1?f=a.lastIndexOf("@"):f=a.lastIndexOf("@",d),f!==-1&&(h=a.slice(0,f),a=a.slice(f+1),this.auth=h),d=-1,t=0;t<_v.length;t++)r=a.indexOf(_v[t]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=a.length),a[d-1]===":"&&d--;var _=a.slice(0,d);a=a.slice(d),this.parseHost(_),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var E=this.hostname.split(/\./);for(t=0,s=E.length;t<s;t++){var b=E[t];if(b&&!b.match(fv)){for(var g="",y=0,v=b.length;y<v;y++)b.charCodeAt(y)>127?g+="x":g+=b[y];if(!g.match(fv)){var S=E.slice(0,t),w=E.slice(t+1),x=b.match(_fe);x&&(S.push(x[1]),w.unshift(x[2])),w.length&&(a=w.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>pfe&&(this.hostname=""),m&&(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 D=a.indexOf("?");return D!==-1&&(this.search=a.substr(D),a=a.slice(0,D)),a&&(this.pathname=a),gv[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Md.prototype.parseHost=function(n){var e=afe.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 ffe=hfe;Aa.encode=nfe;Aa.decode=ife;Aa.format=rfe;Aa.parse=ffe;var vr={},yp,bv;function cA(){return bv||(bv=1,yp=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),yp}var vp,Ev;function dA(){return Ev||(Ev=1,vp=/[\0-\x1F\x7F-\x9F]/),vp}var Sp,yv;function mfe(){return yv||(yv=1,Sp=/[\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]/),Sp}var Tp,vv;function uA(){return vv||(vv=1,Tp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Tp}var Sv;function gfe(){return Sv||(Sv=1,vr.Any=cA(),vr.Cc=dA(),vr.Cf=mfe(),vr.P=Mb,vr.Z=uA()),vr}(function(n){function e(M){return Object.prototype.toString.call(M)}function t(M){return e(M)==="[object String]"}var s=Object.prototype.hasOwnProperty;function i(M,q){return s.call(M,q)}function r(M){var q=Array.prototype.slice.call(arguments,1);return q.forEach(function(H){if(H){if(typeof H!="object")throw new TypeError(H+"must be object");Object.keys(H).forEach(function(P){M[P]=H[P]})}}),M}function o(M,q,H){return[].concat(M.slice(0,q),H,M.slice(q+1))}function a(M){return!(M>=55296&&M<=57343||M>=64976&&M<=65007||(M&65535)===65535||(M&65535)===65534||M>=0&&M<=8||M===11||M>=14&&M<=31||M>=127&&M<=159||M>1114111)}function l(M){if(M>65535){M-=65536;var q=55296+(M>>10),H=56320+(M&1023);return String.fromCharCode(q,H)}return String.fromCharCode(M)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(u.source+"|"+d.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,_=lA;function m(M,q){var H;return i(_,q)?_[q]:q.charCodeAt(0)===35&&f.test(q)&&(H=q[1].toLowerCase()==="x"?parseInt(q.slice(2),16):parseInt(q.slice(1),10),a(H))?l(H):M}function E(M){return M.indexOf("\\")<0?M:M.replace(u,"$1")}function b(M){return M.indexOf("\\")<0&&M.indexOf("&")<0?M:M.replace(h,function(q,H,P){return H||m(q,P)})}var g=/[&<>"]/,y=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function S(M){return v[M]}function w(M){return g.test(M)?M.replace(y,S):M}var x=/[.?*+^$[\]\\(){}|-]/g;function A(M){return M.replace(x,"\\$&")}function D(M){switch(M){case 9:case 32:return!0}return!1}function T(M){if(M>=8192&&M<=8202)return!0;switch(M){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 O=Mb;function F(M){return O.test(M)}function z(M){switch(M){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 Z(M){return M=M.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(M=M.replace(/ẞ/g,"ß")),M.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Aa,n.lib.ucmicro=gfe(),n.assign=r,n.isString=t,n.has=i,n.unescapeMd=E,n.unescapeAll=b,n.isValidEntityCode=a,n.fromCodePoint=l,n.escapeHtml=w,n.arrayReplaceAt=o,n.isSpace=D,n.isWhiteSpace=T,n.isMdAsciiPunct=z,n.isPunctChar=F,n.escapeRE=A,n.normalizeReference=Z})(Pt);var Au={},bfe=function(e,t,s){var i,r,o,a,l=-1,u=e.posMax,d=e.pos;for(e.pos=t+1,i=1;e.pos<u;){if(o=e.src.charCodeAt(e.pos),o===93&&(i--,i===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)i++;else if(s)return e.pos=d,-1}}return r&&(l=e.pos),e.pos=d,l},Tv=Pt.unescapeAll,Efe=function(e,t,s){var i,r,o=t,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<s;){if(i=e.charCodeAt(o),i===10||i===60)return a;if(i===62)return a.pos=o+1,a.str=Tv(e.slice(t+1,o)),a.ok=!0,a;if(i===92&&o+1<s){o+=2;continue}o++}return a}for(r=0;o<s&&(i=e.charCodeAt(o),!(i===32||i<32||i===127));){if(i===92&&o+1<s){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(i===40&&(r++,r>32))return a;if(i===41){if(r===0)break;r--}o++}return t===o||r!==0||(a.str=Tv(e.slice(t,o)),a.pos=o,a.ok=!0),a},yfe=Pt.unescapeAll,vfe=function(e,t,s){var i,r,o=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(a>=s||(r=e.charCodeAt(a),r!==34&&r!==39&&r!==40))return l;for(a++,r===40&&(r=41);a<s;){if(i=e.charCodeAt(a),i===r)return l.pos=a+1,l.lines=o,l.str=yfe(e.slice(t+1,a)),l.ok=!0,l;if(i===40&&r===41)return l;i===10?o++:i===92&&a+1<s&&(a++,e.charCodeAt(a)===10&&o++),a++}return l};Au.parseLinkLabel=bfe;Au.parseLinkDestination=Efe;Au.parseLinkTitle=vfe;var Sfe=Pt.assign,Tfe=Pt.unescapeAll,Kr=Pt.escapeHtml,ni={};ni.code_inline=function(n,e,t,s,i){var r=n[e];return"<code"+i.renderAttrs(r)+">"+Kr(r.content)+"</code>"};ni.code_block=function(n,e,t,s,i){var r=n[e];return"<pre"+i.renderAttrs(r)+"><code>"+Kr(n[e].content)+`</code></pre>
`};ni.fence=function(n,e,t,s,i){var r=n[e],o=r.info?Tfe(r.info).trim():"",a="",l="",u,d,h,f,_;return o&&(h=o.split(/(\s+)/g),a=h[0],l=h.slice(2).join("")),t.highlight?u=t.highlight(r.content,a,l)||Kr(r.content):u=Kr(r.content),u.indexOf("<pre")===0?u+`
`:o?(d=r.attrIndex("class"),f=r.attrs?r.attrs.slice():[],d<0?f.push(["class",t.langPrefix+a]):(f[d]=f[d].slice(),f[d][1]+=" "+t.langPrefix+a),_={attrs:f},"<pre><code"+i.renderAttrs(_)+">"+u+`</code></pre>
`):"<pre><code"+i.renderAttrs(r)+">"+u+`</code></pre>
`};ni.image=function(n,e,t,s,i){var r=n[e];return r.attrs[r.attrIndex("alt")][1]=i.renderInlineAsText(r.children,t,s),i.renderToken(n,e,t)};ni.hardbreak=function(n,e,t){return t.xhtmlOut?`<br />
`:`<br>
`};ni.softbreak=function(n,e,t){return t.breaks?t.xhtmlOut?`<br />
`:`<br>
`:`
`};ni.text=function(n,e){return Kr(n[e].content)};ni.html_block=function(n,e){return n[e].content};ni.html_inline=function(n,e){return n[e].content};function Na(){this.rules=Sfe({},ni)}Na.prototype.renderAttrs=function(e){var t,s,i;if(!e.attrs)return"";for(i="",t=0,s=e.attrs.length;t<s;t++)i+=" "+Kr(e.attrs[t][0])+'="'+Kr(e.attrs[t][1])+'"';return i};Na.prototype.renderToken=function(e,t,s){var i,r="",o=!1,a=e[t];return a.hidden?"":(a.block&&a.nesting!==-1&&t&&e[t-1].hidden&&(r+=`
`),r+=(a.nesting===-1?"</":"<")+a.tag,r+=this.renderAttrs(a),a.nesting===0&&s.xhtmlOut&&(r+=" /"),a.block&&(o=!0,a.nesting===1&&t+1<e.length&&(i=e[t+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===a.tag)&&(o=!1))),r+=o?`>
`:">",r)};Na.prototype.renderInline=function(n,e,t){for(var s,i="",r=this.rules,o=0,a=n.length;o<a;o++)s=n[o].type,typeof r[s]<"u"?i+=r[s](n,o,e,t,this):i+=this.renderToken(n,o,e);return i};Na.prototype.renderInlineAsText=function(n,e,t){for(var s="",i=0,r=n.length;i<r;i++)n[i].type==="text"?s+=n[i].content:n[i].type==="image"?s+=this.renderInlineAsText(n[i].children,e,t):n[i].type==="softbreak"&&(s+=`
`);return s};Na.prototype.render=function(n,e,t){var s,i,r,o="",a=this.rules;for(s=0,i=n.length;s<i;s++)r=n[s].type,r==="inline"?o+=this.renderInline(n[s].children,e,t):typeof a[r]<"u"?o+=a[r](n,s,e,t,this):o+=this.renderToken(n,s,e,t);return o};var xfe=Na;function Us(){this.__rules__=[],this.__cache__=null}Us.prototype.__find__=function(n){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===n)return e;return-1};Us.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(s){e.indexOf(s)<0&&e.push(s)})}),n.__cache__={},e.forEach(function(t){n.__cache__[t]=[],n.__rules__.forEach(function(s){s.enabled&&(t&&s.alt.indexOf(t)<0||n.__cache__[t].push(s.fn))})})};Us.prototype.at=function(n,e,t){var s=this.__find__(n),i=t||{};if(s===-1)throw new Error("Parser rule not found: "+n);this.__rules__[s].fn=e,this.__rules__[s].alt=i.alt||[],this.__cache__=null};Us.prototype.before=function(n,e,t,s){var i=this.__find__(n),r=s||{};if(i===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Us.prototype.after=function(n,e,t,s){var i=this.__find__(n),r=s||{};if(i===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Us.prototype.push=function(n,e,t){var s=t||{};this.__rules__.push({name:n,enabled:!0,fn:e,alt:s.alt||[]}),this.__cache__=null};Us.prototype.enable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(s){var i=this.__find__(s);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+s)}this.__rules__[i].enabled=!0,t.push(s)},this),this.__cache__=null,t};Us.prototype.enableOnly=function(n,e){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(n,e)};Us.prototype.disable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(s){var i=this.__find__(s);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+s)}this.__rules__[i].enabled=!1,t.push(s)},this),this.__cache__=null,t};Us.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};var Db=Us,Cfe=/\r\n?|\n/g,wfe=/\0/g,Rfe=function(e){var t;t=e.src.replace(Cfe,`
`),t=t.replace(wfe,"<22>"),e.src=t},Afe=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Nfe=function(e){var t=e.tokens,s,i,r;for(i=0,r=t.length;i<r;i++)s=t[i],s.type==="inline"&&e.md.inline.parse(s.content,e.md,e.env,s.children)},Ofe=Pt.arrayReplaceAt;function Ife(n){return/^<a[>\s]/i.test(n)}function Mfe(n){return/^<\/a\s*>/i.test(n)}var Dfe=function(e){var t,s,i,r,o,a,l,u,d,h,f,_,m,E,b,g,y=e.tokens,v;if(e.md.options.linkify){for(s=0,i=y.length;s<i;s++)if(!(y[s].type!=="inline"||!e.md.linkify.pretest(y[s].content)))for(r=y[s].children,m=0,t=r.length-1;t>=0;t--){if(a=r[t],a.type==="link_close"){for(t--;r[t].level!==a.level&&r[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(Ife(a.content)&&m>0&&m--,Mfe(a.content)&&m++),!(m>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(d=a.content,v=e.md.linkify.match(d),l=[],_=a.level,f=0,v.length>0&&v[0].index===0&&t>0&&r[t-1].type==="text_special"&&(v=v.slice(1)),u=0;u<v.length;u++)E=v[u].url,b=e.md.normalizeLink(E),e.md.validateLink(b)&&(g=v[u].text,v[u].schema?v[u].schema==="mailto:"&&!/^mailto:/i.test(g)?g=e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):g=e.md.normalizeLinkText(g):g=e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),h=v[u].index,h>f&&(o=new e.Token("text","",0),o.content=d.slice(f,h),o.level=_,l.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=_++,o.markup="linkify",o.info="auto",l.push(o),o=new e.Token("text","",0),o.content=g,o.level=_,l.push(o),o=new e.Token("link_close","a",-1),o.level=--_,o.markup="linkify",o.info="auto",l.push(o),f=v[u].lastIndex);f<d.length&&(o=new e.Token("text","",0),o.content=d.slice(f),o.level=_,l.push(o)),y[s].children=r=Ofe(r,t,l)}}}},pA=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,kfe=/\((c|tm|r)\)/i,Lfe=/\((c|tm|r)\)/ig,Pfe={c:"©",r:"®",tm:"™"};function Ufe(n,e){return Pfe[e.toLowerCase()]}function Ffe(n){var e,t,s=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!s&&(t.content=t.content.replace(Lfe,Ufe)),t.type==="link_open"&&t.info==="auto"&&s--,t.type==="link_close"&&t.info==="auto"&&s++}function Bfe(n){var e,t,s=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!s&&pA.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 Gfe=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(kfe.test(e.tokens[t].content)&&Ffe(e.tokens[t].children),pA.test(e.tokens[t].content)&&Bfe(e.tokens[t].children))},xv=Pt.isWhiteSpace,Cv=Pt.isPunctChar,wv=Pt.isMdAsciiPunct,Vfe=/['"]/,Rv=/['"]/g,Av="";function mc(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function zfe(n,e){var t,s,i,r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,w,x;for(S=[],t=0;t<n.length;t++){for(s=n[t],l=n[t].level,y=S.length-1;y>=0&&!(S[y].level<=l);y--);if(S.length=y+1,s.type==="text"){i=s.content,o=0,a=i.length;e:for(;o<a&&(Rv.lastIndex=o,r=Rv.exec(i),!!r);){if(b=g=!0,o=r.index+1,v=r[0]==="'",d=32,r.index-1>=0)d=i.charCodeAt(r.index-1);else for(y=t-1;y>=0&&!(n[y].type==="softbreak"||n[y].type==="hardbreak");y--)if(n[y].content){d=n[y].content.charCodeAt(n[y].content.length-1);break}if(h=32,o<a)h=i.charCodeAt(o);else for(y=t+1;y<n.length&&!(n[y].type==="softbreak"||n[y].type==="hardbreak");y++)if(n[y].content){h=n[y].content.charCodeAt(0);break}if(f=wv(d)||Cv(String.fromCharCode(d)),_=wv(h)||Cv(String.fromCharCode(h)),m=xv(d),E=xv(h),E?b=!1:_&&(m||f||(b=!1)),m?g=!1:f&&(E||_||(g=!1)),h===34&&r[0]==='"'&&d>=48&&d<=57&&(g=b=!1),b&&g&&(b=f,g=_),!b&&!g){v&&(s.content=mc(s.content,r.index,Av));continue}if(g){for(y=S.length-1;y>=0&&(u=S[y],!(S[y].level<l));y--)if(u.single===v&&S[y].level===l){u=S[y],v?(w=e.md.options.quotes[2],x=e.md.options.quotes[3]):(w=e.md.options.quotes[0],x=e.md.options.quotes[1]),s.content=mc(s.content,r.index,x),n[u.token].content=mc(n[u.token].content,u.pos,w),o+=x.length-1,u.token===t&&(o+=w.length-1),i=s.content,a=i.length,S.length=y;continue e}}b?S.push({token:t,pos:r.index,single:v,level:l}):g&&v&&(s.content=mc(s.content,r.index,Av))}}}}var Hfe=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Vfe.test(e.tokens[t].content)||zfe(e.tokens[t].children,e)},qfe=function(e){var t,s,i,r,o,a,l=e.tokens;for(t=0,s=l.length;t<s;t++)if(l[t].type==="inline"){for(i=l[t].children,o=i.length,r=0;r<o;r++)i[r].type==="text_special"&&(i[r].type="text");for(r=a=0;r<o;r++)i[r].type==="text"&&r+1<o&&i[r+1].type==="text"?i[r+1].content=i[r].content+i[r+1].content:(r!==a&&(i[a]=i[r]),a++);r!==a&&(i.length=a)}};function Oa(n,e,t){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Oa.prototype.attrIndex=function(e){var t,s,i;if(!this.attrs)return-1;for(t=this.attrs,s=0,i=t.length;s<i;s++)if(t[s][0]===e)return s;return-1};Oa.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Oa.prototype.attrSet=function(e,t){var s=this.attrIndex(e),i=[e,t];s<0?this.attrPush(i):this.attrs[s]=i};Oa.prototype.attrGet=function(e){var t=this.attrIndex(e),s=null;return t>=0&&(s=this.attrs[t][1]),s};Oa.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 kb=Oa,Yfe=kb;function _A(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}_A.prototype.Token=Yfe;var $fe=_A,Wfe=Db,xp=[["normalize",Rfe],["block",Afe],["inline",Nfe],["linkify",Dfe],["replacements",Gfe],["smartquotes",Hfe],["text_join",qfe]];function Lb(){this.ruler=new Wfe;for(var n=0;n<xp.length;n++)this.ruler.push(xp[n][0],xp[n][1])}Lb.prototype.process=function(n){var e,t,s;for(s=this.ruler.getRules(""),e=0,t=s.length;e<t;e++)s[e](n)};Lb.prototype.State=$fe;var Kfe=Lb,Cp=Pt.isSpace;function wp(n,e){var t=n.bMarks[e]+n.tShift[e],s=n.eMarks[e];return n.src.slice(t,s)}function Nv(n){var e=[],t=0,s=n.length,i,r=!1,o=0,a="";for(i=n.charCodeAt(t);t<s;)i===124&&(r?(a+=n.substring(o,t-1),o=t):(e.push(a+n.substring(o,t)),a="",o=t+1)),r=i===92,t++,i=n.charCodeAt(t);return e.push(a+n.substring(o)),e}var jfe=function(e,t,s,i){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,w,x;if(t+2>s||(d=t+1,e.sCount[d]<e.blkIndent)||e.sCount[d]-e.blkIndent>=4||(a=e.bMarks[d]+e.tShift[d],a>=e.eMarks[d])||(w=e.src.charCodeAt(a++),w!==124&&w!==45&&w!==58)||a>=e.eMarks[d]||(x=e.src.charCodeAt(a++),x!==124&&x!==45&&x!==58&&!Cp(x))||w===45&&Cp(x))return!1;for(;a<e.eMarks[d];){if(r=e.src.charCodeAt(a),r!==124&&r!==45&&r!==58&&!Cp(r))return!1;a++}for(o=wp(e,t+1),h=o.split("|"),m=[],l=0;l<h.length;l++){if(E=h[l].trim(),!E){if(l===0||l===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?m.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?m.push("left"):m.push("")}if(o=wp(e,t).trim(),o.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(h=Nv(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),f=h.length,f===0||f!==m.length))return!1;if(i)return!0;for(y=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),_=e.push("table_open","table",1),_.map=b=[t,0],_=e.push("thead_open","thead",1),_.map=[t,t+1],_=e.push("tr_open","tr",1),_.map=[t,t+1],l=0;l<h.length;l++)_=e.push("th_open","th",1),m[l]&&(_.attrs=[["style","text-align:"+m[l]]]),_=e.push("inline","",0),_.content=h[l].trim(),_.children=[],_=e.push("th_close","th",-1);for(_=e.push("tr_close","tr",-1),_=e.push("thead_close","thead",-1),d=t+2;d<s&&!(e.sCount[d]<e.blkIndent);d++){for(v=!1,l=0,u=S.length;l<u;l++)if(S[l](e,d,s,!0)){v=!0;break}if(v||(o=wp(e,d).trim(),!o)||e.sCount[d]-e.blkIndent>=4)break;for(h=Nv(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),d===t+2&&(_=e.push("tbody_open","tbody",1),_.map=g=[t+2,0]),_=e.push("tr_open","tr",1),_.map=[d,d+1],l=0;l<f;l++)_=e.push("td_open","td",1),m[l]&&(_.attrs=[["style","text-align:"+m[l]]]),_=e.push("inline","",0),_.content=h[l]?h[l].trim():"",_.children=[],_=e.push("td_close","td",-1);_=e.push("tr_close","tr",-1)}return g&&(_=e.push("tbody_close","tbody",-1),g[1]=d),_=e.push("table_close","table",-1),b[1]=d,e.parentType=y,e.line=d,!0},Qfe=function(e,t,s){var i,r,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(r=i=t+1;i<s;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,r=i;continue}break}return e.line=r,o=e.push("code_block","code",0),o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
`,o.map=[t,e.line],!0},Xfe=function(e,t,s,i){var r,o,a,l,u,d,h,f=!1,_=e.bMarks[t]+e.tShift[t],m=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||_+3>m||(r=e.src.charCodeAt(_),r!==126&&r!==96)||(u=_,_=e.skipChars(_,r),o=_-u,o<3)||(h=e.src.slice(u,_),a=e.src.slice(_,m),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(i)return!0;for(l=t;l++,!(l>=s||(_=u=e.bMarks[l]+e.tShift[l],m=e.eMarks[l],_<m&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(_)===r&&!(e.sCount[l]-e.blkIndent>=4)&&(_=e.skipChars(_,r),!(_-u<o)&&(_=e.skipSpaces(_),!(_<m)))){f=!0;break}return o=e.sCount[t],e.line=l+(f?1:0),d=e.push("fence","code",0),d.info=a,d.content=e.getLines(t+1,l,o,!0),d.markup=h,d.map=[t,e.line],!0},Zfe=Pt.isSpace,Jfe=function(e,t,s,i){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,w,x,A,D,T=e.lineMax,O=e.bMarks[t]+e.tShift[t],F=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(O)!==62)return!1;if(i)return!0;for(m=[],E=[],y=[],v=[],x=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",f=t;f<s&&(D=e.sCount[f]<e.blkIndent,O=e.bMarks[f]+e.tShift[f],F=e.eMarks[f],!(O>=F));f++){if(e.src.charCodeAt(O++)===62&&!D){for(l=e.sCount[f]+1,e.src.charCodeAt(O)===32?(O++,l++,r=!1,S=!0):e.src.charCodeAt(O)===9?(S=!0,(e.bsCount[f]+l)%4===3?(O++,l++,r=!1):r=!0):S=!1,_=l,m.push(e.bMarks[f]),e.bMarks[f]=O;O<F&&(o=e.src.charCodeAt(O),Zfe(o));){o===9?_+=4-(_+e.bsCount[f]+(r?1:0))%4:_++;O++}d=O>=F,E.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(S?1:0),y.push(e.sCount[f]),e.sCount[f]=_-l,v.push(e.tShift[f]),e.tShift[f]=O-e.bMarks[f];continue}if(d)break;for(w=!1,a=0,u=x.length;a<u;a++)if(x[a](e,f,s,!0)){w=!0;break}if(w){e.lineMax=f,e.blkIndent!==0&&(m.push(e.bMarks[f]),E.push(e.bsCount[f]),v.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}m.push(e.bMarks[f]),E.push(e.bsCount[f]),v.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}for(b=e.blkIndent,e.blkIndent=0,A=e.push("blockquote_open","blockquote",1),A.markup=">",A.map=h=[t,0],e.md.block.tokenize(e,t,f),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=T,e.parentType=g,h[1]=e.line,a=0;a<v.length;a++)e.bMarks[a+t]=m[a],e.tShift[a+t]=v[a],e.sCount[a+t]=y[a],e.bsCount[a+t]=E[a];return e.blkIndent=b,!0},eme=Pt.isSpace,tme=function(e,t,s,i){var r,o,a,l,u=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(r=e.src.charCodeAt(u++),r!==42&&r!==45&&r!==95))return!1;for(o=1;u<d;){if(a=e.src.charCodeAt(u++),a!==r&&!eme(a))return!1;a===r&&o++}return o<3?!1:(i||(e.line=t+1,l=e.push("hr","hr",0),l.map=[t,e.line],l.markup=Array(o+1).join(String.fromCharCode(r))),!0)},hA=Pt.isSpace;function Ov(n,e){var t,s,i,r;return s=n.bMarks[e]+n.tShift[e],i=n.eMarks[e],t=n.src.charCodeAt(s++),t!==42&&t!==45&&t!==43||s<i&&(r=n.src.charCodeAt(s),!hA(r))?-1:s}function Iv(n,e){var t,s=n.bMarks[e]+n.tShift[e],i=s,r=n.eMarks[e];if(i+1>=r||(t=n.src.charCodeAt(i++),t<48||t>57))return-1;for(;;){if(i>=r)return-1;if(t=n.src.charCodeAt(i++),t>=48&&t<=57){if(i-s>=10)return-1;continue}if(t===41||t===46)break;return-1}return i<r&&(t=n.src.charCodeAt(i),!hA(t))?-1:i}function nme(n,e){var t,s,i=n.level+2;for(t=e+2,s=n.tokens.length-2;t<s;t++)n.tokens[t].level===i&&n.tokens[t].type==="paragraph_open"&&(n.tokens[t+2].hidden=!0,n.tokens[t].hidden=!0,t+=2)}var sme=function(e,t,s,i){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,w,x,A,D,T,O,F,z,Z,M,q,H=t,P=!1,$=!0;if(e.sCount[H]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[H]-e.listIndent>=4&&e.sCount[H]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[H]>=e.blkIndent&&(P=!0),(O=Iv(e,H))>=0){if(h=!0,z=e.bMarks[H]+e.tShift[H],g=Number(e.src.slice(z,O-1)),P&&g!==1)return!1}else if((O=Ov(e,H))>=0)h=!1;else return!1;if(P&&e.skipSpaces(O)>=e.eMarks[H])return!1;if(i)return!0;for(b=e.src.charCodeAt(O-1),E=e.tokens.length,h?(q=e.push("ordered_list_open","ol",1),g!==1&&(q.attrs=[["start",g]])):q=e.push("bullet_list_open","ul",1),q.map=m=[H,0],q.markup=String.fromCharCode(b),F=!1,M=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";H<s;){for(T=O,y=e.eMarks[H],d=v=e.sCount[H]+O-(e.bMarks[H]+e.tShift[H]);T<y;){if(r=e.src.charCodeAt(T),r===9)v+=4-(v+e.bsCount[H])%4;else if(r===32)v++;else break;T++}if(o=T,o>=y?u=1:u=v-d,u>4&&(u=1),l=d+u,q=e.push("list_item_open","li",1),q.markup=String.fromCharCode(b),q.map=f=[H,0],h&&(q.info=e.src.slice(z,O-1)),D=e.tight,A=e.tShift[H],x=e.sCount[H],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[H]=o-e.bMarks[H],e.sCount[H]=v,o>=y&&e.isEmpty(H+1)?e.line=Math.min(e.line+2,s):e.md.block.tokenize(e,H,s,!0),(!e.tight||F)&&($=!1),F=e.line-H>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[H]=A,e.sCount[H]=x,e.tight=D,q=e.push("list_item_close","li",-1),q.markup=String.fromCharCode(b),H=e.line,f[1]=H,H>=s||e.sCount[H]<e.blkIndent||e.sCount[H]-e.blkIndent>=4)break;for(Z=!1,a=0,_=M.length;a<_;a++)if(M[a](e,H,s,!0)){Z=!0;break}if(Z)break;if(h){if(O=Iv(e,H),O<0)break;z=e.bMarks[H]+e.tShift[H]}else if(O=Ov(e,H),O<0)break;if(b!==e.src.charCodeAt(O-1))break}return h?q=e.push("ordered_list_close","ol",-1):q=e.push("bullet_list_close","ul",-1),q.markup=String.fromCharCode(b),m[1]=H,e.line=H,e.parentType=w,$&&nme(e,E),!0},ime=Pt.normalizeReference,gc=Pt.isSpace,rme=function(e,t,s,i){var r,o,a,l,u,d,h,f,_,m,E,b,g,y,v,S,w=0,x=e.bMarks[t]+e.tShift[t],A=e.eMarks[t],D=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(x)!==91)return!1;for(;++x<A;)if(e.src.charCodeAt(x)===93&&e.src.charCodeAt(x-1)!==92){if(x+1===A||e.src.charCodeAt(x+1)!==58)return!1;break}for(l=e.lineMax,v=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";D<l&&!e.isEmpty(D);D++)if(!(e.sCount[D]-e.blkIndent>3)&&!(e.sCount[D]<0)){for(y=!1,d=0,h=v.length;d<h;d++)if(v[d](e,D,l,!0)){y=!0;break}if(y)break}for(g=e.getLines(t,D,e.blkIndent,!1).trim(),A=g.length,x=1;x<A;x++){if(r=g.charCodeAt(x),r===91)return!1;if(r===93){_=x;break}else r===10?w++:r===92&&(x++,x<A&&g.charCodeAt(x)===10&&w++)}if(_<0||g.charCodeAt(_+1)!==58)return!1;for(x=_+2;x<A;x++)if(r=g.charCodeAt(x),r===10)w++;else if(!gc(r))break;if(E=e.md.helpers.parseLinkDestination(g,x,A),!E.ok||(u=e.md.normalizeLink(E.str),!e.md.validateLink(u)))return!1;for(x=E.pos,w+=E.lines,o=x,a=w,b=x;x<A;x++)if(r=g.charCodeAt(x),r===10)w++;else if(!gc(r))break;for(E=e.md.helpers.parseLinkTitle(g,x,A),x<A&&b!==x&&E.ok?(S=E.str,x=E.pos,w+=E.lines):(S="",x=o,w=a);x<A&&(r=g.charCodeAt(x),!!gc(r));)x++;if(x<A&&g.charCodeAt(x)!==10&&S)for(S="",x=o,w=a;x<A&&(r=g.charCodeAt(x),!!gc(r));)x++;return x<A&&g.charCodeAt(x)!==10||(f=ime(g.slice(1,_)),!f)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:S,href:u}),e.parentType=m,e.line=t+w+1),!0)},ome=["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"],Nu={},ame="[a-zA-Z_:][a-zA-Z0-9:._-]*",lme="[^\"'=<>`\\x00-\\x20]+",cme="'[^']*'",dme='"[^"]*"',ume="(?:"+lme+"|"+cme+"|"+dme+")",pme="(?:\\s+"+ame+"(?:\\s*=\\s*"+ume+")?)",fA="<[A-Za-z][A-Za-z0-9\\-]*"+pme+"*\\s*\\/?>",mA="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",_me="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",hme="<[?][\\s\\S]*?[?]>",fme="<![A-Z]+\\s+[^>]*>",mme="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",gme=new RegExp("^(?:"+fA+"|"+mA+"|"+_me+"|"+hme+"|"+fme+"|"+mme+")"),bme=new RegExp("^(?:"+fA+"|"+mA+")");Nu.HTML_TAG_RE=gme;Nu.HTML_OPEN_CLOSE_TAG_RE=bme;var Eme=ome,yme=Nu.HTML_OPEN_CLOSE_TAG_RE,po=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Eme.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(yme.source+"\\s*$"),/^$/,!1]],vme=function(e,t,s,i){var r,o,a,l,u=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(l=e.src.slice(u,d),r=0;r<po.length&&!po[r][0].test(l);r++);if(r===po.length)return!1;if(i)return po[r][2];if(o=t+1,!po[r][1].test(l)){for(;o<s&&!(e.sCount[o]<e.blkIndent);o++)if(u=e.bMarks[o]+e.tShift[o],d=e.eMarks[o],l=e.src.slice(u,d),po[r][1].test(l)){l.length!==0&&o++;break}}return e.line=o,a=e.push("html_block","",0),a.map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},Mv=Pt.isSpace,Sme=function(e,t,s,i){var r,o,a,l,u=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(r=e.src.charCodeAt(u),r!==35||u>=d))return!1;for(o=1,r=e.src.charCodeAt(++u);r===35&&u<d&&o<=6;)o++,r=e.src.charCodeAt(++u);return o>6||u<d&&!Mv(r)?!1:(i||(d=e.skipSpacesBack(d,u),a=e.skipCharsBack(d,35,u),a>u&&Mv(e.src.charCodeAt(a-1))&&(d=a),e.line=t+1,l=e.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(u,d).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)},Tme=function(e,t,s){var i,r,o,a,l,u,d,h,f,_=t+1,m,E=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";_<s&&!e.isEmpty(_);_++)if(!(e.sCount[_]-e.blkIndent>3)){if(e.sCount[_]>=e.blkIndent&&(u=e.bMarks[_]+e.tShift[_],d=e.eMarks[_],u<d&&(f=e.src.charCodeAt(u),(f===45||f===61)&&(u=e.skipChars(u,f),u=e.skipSpaces(u),u>=d)))){h=f===61?1:2;break}if(!(e.sCount[_]<0)){for(r=!1,o=0,a=E.length;o<a;o++)if(E[o](e,_,s,!0)){r=!0;break}if(r)break}}return h?(i=e.getLines(t,_,e.blkIndent,!1).trim(),e.line=_+1,l=e.push("heading_open","h"+String(h),1),l.markup=String.fromCharCode(f),l.map=[t,e.line],l=e.push("inline","",0),l.content=i,l.map=[t,e.line-1],l.children=[],l=e.push("heading_close","h"+String(h),-1),l.markup=String.fromCharCode(f),e.parentType=m,!0):!1},xme=function(e,t,s){var i,r,o,a,l,u,d=t+1,h=e.md.block.ruler.getRules("paragraph");for(u=e.parentType,e.parentType="paragraph";d<s&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(r=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,s,!0)){r=!0;break}if(r)break}return i=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d,l=e.push("paragraph_open","p",1),l.map=[t,e.line],l=e.push("inline","",0),l.content=i,l.map=[t,e.line],l.children=[],l=e.push("paragraph_close","p",-1),e.parentType=u,!0},gA=kb,Ou=Pt.isSpace;function si(n,e,t,s){var i,r,o,a,l,u,d,h;for(this.src=n,this.md=e,this.env=t,this.tokens=s,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",r=this.src,h=!1,o=a=u=d=0,l=r.length;a<l;a++){if(i=r.charCodeAt(a),!h)if(Ou(i)){u++,i===9?d+=4-d%4:d++;continue}else h=!0;(i===10||a===l-1)&&(i!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),h=!1,u=0,d=0,o=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}si.prototype.push=function(n,e,t){var s=new gA(n,e,t);return s.block=!0,t<0&&this.level--,s.level=this.level,t>0&&this.level++,this.tokens.push(s),s};si.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};si.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};si.prototype.skipSpaces=function(e){for(var t,s=this.src.length;e<s&&(t=this.src.charCodeAt(e),!!Ou(t));e++);return e};si.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Ou(this.src.charCodeAt(--e)))return e+1;return e};si.prototype.skipChars=function(e,t){for(var s=this.src.length;e<s&&this.src.charCodeAt(e)===t;e++);return e};si.prototype.skipCharsBack=function(e,t,s){if(e<=s)return e;for(;e>s;)if(t!==this.src.charCodeAt(--e))return e+1;return e};si.prototype.getLines=function(e,t,s,i){var r,o,a,l,u,d,h,f=e;if(e>=t)return"";for(d=new Array(t-e),r=0;f<t;f++,r++){for(o=0,h=l=this.bMarks[f],f+1<t||i?u=this.eMarks[f]+1:u=this.eMarks[f];l<u&&o<s;){if(a=this.src.charCodeAt(l),Ou(a))a===9?o+=4-(o+this.bsCount[f])%4:o++;else if(l-h<this.tShift[f])o++;else break;l++}o>s?d[r]=new Array(o-s+1).join(" ")+this.src.slice(l,u):d[r]=this.src.slice(l,u)}return d.join("")};si.prototype.Token=gA;var Cme=si,wme=Db,bc=[["table",jfe,["paragraph","reference"]],["code",Qfe],["fence",Xfe,["paragraph","reference","blockquote","list"]],["blockquote",Jfe,["paragraph","reference","blockquote","list"]],["hr",tme,["paragraph","reference","blockquote","list"]],["list",sme,["paragraph","reference","blockquote"]],["reference",rme],["html_block",vme,["paragraph","reference","blockquote"]],["heading",Sme,["paragraph","reference","blockquote"]],["lheading",Tme],["paragraph",xme]];function Iu(){this.ruler=new wme;for(var n=0;n<bc.length;n++)this.ruler.push(bc[n][0],bc[n][1],{alt:(bc[n][2]||[]).slice()})}Iu.prototype.tokenize=function(n,e,t){for(var s,i,r,o=this.ruler.getRules(""),a=o.length,l=e,u=!1,d=n.md.options.maxNesting;l<t&&(n.line=l=n.skipEmptyLines(l),!(l>=t||n.sCount[l]<n.blkIndent));){if(n.level>=d){n.line=t;break}for(r=n.line,i=0;i<a;i++)if(s=o[i](n,l,t,!1),s){if(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=!u,n.isEmpty(n.line-1)&&(u=!0),l=n.line,l<t&&n.isEmpty(l)&&(u=!0,l++,n.line=l)}};Iu.prototype.parse=function(n,e,t,s){var i;n&&(i=new this.State(n,e,t,s),this.tokenize(i,i.line,i.lineMax))};Iu.prototype.State=Cme;var Rme=Iu;function Ame(n){switch(n){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var Nme=function(e,t){for(var s=e.pos;s<e.posMax&&!Ame(e.src.charCodeAt(s));)s++;return s===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,s)),e.pos=s,!0)},Ome=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Ime=function(e,t){var s,i,r,o,a,l,u,d;return!e.md.options.linkify||e.linkLevel>0||(s=e.pos,i=e.posMax,s+3>i)||e.src.charCodeAt(s)!==58||e.src.charCodeAt(s+1)!==47||e.src.charCodeAt(s+2)!==47||(r=e.pending.match(Ome),!r)||(o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(s-o.length)),!a)||(l=a.url,l.length<=o.length)||(l=l.replace(/\*+$/,""),u=e.md.normalizeLink(l),!e.md.validateLink(u))?!1:(t||(e.pending=e.pending.slice(0,-o.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(l),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=l.length-o.length,!0)},Mme=Pt.isSpace,Dme=function(e,t){var s,i,r,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(s=e.pending.length-1,i=e.posMax,!t)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){for(r=s-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o<i&&Mme(e.src.charCodeAt(o));)o++;return e.pos=o,!0},kme=Pt.isSpace,Pb=[];for(var Dv=0;Dv<256;Dv++)Pb.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(n){Pb[n.charCodeAt(0)]=1});var Lme=function(e,t){var s,i,r,o,a,l=e.pos,u=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=u))return!1;if(s=e.src.charCodeAt(l),s===10){for(t||e.push("hardbreak","br",0),l++;l<u&&(s=e.src.charCodeAt(l),!!kme(s));)l++;return e.pos=l,!0}return o=e.src[l],s>=55296&&s<=56319&&l+1<u&&(i=e.src.charCodeAt(l+1),i>=56320&&i<=57343&&(o+=e.src[l+1],l++)),r="\\"+o,t||(a=e.push("text_special","",0),s<256&&Pb[s]!==0?a.content=o:a.content=r,a.markup=r,a.info="escape"),e.pos=l+1,!0},Pme=function(e,t){var s,i,r,o,a,l,u,d,h=e.pos,f=e.src.charCodeAt(h);if(f!==96)return!1;for(s=h,h++,i=e.posMax;h<i&&e.src.charCodeAt(h)===96;)h++;if(r=e.src.slice(s,h),u=r.length,e.backticksScanned&&(e.backticks[u]||0)<=s)return t||(e.pending+=r),e.pos+=u,!0;for(l=h;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<i&&e.src.charCodeAt(l)===96;)l++;if(d=l-a,d===u)return t||(o=e.push("code_inline","code",0),o.markup=r,o.content=e.src.slice(h,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[d]=a}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=u,!0},Mu={};Mu.tokenize=function(e,t){var s,i,r,o,a,l=e.pos,u=e.src.charCodeAt(l);if(t||u!==126||(i=e.scanDelims(e.pos,!0),o=i.length,a=String.fromCharCode(u),o<2))return!1;for(o%2&&(r=e.push("text","",0),r.content=a,o--),s=0;s<o;s+=2)r=e.push("text","",0),r.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function kv(n,e){var t,s,i,r,o,a=[],l=e.length;for(t=0;t<l;t++)i=e[t],i.marker===126&&i.end!==-1&&(r=e[i.end],o=n.tokens[i.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=n.tokens[r.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="",n.tokens[r.token-1].type==="text"&&n.tokens[r.token-1].content==="~"&&a.push(r.token-1));for(;a.length;){for(t=a.pop(),s=t+1;s<n.tokens.length&&n.tokens[s].type==="s_close";)s++;s--,t!==s&&(o=n.tokens[s],n.tokens[s]=n.tokens[t],n.tokens[t]=o)}}Mu.postProcess=function(e){var t,s=e.tokens_meta,i=e.tokens_meta.length;for(kv(e,e.delimiters),t=0;t<i;t++)s[t]&&s[t].delimiters&&kv(e,s[t].delimiters)};var Du={};Du.tokenize=function(e,t){var s,i,r,o=e.pos,a=e.src.charCodeAt(o);if(t||a!==95&&a!==42)return!1;for(i=e.scanDelims(e.pos,a===42),s=0;s<i.length;s++)r=e.push("text","",0),r.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function Lv(n,e){var t,s,i,r,o,a,l=e.length;for(t=l-1;t>=0;t--)s=e[t],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(i=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===i.token+1,o=String.fromCharCode(s.marker),r=n.tokens[s.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?o+o:o,r.content="",r=n.tokens[i.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?o+o:o,r.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[s.end+1].token].content="",t--))}Du.postProcess=function(e){var t,s=e.tokens_meta,i=e.tokens_meta.length;for(Lv(e,e.delimiters),t=0;t<i;t++)s[t]&&s[t].delimiters&&Lv(e,s[t].delimiters)};var Ume=Pt.normalizeReference,Rp=Pt.isSpace,Fme=function(e,t){var s,i,r,o,a,l,u,d,h,f="",_="",m=e.pos,E=e.posMax,b=e.pos,g=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,o=e.md.helpers.parseLinkLabel(e,e.pos,!0),o<0))return!1;if(l=o+1,l<E&&e.src.charCodeAt(l)===40){for(g=!1,l++;l<E&&(i=e.src.charCodeAt(l),!(!Rp(i)&&i!==10));l++);if(l>=E)return!1;if(b=l,u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),u.ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?l=u.pos:f="",b=l;l<E&&(i=e.src.charCodeAt(l),!(!Rp(i)&&i!==10));l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<E&&b!==l&&u.ok)for(_=u.str,l=u.pos;l<E&&(i=e.src.charCodeAt(l),!(!Rp(i)&&i!==10));l++);}(l>=E||e.src.charCodeAt(l)!==41)&&(g=!0),l++}if(g){if(typeof e.env.references>"u")return!1;if(l<E&&e.src.charCodeAt(l)===91?(b=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?r=e.src.slice(b,l++):l=o+1):l=o+1,r||(r=e.src.slice(a,o)),d=e.env.references[Ume(r)],!d)return e.pos=m,!1;f=d.href,_=d.title}return t||(e.pos=a,e.posMax=o,h=e.push("link_open","a",1),h.attrs=s=[["href",f]],_&&s.push(["title",_]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=l,e.posMax=E,!0},Bme=Pt.normalizeReference,Ap=Pt.isSpace,Gme=function(e,t){var s,i,r,o,a,l,u,d,h,f,_,m,E,b="",g=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(u=a+1,u<y&&e.src.charCodeAt(u)===40){for(u++;u<y&&(i=e.src.charCodeAt(u),!(!Ap(i)&&i!==10));u++);if(u>=y)return!1;for(E=u,h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),h.ok&&(b=e.md.normalizeLink(h.str),e.md.validateLink(b)?u=h.pos:b=""),E=u;u<y&&(i=e.src.charCodeAt(u),!(!Ap(i)&&i!==10));u++);if(h=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<y&&E!==u&&h.ok)for(f=h.str,u=h.pos;u<y&&(i=e.src.charCodeAt(u),!(!Ap(i)&&i!==10));u++);else f="";if(u>=y||e.src.charCodeAt(u)!==41)return e.pos=g,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<y&&e.src.charCodeAt(u)===91?(E=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(E,u++):u=a+1):u=a+1,o||(o=e.src.slice(l,a)),d=e.env.references[Bme(o)],!d)return e.pos=g,!1;b=d.href,f=d.title}return t||(r=e.src.slice(l,a),e.md.inline.parse(r,e.md,e.env,m=[]),_=e.push("image","img",0),_.attrs=s=[["src",b],["alt",""]],_.children=m,_.content=r,f&&s.push(["title",f])),e.pos=u,e.posMax=y,!0},Vme=/^([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])?)*)$/,zme=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Hme=function(e,t){var s,i,r,o,a,l,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++u>=l||(o=e.src.charCodeAt(u),o===60))return!1;if(o===62)break}return s=e.src.slice(a+1,u),zme.test(s)?(i=e.md.normalizeLink(s),e.md.validateLink(i)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",i]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):Vme.test(s)?(i=e.md.normalizeLink("mailto:"+s),e.md.validateLink(i)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",i]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):!1},qme=Nu.HTML_TAG_RE;function Yme(n){return/^<a[>\s]/i.test(n)}function $me(n){return/^<\/a\s*>/i.test(n)}function Wme(n){var e=n|32;return e>=97&&e<=122}var Kme=function(e,t){var s,i,r,o,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(s=e.src.charCodeAt(a+1),s!==33&&s!==63&&s!==47&&!Wme(s))||(i=e.src.slice(a).match(qme),!i)?!1:(t||(o=e.push("html_inline","",0),o.content=i[0],Yme(o.content)&&e.linkLevel++,$me(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},Pv=lA,jme=Pt.has,Qme=Pt.isValidEntityCode,Uv=Pt.fromCodePoint,Xme=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Zme=/^&([a-z][a-z0-9]{1,31});/i,Jme=function(e,t){var s,i,r,o,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(s=e.src.charCodeAt(a+1),s===35){if(r=e.src.slice(a).match(Xme),r)return t||(i=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0),o.content=Qme(i)?Uv(i):Uv(65533),o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(Zme),r&&jme(Pv,r[1]))return t||(o=e.push("text_special","",0),o.content=Pv[r[1]],o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0;return!1};function Fv(n){var e,t,s,i,r,o,a,l,u={},d=n.length;if(d){var h=0,f=-2,_=[];for(e=0;e<d;e++)if(s=n[e],_.push(0),(n[h].marker!==s.marker||f!==s.token-1)&&(h=e),f=s.token,s.length=s.length||0,!!s.close){for(u.hasOwnProperty(s.marker)||(u[s.marker]=[-1,-1,-1,-1,-1,-1]),r=u[s.marker][(s.open?3:0)+s.length%3],t=h-_[h]-1,o=t;t>r;t-=_[t]+1)if(i=n[t],i.marker===s.marker&&i.open&&i.end<0&&(a=!1,(i.close||s.open)&&(i.length+s.length)%3===0&&(i.length%3!==0||s.length%3!==0)&&(a=!0),!a)){l=t>0&&!n[t-1].open?_[t-1]+1:0,_[e]=e-t+l,_[t]=l,s.open=!1,i.end=e,i.close=!1,o=-1,f=-2;break}o!==-1&&(u[s.marker][(s.open?3:0)+(s.length||0)%3]=o)}}}var ege=function(e){var t,s=e.tokens_meta,i=e.tokens_meta.length;for(Fv(e.delimiters),t=0;t<i;t++)s[t]&&s[t].delimiters&&Fv(s[t].delimiters)},tge=function(e){var t,s,i=0,r=e.tokens,o=e.tokens.length;for(t=s=0;t<o;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==s&&(r[s]=r[t]),s++);t!==s&&(r.length=s)},Ub=kb,Bv=Pt.isWhiteSpace,Gv=Pt.isPunctChar,Vv=Pt.isMdAsciiPunct;function Kl(n,e,t,s){this.src=n,this.env=t,this.md=e,this.tokens=s,this.tokens_meta=Array(s.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Kl.prototype.pushPending=function(){var n=new Ub("text","",0);return n.content=this.pending,n.level=this.pendingLevel,this.tokens.push(n),this.pending="",n};Kl.prototype.push=function(n,e,t){this.pending&&this.pushPending();var s=new Ub(n,e,t),i=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),s.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(i),s};Kl.prototype.scanDelims=function(n,e){var t=n,s,i,r,o,a,l,u,d,h,f=!0,_=!0,m=this.posMax,E=this.src.charCodeAt(n);for(s=n>0?this.src.charCodeAt(n-1):32;t<m&&this.src.charCodeAt(t)===E;)t++;return r=t-n,i=t<m?this.src.charCodeAt(t):32,u=Vv(s)||Gv(String.fromCharCode(s)),h=Vv(i)||Gv(String.fromCharCode(i)),l=Bv(s),d=Bv(i),d?f=!1:h&&(l||u||(f=!1)),l?_=!1:u&&(d||h||(_=!1)),e?(o=f,a=_):(o=f&&(!_||u),a=_&&(!f||h)),{can_open:o,can_close:a,length:r}};Kl.prototype.Token=Ub;var nge=Kl,zv=Db,Np=[["text",Nme],["linkify",Ime],["newline",Dme],["escape",Lme],["backticks",Pme],["strikethrough",Mu.tokenize],["emphasis",Du.tokenize],["link",Fme],["image",Gme],["autolink",Hme],["html_inline",Kme],["entity",Jme]],Op=[["balance_pairs",ege],["strikethrough",Mu.postProcess],["emphasis",Du.postProcess],["fragments_join",tge]];function jl(){var n;for(this.ruler=new zv,n=0;n<Np.length;n++)this.ruler.push(Np[n][0],Np[n][1]);for(this.ruler2=new zv,n=0;n<Op.length;n++)this.ruler2.push(Op[n][0],Op[n][1])}jl.prototype.skipToken=function(n){var e,t,s=n.pos,i=this.ruler.getRules(""),r=i.length,o=n.md.options.maxNesting,a=n.cache;if(typeof a[s]<"u"){n.pos=a[s];return}if(n.level<o){for(t=0;t<r;t++)if(n.level++,e=i[t](n,!0),n.level--,e){if(s>=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};jl.prototype.tokenize=function(n){for(var e,t,s,i=this.ruler.getRules(""),r=i.length,o=n.posMax,a=n.md.options.maxNesting;n.pos<o;){if(s=n.pos,n.level<a){for(t=0;t<r;t++)if(e=i[t](n,!1),e){if(s>=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()};jl.prototype.parse=function(n,e,t,s){var i,r,o,a=new this.State(n,e,t,s);for(this.tokenize(a),r=this.ruler2.getRules(""),o=r.length,i=0;i<o;i++)r[i](a)};jl.prototype.State=nge;var sge=jl,Ip,Hv;function ige(){return Hv||(Hv=1,Ip=function(n){var e={};n=n||{},e.src_Any=cA().source,e.src_Cc=dA().source,e.src_Z=uA().source,e.src_P=Mb.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var t="[><]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(n["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",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}),Ip}function Eg(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 ku(n){return Object.prototype.toString.call(n)}function rge(n){return ku(n)==="[object String]"}function oge(n){return ku(n)==="[object Object]"}function age(n){return ku(n)==="[object RegExp]"}function qv(n){return ku(n)==="[object Function]"}function lge(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var bA={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function cge(n){return Object.keys(n||{}).reduce(function(e,t){return e||bA.hasOwnProperty(t)},!1)}var dge={"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}}},uge="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]",pge="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function _ge(n){n.__index__=-1,n.__text_cache__=""}function hge(n){return function(e,t){var s=e.slice(t);return n.test(s)?s.match(n)[0].length:0}}function Yv(){return function(n,e){e.normalize(n)}}function Dd(n){var e=n.re=ige()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(uge),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 i=[];n.__compiled__={};function r(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(n.__schemas__).forEach(function(a){var l=n.__schemas__[a];if(l!==null){var u={validate:null,link:null};if(n.__compiled__[a]=u,oge(l)){age(l.validate)?u.validate=hge(l.validate):qv(l.validate)?u.validate=l.validate:r(a,l),qv(l.normalize)?u.normalize=l.normalize:l.normalize?r(a,l):u.normalize=Yv();return}if(rge(l)){i.push(a);return}r(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:Yv()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(lge).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"),_ge(n)}function fge(n,e){var t=n.__index__,s=n.__last_index__,i=n.__text_cache__.slice(t,s);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=s+e,this.raw=i,this.text=i,this.url=i}function yg(n,e){var t=new fge(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function Zn(n,e){if(!(this instanceof Zn))return new Zn(n,e);e||cge(n)&&(e=n,n={}),this.__opts__=Eg({},bA,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Eg({},dge,n),this.__compiled__={},this.__tlds__=pge,this.__tlds_replaced__=!1,this.re={},Dd(this)}Zn.prototype.add=function(e,t){return this.__schemas__[e]=t,Dd(this),this};Zn.prototype.set=function(e){return this.__opts__=Eg(this.__opts__,e),this};Zn.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,s,i,r,o,a,l,u,d;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(t=l.exec(e))!==null;)if(r=this.testSchemaAt(e,t[2],l.lastIndex),r){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(s=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=s.index+s[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=s.index+s[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),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||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};Zn.prototype.pretest=function(e){return this.re.pretest.test(e)};Zn.prototype.testSchemaAt=function(e,t,s){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,s,this):0};Zn.prototype.match=function(e){var t=0,s=[];this.__index__>=0&&this.__text_cache__===e&&(s.push(yg(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)s.push(yg(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return s.length?s:null};Zn.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,yg(this,0)):null};Zn.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(s,i,r){return s!==r[i-1]}).reverse(),Dd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Dd(this),this)};Zn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Zn.prototype.onCompile=function(){};var mge=Zn;const Ho=2147483647,Ws=36,Fb=1,Ml=26,gge=38,bge=700,EA=72,yA=128,vA="-",Ege=/^xn--/,yge=/[^\0-\x7F]/,vge=/[\x2E\u3002\uFF0E\uFF61]/g,Sge={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mp=Ws-Fb,Ks=Math.floor,Dp=String.fromCharCode;function ji(n){throw new RangeError(Sge[n])}function Tge(n,e){const t=[];let s=n.length;for(;s--;)t[s]=e(n[s]);return t}function SA(n,e){const t=n.split("@");let s="";t.length>1&&(s=t[0]+"@",n=t[1]),n=n.replace(vge,".");const i=n.split("."),r=Tge(i,e).join(".");return s+r}function Bb(n){const e=[];let t=0;const s=n.length;for(;t<s;){const i=n.charCodeAt(t++);if(i>=55296&&i<=56319&&t<s){const r=n.charCodeAt(t++);(r&64512)==56320?e.push(((i&1023)<<10)+(r&1023)+65536):(e.push(i),t--)}else e.push(i)}return e}const TA=n=>String.fromCodePoint(...n),xge=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:Ws},$v=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},xA=function(n,e,t){let s=0;for(n=t?Ks(n/bge):n>>1,n+=Ks(n/e);n>Mp*Ml>>1;s+=Ws)n=Ks(n/Mp);return Ks(s+(Mp+1)*n/(n+gge))},Gb=function(n){const e=[],t=n.length;let s=0,i=yA,r=EA,o=n.lastIndexOf(vA);o<0&&(o=0);for(let a=0;a<o;++a)n.charCodeAt(a)>=128&&ji("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a<t;){const l=s;for(let d=1,h=Ws;;h+=Ws){a>=t&&ji("invalid-input");const f=xge(n.charCodeAt(a++));f>=Ws&&ji("invalid-input"),f>Ks((Ho-s)/d)&&ji("overflow"),s+=f*d;const _=h<=r?Fb:h>=r+Ml?Ml:h-r;if(f<_)break;const m=Ws-_;d>Ks(Ho/m)&&ji("overflow"),d*=m}const u=e.length+1;r=xA(s-l,u,l==0),Ks(s/u)>Ho-i&&ji("overflow"),i+=Ks(s/u),s%=u,e.splice(s++,0,i)}return String.fromCodePoint(...e)},Vb=function(n){const e=[];n=Bb(n);const t=n.length;let s=yA,i=0,r=EA;for(const l of n)l<128&&e.push(Dp(l));const o=e.length;let a=o;for(o&&e.push(vA);a<t;){let l=Ho;for(const d of n)d>=s&&d<l&&(l=d);const u=a+1;l-s>Ks((Ho-i)/u)&&ji("overflow"),i+=(l-s)*u,s=l;for(const d of n)if(d<s&&++i>Ho&&ji("overflow"),d===s){let h=i;for(let f=Ws;;f+=Ws){const _=f<=r?Fb:f>=r+Ml?Ml:f-r;if(h<_)break;const m=h-_,E=Ws-_;e.push(Dp($v(_+m%E,0))),h=Ks(m/E)}e.push(Dp($v(h,0))),r=xA(i,u,a===o),i=0,++a}++i,++s}return e.join("")},CA=function(n){return SA(n,function(e){return Ege.test(e)?Gb(e.slice(4).toLowerCase()):e})},wA=function(n){return SA(n,function(e){return yge.test(e)?"xn--"+Vb(e):e})},Cge={version:"2.1.0",ucs2:{decode:Bb,encode:TA},decode:Gb,encode:Vb,toASCII:wA,toUnicode:CA},wge=Object.freeze(Object.defineProperty({__proto__:null,decode:Gb,default:Cge,encode:Vb,toASCII:wA,toUnicode:CA,ucs2decode:Bb,ucs2encode:TA},Symbol.toStringTag,{value:"Module"})),Rge=iP(wge);var Age={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Nge={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Oge={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},pl=Pt,Ige=Au,Mge=xfe,Dge=Kfe,kge=Rme,Lge=sge,Pge=mge,Ur=Aa,RA=Rge,Uge={default:Age,zero:Nge,commonmark:Oge},Fge=/^(vbscript|javascript|file|data):/,Bge=/^data:image\/(gif|png|jpeg|webp);/;function Gge(n){var e=n.trim().toLowerCase();return Fge.test(e)?!!Bge.test(e):!0}var AA=["http:","https:","mailto:"];function Vge(n){var e=Ur.parse(n,!0);if(e.hostname&&(!e.protocol||AA.indexOf(e.protocol)>=0))try{e.hostname=RA.toASCII(e.hostname)}catch{}return Ur.encode(Ur.format(e))}function zge(n){var e=Ur.parse(n,!0);if(e.hostname&&(!e.protocol||AA.indexOf(e.protocol)>=0))try{e.hostname=RA.toUnicode(e.hostname)}catch{}return Ur.decode(Ur.format(e),Ur.decode.defaultChars+"%")}function ms(n,e){if(!(this instanceof ms))return new ms(n,e);e||pl.isString(n)||(e=n||{},n="default"),this.inline=new Lge,this.block=new kge,this.core=new Dge,this.renderer=new Mge,this.linkify=new Pge,this.validateLink=Gge,this.normalizeLink=Vge,this.normalizeLinkText=zge,this.utils=pl,this.helpers=pl.assign({},Ige),this.options={},this.configure(n),e&&this.set(e)}ms.prototype.set=function(n){return pl.assign(this.options,n),this};ms.prototype.configure=function(n){var e=this,t;if(pl.isString(n)&&(t=n,n=Uge[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};ms.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 s=n.filter(function(i){return t.indexOf(i)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};ms.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 s=n.filter(function(i){return t.indexOf(i)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};ms.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};ms.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};ms.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};ms.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};ms.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var Hge=ms,qge=Hge;const Yge=_r(qge),$ge="😀",Wge="😃",Kge="😄",jge="😁",Qge="😆",Xge="😆",Zge="😅",Jge="🤣",ebe="😂",tbe="🙂",nbe="🙃",sbe="😉",ibe="😊",rbe="😇",obe="🥰",abe="😍",lbe="🤩",cbe="😘",dbe="😗",ube="☺️",pbe="😚",_be="😙",hbe="🥲",fbe="😋",mbe="😛",gbe="😜",bbe="🤪",Ebe="😝",ybe="🤑",vbe="🤗",Sbe="🤭",Tbe="🤫",xbe="🤔",Cbe="🤐",wbe="🤨",Rbe="😐",Abe="😑",Nbe="😶",Obe="😏",Ibe="😒",Mbe="🙄",Dbe="😬",kbe="🤥",Lbe="😌",Pbe="😔",Ube="😪",Fbe="🤤",Bbe="😴",Gbe="😷",Vbe="🤒",zbe="🤕",Hbe="🤢",qbe="🤮",Ybe="🤧",$be="🥵",Wbe="🥶",Kbe="🥴",jbe="😵",Qbe="🤯",Xbe="🤠",Zbe="🥳",Jbe="🥸",eEe="😎",tEe="🤓",nEe="🧐",sEe="😕",iEe="😟",rEe="🙁",oEe="☹️",aEe="😮",lEe="😯",cEe="😲",dEe="😳",uEe="🥺",pEe="😦",_Ee="😧",hEe="😨",fEe="😰",mEe="😥",gEe="😢",bEe="😭",EEe="😱",yEe="😖",vEe="😣",SEe="😞",TEe="😓",xEe="😩",CEe="😫",wEe="🥱",REe="😤",AEe="😡",NEe="😡",OEe="😠",IEe="🤬",MEe="😈",DEe="👿",kEe="💀",LEe="☠️",PEe="💩",UEe="💩",FEe="💩",BEe="🤡",GEe="👹",VEe="👺",zEe="👻",HEe="👽",qEe="👾",YEe="🤖",$Ee="😺",WEe="😸",KEe="😹",jEe="😻",QEe="😼",XEe="😽",ZEe="🙀",JEe="😿",eye="😾",tye="🙈",nye="🙉",sye="🙊",iye="💋",rye="💌",oye="💘",aye="💝",lye="💖",cye="💗",dye="💓",uye="💞",pye="💕",_ye="💟",hye="❣️",fye="💔",mye="❤️",gye="🧡",bye="💛",Eye="💚",yye="💙",vye="💜",Sye="🤎",Tye="🖤",xye="🤍",Cye="💢",wye="💥",Rye="💥",Aye="💫",Nye="💦",Oye="💨",Iye="🕳️",Mye="💣",Dye="💬",kye="👁️‍🗨️",Lye="🗨️",Pye="🗯️",Uye="💭",Fye="💤",Bye="👋",Gye="🤚",Vye="🖐️",zye="✋",Hye="✋",qye="🖖",Yye="👌",$ye="🤌",Wye="🤏",Kye="✌️",jye="🤞",Qye="🤟",Xye="🤘",Zye="🤙",Jye="👈",eve="👉",tve="👆",nve="🖕",sve="🖕",ive="👇",rve="☝️",ove="👍",ave="👎",lve="✊",cve="✊",dve="👊",uve="👊",pve="👊",_ve="🤛",hve="🤜",fve="👏",mve="🙌",gve="👐",bve="🤲",Eve="🤝",yve="🙏",vve="✍️",Sve="💅",Tve="🤳",xve="💪",Cve="🦾",wve="🦿",Rve="🦵",Ave="🦶",Nve="👂",Ove="🦻",Ive="👃",Mve="🧠",Dve="🫀",kve="🫁",Lve="🦷",Pve="🦴",Uve="👀",Fve="👁️",Bve="👅",Gve="👄",Vve="👶",zve="🧒",Hve="👦",qve="👧",Yve="🧑",$ve="👱",Wve="👨",Kve="🧔",jve="👨‍🦰",Qve="👨‍🦱",Xve="👨‍🦳",Zve="👨‍🦲",Jve="👩",eSe="👩‍🦰",tSe="🧑‍🦰",nSe="👩‍🦱",sSe="🧑‍🦱",iSe="👩‍🦳",rSe="🧑‍🦳",oSe="👩‍🦲",aSe="🧑‍🦲",lSe="👱‍♀️",cSe="👱‍♀️",dSe="👱‍♂️",uSe="🧓",pSe="👴",_Se="👵",hSe="🙍",fSe="🙍‍♂️",mSe="🙍‍♀️",gSe="🙎",bSe="🙎‍♂️",ESe="🙎‍♀️",ySe="🙅",vSe="🙅‍♂️",SSe="🙅‍♂️",TSe="🙅‍♀️",xSe="🙅‍♀️",CSe="🙆",wSe="🙆‍♂️",RSe="🙆‍♀️",ASe="💁",NSe="💁",OSe="💁‍♂️",ISe="💁‍♂️",MSe="💁‍♀️",DSe="💁‍♀️",kSe="🙋",LSe="🙋‍♂️",PSe="🙋‍♀️",USe="🧏",FSe="🧏‍♂️",BSe="🧏‍♀️",GSe="🙇",VSe="🙇‍♂️",zSe="🙇‍♀️",HSe="🤦",qSe="🤦‍♂️",YSe="🤦‍♀️",$Se="🤷",WSe="🤷‍♂️",KSe="🤷‍♀️",jSe="🧑‍⚕️",QSe="👨‍⚕️",XSe="👩‍⚕️",ZSe="🧑‍🎓",JSe="👨‍🎓",e0e="👩‍🎓",t0e="🧑‍🏫",n0e="👨‍🏫",s0e="👩‍🏫",i0e="🧑‍⚖️",r0e="👨‍⚖️",o0e="👩‍⚖️",a0e="🧑‍🌾",l0e="👨‍🌾",c0e="👩‍🌾",d0e="🧑‍🍳",u0e="👨‍🍳",p0e="👩‍🍳",_0e="🧑‍🔧",h0e="👨‍🔧",f0e="👩‍🔧",m0e="🧑‍🏭",g0e="👨‍🏭",b0e="👩‍🏭",E0e="🧑‍💼",y0e="👨‍💼",v0e="👩‍💼",S0e="🧑‍🔬",T0e="👨‍🔬",x0e="👩‍🔬",C0e="🧑‍💻",w0e="👨‍💻",R0e="👩‍💻",A0e="🧑‍🎤",N0e="👨‍🎤",O0e="👩‍🎤",I0e="🧑‍🎨",M0e="👨‍🎨",D0e="👩‍🎨",k0e="🧑‍✈️",L0e="👨‍✈️",P0e="👩‍✈️",U0e="🧑‍🚀",F0e="👨‍🚀",B0e="👩‍🚀",G0e="🧑‍🚒",V0e="👨‍🚒",z0e="👩‍🚒",H0e="👮",q0e="👮",Y0e="👮‍♂️",$0e="👮‍♀️",W0e="🕵️",K0e="🕵️‍♂️",j0e="🕵️‍♀️",Q0e="💂",X0e="💂‍♂️",Z0e="💂‍♀️",J0e="🥷",eTe="👷",tTe="👷‍♂️",nTe="👷‍♀️",sTe="🤴",iTe="👸",rTe="👳",oTe="👳‍♂️",aTe="👳‍♀️",lTe="👲",cTe="🧕",dTe="🤵",uTe="🤵‍♂️",pTe="🤵‍♀️",_Te="👰",hTe="👰‍♂️",fTe="👰‍♀️",mTe="👰‍♀️",gTe="🤰",bTe="🤱",ETe="👩‍🍼",yTe="👨‍🍼",vTe="🧑‍🍼",STe="👼",TTe="🎅",xTe="🤶",CTe="🧑‍🎄",wTe="🦸",RTe="🦸‍♂️",ATe="🦸‍♀️",NTe="🦹",OTe="🦹‍♂️",ITe="🦹‍♀️",MTe="🧙",DTe="🧙‍♂️",kTe="🧙‍♀️",LTe="🧚",PTe="🧚‍♂️",UTe="🧚‍♀️",FTe="🧛",BTe="🧛‍♂️",GTe="🧛‍♀️",VTe="🧜",zTe="🧜‍♂️",HTe="🧜‍♀️",qTe="🧝",YTe="🧝‍♂️",$Te="🧝‍♀️",WTe="🧞",KTe="🧞‍♂️",jTe="🧞‍♀️",QTe="🧟",XTe="🧟‍♂️",ZTe="🧟‍♀️",JTe="💆",exe="💆‍♂️",txe="💆‍♀️",nxe="💇",sxe="💇‍♂️",ixe="💇‍♀️",rxe="🚶",oxe="🚶‍♂️",axe="🚶‍♀️",lxe="🧍",cxe="🧍‍♂️",dxe="🧍‍♀️",uxe="🧎",pxe="🧎‍♂️",_xe="🧎‍♀️",hxe="🧑‍🦯",fxe="👨‍🦯",mxe="👩‍🦯",gxe="🧑‍🦼",bxe="👨‍🦼",Exe="👩‍🦼",yxe="🧑‍🦽",vxe="👨‍🦽",Sxe="👩‍🦽",Txe="🏃",xxe="🏃",Cxe="🏃‍♂️",wxe="🏃‍♀️",Rxe="💃",Axe="💃",Nxe="🕺",Oxe="🕴️",Ixe="👯",Mxe="👯‍♂️",Dxe="👯‍♀️",kxe="🧖",Lxe="🧖‍♂️",Pxe="🧖‍♀️",Uxe="🧗",Fxe="🧗‍♂️",Bxe="🧗‍♀️",Gxe="🤺",Vxe="🏇",zxe="⛷️",Hxe="🏂",qxe="🏌️",Yxe="🏌️‍♂️",$xe="🏌️‍♀️",Wxe="🏄",Kxe="🏄‍♂️",jxe="🏄‍♀️",Qxe="🚣",Xxe="🚣‍♂️",Zxe="🚣‍♀️",Jxe="🏊",eCe="🏊‍♂️",tCe="🏊‍♀️",nCe="⛹️",sCe="⛹️‍♂️",iCe="⛹️‍♂️",rCe="⛹️‍♀️",oCe="⛹️‍♀️",aCe="🏋️",lCe="🏋️‍♂️",cCe="🏋️‍♀️",dCe="🚴",uCe="🚴‍♂️",pCe="🚴‍♀️",_Ce="🚵",hCe="🚵‍♂️",fCe="🚵‍♀️",mCe="🤸",gCe="🤸‍♂️",bCe="🤸‍♀️",ECe="🤼",yCe="🤼‍♂️",vCe="🤼‍♀️",SCe="🤽",TCe="🤽‍♂️",xCe="🤽‍♀️",CCe="🤾",wCe="🤾‍♂️",RCe="🤾‍♀️",ACe="🤹",NCe="🤹‍♂️",OCe="🤹‍♀️",ICe="🧘",MCe="🧘‍♂️",DCe="🧘‍♀️",kCe="🛀",LCe="🛌",PCe="🧑‍🤝‍🧑",UCe="👭",FCe="👫",BCe="👬",GCe="💏",VCe="👩‍❤️‍💋‍👨",zCe="👨‍❤️‍💋‍👨",HCe="👩‍❤️‍💋‍👩",qCe="💑",YCe="👩‍❤️‍👨",$Ce="👨‍❤️‍👨",WCe="👩‍❤️‍👩",KCe="👪",jCe="👨‍👩‍👦",QCe="👨‍👩‍👧",XCe="👨‍👩‍👧‍👦",ZCe="👨‍👩‍👦‍👦",JCe="👨‍👩‍👧‍👧",e1e="👨‍👨‍👦",t1e="👨‍👨‍👧",n1e="👨‍👨‍👧‍👦",s1e="👨‍👨‍👦‍👦",i1e="👨‍👨‍👧‍👧",r1e="👩‍👩‍👦",o1e="👩‍👩‍👧",a1e="👩‍👩‍👧‍👦",l1e="👩‍👩‍👦‍👦",c1e="👩‍👩‍👧‍👧",d1e="👨‍👦",u1e="👨‍👦‍👦",p1e="👨‍👧",_1e="👨‍👧‍👦",h1e="👨‍👧‍👧",f1e="👩‍👦",m1e="👩‍👦‍👦",g1e="👩‍👧",b1e="👩‍👧‍👦",E1e="👩‍👧‍👧",y1e="🗣️",v1e="👤",S1e="👥",T1e="🫂",x1e="👣",C1e="🐵",w1e="🐒",R1e="🦍",A1e="🦧",N1e="🐶",O1e="🐕",I1e="🦮",M1e="🐕‍🦺",D1e="🐩",k1e="🐺",L1e="🦊",P1e="🦝",U1e="🐱",F1e="🐈",B1e="🐈‍⬛",G1e="🦁",V1e="🐯",z1e="🐅",H1e="🐆",q1e="🐴",Y1e="🐎",$1e="🦄",W1e="🦓",K1e="🦌",j1e="🦬",Q1e="🐮",X1e="🐂",Z1e="🐃",J1e="🐄",ewe="🐷",twe="🐖",nwe="🐗",swe="🐽",iwe="🐏",rwe="🐑",owe="🐐",awe="🐪",lwe="🐫",cwe="🦙",dwe="🦒",uwe="🐘",pwe="🦣",_we="🦏",hwe="🦛",fwe="🐭",mwe="🐁",gwe="🐀",bwe="🐹",Ewe="🐰",ywe="🐇",vwe="🐿️",Swe="🦫",Twe="🦔",xwe="🦇",Cwe="🐻",wwe="🐻‍❄️",Rwe="🐨",Awe="🐼",Nwe="🦥",Owe="🦦",Iwe="🦨",Mwe="🦘",Dwe="🦡",kwe="🐾",Lwe="🐾",Pwe="🦃",Uwe="🐔",Fwe="🐓",Bwe="🐣",Gwe="🐤",Vwe="🐥",zwe="🐦",Hwe="🐧",qwe="🕊️",Ywe="🦅",$we="🦆",Wwe="🦢",Kwe="🦉",jwe="🦤",Qwe="🪶",Xwe="🦩",Zwe="🦚",Jwe="🦜",eRe="🐸",tRe="🐊",nRe="🐢",sRe="🦎",iRe="🐍",rRe="🐲",oRe="🐉",aRe="🦕",lRe="🐳",cRe="🐋",dRe="🐬",uRe="🐬",pRe="🦭",_Re="🐟",hRe="🐠",fRe="🐡",mRe="🦈",gRe="🐙",bRe="🐚",ERe="🐌",yRe="🦋",vRe="🐛",SRe="🐜",TRe="🐝",xRe="🐝",CRe="🪲",wRe="🐞",RRe="🦗",ARe="🪳",NRe="🕷️",ORe="🕸️",IRe="🦂",MRe="🦟",DRe="🪰",kRe="🪱",LRe="🦠",PRe="💐",URe="🌸",FRe="💮",BRe="🏵️",GRe="🌹",VRe="🥀",zRe="🌺",HRe="🌻",qRe="🌼",YRe="🌷",$Re="🌱",WRe="🪴",KRe="🌲",jRe="🌳",QRe="🌴",XRe="🌵",ZRe="🌾",JRe="🌿",eAe="☘️",tAe="🍀",nAe="🍁",sAe="🍂",iAe="🍃",rAe="🍇",oAe="🍈",aAe="🍉",lAe="🍊",cAe="🍊",dAe="🍊",uAe="🍋",pAe="🍌",_Ae="🍍",hAe="🥭",fAe="🍎",mAe="🍏",gAe="🍐",bAe="🍑",EAe="🍒",yAe="🍓",vAe="🫐",SAe="🥝",TAe="🍅",xAe="🫒",CAe="🥥",wAe="🥑",RAe="🍆",AAe="🥔",NAe="🥕",OAe="🌽",IAe="🌶️",MAe="🫑",DAe="🥒",kAe="🥬",LAe="🥦",PAe="🧄",UAe="🧅",FAe="🍄",BAe="🥜",GAe="🌰",VAe="🍞",zAe="🥐",HAe="🥖",qAe="🫓",YAe="🥨",$Ae="🥯",WAe="🥞",KAe="🧇",jAe="🧀",QAe="🍖",XAe="🍗",ZAe="🥩",JAe="🥓",eNe="🍔",tNe="🍟",nNe="🍕",sNe="🌭",iNe="🥪",rNe="🌮",oNe="🌯",aNe="🫔",lNe="🥙",cNe="🧆",dNe="🥚",uNe="🍳",pNe="🥘",_Ne="🍲",hNe="🫕",fNe="🥣",mNe="🥗",gNe="🍿",bNe="🧈",ENe="🧂",yNe="🥫",vNe="🍱",SNe="🍘",TNe="🍙",xNe="🍚",CNe="🍛",wNe="🍜",RNe="🍝",ANe="🍠",NNe="🍢",ONe="🍣",INe="🍤",MNe="🍥",DNe="🥮",kNe="🍡",LNe="🥟",PNe="🥠",UNe="🥡",FNe="🦀",BNe="🦞",GNe="🦐",VNe="🦑",zNe="🦪",HNe="🍦",qNe="🍧",YNe="🍨",$Ne="🍩",WNe="🍪",KNe="🎂",jNe="🍰",QNe="🧁",XNe="🥧",ZNe="🍫",JNe="🍬",eOe="🍭",tOe="🍮",nOe="🍯",sOe="🍼",iOe="🥛",rOe="☕",oOe="🫖",aOe="🍵",lOe="🍶",cOe="🍾",dOe="🍷",uOe="🍸",pOe="🍹",_Oe="🍺",hOe="🍻",fOe="🥂",mOe="🥃",gOe="🥤",bOe="🧋",EOe="🧃",yOe="🧉",vOe="🧊",SOe="🥢",TOe="🍽️",xOe="🍴",COe="🥄",wOe="🔪",ROe="🔪",AOe="🏺",NOe="🌍",OOe="🌎",IOe="🌏",MOe="🌐",DOe="🗺️",kOe="🗾",LOe="🧭",POe="🏔️",UOe="⛰️",FOe="🌋",BOe="🗻",GOe="🏕️",VOe="🏖️",zOe="🏜️",HOe="🏝️",qOe="🏞️",YOe="🏟️",$Oe="🏛️",WOe="🏗️",KOe="🧱",jOe="🪨",QOe="🪵",XOe="🛖",ZOe="🏘️",JOe="🏚️",eIe="🏠",tIe="🏡",nIe="🏢",sIe="🏣",iIe="🏤",rIe="🏥",oIe="🏦",aIe="🏨",lIe="🏩",cIe="🏪",dIe="🏫",uIe="🏬",pIe="🏭",_Ie="🏯",hIe="🏰",fIe="💒",mIe="🗼",gIe="🗽",bIe="⛪",EIe="🕌",yIe="🛕",vIe="🕍",SIe="⛩️",TIe="🕋",xIe="⛲",CIe="⛺",wIe="🌁",RIe="🌃",AIe="🏙️",NIe="🌄",OIe="🌅",IIe="🌆",MIe="🌇",DIe="🌉",kIe="♨️",LIe="🎠",PIe="🎡",UIe="🎢",FIe="💈",BIe="🎪",GIe="🚂",VIe="🚃",zIe="🚄",HIe="🚅",qIe="🚆",YIe="🚇",$Ie="🚈",WIe="🚉",KIe="🚊",jIe="🚝",QIe="🚞",XIe="🚋",ZIe="🚌",JIe="🚍",eMe="🚎",tMe="🚐",nMe="🚑",sMe="🚒",iMe="🚓",rMe="🚔",oMe="🚕",aMe="🚖",lMe="🚗",cMe="🚗",dMe="🚘",uMe="🚙",pMe="🛻",_Me="🚚",hMe="🚛",fMe="🚜",mMe="🏎️",gMe="🏍️",bMe="🛵",EMe="🦽",yMe="🦼",vMe="🛺",SMe="🚲",TMe="🛴",xMe="🛹",CMe="🛼",wMe="🚏",RMe="🛣️",AMe="🛤️",NMe="🛢️",OMe="⛽",IMe="🚨",MMe="🚥",DMe="🚦",kMe="🛑",LMe="🚧",PMe="⚓",UMe="⛵",FMe="⛵",BMe="🛶",GMe="🚤",VMe="🛳️",zMe="⛴️",HMe="🛥️",qMe="🚢",YMe="✈️",$Me="🛩️",WMe="🛫",KMe="🛬",jMe="🪂",QMe="💺",XMe="🚁",ZMe="🚟",JMe="🚠",e2e="🚡",t2e="🛰️",n2e="🚀",s2e="🛸",i2e="🛎️",r2e="🧳",o2e="⌛",a2e="⏳",l2e="⌚",c2e="⏰",d2e="⏱️",u2e="⏲️",p2e="🕰️",_2e="🕛",h2e="🕧",f2e="🕐",m2e="🕜",g2e="🕑",b2e="🕝",E2e="🕒",y2e="🕞",v2e="🕓",S2e="🕟",T2e="🕔",x2e="🕠",C2e="🕕",w2e="🕡",R2e="🕖",A2e="🕢",N2e="🕗",O2e="🕣",I2e="🕘",M2e="🕤",D2e="🕙",k2e="🕥",L2e="🕚",P2e="🕦",U2e="🌑",F2e="🌒",B2e="🌓",G2e="🌔",V2e="🌔",z2e="🌕",H2e="🌖",q2e="🌗",Y2e="🌘",$2e="🌙",W2e="🌚",K2e="🌛",j2e="🌜",Q2e="🌡️",X2e="☀️",Z2e="🌝",J2e="🌞",eDe="🪐",tDe="⭐",nDe="🌟",sDe="🌠",iDe="🌌",rDe="☁️",oDe="⛅",aDe="⛈️",lDe="🌤️",cDe="🌥️",dDe="🌦️",uDe="🌧️",pDe="🌨️",_De="🌩️",hDe="🌪️",fDe="🌫️",mDe="🌬️",gDe="🌀",bDe="🌈",EDe="🌂",yDe="☂️",vDe="☔",SDe="⛱️",TDe="⚡",xDe="❄️",CDe="☃️",wDe="⛄",RDe="☄️",ADe="🔥",NDe="💧",ODe="🌊",IDe="🎃",MDe="🎄",DDe="🎆",kDe="🎇",LDe="🧨",PDe="✨",UDe="🎈",FDe="🎉",BDe="🎊",GDe="🎋",VDe="🎍",zDe="🎎",HDe="🎏",qDe="🎐",YDe="🎑",$De="🧧",WDe="🎀",KDe="🎁",jDe="🎗️",QDe="🎟️",XDe="🎫",ZDe="🎖️",JDe="🏆",eke="🏅",tke="⚽",nke="⚾",ske="🥎",ike="🏀",rke="🏐",oke="🏈",ake="🏉",lke="🎾",cke="🥏",dke="🎳",uke="🏏",pke="🏑",_ke="🏒",hke="🥍",fke="🏓",mke="🏸",gke="🥊",bke="🥋",Eke="🥅",yke="⛳",vke="⛸️",Ske="🎣",Tke="🤿",xke="🎽",Cke="🎿",wke="🛷",Rke="🥌",Ake="🎯",Nke="🪀",Oke="🪁",Ike="🔮",Mke="🪄",Dke="🧿",kke="🎮",Lke="🕹️",Pke="🎰",Uke="🎲",Fke="🧩",Bke="🧸",Gke="🪅",Vke="🪆",zke="♠️",Hke="♥️",qke="♦️",Yke="♣️",$ke="♟️",Wke="🃏",Kke="🀄",jke="🎴",Qke="🎭",Xke="🖼️",Zke="🎨",Jke="🧵",eLe="🪡",tLe="🧶",nLe="🪢",sLe="👓",iLe="🕶️",rLe="🥽",oLe="🥼",aLe="🦺",lLe="👔",cLe="👕",dLe="👕",uLe="👖",pLe="🧣",_Le="🧤",hLe="🧥",fLe="🧦",mLe="👗",gLe="👘",bLe="🥻",ELe="🩱",yLe="🩲",vLe="🩳",SLe="👙",TLe="👚",xLe="👛",CLe="👜",wLe="👝",RLe="🛍️",ALe="🎒",NLe="🩴",OLe="👞",ILe="👞",MLe="👟",DLe="🥾",kLe="🥿",LLe="👠",PLe="👡",ULe="🩰",FLe="👢",BLe="👑",GLe="👒",VLe="🎩",zLe="🎓",HLe="🧢",qLe="🪖",YLe="⛑️",$Le="📿",WLe="💄",KLe="💍",jLe="💎",QLe="🔇",XLe="🔈",ZLe="🔉",JLe="🔊",ePe="📢",tPe="📣",nPe="📯",sPe="🔔",iPe="🔕",rPe="🎼",oPe="🎵",aPe="🎶",lPe="🎙️",cPe="🎚️",dPe="🎛️",uPe="🎤",pPe="🎧",_Pe="📻",hPe="🎷",fPe="🪗",mPe="🎸",gPe="🎹",bPe="🎺",EPe="🎻",yPe="🪕",vPe="🥁",SPe="🪘",TPe="📱",xPe="📲",CPe="☎️",wPe="☎️",RPe="📞",APe="📟",NPe="📠",OPe="🔋",IPe="🔌",MPe="💻",DPe="🖥️",kPe="🖨️",LPe="⌨️",PPe="🖱️",UPe="🖲️",FPe="💽",BPe="💾",GPe="💿",VPe="📀",zPe="🧮",HPe="🎥",qPe="🎞️",YPe="📽️",$Pe="🎬",WPe="📺",KPe="📷",jPe="📸",QPe="📹",XPe="📼",ZPe="🔍",JPe="🔎",eUe="🕯️",tUe="💡",nUe="🔦",sUe="🏮",iUe="🏮",rUe="🪔",oUe="📔",aUe="📕",lUe="📖",cUe="📖",dUe="📗",uUe="📘",pUe="📙",_Ue="📚",hUe="📓",fUe="📒",mUe="📃",gUe="📜",bUe="📄",EUe="📰",yUe="🗞️",vUe="📑",SUe="🔖",TUe="🏷️",xUe="💰",CUe="🪙",wUe="💴",RUe="💵",AUe="💶",NUe="💷",OUe="💸",IUe="💳",MUe="🧾",DUe="💹",kUe="✉️",LUe="📧",PUe="📨",UUe="📩",FUe="📤",BUe="📥",GUe="📫",VUe="📪",zUe="📬",HUe="📭",qUe="📮",YUe="🗳️",$Ue="✏️",WUe="✒️",KUe="🖋️",jUe="🖊️",QUe="🖌️",XUe="🖍️",ZUe="📝",JUe="📝",eFe="💼",tFe="📁",nFe="📂",sFe="🗂️",iFe="📅",rFe="📆",oFe="🗒️",aFe="🗓️",lFe="📇",cFe="📈",dFe="📉",uFe="📊",pFe="📋",_Fe="📌",hFe="📍",fFe="📎",mFe="🖇️",gFe="📏",bFe="📐",EFe="✂️",yFe="🗃️",vFe="🗄️",SFe="🗑️",TFe="🔒",xFe="🔓",CFe="🔏",wFe="🔐",RFe="🔑",AFe="🗝️",NFe="🔨",OFe="🪓",IFe="⛏️",MFe="⚒️",DFe="🛠️",kFe="🗡️",LFe="⚔️",PFe="🔫",UFe="🪃",FFe="🏹",BFe="🛡️",GFe="🪚",VFe="🔧",zFe="🪛",HFe="🔩",qFe="⚙️",YFe="🗜️",$Fe="⚖️",WFe="🦯",KFe="🔗",jFe="⛓️",QFe="🪝",XFe="🧰",ZFe="🧲",JFe="🪜",e3e="⚗️",t3e="🧪",n3e="🧫",s3e="🧬",i3e="🔬",r3e="🔭",o3e="📡",a3e="💉",l3e="🩸",c3e="💊",d3e="🩹",u3e="🩺",p3e="🚪",_3e="🛗",h3e="🪞",f3e="🪟",m3e="🛏️",g3e="🛋️",b3e="🪑",E3e="🚽",y3e="🪠",v3e="🚿",S3e="🛁",T3e="🪤",x3e="🪒",C3e="🧴",w3e="🧷",R3e="🧹",A3e="🧺",N3e="🧻",O3e="🪣",I3e="🧼",M3e="🪥",D3e="🧽",k3e="🧯",L3e="🛒",P3e="🚬",U3e="⚰️",F3e="🪦",B3e="⚱️",G3e="🗿",V3e="🪧",z3e="🏧",H3e="🚮",q3e="🚰",Y3e="♿",$3e="🚹",W3e="🚺",K3e="🚻",j3e="🚼",Q3e="🚾",X3e="🛂",Z3e="🛃",J3e="🛄",eBe="🛅",tBe="⚠️",nBe="🚸",sBe="⛔",iBe="🚫",rBe="🚳",oBe="🚭",aBe="🚯",lBe="🚷",cBe="📵",dBe="🔞",uBe="☢️",pBe="☣️",_Be="⬆️",hBe="↗️",fBe="➡️",mBe="↘️",gBe="⬇️",bBe="↙️",EBe="⬅️",yBe="↖️",vBe="↕️",SBe="↔️",TBe="↩️",xBe="↪️",CBe="⤴️",wBe="⤵️",RBe="🔃",ABe="🔄",NBe="🔙",OBe="🔚",IBe="🔛",MBe="🔜",DBe="🔝",kBe="🛐",LBe="⚛️",PBe="🕉️",UBe="✡️",FBe="☸️",BBe="☯️",GBe="✝️",VBe="☦️",zBe="☪️",HBe="☮️",qBe="🕎",YBe="🔯",$Be="♈",WBe="♉",KBe="♊",jBe="♋",QBe="♌",XBe="♍",ZBe="♎",JBe="♏",e4e="♐",t4e="♑",n4e="♒",s4e="♓",i4e="⛎",r4e="🔀",o4e="🔁",a4e="🔂",l4e="▶️",c4e="⏩",d4e="⏭️",u4e="⏯️",p4e="◀️",_4e="⏪",h4e="⏮️",f4e="🔼",m4e="⏫",g4e="🔽",b4e="⏬",E4e="⏸️",y4e="⏹️",v4e="⏺️",S4e="⏏️",T4e="🎦",x4e="🔅",C4e="🔆",w4e="📶",R4e="📳",A4e="📴",N4e="♀️",O4e="♂️",I4e="⚧️",M4e="✖️",D4e="",k4e="",L4e="➗",P4e="♾️",U4e="‼️",F4e="⁉️",B4e="❓",G4e="❔",V4e="❕",z4e="❗",H4e="❗",q4e="〰️",Y4e="💱",$4e="💲",W4e="⚕️",K4e="♻️",j4e="⚜️",Q4e="🔱",X4e="📛",Z4e="🔰",J4e="⭕",e5e="✅",t5e="☑️",n5e="✔️",s5e="❌",i5e="❎",r5e="➰",o5e="➿",a5e="〽️",l5e="✳️",c5e="✴️",d5e="❇️",u5e="©️",p5e="®️",_5e="™️",h5e="#️⃣",f5e="*️⃣",m5e="0⃣",g5e="1⃣",b5e="2⃣",E5e="3⃣",y5e="4⃣",v5e="5⃣",S5e="6⃣",T5e="7⃣",x5e="8⃣",C5e="9⃣",w5e="🔟",R5e="🔠",A5e="🔡",N5e="🔣",O5e="🔤",I5e="🅰️",M5e="🆎",D5e="🅱️",k5e="🆑",L5e="🆒",P5e="🆓",U5e="",F5e="🆔",B5e="Ⓜ️",G5e="🆖",V5e="🅾️",z5e="🆗",H5e="🅿️",q5e="🆘",Y5e="🆙",$5e="🆚",W5e="🈁",K5e="🈂️",j5e="🉐",Q5e="🉑",X5e="㊗️",Z5e="㊙️",J5e="🈵",eGe="🔴",tGe="🟠",nGe="🟡",sGe="🟢",iGe="🔵",rGe="🟣",oGe="🟤",aGe="⚫",lGe="⚪",cGe="🟥",dGe="🟧",uGe="🟨",pGe="🟩",_Ge="🟦",hGe="🟪",fGe="🟫",mGe="⬛",gGe="⬜",bGe="◼️",EGe="◻️",yGe="◾",vGe="◽",SGe="▪️",TGe="▫️",xGe="🔶",CGe="🔷",wGe="🔸",RGe="🔹",AGe="🔺",NGe="🔻",OGe="💠",IGe="🔘",MGe="🔳",DGe="🔲",kGe="🏁",LGe="🚩",PGe="🎌",UGe="🏴",FGe="🏳️",BGe="🏳️‍🌈",GGe="🏳️‍⚧️",VGe="🏴‍☠️",zGe="🇦🇨",HGe="🇦🇩",qGe="🇦🇪",YGe="🇦🇫",$Ge="🇦🇬",WGe="🇦🇮",KGe="🇦🇱",jGe="🇦🇲",QGe="🇦🇴",XGe="🇦🇶",ZGe="🇦🇷",JGe="🇦🇸",e6e="🇦🇹",t6e="🇦🇺",n6e="🇦🇼",s6e="🇦🇽",i6e="🇦🇿",r6e="🇧🇦",o6e="🇧🇧",a6e="🇧🇩",l6e="🇧🇪",c6e="🇧🇫",d6e="🇧🇬",u6e="🇧🇭",p6e="🇧🇮",_6e="🇧🇯",h6e="🇧🇱",f6e="🇧🇲",m6e="🇧🇳",g6e="🇧🇴",b6e="🇧🇶",E6e="🇧🇷",y6e="🇧🇸",v6e="🇧🇹",S6e="🇧🇻",T6e="🇧🇼",x6e="🇧🇾",C6e="🇧🇿",w6e="🇨🇦",R6e="🇨🇨",A6e="🇨🇩",N6e="🇨🇫",O6e="🇨🇬",I6e="🇨🇭",M6e="🇨🇮",D6e="🇨🇰",k6e="🇨🇱",L6e="🇨🇲",P6e="🇨🇳",U6e="🇨🇴",F6e="🇨🇵",B6e="🇨🇷",G6e="🇨🇺",V6e="🇨🇻",z6e="🇨🇼",H6e="🇨🇽",q6e="🇨🇾",Y6e="🇨🇿",$6e="🇩🇪",W6e="🇩🇬",K6e="🇩🇯",j6e="🇩🇰",Q6e="🇩🇲",X6e="🇩🇴",Z6e="🇩🇿",J6e="🇪🇦",e9e="🇪🇨",t9e="🇪🇪",n9e="🇪🇬",s9e="🇪🇭",i9e="🇪🇷",r9e="🇪🇸",o9e="🇪🇹",a9e="🇪🇺",l9e="🇪🇺",c9e="🇫🇮",d9e="🇫🇯",u9e="🇫🇰",p9e="🇫🇲",_9e="🇫🇴",h9e="🇫🇷",f9e="🇬🇦",m9e="🇬🇧",g9e="🇬🇧",b9e="🇬🇩",E9e="🇬🇪",y9e="🇬🇫",v9e="🇬🇬",S9e="🇬🇭",T9e="🇬🇮",x9e="🇬🇱",C9e="🇬🇲",w9e="🇬🇳",R9e="🇬🇵",A9e="🇬🇶",N9e="🇬🇷",O9e="🇬🇸",I9e="🇬🇹",M9e="🇬🇺",D9e="🇬🇼",k9e="🇬🇾",L9e="🇭🇰",P9e="🇭🇲",U9e="🇭🇳",F9e="🇭🇷",B9e="🇭🇹",G9e="🇭🇺",V9e="🇮🇨",z9e="🇮🇩",H9e="🇮🇪",q9e="🇮🇱",Y9e="🇮🇲",$9e="🇮🇳",W9e="🇮🇴",K9e="🇮🇶",j9e="🇮🇷",Q9e="🇮🇸",X9e="🇮🇹",Z9e="🇯🇪",J9e="🇯🇲",e8e="🇯🇴",t8e="🇯🇵",n8e="🇰🇪",s8e="🇰🇬",i8e="🇰🇭",r8e="🇰🇮",o8e="🇰🇲",a8e="🇰🇳",l8e="🇰🇵",c8e="🇰🇷",d8e="🇰🇼",u8e="🇰🇾",p8e="🇰🇿",_8e="🇱🇦",h8e="🇱🇧",f8e="🇱🇨",m8e="🇱🇮",g8e="🇱🇰",b8e="🇱🇷",E8e="🇱🇸",y8e="🇱🇹",v8e="🇱🇺",S8e="🇱🇻",T8e="🇱🇾",x8e="🇲🇦",C8e="🇲🇨",w8e="🇲🇩",R8e="🇲🇪",A8e="🇲🇫",N8e="🇲🇬",O8e="🇲🇭",I8e="🇲🇰",M8e="🇲🇱",D8e="🇲🇲",k8e="🇲🇳",L8e="🇲🇴",P8e="🇲🇵",U8e="🇲🇶",F8e="🇲🇷",B8e="🇲🇸",G8e="🇲🇹",V8e="🇲🇺",z8e="🇲🇻",H8e="🇲🇼",q8e="🇲🇽",Y8e="🇲🇾",$8e="🇲🇿",W8e="🇳🇦",K8e="🇳🇨",j8e="🇳🇪",Q8e="🇳🇫",X8e="🇳🇬",Z8e="🇳🇮",J8e="🇳🇱",eVe="🇳🇴",tVe="🇳🇵",nVe="🇳🇷",sVe="🇳🇺",iVe="🇳🇿",rVe="🇴🇲",oVe="🇵🇦",aVe="🇵🇪",lVe="🇵🇫",cVe="🇵🇬",dVe="🇵🇭",uVe="🇵🇰",pVe="🇵🇱",_Ve="🇵🇲",hVe="🇵🇳",fVe="🇵🇷",mVe="🇵🇸",gVe="🇵🇹",bVe="🇵🇼",EVe="🇵🇾",yVe="🇶🇦",vVe="🇷🇪",SVe="🇷🇴",TVe="🇷🇸",xVe="🇷🇺",CVe="🇷🇼",wVe="🇸🇦",RVe="🇸🇧",AVe="🇸🇨",NVe="🇸🇩",OVe="🇸🇪",IVe="🇸🇬",MVe="🇸🇭",DVe="🇸🇮",kVe="🇸🇯",LVe="🇸🇰",PVe="🇸🇱",UVe="🇸🇲",FVe="🇸🇳",BVe="🇸🇴",GVe="🇸🇷",VVe="🇸🇸",zVe="🇸🇹",HVe="🇸🇻",qVe="🇸🇽",YVe="🇸🇾",$Ve="🇸🇿",WVe="🇹🇦",KVe="🇹🇨",jVe="🇹🇩",QVe="🇹🇫",XVe="🇹🇬",ZVe="🇹🇭",JVe="🇹🇯",eze="🇹🇰",tze="🇹🇱",nze="🇹🇲",sze="🇹🇳",ize="🇹🇴",rze="🇹🇷",oze="🇹🇹",aze="🇹🇻",lze="🇹🇼",cze="🇹🇿",dze="🇺🇦",uze="🇺🇬",pze="🇺🇲",_ze="🇺🇳",hze="🇺🇸",fze="🇺🇾",mze="🇺🇿",gze="🇻🇦",bze="🇻🇨",Eze="🇻🇪",yze="🇻🇬",vze="🇻🇮",Sze="🇻🇳",Tze="🇻🇺",xze="🇼🇫",Cze="🇼🇸",wze="🇽🇰",Rze="🇾🇪",Aze="🇾🇹",Nze="🇿🇦",Oze="🇿🇲",Ize="🇿🇼",Mze="🏴󠁧󠁢󠁥󠁮󠁧󠁿",Dze="🏴󠁧󠁢󠁳󠁣󠁴󠁿",kze="🏴󠁧󠁢󠁷󠁬󠁳󠁿",Lze={100:"💯",1234:"🔢",grinning:$ge,smiley:Wge,smile:Kge,grin:jge,laughing:Qge,satisfied:Xge,sweat_smile:Zge,rofl:Jge,joy:ebe,slightly_smiling_face:tbe,upside_down_face:nbe,wink:sbe,blush:ibe,innocent:rbe,smiling_face_with_three_hearts:obe,heart_eyes:abe,star_struck:lbe,kissing_heart:cbe,kissing:dbe,relaxed:ube,kissing_closed_eyes:pbe,kissing_smiling_eyes:_be,smiling_face_with_tear:hbe,yum:fbe,stuck_out_tongue:mbe,stuck_out_tongue_winking_eye:gbe,zany_face:bbe,stuck_out_tongue_closed_eyes:Ebe,money_mouth_face:ybe,hugs:vbe,hand_over_mouth:Sbe,shushing_face:Tbe,thinking:xbe,zipper_mouth_face:Cbe,raised_eyebrow:wbe,neutral_face:Rbe,expressionless:Abe,no_mouth:Nbe,smirk:Obe,unamused:Ibe,roll_eyes:Mbe,grimacing:Dbe,lying_face:kbe,relieved:Lbe,pensive:Pbe,sleepy:Ube,drooling_face:Fbe,sleeping:Bbe,mask:Gbe,face_with_thermometer:Vbe,face_with_head_bandage:zbe,nauseated_face:Hbe,vomiting_face:qbe,sneezing_face:Ybe,hot_face:$be,cold_face:Wbe,woozy_face:Kbe,dizzy_face:jbe,exploding_head:Qbe,cowboy_hat_face:Xbe,partying_face:Zbe,disguised_face:Jbe,sunglasses:eEe,nerd_face:tEe,monocle_face:nEe,confused:sEe,worried:iEe,slightly_frowning_face:rEe,frowning_face:oEe,open_mouth:aEe,hushed:lEe,astonished:cEe,flushed:dEe,pleading_face:uEe,frowning:pEe,anguished:_Ee,fearful:hEe,cold_sweat:fEe,disappointed_relieved:mEe,cry:gEe,sob:bEe,scream:EEe,confounded:yEe,persevere:vEe,disappointed:SEe,sweat:TEe,weary:xEe,tired_face:CEe,yawning_face:wEe,triumph:REe,rage:AEe,pout:NEe,angry:OEe,cursing_face:IEe,smiling_imp:MEe,imp:DEe,skull:kEe,skull_and_crossbones:LEe,hankey:PEe,poop:UEe,shit:FEe,clown_face:BEe,japanese_ogre:GEe,japanese_goblin:VEe,ghost:zEe,alien:HEe,space_invader:qEe,robot:YEe,smiley_cat:$Ee,smile_cat:WEe,joy_cat:KEe,heart_eyes_cat:jEe,smirk_cat:QEe,kissing_cat:XEe,scream_cat:ZEe,crying_cat_face:JEe,pouting_cat:eye,see_no_evil:tye,hear_no_evil:nye,speak_no_evil:sye,kiss:iye,love_letter:rye,cupid:oye,gift_heart:aye,sparkling_heart:lye,heartpulse:cye,heartbeat:dye,revolving_hearts:uye,two_hearts:pye,heart_decoration:_ye,heavy_heart_exclamation:hye,broken_heart:fye,heart:mye,orange_heart:gye,yellow_heart:bye,green_heart:Eye,blue_heart:yye,purple_heart:vye,brown_heart:Sye,black_heart:Tye,white_heart:xye,anger:Cye,boom:wye,collision:Rye,dizzy:Aye,sweat_drops:Nye,dash:Oye,hole:Iye,bomb:Mye,speech_balloon:Dye,eye_speech_bubble:kye,left_speech_bubble:Lye,right_anger_bubble:Pye,thought_balloon:Uye,zzz:Fye,wave:Bye,raised_back_of_hand:Gye,raised_hand_with_fingers_splayed:Vye,hand:zye,raised_hand:Hye,vulcan_salute:qye,ok_hand:Yye,pinched_fingers:$ye,pinching_hand:Wye,v:Kye,crossed_fingers:jye,love_you_gesture:Qye,metal:Xye,call_me_hand:Zye,point_left:Jye,point_right:eve,point_up_2:tve,middle_finger:nve,fu:sve,point_down:ive,point_up:rve,"+1":"👍",thumbsup:ove,"-1":"👎",thumbsdown:ave,fist_raised:lve,fist:cve,fist_oncoming:dve,facepunch:uve,punch:pve,fist_left:_ve,fist_right:hve,clap:fve,raised_hands:mve,open_hands:gve,palms_up_together:bve,handshake:Eve,pray:yve,writing_hand:vve,nail_care:Sve,selfie:Tve,muscle:xve,mechanical_arm:Cve,mechanical_leg:wve,leg:Rve,foot:Ave,ear:Nve,ear_with_hearing_aid:Ove,nose:Ive,brain:Mve,anatomical_heart:Dve,lungs:kve,tooth:Lve,bone:Pve,eyes:Uve,eye:Fve,tongue:Bve,lips:Gve,baby:Vve,child:zve,boy:Hve,girl:qve,adult:Yve,blond_haired_person:$ve,man:Wve,bearded_person:Kve,red_haired_man:jve,curly_haired_man:Qve,white_haired_man:Xve,bald_man:Zve,woman:Jve,red_haired_woman:eSe,person_red_hair:tSe,curly_haired_woman:nSe,person_curly_hair:sSe,white_haired_woman:iSe,person_white_hair:rSe,bald_woman:oSe,person_bald:aSe,blond_haired_woman:lSe,blonde_woman:cSe,blond_haired_man:dSe,older_adult:uSe,older_man:pSe,older_woman:_Se,frowning_person:hSe,frowning_man:fSe,frowning_woman:mSe,pouting_face:gSe,pouting_man:bSe,pouting_woman:ESe,no_good:ySe,no_good_man:vSe,ng_man:SSe,no_good_woman:TSe,ng_woman:xSe,ok_person:CSe,ok_man:wSe,ok_woman:RSe,tipping_hand_person:ASe,information_desk_person:NSe,tipping_hand_man:OSe,sassy_man:ISe,tipping_hand_woman:MSe,sassy_woman:DSe,raising_hand:kSe,raising_hand_man:LSe,raising_hand_woman:PSe,deaf_person:USe,deaf_man:FSe,deaf_woman:BSe,bow:GSe,bowing_man:VSe,bowing_woman:zSe,facepalm:HSe,man_facepalming:qSe,woman_facepalming:YSe,shrug:$Se,man_shrugging:WSe,woman_shrugging:KSe,health_worker:jSe,man_health_worker:QSe,woman_health_worker:XSe,student:ZSe,man_student:JSe,woman_student:e0e,teacher:t0e,man_teacher:n0e,woman_teacher:s0e,judge:i0e,man_judge:r0e,woman_judge:o0e,farmer:a0e,man_farmer:l0e,woman_farmer:c0e,cook:d0e,man_cook:u0e,woman_cook:p0e,mechanic:_0e,man_mechanic:h0e,woman_mechanic:f0e,factory_worker:m0e,man_factory_worker:g0e,woman_factory_worker:b0e,office_worker:E0e,man_office_worker:y0e,woman_office_worker:v0e,scientist:S0e,man_scientist:T0e,woman_scientist:x0e,technologist:C0e,man_technologist:w0e,woman_technologist:R0e,singer:A0e,man_singer:N0e,woman_singer:O0e,artist:I0e,man_artist:M0e,woman_artist:D0e,pilot:k0e,man_pilot:L0e,woman_pilot:P0e,astronaut:U0e,man_astronaut:F0e,woman_astronaut:B0e,firefighter:G0e,man_firefighter:V0e,woman_firefighter:z0e,police_officer:H0e,cop:q0e,policeman:Y0e,policewoman:$0e,detective:W0e,male_detective:K0e,female_detective:j0e,guard:Q0e,guardsman:X0e,guardswoman:Z0e,ninja:J0e,construction_worker:eTe,construction_worker_man:tTe,construction_worker_woman:nTe,prince:sTe,princess:iTe,person_with_turban:rTe,man_with_turban:oTe,woman_with_turban:aTe,man_with_gua_pi_mao:lTe,woman_with_headscarf:cTe,person_in_tuxedo:dTe,man_in_tuxedo:uTe,woman_in_tuxedo:pTe,person_with_veil:_Te,man_with_veil:hTe,woman_with_veil:fTe,bride_with_veil:mTe,pregnant_woman:gTe,breast_feeding:bTe,woman_feeding_baby:ETe,man_feeding_baby:yTe,person_feeding_baby:vTe,angel:STe,santa:TTe,mrs_claus:xTe,mx_claus:CTe,superhero:wTe,superhero_man:RTe,superhero_woman:ATe,supervillain:NTe,supervillain_man:OTe,supervillain_woman:ITe,mage:MTe,mage_man:DTe,mage_woman:kTe,fairy:LTe,fairy_man:PTe,fairy_woman:UTe,vampire:FTe,vampire_man:BTe,vampire_woman:GTe,merperson:VTe,merman:zTe,mermaid:HTe,elf:qTe,elf_man:YTe,elf_woman:$Te,genie:WTe,genie_man:KTe,genie_woman:jTe,zombie:QTe,zombie_man:XTe,zombie_woman:ZTe,massage:JTe,massage_man:exe,massage_woman:txe,haircut:nxe,haircut_man:sxe,haircut_woman:ixe,walking:rxe,walking_man:oxe,walking_woman:axe,standing_person:lxe,standing_man:cxe,standing_woman:dxe,kneeling_person:uxe,kneeling_man:pxe,kneeling_woman:_xe,person_with_probing_cane:hxe,man_with_probing_cane:fxe,woman_with_probing_cane:mxe,person_in_motorized_wheelchair:gxe,man_in_motorized_wheelchair:bxe,woman_in_motorized_wheelchair:Exe,person_in_manual_wheelchair:yxe,man_in_manual_wheelchair:vxe,woman_in_manual_wheelchair:Sxe,runner:Txe,running:xxe,running_man:Cxe,running_woman:wxe,woman_dancing:Rxe,dancer:Axe,man_dancing:Nxe,business_suit_levitating:Oxe,dancers:Ixe,dancing_men:Mxe,dancing_women:Dxe,sauna_person:kxe,sauna_man:Lxe,sauna_woman:Pxe,climbing:Uxe,climbing_man:Fxe,climbing_woman:Bxe,person_fencing:Gxe,horse_racing:Vxe,skier:zxe,snowboarder:Hxe,golfing:qxe,golfing_man:Yxe,golfing_woman:$xe,surfer:Wxe,surfing_man:Kxe,surfing_woman:jxe,rowboat:Qxe,rowing_man:Xxe,rowing_woman:Zxe,swimmer:Jxe,swimming_man:eCe,swimming_woman:tCe,bouncing_ball_person:nCe,bouncing_ball_man:sCe,basketball_man:iCe,bouncing_ball_woman:rCe,basketball_woman:oCe,weight_lifting:aCe,weight_lifting_man:lCe,weight_lifting_woman:cCe,bicyclist:dCe,biking_man:uCe,biking_woman:pCe,mountain_bicyclist:_Ce,mountain_biking_man:hCe,mountain_biking_woman:fCe,cartwheeling:mCe,man_cartwheeling:gCe,woman_cartwheeling:bCe,wrestling:ECe,men_wrestling:yCe,women_wrestling:vCe,water_polo:SCe,man_playing_water_polo:TCe,woman_playing_water_polo:xCe,handball_person:CCe,man_playing_handball:wCe,woman_playing_handball:RCe,juggling_person:ACe,man_juggling:NCe,woman_juggling:OCe,lotus_position:ICe,lotus_position_man:MCe,lotus_position_woman:DCe,bath:kCe,sleeping_bed:LCe,people_holding_hands:PCe,two_women_holding_hands:UCe,couple:FCe,two_men_holding_hands:BCe,couplekiss:GCe,couplekiss_man_woman:VCe,couplekiss_man_man:zCe,couplekiss_woman_woman:HCe,couple_with_heart:qCe,couple_with_heart_woman_man:YCe,couple_with_heart_man_man:$Ce,couple_with_heart_woman_woman:WCe,family:KCe,family_man_woman_boy:jCe,family_man_woman_girl:QCe,family_man_woman_girl_boy:XCe,family_man_woman_boy_boy:ZCe,family_man_woman_girl_girl:JCe,family_man_man_boy:e1e,family_man_man_girl:t1e,family_man_man_girl_boy:n1e,family_man_man_boy_boy:s1e,family_man_man_girl_girl:i1e,family_woman_woman_boy:r1e,family_woman_woman_girl:o1e,family_woman_woman_girl_boy:a1e,family_woman_woman_boy_boy:l1e,family_woman_woman_girl_girl:c1e,family_man_boy:d1e,family_man_boy_boy:u1e,family_man_girl:p1e,family_man_girl_boy:_1e,family_man_girl_girl:h1e,family_woman_boy:f1e,family_woman_boy_boy:m1e,family_woman_girl:g1e,family_woman_girl_boy:b1e,family_woman_girl_girl:E1e,speaking_head:y1e,bust_in_silhouette:v1e,busts_in_silhouette:S1e,people_hugging:T1e,footprints:x1e,monkey_face:C1e,monkey:w1e,gorilla:R1e,orangutan:A1e,dog:N1e,dog2:O1e,guide_dog:I1e,service_dog:M1e,poodle:D1e,wolf:k1e,fox_face:L1e,raccoon:P1e,cat:U1e,cat2:F1e,black_cat:B1e,lion:G1e,tiger:V1e,tiger2:z1e,leopard:H1e,horse:q1e,racehorse:Y1e,unicorn:$1e,zebra:W1e,deer:K1e,bison:j1e,cow:Q1e,ox:X1e,water_buffalo:Z1e,cow2:J1e,pig:ewe,pig2:twe,boar:nwe,pig_nose:swe,ram:iwe,sheep:rwe,goat:owe,dromedary_camel:awe,camel:lwe,llama:cwe,giraffe:dwe,elephant:uwe,mammoth:pwe,rhinoceros:_we,hippopotamus:hwe,mouse:fwe,mouse2:mwe,rat:gwe,hamster:bwe,rabbit:Ewe,rabbit2:ywe,chipmunk:vwe,beaver:Swe,hedgehog:Twe,bat:xwe,bear:Cwe,polar_bear:wwe,koala:Rwe,panda_face:Awe,sloth:Nwe,otter:Owe,skunk:Iwe,kangaroo:Mwe,badger:Dwe,feet:kwe,paw_prints:Lwe,turkey:Pwe,chicken:Uwe,rooster:Fwe,hatching_chick:Bwe,baby_chick:Gwe,hatched_chick:Vwe,bird:zwe,penguin:Hwe,dove:qwe,eagle:Ywe,duck:$we,swan:Wwe,owl:Kwe,dodo:jwe,feather:Qwe,flamingo:Xwe,peacock:Zwe,parrot:Jwe,frog:eRe,crocodile:tRe,turtle:nRe,lizard:sRe,snake:iRe,dragon_face:rRe,dragon:oRe,sauropod:aRe,"t-rex":"🦖",whale:lRe,whale2:cRe,dolphin:dRe,flipper:uRe,seal:pRe,fish:_Re,tropical_fish:hRe,blowfish:fRe,shark:mRe,octopus:gRe,shell:bRe,snail:ERe,butterfly:yRe,bug:vRe,ant:SRe,bee:TRe,honeybee:xRe,beetle:CRe,lady_beetle:wRe,cricket:RRe,cockroach:ARe,spider:NRe,spider_web:ORe,scorpion:IRe,mosquito:MRe,fly:DRe,worm:kRe,microbe:LRe,bouquet:PRe,cherry_blossom:URe,white_flower:FRe,rosette:BRe,rose:GRe,wilted_flower:VRe,hibiscus:zRe,sunflower:HRe,blossom:qRe,tulip:YRe,seedling:$Re,potted_plant:WRe,evergreen_tree:KRe,deciduous_tree:jRe,palm_tree:QRe,cactus:XRe,ear_of_rice:ZRe,herb:JRe,shamrock:eAe,four_leaf_clover:tAe,maple_leaf:nAe,fallen_leaf:sAe,leaves:iAe,grapes:rAe,melon:oAe,watermelon:aAe,tangerine:lAe,orange:cAe,mandarin:dAe,lemon:uAe,banana:pAe,pineapple:_Ae,mango:hAe,apple:fAe,green_apple:mAe,pear:gAe,peach:bAe,cherries:EAe,strawberry:yAe,blueberries:vAe,kiwi_fruit:SAe,tomato:TAe,olive:xAe,coconut:CAe,avocado:wAe,eggplant:RAe,potato:AAe,carrot:NAe,corn:OAe,hot_pepper:IAe,bell_pepper:MAe,cucumber:DAe,leafy_green:kAe,broccoli:LAe,garlic:PAe,onion:UAe,mushroom:FAe,peanuts:BAe,chestnut:GAe,bread:VAe,croissant:zAe,baguette_bread:HAe,flatbread:qAe,pretzel:YAe,bagel:$Ae,pancakes:WAe,waffle:KAe,cheese:jAe,meat_on_bone:QAe,poultry_leg:XAe,cut_of_meat:ZAe,bacon:JAe,hamburger:eNe,fries:tNe,pizza:nNe,hotdog:sNe,sandwich:iNe,taco:rNe,burrito:oNe,tamale:aNe,stuffed_flatbread:lNe,falafel:cNe,egg:dNe,fried_egg:uNe,shallow_pan_of_food:pNe,stew:_Ne,fondue:hNe,bowl_with_spoon:fNe,green_salad:mNe,popcorn:gNe,butter:bNe,salt:ENe,canned_food:yNe,bento:vNe,rice_cracker:SNe,rice_ball:TNe,rice:xNe,curry:CNe,ramen:wNe,spaghetti:RNe,sweet_potato:ANe,oden:NNe,sushi:ONe,fried_shrimp:INe,fish_cake:MNe,moon_cake:DNe,dango:kNe,dumpling:LNe,fortune_cookie:PNe,takeout_box:UNe,crab:FNe,lobster:BNe,shrimp:GNe,squid:VNe,oyster:zNe,icecream:HNe,shaved_ice:qNe,ice_cream:YNe,doughnut:$Ne,cookie:WNe,birthday:KNe,cake:jNe,cupcake:QNe,pie:XNe,chocolate_bar:ZNe,candy:JNe,lollipop:eOe,custard:tOe,honey_pot:nOe,baby_bottle:sOe,milk_glass:iOe,coffee:rOe,teapot:oOe,tea:aOe,sake:lOe,champagne:cOe,wine_glass:dOe,cocktail:uOe,tropical_drink:pOe,beer:_Oe,beers:hOe,clinking_glasses:fOe,tumbler_glass:mOe,cup_with_straw:gOe,bubble_tea:bOe,beverage_box:EOe,mate:yOe,ice_cube:vOe,chopsticks:SOe,plate_with_cutlery:TOe,fork_and_knife:xOe,spoon:COe,hocho:wOe,knife:ROe,amphora:AOe,earth_africa:NOe,earth_americas:OOe,earth_asia:IOe,globe_with_meridians:MOe,world_map:DOe,japan:kOe,compass:LOe,mountain_snow:POe,mountain:UOe,volcano:FOe,mount_fuji:BOe,camping:GOe,beach_umbrella:VOe,desert:zOe,desert_island:HOe,national_park:qOe,stadium:YOe,classical_building:$Oe,building_construction:WOe,bricks:KOe,rock:jOe,wood:QOe,hut:XOe,houses:ZOe,derelict_house:JOe,house:eIe,house_with_garden:tIe,office:nIe,post_office:sIe,european_post_office:iIe,hospital:rIe,bank:oIe,hotel:aIe,love_hotel:lIe,convenience_store:cIe,school:dIe,department_store:uIe,factory:pIe,japanese_castle:_Ie,european_castle:hIe,wedding:fIe,tokyo_tower:mIe,statue_of_liberty:gIe,church:bIe,mosque:EIe,hindu_temple:yIe,synagogue:vIe,shinto_shrine:SIe,kaaba:TIe,fountain:xIe,tent:CIe,foggy:wIe,night_with_stars:RIe,cityscape:AIe,sunrise_over_mountains:NIe,sunrise:OIe,city_sunset:IIe,city_sunrise:MIe,bridge_at_night:DIe,hotsprings:kIe,carousel_horse:LIe,ferris_wheel:PIe,roller_coaster:UIe,barber:FIe,circus_tent:BIe,steam_locomotive:GIe,railway_car:VIe,bullettrain_side:zIe,bullettrain_front:HIe,train2:qIe,metro:YIe,light_rail:$Ie,station:WIe,tram:KIe,monorail:jIe,mountain_railway:QIe,train:XIe,bus:ZIe,oncoming_bus:JIe,trolleybus:eMe,minibus:tMe,ambulance:nMe,fire_engine:sMe,police_car:iMe,oncoming_police_car:rMe,taxi:oMe,oncoming_taxi:aMe,car:lMe,red_car:cMe,oncoming_automobile:dMe,blue_car:uMe,pickup_truck:pMe,truck:_Me,articulated_lorry:hMe,tractor:fMe,racing_car:mMe,motorcycle:gMe,motor_scooter:bMe,manual_wheelchair:EMe,motorized_wheelchair:yMe,auto_rickshaw:vMe,bike:SMe,kick_scooter:TMe,skateboard:xMe,roller_skate:CMe,busstop:wMe,motorway:RMe,railway_track:AMe,oil_drum:NMe,fuelpump:OMe,rotating_light:IMe,traffic_light:MMe,vertical_traffic_light:DMe,stop_sign:kMe,construction:LMe,anchor:PMe,boat:UMe,sailboat:FMe,canoe:BMe,speedboat:GMe,passenger_ship:VMe,ferry:zMe,motor_boat:HMe,ship:qMe,airplane:YMe,small_airplane:$Me,flight_departure:WMe,flight_arrival:KMe,parachute:jMe,seat:QMe,helicopter:XMe,suspension_railway:ZMe,mountain_cableway:JMe,aerial_tramway:e2e,artificial_satellite:t2e,rocket:n2e,flying_saucer:s2e,bellhop_bell:i2e,luggage:r2e,hourglass:o2e,hourglass_flowing_sand:a2e,watch:l2e,alarm_clock:c2e,stopwatch:d2e,timer_clock:u2e,mantelpiece_clock:p2e,clock12:_2e,clock1230:h2e,clock1:f2e,clock130:m2e,clock2:g2e,clock230:b2e,clock3:E2e,clock330:y2e,clock4:v2e,clock430:S2e,clock5:T2e,clock530:x2e,clock6:C2e,clock630:w2e,clock7:R2e,clock730:A2e,clock8:N2e,clock830:O2e,clock9:I2e,clock930:M2e,clock10:D2e,clock1030:k2e,clock11:L2e,clock1130:P2e,new_moon:U2e,waxing_crescent_moon:F2e,first_quarter_moon:B2e,moon:G2e,waxing_gibbous_moon:V2e,full_moon:z2e,waning_gibbous_moon:H2e,last_quarter_moon:q2e,waning_crescent_moon:Y2e,crescent_moon:$2e,new_moon_with_face:W2e,first_quarter_moon_with_face:K2e,last_quarter_moon_with_face:j2e,thermometer:Q2e,sunny:X2e,full_moon_with_face:Z2e,sun_with_face:J2e,ringed_planet:eDe,star:tDe,star2:nDe,stars:sDe,milky_way:iDe,cloud:rDe,partly_sunny:oDe,cloud_with_lightning_and_rain:aDe,sun_behind_small_cloud:lDe,sun_behind_large_cloud:cDe,sun_behind_rain_cloud:dDe,cloud_with_rain:uDe,cloud_with_snow:pDe,cloud_with_lightning:_De,tornado:hDe,fog:fDe,wind_face:mDe,cyclone:gDe,rainbow:bDe,closed_umbrella:EDe,open_umbrella:yDe,umbrella:vDe,parasol_on_ground:SDe,zap:TDe,snowflake:xDe,snowman_with_snow:CDe,snowman:wDe,comet:RDe,fire:ADe,droplet:NDe,ocean:ODe,jack_o_lantern:IDe,christmas_tree:MDe,fireworks:DDe,sparkler:kDe,firecracker:LDe,sparkles:PDe,balloon:UDe,tada:FDe,confetti_ball:BDe,tanabata_tree:GDe,bamboo:VDe,dolls:zDe,flags:HDe,wind_chime:qDe,rice_scene:YDe,red_envelope:$De,ribbon:WDe,gift:KDe,reminder_ribbon:jDe,tickets:QDe,ticket:XDe,medal_military:ZDe,trophy:JDe,medal_sports:eke,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:tke,baseball:nke,softball:ske,basketball:ike,volleyball:rke,football:oke,rugby_football:ake,tennis:lke,flying_disc:cke,bowling:dke,cricket_game:uke,field_hockey:pke,ice_hockey:_ke,lacrosse:hke,ping_pong:fke,badminton:mke,boxing_glove:gke,martial_arts_uniform:bke,goal_net:Eke,golf:yke,ice_skate:vke,fishing_pole_and_fish:Ske,diving_mask:Tke,running_shirt_with_sash:xke,ski:Cke,sled:wke,curling_stone:Rke,dart:Ake,yo_yo:Nke,kite:Oke,"8ball":"🎱",crystal_ball:Ike,magic_wand:Mke,nazar_amulet:Dke,video_game:kke,joystick:Lke,slot_machine:Pke,game_die:Uke,jigsaw:Fke,teddy_bear:Bke,pinata:Gke,nesting_dolls:Vke,spades:zke,hearts:Hke,diamonds:qke,clubs:Yke,chess_pawn:$ke,black_joker:Wke,mahjong:Kke,flower_playing_cards:jke,performing_arts:Qke,framed_picture:Xke,art:Zke,thread:Jke,sewing_needle:eLe,yarn:tLe,knot:nLe,eyeglasses:sLe,dark_sunglasses:iLe,goggles:rLe,lab_coat:oLe,safety_vest:aLe,necktie:lLe,shirt:cLe,tshirt:dLe,jeans:uLe,scarf:pLe,gloves:_Le,coat:hLe,socks:fLe,dress:mLe,kimono:gLe,sari:bLe,one_piece_swimsuit:ELe,swim_brief:yLe,shorts:vLe,bikini:SLe,womans_clothes:TLe,purse:xLe,handbag:CLe,pouch:wLe,shopping:RLe,school_satchel:ALe,thong_sandal:NLe,mans_shoe:OLe,shoe:ILe,athletic_shoe:MLe,hiking_boot:DLe,flat_shoe:kLe,high_heel:LLe,sandal:PLe,ballet_shoes:ULe,boot:FLe,crown:BLe,womans_hat:GLe,tophat:VLe,mortar_board:zLe,billed_cap:HLe,military_helmet:qLe,rescue_worker_helmet:YLe,prayer_beads:$Le,lipstick:WLe,ring:KLe,gem:jLe,mute:QLe,speaker:XLe,sound:ZLe,loud_sound:JLe,loudspeaker:ePe,mega:tPe,postal_horn:nPe,bell:sPe,no_bell:iPe,musical_score:rPe,musical_note:oPe,notes:aPe,studio_microphone:lPe,level_slider:cPe,control_knobs:dPe,microphone:uPe,headphones:pPe,radio:_Pe,saxophone:hPe,accordion:fPe,guitar:mPe,musical_keyboard:gPe,trumpet:bPe,violin:EPe,banjo:yPe,drum:vPe,long_drum:SPe,iphone:TPe,calling:xPe,phone:CPe,telephone:wPe,telephone_receiver:RPe,pager:APe,fax:NPe,battery:OPe,electric_plug:IPe,computer:MPe,desktop_computer:DPe,printer:kPe,keyboard:LPe,computer_mouse:PPe,trackball:UPe,minidisc:FPe,floppy_disk:BPe,cd:GPe,dvd:VPe,abacus:zPe,movie_camera:HPe,film_strip:qPe,film_projector:YPe,clapper:$Pe,tv:WPe,camera:KPe,camera_flash:jPe,video_camera:QPe,vhs:XPe,mag:ZPe,mag_right:JPe,candle:eUe,bulb:tUe,flashlight:nUe,izakaya_lantern:sUe,lantern:iUe,diya_lamp:rUe,notebook_with_decorative_cover:oUe,closed_book:aUe,book:lUe,open_book:cUe,green_book:dUe,blue_book:uUe,orange_book:pUe,books:_Ue,notebook:hUe,ledger:fUe,page_with_curl:mUe,scroll:gUe,page_facing_up:bUe,newspaper:EUe,newspaper_roll:yUe,bookmark_tabs:vUe,bookmark:SUe,label:TUe,moneybag:xUe,coin:CUe,yen:wUe,dollar:RUe,euro:AUe,pound:NUe,money_with_wings:OUe,credit_card:IUe,receipt:MUe,chart:DUe,envelope:kUe,email:LUe,"e-mail":"📧",incoming_envelope:PUe,envelope_with_arrow:UUe,outbox_tray:FUe,inbox_tray:BUe,package:"📦",mailbox:GUe,mailbox_closed:VUe,mailbox_with_mail:zUe,mailbox_with_no_mail:HUe,postbox:qUe,ballot_box:YUe,pencil2:$Ue,black_nib:WUe,fountain_pen:KUe,pen:jUe,paintbrush:QUe,crayon:XUe,memo:ZUe,pencil:JUe,briefcase:eFe,file_folder:tFe,open_file_folder:nFe,card_index_dividers:sFe,date:iFe,calendar:rFe,spiral_notepad:oFe,spiral_calendar:aFe,card_index:lFe,chart_with_upwards_trend:cFe,chart_with_downwards_trend:dFe,bar_chart:uFe,clipboard:pFe,pushpin:_Fe,round_pushpin:hFe,paperclip:fFe,paperclips:mFe,straight_ruler:gFe,triangular_ruler:bFe,scissors:EFe,card_file_box:yFe,file_cabinet:vFe,wastebasket:SFe,lock:TFe,unlock:xFe,lock_with_ink_pen:CFe,closed_lock_with_key:wFe,key:RFe,old_key:AFe,hammer:NFe,axe:OFe,pick:IFe,hammer_and_pick:MFe,hammer_and_wrench:DFe,dagger:kFe,crossed_swords:LFe,gun:PFe,boomerang:UFe,bow_and_arrow:FFe,shield:BFe,carpentry_saw:GFe,wrench:VFe,screwdriver:zFe,nut_and_bolt:HFe,gear:qFe,clamp:YFe,balance_scale:$Fe,probing_cane:WFe,link:KFe,chains:jFe,hook:QFe,toolbox:XFe,magnet:ZFe,ladder:JFe,alembic:e3e,test_tube:t3e,petri_dish:n3e,dna:s3e,microscope:i3e,telescope:r3e,satellite:o3e,syringe:a3e,drop_of_blood:l3e,pill:c3e,adhesive_bandage:d3e,stethoscope:u3e,door:p3e,elevator:_3e,mirror:h3e,window:f3e,bed:m3e,couch_and_lamp:g3e,chair:b3e,toilet:E3e,plunger:y3e,shower:v3e,bathtub:S3e,mouse_trap:T3e,razor:x3e,lotion_bottle:C3e,safety_pin:w3e,broom:R3e,basket:A3e,roll_of_paper:N3e,bucket:O3e,soap:I3e,toothbrush:M3e,sponge:D3e,fire_extinguisher:k3e,shopping_cart:L3e,smoking:P3e,coffin:U3e,headstone:F3e,funeral_urn:B3e,moyai:G3e,placard:V3e,atm:z3e,put_litter_in_its_place:H3e,potable_water:q3e,wheelchair:Y3e,mens:$3e,womens:W3e,restroom:K3e,baby_symbol:j3e,wc:Q3e,passport_control:X3e,customs:Z3e,baggage_claim:J3e,left_luggage:eBe,warning:tBe,children_crossing:nBe,no_entry:sBe,no_entry_sign:iBe,no_bicycles:rBe,no_smoking:oBe,do_not_litter:aBe,"non-potable_water":"🚱",no_pedestrians:lBe,no_mobile_phones:cBe,underage:dBe,radioactive:uBe,biohazard:pBe,arrow_up:_Be,arrow_upper_right:hBe,arrow_right:fBe,arrow_lower_right:mBe,arrow_down:gBe,arrow_lower_left:bBe,arrow_left:EBe,arrow_upper_left:yBe,arrow_up_down:vBe,left_right_arrow:SBe,leftwards_arrow_with_hook:TBe,arrow_right_hook:xBe,arrow_heading_up:CBe,arrow_heading_down:wBe,arrows_clockwise:RBe,arrows_counterclockwise:ABe,back:NBe,end:OBe,on:IBe,soon:MBe,top:DBe,place_of_worship:kBe,atom_symbol:LBe,om:PBe,star_of_david:UBe,wheel_of_dharma:FBe,yin_yang:BBe,latin_cross:GBe,orthodox_cross:VBe,star_and_crescent:zBe,peace_symbol:HBe,menorah:qBe,six_pointed_star:YBe,aries:$Be,taurus:WBe,gemini:KBe,cancer:jBe,leo:QBe,virgo:XBe,libra:ZBe,scorpius:JBe,sagittarius:e4e,capricorn:t4e,aquarius:n4e,pisces:s4e,ophiuchus:i4e,twisted_rightwards_arrows:r4e,repeat:o4e,repeat_one:a4e,arrow_forward:l4e,fast_forward:c4e,next_track_button:d4e,play_or_pause_button:u4e,arrow_backward:p4e,rewind:_4e,previous_track_button:h4e,arrow_up_small:f4e,arrow_double_up:m4e,arrow_down_small:g4e,arrow_double_down:b4e,pause_button:E4e,stop_button:y4e,record_button:v4e,eject_button:S4e,cinema:T4e,low_brightness:x4e,high_brightness:C4e,signal_strength:w4e,vibration_mode:R4e,mobile_phone_off:A4e,female_sign:N4e,male_sign:O4e,transgender_symbol:I4e,heavy_multiplication_x:M4e,heavy_plus_sign:D4e,heavy_minus_sign:k4e,heavy_division_sign:L4e,infinity:P4e,bangbang:U4e,interrobang:F4e,question:B4e,grey_question:G4e,grey_exclamation:V4e,exclamation:z4e,heavy_exclamation_mark:H4e,wavy_dash:q4e,currency_exchange:Y4e,heavy_dollar_sign:$4e,medical_symbol:W4e,recycle:K4e,fleur_de_lis:j4e,trident:Q4e,name_badge:X4e,beginner:Z4e,o:J4e,white_check_mark:e5e,ballot_box_with_check:t5e,heavy_check_mark:n5e,x:s5e,negative_squared_cross_mark:i5e,curly_loop:r5e,loop:o5e,part_alternation_mark:a5e,eight_spoked_asterisk:l5e,eight_pointed_black_star:c5e,sparkle:d5e,copyright:u5e,registered:p5e,tm:_5e,hash:h5e,asterisk:f5e,zero:m5e,one:g5e,two:b5e,three:E5e,four:y5e,five:v5e,six:S5e,seven:T5e,eight:x5e,nine:C5e,keycap_ten:w5e,capital_abcd:R5e,abcd:A5e,symbols:N5e,abc:O5e,a:I5e,ab:M5e,b:D5e,cl:k5e,cool:L5e,free:P5e,information_source:U5e,id:F5e,m:B5e,new:"🆕",ng:G5e,o2:V5e,ok:z5e,parking:H5e,sos:q5e,up:Y5e,vs:$5e,koko:W5e,sa:K5e,ideograph_advantage:j5e,accept:Q5e,congratulations:X5e,secret:Z5e,u6e80:J5e,red_circle:eGe,orange_circle:tGe,yellow_circle:nGe,green_circle:sGe,large_blue_circle:iGe,purple_circle:rGe,brown_circle:oGe,black_circle:aGe,white_circle:lGe,red_square:cGe,orange_square:dGe,yellow_square:uGe,green_square:pGe,blue_square:_Ge,purple_square:hGe,brown_square:fGe,black_large_square:mGe,white_large_square:gGe,black_medium_square:bGe,white_medium_square:EGe,black_medium_small_square:yGe,white_medium_small_square:vGe,black_small_square:SGe,white_small_square:TGe,large_orange_diamond:xGe,large_blue_diamond:CGe,small_orange_diamond:wGe,small_blue_diamond:RGe,small_red_triangle:AGe,small_red_triangle_down:NGe,diamond_shape_with_a_dot_inside:OGe,radio_button:IGe,white_square_button:MGe,black_square_button:DGe,checkered_flag:kGe,triangular_flag_on_post:LGe,crossed_flags:PGe,black_flag:UGe,white_flag:FGe,rainbow_flag:BGe,transgender_flag:GGe,pirate_flag:VGe,ascension_island:zGe,andorra:HGe,united_arab_emirates:qGe,afghanistan:YGe,antigua_barbuda:$Ge,anguilla:WGe,albania:KGe,armenia:jGe,angola:QGe,antarctica:XGe,argentina:ZGe,american_samoa:JGe,austria:e6e,australia:t6e,aruba:n6e,aland_islands:s6e,azerbaijan:i6e,bosnia_herzegovina:r6e,barbados:o6e,bangladesh:a6e,belgium:l6e,burkina_faso:c6e,bulgaria:d6e,bahrain:u6e,burundi:p6e,benin:_6e,st_barthelemy:h6e,bermuda:f6e,brunei:m6e,bolivia:g6e,caribbean_netherlands:b6e,brazil:E6e,bahamas:y6e,bhutan:v6e,bouvet_island:S6e,botswana:T6e,belarus:x6e,belize:C6e,canada:w6e,cocos_islands:R6e,congo_kinshasa:A6e,central_african_republic:N6e,congo_brazzaville:O6e,switzerland:I6e,cote_divoire:M6e,cook_islands:D6e,chile:k6e,cameroon:L6e,cn:P6e,colombia:U6e,clipperton_island:F6e,costa_rica:B6e,cuba:G6e,cape_verde:V6e,curacao:z6e,christmas_island:H6e,cyprus:q6e,czech_republic:Y6e,de:$6e,diego_garcia:W6e,djibouti:K6e,denmark:j6e,dominica:Q6e,dominican_republic:X6e,algeria:Z6e,ceuta_melilla:J6e,ecuador:e9e,estonia:t9e,egypt:n9e,western_sahara:s9e,eritrea:i9e,es:r9e,ethiopia:o9e,eu:a9e,european_union:l9e,finland:c9e,fiji:d9e,falkland_islands:u9e,micronesia:p9e,faroe_islands:_9e,fr:h9e,gabon:f9e,gb:m9e,uk:g9e,grenada:b9e,georgia:E9e,french_guiana:y9e,guernsey:v9e,ghana:S9e,gibraltar:T9e,greenland:x9e,gambia:C9e,guinea:w9e,guadeloupe:R9e,equatorial_guinea:A9e,greece:N9e,south_georgia_south_sandwich_islands:O9e,guatemala:I9e,guam:M9e,guinea_bissau:D9e,guyana:k9e,hong_kong:L9e,heard_mcdonald_islands:P9e,honduras:U9e,croatia:F9e,haiti:B9e,hungary:G9e,canary_islands:V9e,indonesia:z9e,ireland:H9e,israel:q9e,isle_of_man:Y9e,india:$9e,british_indian_ocean_territory:W9e,iraq:K9e,iran:j9e,iceland:Q9e,it:X9e,jersey:Z9e,jamaica:J9e,jordan:e8e,jp:t8e,kenya:n8e,kyrgyzstan:s8e,cambodia:i8e,kiribati:r8e,comoros:o8e,st_kitts_nevis:a8e,north_korea:l8e,kr:c8e,kuwait:d8e,cayman_islands:u8e,kazakhstan:p8e,laos:_8e,lebanon:h8e,st_lucia:f8e,liechtenstein:m8e,sri_lanka:g8e,liberia:b8e,lesotho:E8e,lithuania:y8e,luxembourg:v8e,latvia:S8e,libya:T8e,morocco:x8e,monaco:C8e,moldova:w8e,montenegro:R8e,st_martin:A8e,madagascar:N8e,marshall_islands:O8e,macedonia:I8e,mali:M8e,myanmar:D8e,mongolia:k8e,macau:L8e,northern_mariana_islands:P8e,martinique:U8e,mauritania:F8e,montserrat:B8e,malta:G8e,mauritius:V8e,maldives:z8e,malawi:H8e,mexico:q8e,malaysia:Y8e,mozambique:$8e,namibia:W8e,new_caledonia:K8e,niger:j8e,norfolk_island:Q8e,nigeria:X8e,nicaragua:Z8e,netherlands:J8e,norway:eVe,nepal:tVe,nauru:nVe,niue:sVe,new_zealand:iVe,oman:rVe,panama:oVe,peru:aVe,french_polynesia:lVe,papua_new_guinea:cVe,philippines:dVe,pakistan:uVe,poland:pVe,st_pierre_miquelon:_Ve,pitcairn_islands:hVe,puerto_rico:fVe,palestinian_territories:mVe,portugal:gVe,palau:bVe,paraguay:EVe,qatar:yVe,reunion:vVe,romania:SVe,serbia:TVe,ru:xVe,rwanda:CVe,saudi_arabia:wVe,solomon_islands:RVe,seychelles:AVe,sudan:NVe,sweden:OVe,singapore:IVe,st_helena:MVe,slovenia:DVe,svalbard_jan_mayen:kVe,slovakia:LVe,sierra_leone:PVe,san_marino:UVe,senegal:FVe,somalia:BVe,suriname:GVe,south_sudan:VVe,sao_tome_principe:zVe,el_salvador:HVe,sint_maarten:qVe,syria:YVe,swaziland:$Ve,tristan_da_cunha:WVe,turks_caicos_islands:KVe,chad:jVe,french_southern_territories:QVe,togo:XVe,thailand:ZVe,tajikistan:JVe,tokelau:eze,timor_leste:tze,turkmenistan:nze,tunisia:sze,tonga:ize,tr:rze,trinidad_tobago:oze,tuvalu:aze,taiwan:lze,tanzania:cze,ukraine:dze,uganda:uze,us_outlying_islands:pze,united_nations:_ze,us:hze,uruguay:fze,uzbekistan:mze,vatican_city:gze,st_vincent_grenadines:bze,venezuela:Eze,british_virgin_islands:yze,us_virgin_islands:vze,vietnam:Sze,vanuatu:Tze,wallis_futuna:xze,samoa:Cze,kosovo:wze,yemen:Rze,mayotte:Aze,south_africa:Nze,zambia:Oze,zimbabwe:Ize,england:Mze,scotland:Dze,wales:kze};var Pze={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]},Uze=function(e,t){return e[t].content},Fze=function(e,t,s,i,r){var o=e.utils.arrayReplaceAt,a=e.utils.lib.ucmicro,l=new RegExp([a.Z.source,a.P.source,a.Cc.source].join("|"));function u(d,h,f){var _,m=0,E=[];return d.replace(r,function(b,g,y){var v;if(s.hasOwnProperty(b)){if(v=s[b],g>0&&!l.test(y[g-1])||g+b.length<y.length&&!l.test(y[g+b.length]))return}else v=b.slice(1,-1);g>m&&(_=new f("text","",0),_.content=d.slice(m,g),E.push(_)),_=new f("emoji","",0),_.markup=v,_.content=t[v],E.push(_),m=g+b.length}),m<d.length&&(_=new f("text","",0),_.content=d.slice(m),E.push(_)),E}return function(h){var f,_,m,E,b,g=h.tokens,y=0;for(_=0,m=g.length;_<m;_++)if(g[_].type==="inline")for(E=g[_].children,f=E.length-1;f>=0;f--)b=E[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=E=o(E,f,u(b.content,b.level,h.Token)))}};function Bze(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Gze=function(e){var t=e.defs,s;e.enabled.length&&(t=Object.keys(t).reduce(function(l,u){return e.enabled.indexOf(u)>=0&&(l[u]=t[u]),l},{})),s=Object.keys(e.shortcuts).reduce(function(l,u){return t[u]?Array.isArray(e.shortcuts[u])?(e.shortcuts[u].forEach(function(d){l[d]=u}),l):(l[e.shortcuts[u]]=u,l):l},{});var i=Object.keys(t),r;i.length===0?r="^$":r=i.map(function(l){return":"+l+":"}).concat(Object.keys(s)).sort().reverse().map(function(l){return Bze(l)}).join("|");var o=RegExp(r),a=RegExp(r,"g");return{defs:t,shortcuts:s,scanRE:o,replaceRE:a}},Vze=Uze,zze=Fze,Hze=Gze,qze=function(e,t){var s={defs:{},shortcuts:{},enabled:[]},i=Hze(e.utils.assign({},s,t||{}));e.renderer.rules.emoji=Vze,e.core.ruler.after("linkify","emoji",zze(e,i.defs,i.shortcuts,i.scanRE,i.replaceRE))},Yze=Lze,$ze=Pze,Wze=qze,Kze=function(e,t){var s={defs:Yze,shortcuts:$ze,enabled:[]},i=e.utils.assign({},s,t||{});Wze(e,i)};const jze=_r(Kze);var Wv=!1,ta={false:"push",true:"unshift",after:"push",before:"unshift"},kd={isPermalinkSymbol:!0};function vg(n,e,t,s){var i;if(!Wv){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),Wv=!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:kd}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[s+1].children[ta[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(i=t.tokens[s+1].children)[ta[e.permalinkBefore]].apply(i,o)}function NA(n){return"#"+n}function OA(n){return{}}var Qze={class:"header-anchor",symbol:"#",renderHref:NA,renderAttrs:OA};function Ql(n){function e(t){return t=Object.assign({},e.defaults,t),function(s,i,r,o){return n(s,t,i,r,o)}}return e.defaults=Object.assign({},Qze),e.renderPermalinkImpl=n,e}var Lu=Ql(function(n,e,t,s,i){var r,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:kd}),new s.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";s.tokens[i+1].children[ta[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=s.tokens[i+1].children)[ta[e.placement]].apply(r,o)});Object.assign(Lu.defaults,{space:!0,placement:"after",ariaHidden:!1});var Rr=Ql(Lu.renderPermalinkImpl);Rr.defaults=Object.assign({},Lu.defaults,{ariaHidden:!0});var IA=Ql(function(n,e,t,s,i){var r=[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[i+1].children,e.safariReaderFix?[new s.Token("span_close","span",-1)]:[],[new s.Token("link_close","a",-1)]);s.tokens[i+1]=Object.assign(new s.Token("inline","",0),{children:r})});Object.assign(IA.defaults,{safariReaderFix:!1});var Kv=Ql(function(n,e,t,s,i){var r;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=s.tokens[i+1].children.filter(function(h){return h.type==="text"||h.type==="code_inline"}).reduce(function(h,f){return h+f.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(n,s)]),l.push.apply(l,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 u=typeof e.space=="string"?e.space:" ";a[ta[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:u}))}a[ta[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:kd}),new s.Token("span_close","span",-1))}else a.push(Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:kd}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,n]);var d=[Object.assign(new s.Token("link_open","a",1),{attrs:l})].concat(a,[new s.Token("link_close","a",-1)]);(r=s.tokens).splice.apply(r,[i+3,0].concat(d)),e.wrapper&&(s.tokens.splice(i,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[0]+`
`})),s.tokens.splice(i+3+d.length+1,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[1]+`
`})))});function jv(n,e,t,s){var i=n,r=s;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+"-"+r,r+=1;return e[i]=!0,i}function Do(n,e){e=Object.assign({},Do.defaults,e),n.core.ruler.push("anchor",function(t){for(var s,i={},r=t.tokens,o=Array.isArray(e.level)?(s=e.level,function(h){return s.includes(h)}):function(h){return function(f){return f>=h}}(e.level),a=0;a<r.length;a++){var l=r[a];if(l.type==="heading_open"&&o(Number(l.tag.substr(1)))){var u=e.getTokensText(r[a+1].children),d=l.attrGet("id");d=d==null?jv(e.slugify(u),i,!1,e.uniqueSlugStartIndex):jv(d,i,!0,e.uniqueSlugStartIndex),l.attrSet("id",d),e.tabIndex!==!1&&l.attrSet("tabindex",""+e.tabIndex),typeof e.permalink=="function"?e.permalink(d,e,t,a):(e.permalink||e.renderPermalink&&e.renderPermalink!==vg)&&e.renderPermalink(d,e,t,a),a=r.indexOf(l),e.callback&&e.callback(l,{slug:d,title:u})}}})}Object.assign(Kv.defaults,{style:"visually-hidden",space:!0,placement:"after",wrapper:null}),Do.permalink={__proto__:null,legacy:vg,renderHref:NA,renderAttrs:OA,makePermalink:Ql,linkInsideHeader:Lu,ariaHidden:Rr,headerLink:IA,linkAfterHeader:Kv},Do.defaults={level:1,slugify:function(n){return encodeURIComponent(String(n).trim().toLowerCase().replace(/\s+/g,"-"))},uniqueSlugStartIndex:1,tabIndex:"-1",getTokensText:function(n){return n.filter(function(e){return["text","code_inline"].includes(e.type)}).map(function(e){return e.content}).join("")},permalink:!1,renderPermalink:vg,permalinkClass:Rr.defaults.class,permalinkSpace:Rr.defaults.space,permalinkSymbol:"¶",permalinkBefore:Rr.defaults.placement==="before",permalinkHref:Rr.defaults.renderHref,permalinkAttrs:Rr.defaults.renderAttrs},Do.default=Do;function Di(){this.__highest_alphabet__=0,this.__match_alphabets__={},this.__initial_state__=0,this.__accept_states__={},this.__transitions__={},this.__actions__={}}Di.prototype.set_highest_alphabet=function(n){this.__highest_alphabet__=n};Di.prototype.set_match_alphabets=function(n){this.__match_alphabets__=n};Di.prototype.set_initial_state=function(n){this.__initial_state__=n};Di.prototype.set_accept_states=function(n){for(var e=0;e<n.length;e++)this.__accept_states__[n[e]]=!0};Di.prototype.set_transitions=function(n){this.__transitions__=n};Di.prototype.set_actions=function(n){this.__actions__=n};Di.prototype.update_transition=function(n,e){this.__transitions__[n]=Object.assign(this.__transitions__[n]||Object(),e)};Di.prototype.execute=function(n,e){var t,s,i;for(t=this.__initial_state__,s=n;t&&s<e;s++){for(i=this.__highest_alphabet__;i>0&&!(t&i&&this.__match_alphabets__[i].call(this,s,t,i));i>>=4);if(this.__actions__(s,t,i),i===0)break;t=this.__transitions__[t][i]||0}return!!this.__accept_states__[t]};var Xze=Di,Zze=Xze,Jze=function(e,t){var s={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};t=e.utils.assign({},s,t||{});function i(d,h){var f=d.bMarks[h]+d.sCount[h],_=d.bMarks[h]+d.blkIndent,m=d.skipSpacesBack(d.eMarks[h],_),E=[],b,g,y=!1,v=!1,S=0;for(b=f;b<m;b++)switch(d.src.charCodeAt(b)){case 92:y=!0;break;case 96:g=d.skipChars(b,96)-1,g>b?(v||(S===0?S=g-b:S===g-b&&(S=0)),b=g):(v||!y&&!S)&&(v=!v),y=!1;break;case 124:!v&&!y&&E.push(b),y=!1;break;default:y=!1;break}return E.length===0||(E[0]>_&&E.unshift(_-1),E[E.length-1]<m-1&&E.push(m)),E}function r(d,h,f){var _={text:null,label:null},m=d.bMarks[f]+d.sCount[f],E=d.eMarks[f],b=/^\[(.+?)\](\[([^\[\]]+)\])?\s*$/,g=d.src.slice(m,E).match(b);return g?h?!0:(_.text=g[1],!t.autolabel&&!g[2]||(_.label=g[2]||g[1],_.label=_.label.toLowerCase().replace(/\W+/g,"")),_):!1}function o(d,h,f){var _={bounds:null,multiline:null},m=i(d,f),E,b,g;return m.length<2?!1:h?!0:(_.bounds=m,t.multiline&&(E=d.bMarks[f]+d.sCount[f],b=d.eMarks[f]-1,_.multiline=d.src.charCodeAt(b)===92,_.multiline&&(g=d.eMarks[f],d.eMarks[f]=d.skipSpacesBack(b,E),_.bounds=i(d,f),d.eMarks[f]=g)),_)}function a(d,h,f){var _={aligns:[],wraps:[]},m=i(d,f),E=/^:?(-+|=+):?\+?$/,b,g,y;if(d.sCount[f]-d.blkIndent>=4||m.length===0)return!1;for(b=0;b<m.length-1;b++){if(g=d.src.slice(m[b]+1,m[b+1]).trim(),!E.test(g))return!1;switch(_.wraps.push(g.charCodeAt(g.length-1)===43),y=(g.charCodeAt(0)===58)<<4|g.charCodeAt(g.length-1-_.wraps[b])===58,y){case 0:_.aligns.push("");break;case 1:_.aligns.push("right");break;case 16:_.aligns.push("left");break;case 17:_.aligns.push("center");break}}return h?!0:_}function l(d,h,f){return d.isEmpty(f)}function u(d,h,f,_){var m=new Zze,E=16,b=-1,g,y,v,S,w,x,A=[],D,T,O,F,z,Z,M,q,H,P;if(h+2>f||(y=new d.Token("table_open","table",1),y.meta={sep:null,cap:null,tr:[]},m.set_highest_alphabet(65536),m.set_initial_state(65792),m.set_accept_states([65552,65553,0]),m.set_match_alphabets({65536:r.bind(this,d,!0),4096:a.bind(this,d,!0),256:o.bind(this,d,!0),16:o.bind(this,d,!0),1:l.bind(this,d,!0)}),m.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&&(m.set_initial_state(69888),m.update_transition(69888,{65536:4352,4096:65552,256:4352}),v=new d.Token("tr_placeholder","tr",0),v.meta=Object()),t.multibody||m.update_transition(65552,{65536:0,16:65552}),m.set_actions(function(re,me,Se){switch(Se){case 65536:if(y.meta.cap)break;y.meta.cap=r(d,!1,re),y.meta.cap.map=[re,re+1],y.meta.cap.first=re===h;break;case 4096:y.meta.sep=a(d,!1,re),y.meta.sep.map=[re,re+1],v.meta.grp|=1,E=16;break;case 256:case 16:v=new d.Token("tr_open","tr",1),v.map=[re,re+1],v.meta=o(d,!1,re),v.meta.type=Se,v.meta.grp=E,E=0,y.meta.tr.push(v),t.multiline&&(v.meta.multiline&&b<0?b=y.meta.tr.length-1:!v.meta.multiline&&b>=0&&(g=y.meta.tr[b],g.meta.mbounds=y.meta.tr.slice(b).map(function(le){return le.meta.bounds}),g.map[1]=v.map[1],y.meta.tr=y.meta.tr.slice(0,b+1),b=-1));break;case 1:v.meta.grp|=1,E=16;break}}),m.execute(h,f)===!1)||!y.meta.tr.length)return!1;if(_)return!0;if(y.meta.tr[y.meta.tr.length-1].meta.grp|=1,y.map=D=[h,0],y.block=!0,y.level=d.level++,d.tokens.push(y),y.meta.cap){g=d.push("caption_open","caption",1),g.map=y.meta.cap.map;var $=[],J=y.meta.cap.first?"top":"bottom";y.meta.cap.label!==null&&$.push(["id",y.meta.cap.label]),J!=="top"&&$.push(["style","caption-side: "+J]),g.attrs=$,g=d.push("inline","",0),g.content=y.meta.cap.text,g.map=y.meta.cap.map,g.children=[],g=d.push("caption_close","caption",-1)}for(Z=0;Z<y.meta.tr.length;Z++){for(w=new d.Token("td_th_placeholder","",0),v=y.meta.tr[Z],v.meta.grp&16&&(O=v.meta.type===256?"thead":"tbody",g=d.push(O+"_open",O,1),g.map=T=[v.map[0],0],A=[]),v.block=!0,v.level=d.level++,d.tokens.push(v),M=0;M<v.meta.bounds.length-1;M++){if(z=[v.meta.bounds[M]+1,v.meta.bounds[M+1]],F=d.src.slice.apply(d.src,z),F===""){S=w.attrGet("colspan"),w.attrSet("colspan",S===null?2:S+1);continue}if(t.rowspan&&A[M]&&F.trim()==="^^"){x=A[M].attrGet("rowspan"),A[M].attrSet("rowspan",x===null?2:x+1),w=new d.Token("td_th_placeholder","",0);continue}if(O=v.meta.type===256?"th":"td",g=d.push(O+"_open",O,1),g.map=v.map,g.attrs=[],y.meta.sep.aligns[M]&&g.attrs.push(["style","text-align:"+y.meta.sep.aligns[M]]),y.meta.sep.wraps[M]&&g.attrs.push(["class","extend"]),w=A[M]=g,t.multiline&&v.meta.multiline&&v.meta.mbounds){for(F=new Array(v.map[0]).fill("").concat([F.trimRight()]),q=1;q<v.meta.mbounds.length;q++)M>v.meta.mbounds[q].length-2||(z=[v.meta.mbounds[q][M]+1,v.meta.mbounds[q][M+1]],F.push(d.src.slice.apply(d.src,z).trimRight()));for(P=new d.md.block.State(F.join(`
`),d.md,d.env,[]),P.level=v.level+1,d.md.block.tokenize(P,v.map[0],P.lineMax),H=0;H<P.tokens.length;H++)d.tokens.push(P.tokens[H])}else g=d.push("inline","",0),g.content=F.trim(),g.map=v.map,g.level=v.level+1,g.children=[];g=d.push(O+"_close",O,-1)}d.push("tr_close","tr",-1),v.meta.grp&1&&(O=v.meta.type===256?"thead":"tbody",g=d.push(O+"_close",O,-1),T[1]=v.map[1])}return D[1]=Math.max(T[1],y.meta.sep.map[1],y.meta.cap?y.meta.cap.map[1]:-1),g=d.push("table_close","table",-1),d.line=D[1],!0}e.block.ruler.at("table",u,{alt:["paragraph","reference"]})};const eHe=_r(Jze);var tHe=function(e,t){t=t||{};function s(i){for(var r=1,o=1,a=i.tokens.length;o<a-1;++o){var l=i.tokens[o];if(l.type==="inline"&&!(!l.children||l.children.length!==1&&l.children.length!==3)&&!(l.children.length===1&&l.children[0].type!=="image")&&!(l.children.length===3&&(l.children[0].type!=="link_open"||l.children[1].type!=="image"||l.children[2].type!=="link_close"))&&!(o!==0&&i.tokens[o-1].type!=="paragraph_open")&&!(o!==a-1&&i.tokens[o+1].type!=="paragraph_close")){var u=i.tokens[o-1];u.type="figure_open",u.tag="figure",i.tokens[o+1].type="figure_close",i.tokens[o+1].tag="figure",t.dataType==!0&&i.tokens[o-1].attrPush(["data-type","image"]);var d;if(t.link==!0&&l.children.length===1&&(d=l.children[0],l.children.unshift(new i.Token("link_open","a",1)),l.children[0].attrPush(["href",d.attrGet("src")]),l.children.push(new i.Token("link_close","a",-1))),d=l.children.length===1?l.children[0]:l.children[1],t.figcaption==!0&&d.children&&d.children.length&&(l.children.push(new i.Token("figcaption_open","figcaption",1)),l.children.splice(l.children.length,0,...d.children),l.children.push(new i.Token("figcaption_close","figcaption",-1)),d.children.length=0),t.copyAttrs&&d.attrs){const h=t.copyAttrs===!0?"":t.copyAttrs;u.attrs=d.attrs.filter(([f,_])=>f.match(h))}t.tabindex==!0&&(i.tokens[o-1].attrPush(["tabindex",r]),r++),t.lazyLoading==!0&&d.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",s)};const nHe=_r(tHe);var hr={};hr.getAttrs=function(n,e,t){const s=/[^\t\n\f />"'=]/,i=" ",r="=",o=".",a="#",l=[];let u="",d="",h=!0,f=!1;for(let _=e+t.leftDelimiter.length;_<n.length;_++){if(n.slice(_,_+t.rightDelimiter.length)===t.rightDelimiter){u!==""&&l.push([u,d]);break}const m=n.charAt(_);if(m===r&&h){h=!1;continue}if(m===o&&u===""){n.charAt(_+1)===o?(u="css-module",_+=1):u="class",h=!1;continue}if(m===a&&u===""){u="id",h=!1;continue}if(m==='"'&&d===""&&!f){f=!0;continue}if(m==='"'&&f){f=!1;continue}if(m===i&&!f){if(u==="")continue;l.push([u,d]),u="",d="",h=!0;continue}if(!(h&&m.search(s)===-1)){if(h){u+=m;continue}d+=m}}if(t.allowedAttributes&&t.allowedAttributes.length){const _=t.allowedAttributes;return l.filter(function(m){const E=m[0];function b(g){return E===g||g instanceof RegExp&&g.test(E)}return _.some(b)})}return l};hr.addAttrs=function(n,e){for(let t=0,s=n.length;t<s;++t){const i=n[t][0];i==="class"?e.attrJoin("class",n[t][1]):i==="css-module"?e.attrJoin("css-module",n[t][1]):e.attrPush(n[t])}return e};hr.hasDelimiters=function(n,e){if(!n)throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');return function(t){const s=e.leftDelimiter.length+1+e.rightDelimiter.length;if(!t||typeof t!="string"||t.length<s)return!1;function i(d){const h=d.charAt(e.leftDelimiter.length)===".",f=d.charAt(e.leftDelimiter.length)==="#";return h||f?d.length>=s+1:d.length>=s}let r,o,a,l;const u=s-e.rightDelimiter.length;switch(n){case"start":a=t.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,o=r===-1?-1:t.indexOf(e.rightDelimiter,u),l=t.charAt(o+e.rightDelimiter.length),l&&e.rightDelimiter.indexOf(l)!==-1&&(o=-1);break;case"end":r=t.lastIndexOf(e.leftDelimiter),o=r===-1?-1:t.indexOf(e.rightDelimiter,r+u),o=o===t.length-e.rightDelimiter.length?o:-1;break;case"only":a=t.slice(0,e.leftDelimiter.length),r=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 r!==-1&&o!==-1&&i(t.substring(r,o+e.rightDelimiter.length))}};hr.removeDelimiter=function(n,e){const t=Sg(e.leftDelimiter),s=Sg(e.rightDelimiter),i=new RegExp("[ \\n]?"+t+"[^"+t+s+"]+"+s+"$"),r=n.search(i);return r!==-1?n.slice(0,r):n};function Sg(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}hr.escapeRegExp=Sg;hr.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 sHe=/[&<>"]/,iHe=/[&<>"]/g,rHe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function oHe(n){return rHe[n]}hr.escapeHtml=function(n){return sHe.test(n)?n.replace(iHe,oHe):n};const Ct=hr;var aHe=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 i=t[s],r=i.info.lastIndexOf(n.leftDelimiter),o=Ct.getAttrs(i.info,r,n);Ct.addAttrs(o,i),i.info=Ct.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:Ct.hasDelimiters("start",n)}]}],transform:(t,s,i)=>{const r=t[s].children[i],o=r.content.indexOf(n.rightDelimiter),a=t[s].children[i-1],l=Ct.getAttrs(r.content,0,n);Ct.addAttrs(l,a),r.content.length===o+n.rightDelimiter.length?t[s].children.splice(i,1):r.content=r.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 i=t[s+2],r=Ct.getMatchingOpeningToken(t,s),o=Ct.getAttrs(i.content,0,n);Ct.addAttrs(o,r),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,i)=>{const r=t[s].children[i],o=r.content,a=Ct.getAttrs(o,0,n),l=Ct.getMatchingOpeningToken(t[s].children,i-1);Ct.addAttrs(a,l),r.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,i)=>{const o=t[s].children[i].content,a=Ct.getAttrs(o,0,n);let l=s-2;for(;t[l-1]&&t[l-1].type!=="ordered_list_open"&&t[l-1].type!=="bullet_list_open";)l--;Ct.addAttrs(a,t[l-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 r=t[s+2].content,o=Ct.getAttrs(r,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,i)=>{const r=t[s].children[i],o=r.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);Ct.addAttrs(a,t[s-2]);const l=o.slice(0,o.lastIndexOf(n.leftDelimiter));r.content=Qv(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:Ct.hasDelimiters("only",n)}]}],transform:(t,s,i)=>{const r=t[s].children[i],o=Ct.getAttrs(r.content,0,n);let a=s+1;for(;t[a+1]&&t[a+1].nesting===-1;)a++;const l=Ct.getMatchingOpeningToken(t,a);Ct.addAttrs(o,l),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 i=t[s];i.type="hr",i.tag="hr",i.nesting=0;const r=t[s+1].content,o=r.lastIndexOf(n.leftDelimiter),a=Ct.getAttrs(r,o,n);Ct.addAttrs(a,i),i.markup=r,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,i)=>{const r=t[s].children[i],o=r.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);let l=s+1;for(;t[l+1]&&t[l+1].nesting===-1;)l++;const u=Ct.getMatchingOpeningToken(t,l);Ct.addAttrs(a,u);const d=o.slice(0,o.lastIndexOf(n.leftDelimiter));r.content=Qv(d)!==" "?d:d.slice(0,-1)}}]};function Qv(n){return n.slice(-1)[0]}const lHe=aHe,cHe={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var dHe=function(e,t){let s=Object.assign({},cHe);s=Object.assign(s,t);const i=lHe(s);function r(o){const a=o.tokens;for(let l=0;l<a.length;l++)for(let u=0;u<i.length;u++){const d=i[u];let h=null;d.tests.every(_=>{const m=Tg(a,l,_);return m.j!==null&&(h=m.j),m.match})&&(d.transform(a,l,h),(d.name==="inline attributes"||d.name==="inline nesting 0")&&u--)}}e.core.ruler.before("linkify","curly_attributes",r)};function Tg(n,e,t){const s={match:!1,j:null},i=t.shift!==void 0?e+t.shift:t.position;if(t.shift!==void 0&&i<0)return s;const r=_He(n,i);if(r===void 0)return s;for(const o of Object.keys(t))if(!(o==="shift"||o==="position")){if(r[o]===void 0)return s;if(o==="children"&&uHe(t.children)){if(r.children.length===0)return s;let a;const l=t.children,u=r.children;if(l.every(d=>d.position!==void 0)){if(a=l.every(d=>Tg(u,d.position,d).match),a){const d=hHe(l).position;s.j=d>=0?d:u.length+d}}else for(let d=0;d<u.length;d++)if(a=l.every(h=>Tg(u,d,h).match),a){s.j=d;break}if(a===!1)return s;continue}switch(typeof t[o]){case"boolean":case"number":case"string":if(r[o]!==t[o])return s;break;case"function":if(!t[o](r[o]))return s;break;case"object":if(pHe(t[o])){if(t[o].every(l=>l(r[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 uHe(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="object")}function pHe(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="function")}function _He(n,e){return e>=0?n[e]:n[n.length+e]}function hHe(n){return n.slice(-1)[0]||{}}const fHe=_r(dHe);function MA(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)&&MA(t)}),n}let Xv=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function DA(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function nr(n,...e){const t=Object.create(null);for(const s in n)t[s]=n[s];return e.forEach(function(s){for(const i in s)t[i]=s[i]}),t}const mHe="</span>",Zv=n=>!!n.scope,gHe=(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,i)=>`${s}${"_".repeat(i+1)}`)].join(" ")}return`${e}${n}`};class bHe{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=DA(e)}openNode(e){if(!Zv(e))return;const t=gHe(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Zv(e)&&(this.buffer+=mHe)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Jv=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class zb{constructor(){this.rootNode=Jv(),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=Jv({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=>{zb._collapse(t)}))}}class EHe extends zb{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 bHe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Dl(n){return n?typeof n=="string"?n:n.source:null}function kA(n){return ro("(?=",n,")")}function yHe(n){return ro("(?:",n,")*")}function vHe(n){return ro("(?:",n,")?")}function ro(...n){return n.map(t=>Dl(t)).join("")}function SHe(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Hb(...n){return"("+(SHe(n).capture?"":"?:")+n.map(s=>Dl(s)).join("|")+")"}function LA(n){return new RegExp(n.toString()+"|").exec("").length-1}function THe(n,e){const t=n&&n.exec(e);return t&&t.index===0}const xHe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function qb(n,{joinWith:e}){let t=0;return n.map(s=>{t+=1;const i=t;let r=Dl(s),o="";for(;r.length>0;){const a=xHe.exec(r);if(!a){o+=r;break}o+=r.substring(0,a.index),r=r.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(s=>`(${s})`).join(e)}const CHe=/\b\B/,PA="[a-zA-Z]\\w*",Yb="[a-zA-Z_]\\w*",UA="\\b\\d+(\\.\\d+)?",FA="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BA="\\b(0b[01]+)",wHe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",RHe=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=ro(e,/.*\b/,n.binary,/\b.*/)),nr({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},n)},kl={begin:"\\\\[\\s\\S]",relevance:0},AHe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[kl]},NHe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[kl]},OHe={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/},Pu=function(n,e,t={}){const s=nr({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 i=Hb("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:ro(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},IHe=Pu("//","$"),MHe=Pu("/\\*","\\*/"),DHe=Pu("#","$"),kHe={scope:"number",begin:UA,relevance:0},LHe={scope:"number",begin:FA,relevance:0},PHe={scope:"number",begin:BA,relevance:0},UHe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[kl,{begin:/\[/,end:/\]/,relevance:0,contains:[kl]}]},FHe={scope:"title",begin:PA,relevance:0},BHe={scope:"title",begin:Yb,relevance:0},GHe={begin:"\\.\\s*"+Yb,relevance:0},VHe=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 Ec=Object.freeze({__proto__:null,APOS_STRING_MODE:AHe,BACKSLASH_ESCAPE:kl,BINARY_NUMBER_MODE:PHe,BINARY_NUMBER_RE:BA,COMMENT:Pu,C_BLOCK_COMMENT_MODE:MHe,C_LINE_COMMENT_MODE:IHe,C_NUMBER_MODE:LHe,C_NUMBER_RE:FA,END_SAME_AS_BEGIN:VHe,HASH_COMMENT_MODE:DHe,IDENT_RE:PA,MATCH_NOTHING_RE:CHe,METHOD_GUARD:GHe,NUMBER_MODE:kHe,NUMBER_RE:UA,PHRASAL_WORDS_MODE:OHe,QUOTE_STRING_MODE:NHe,REGEXP_MODE:UHe,RE_STARTERS_RE:wHe,SHEBANG:RHe,TITLE_MODE:FHe,UNDERSCORE_IDENT_RE:Yb,UNDERSCORE_TITLE_MODE:BHe});function zHe(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function HHe(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function qHe(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=zHe,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function YHe(n,e){Array.isArray(n.illegal)&&(n.illegal=Hb(...n.illegal))}function $He(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 WHe(n,e){n.relevance===void 0&&(n.relevance=1)}const KHe=(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=ro(t.beforeMatch,kA(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},jHe=["of","and","for","in","not","or","if","then","parent","list","value"],QHe="keyword";function GA(n,e,t=QHe){const s=Object.create(null);return typeof n=="string"?i(t,n.split(" ")):Array.isArray(n)?i(t,n):Object.keys(n).forEach(function(r){Object.assign(s,GA(n[r],e,r))}),s;function i(r,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const l=a.split("|");s[l[0]]=[r,XHe(l[0],l[1])]})}}function XHe(n,e){return e?Number(e):ZHe(n)?0:1}function ZHe(n){return jHe.includes(n.toLowerCase())}const eS={},Vr=n=>{console.error(n)},tS=(n,...e)=>{console.log(`WARN: ${n}`,...e)},_o=(n,e)=>{eS[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),eS[`${n}/${e}`]=!0)},Ld=new Error;function VA(n,e,{key:t}){let s=0;const i=n[t],r={},o={};for(let a=1;a<=e.length;a++)o[a+s]=i[a],r[a+s]=!0,s+=LA(e[a-1]);n[t]=o,n[t]._emit=r,n[t]._multi=!0}function JHe(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw Vr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ld;if(typeof n.beginScope!="object"||n.beginScope===null)throw Vr("beginScope must be object"),Ld;VA(n,n.begin,{key:"beginScope"}),n.begin=qb(n.begin,{joinWith:""})}}function e7e(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw Vr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ld;if(typeof n.endScope!="object"||n.endScope===null)throw Vr("endScope must be object"),Ld;VA(n,n.end,{key:"endScope"}),n.end=qb(n.end,{joinWith:""})}}function t7e(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function n7e(n){t7e(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),JHe(n),e7e(n)}function s7e(n){function e(o,a){return new RegExp(Dl(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+=LA(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(qb(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const u=l.findIndex((h,f)=>f>0&&h!==void 0),d=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,d)}}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 l=new t;return this.rules.slice(a).forEach(([u,d])=>l.addRule(u,d)),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 u=l.exec(a);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,u=d.exec(a)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(o){const a=new s;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 r(o,a){const l=o;if(o.isCompiled)return l;[HHe,$He,n7e,KHe].forEach(d=>d(o,a)),n.compilerExtensions.forEach(d=>d(o,a)),o.__beforeBegin=null,[qHe,YHe,WHe].forEach(d=>d(o,a)),o.isCompiled=!0;let u=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),u=o.keywords.$pattern,delete o.keywords.$pattern),u=u||/\w+/,o.keywords&&(o.keywords=GA(o.keywords,n.case_insensitive)),l.keywordPatternRe=e(u,!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=Dl(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(d){return i7e(d==="self"?o:d)})),o.contains.forEach(function(d){r(d,l)}),o.starts&&r(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=nr(n.classNameAliases||{}),r(n)}function zA(n){return n?n.endsWithParent||zA(n.starts):!1}function i7e(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return nr(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:zA(n)?nr(n,{starts:n.starts?nr(n.starts):null}):Object.isFrozen(n)?nr(n):n}var r7e="11.9.0";class o7e extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const kp=DA,nS=nr,sS=Symbol("nomatch"),a7e=7,HA=function(n){const e=Object.create(null),t=Object.create(null),s=[];let i=!0;const r="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:EHe};function l(P){return a.noHighlightRe.test(P)}function u(P){let $=P.className+" ";$+=P.parentNode?P.parentNode.className:"";const J=a.languageDetectRe.exec($);if(J){const re=T(J[1]);return re||(tS(r.replace("{}",J[1])),tS("Falling back to no-highlight mode for this block.",P)),re?J[1]:"no-highlight"}return $.split(/\s+/).find(re=>l(re)||T(re))}function d(P,$,J){let re="",me="";typeof $=="object"?(re=P,J=$.ignoreIllegals,me=$.language):(_o("10.7.0","highlight(lang, code, ...args) has been deprecated."),_o("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),me=P,re=$),J===void 0&&(J=!0);const Se={code:re,language:me};q("before:highlight",Se);const le=Se.result?Se.result:h(Se.language,Se.code,J);return le.code=Se.code,q("after:highlight",le),le}function h(P,$,J,re){const me=Object.create(null);function Se(K,ee){return K.keywords[ee]}function le(){if(!te.keywords){ge.addText(De);return}let K=0;te.keywordPatternRe.lastIndex=0;let ee=te.keywordPatternRe.exec(De),Re="";for(;ee;){Re+=De.substring(K,ee.index);const xe=ne.case_insensitive?ee[0].toLowerCase():ee[0],Le=Se(te,xe);if(Le){const[Ze,ht]=Le;if(ge.addText(Re),Re="",me[xe]=(me[xe]||0)+1,me[xe]<=a7e&&(k+=ht),Ze.startsWith("_"))Re+=ee[0];else{const Pe=ne.classNameAliases[Ze]||Ze;Me(ee[0],Pe)}}else Re+=ee[0];K=te.keywordPatternRe.lastIndex,ee=te.keywordPatternRe.exec(De)}Re+=De.substring(K),ge.addText(Re)}function Ee(){if(De==="")return;let K=null;if(typeof te.subLanguage=="string"){if(!e[te.subLanguage]){ge.addText(De);return}K=h(te.subLanguage,De,!0,we[te.subLanguage]),we[te.subLanguage]=K._top}else K=_(De,te.subLanguage.length?te.subLanguage:null);te.relevance>0&&(k+=K.relevance),ge.__addSublanguage(K._emitter,K.language)}function Oe(){te.subLanguage!=null?Ee():le(),De=""}function Me(K,ee){K!==""&&(ge.startScope(ee),ge.addText(K),ge.endScope())}function j(K,ee){let Re=1;const xe=ee.length-1;for(;Re<=xe;){if(!K._emit[Re]){Re++;continue}const Le=ne.classNameAliases[K[Re]]||K[Re],Ze=ee[Re];Le?Me(Ze,Le):(De=Ze,le(),De=""),Re++}}function pe(K,ee){return K.scope&&typeof K.scope=="string"&&ge.openNode(ne.classNameAliases[K.scope]||K.scope),K.beginScope&&(K.beginScope._wrap?(Me(De,ne.classNameAliases[K.beginScope._wrap]||K.beginScope._wrap),De=""):K.beginScope._multi&&(j(K.beginScope,ee),De="")),te=Object.create(K,{parent:{value:te}}),te}function ue(K,ee,Re){let xe=THe(K.endRe,Re);if(xe){if(K["on:end"]){const Le=new Xv(K);K["on:end"](ee,Le),Le.isMatchIgnored&&(xe=!1)}if(xe){for(;K.endsParent&&K.parent;)K=K.parent;return K}}if(K.endsWithParent)return ue(K.parent,ee,Re)}function Ce(K){return te.matcher.regexIndex===0?(De+=K[0],1):(ye=!0,0)}function ke(K){const ee=K[0],Re=K.rule,xe=new Xv(Re),Le=[Re.__beforeBegin,Re["on:begin"]];for(const Ze of Le)if(Ze&&(Ze(K,xe),xe.isMatchIgnored))return Ce(ee);return Re.skip?De+=ee:(Re.excludeBegin&&(De+=ee),Oe(),!Re.returnBegin&&!Re.excludeBegin&&(De=ee)),pe(Re,K),Re.returnBegin?0:ee.length}function N(K){const ee=K[0],Re=$.substring(K.index),xe=ue(te,K,Re);if(!xe)return sS;const Le=te;te.endScope&&te.endScope._wrap?(Oe(),Me(ee,te.endScope._wrap)):te.endScope&&te.endScope._multi?(Oe(),j(te.endScope,K)):Le.skip?De+=ee:(Le.returnEnd||Le.excludeEnd||(De+=ee),Oe(),Le.excludeEnd&&(De=ee));do te.scope&&ge.closeNode(),!te.skip&&!te.subLanguage&&(k+=te.relevance),te=te.parent;while(te!==xe.parent);return xe.starts&&pe(xe.starts,K),Le.returnEnd?0:ee.length}function V(){const K=[];for(let ee=te;ee!==ne;ee=ee.parent)ee.scope&&K.unshift(ee.scope);K.forEach(ee=>ge.openNode(ee))}let Y={};function oe(K,ee){const Re=ee&&ee[0];if(De+=K,Re==null)return Oe(),0;if(Y.type==="begin"&&ee.type==="end"&&Y.index===ee.index&&Re===""){if(De+=$.slice(ee.index,ee.index+1),!i){const xe=new Error(`0 width match regex (${P})`);throw xe.languageName=P,xe.badRule=Y.rule,xe}return 1}if(Y=ee,ee.type==="begin")return ke(ee);if(ee.type==="illegal"&&!J){const xe=new Error('Illegal lexeme "'+Re+'" for mode "'+(te.scope||"<unnamed>")+'"');throw xe.mode=te,xe}else if(ee.type==="end"){const xe=N(ee);if(xe!==sS)return xe}if(ee.type==="illegal"&&Re==="")return 1;if(W>1e5&&W>ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return De+=Re,Re.length}const ne=T(P);if(!ne)throw Vr(r.replace("{}",P)),new Error('Unknown language: "'+P+'"');const Te=s7e(ne);let Ae="",te=re||Te;const we={},ge=new a.__emitter(a);V();let De="",k=0,I=0,W=0,ye=!1;try{if(ne.__emitTokens)ne.__emitTokens($,ge);else{for(te.matcher.considerAll();;){W++,ye?ye=!1:te.matcher.considerAll(),te.matcher.lastIndex=I;const K=te.matcher.exec($);if(!K)break;const ee=$.substring(I,K.index),Re=oe(ee,K);I=K.index+Re}oe($.substring(I))}return ge.finalize(),Ae=ge.toHTML(),{language:P,value:Ae,relevance:k,illegal:!1,_emitter:ge,_top:te}}catch(K){if(K.message&&K.message.includes("Illegal"))return{language:P,value:kp($),illegal:!0,relevance:0,_illegalBy:{message:K.message,index:I,context:$.slice(I-100,I+100),mode:K.mode,resultSoFar:Ae},_emitter:ge};if(i)return{language:P,value:kp($),illegal:!1,relevance:0,errorRaised:K,_emitter:ge,_top:te};throw K}}function f(P){const $={value:kp(P),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return $._emitter.addText(P),$}function _(P,$){$=$||a.languages||Object.keys(e);const J=f(P),re=$.filter(T).filter(F).map(Oe=>h(Oe,P,!1));re.unshift(J);const me=re.sort((Oe,Me)=>{if(Oe.relevance!==Me.relevance)return Me.relevance-Oe.relevance;if(Oe.language&&Me.language){if(T(Oe.language).supersetOf===Me.language)return 1;if(T(Me.language).supersetOf===Oe.language)return-1}return 0}),[Se,le]=me,Ee=Se;return Ee.secondBest=le,Ee}function m(P,$,J){const re=$&&t[$]||J;P.classList.add("hljs"),P.classList.add(`language-${re}`)}function E(P){let $=null;const J=u(P);if(l(J))return;if(q("before:highlightElement",{el:P,language:J}),P.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",P);return}if(P.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(P)),a.throwUnescapedHTML))throw new o7e("One of your code blocks includes unescaped HTML.",P.innerHTML);$=P;const re=$.textContent,me=J?d(re,{language:J,ignoreIllegals:!0}):_(re);P.innerHTML=me.value,P.dataset.highlighted="yes",m(P,J,me.language),P.result={language:me.language,re:me.relevance,relevance:me.relevance},me.secondBest&&(P.secondBest={language:me.secondBest.language,relevance:me.secondBest.relevance}),q("after:highlightElement",{el:P,result:me,text:re})}function b(P){a=nS(a,P)}const g=()=>{S(),_o("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){S(),_o("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(E)}function w(){v&&S()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",w,!1);function x(P,$){let J=null;try{J=$(n)}catch(re){if(Vr("Language definition for '{}' could not be registered.".replace("{}",P)),i)Vr(re);else throw re;J=o}J.name||(J.name=P),e[P]=J,J.rawDefinition=$.bind(null,n),J.aliases&&O(J.aliases,{languageName:P})}function A(P){delete e[P];for(const $ of Object.keys(t))t[$]===P&&delete t[$]}function D(){return Object.keys(e)}function T(P){return P=(P||"").toLowerCase(),e[P]||e[t[P]]}function O(P,{languageName:$}){typeof P=="string"&&(P=[P]),P.forEach(J=>{t[J.toLowerCase()]=$})}function F(P){const $=T(P);return $&&!$.disableAutodetect}function z(P){P["before:highlightBlock"]&&!P["before:highlightElement"]&&(P["before:highlightElement"]=$=>{P["before:highlightBlock"](Object.assign({block:$.el},$))}),P["after:highlightBlock"]&&!P["after:highlightElement"]&&(P["after:highlightElement"]=$=>{P["after:highlightBlock"](Object.assign({block:$.el},$))})}function Z(P){z(P),s.push(P)}function M(P){const $=s.indexOf(P);$!==-1&&s.splice($,1)}function q(P,$){const J=P;s.forEach(function(re){re[J]&&re[J]($)})}function H(P){return _o("10.7.0","highlightBlock will be removed entirely in v12.0"),_o("10.7.0","Please use highlightElement now."),E(P)}Object.assign(n,{highlight:d,highlightAuto:_,highlightAll:S,highlightElement:E,highlightBlock:H,configure:b,initHighlighting:g,initHighlightingOnLoad:y,registerLanguage:x,unregisterLanguage:A,listLanguages:D,getLanguage:T,registerAliases:O,autoDetection:F,inherit:nS,addPlugin:Z,removePlugin:M}),n.debugMode=function(){i=!1},n.safeMode=function(){i=!0},n.versionString=r7e,n.regex={concat:ro,lookahead:kA,either:Hb,optional:vHe,anyNumberOfTimes:yHe};for(const P in Ec)typeof Ec[P]=="object"&&MA(Ec[P]);return Object.assign(n,Ec),n},na=HA({});na.newInstance=()=>HA({});var l7e=na;na.HighlightJS=na;na.default=na;var Lp,iS;function c7e(){if(iS)return Lp;iS=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",r="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",l="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",u="разделительстраниц разделительстрок символтабуляции ",d="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",h="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 установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",f="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",_=u+d+h+f,m="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",E="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",b="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",g="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",y="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",v="отображениевремениэлементовпланировщика ",S="типфайлаформатированногодокумента ",w="обходрезультатазапроса типзаписизапроса ",x="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",A="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",D="типизмеренияпостроителязапроса ",T="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",O="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 ",F="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",z="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",Z="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",M="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",q="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",H="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",P="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",$="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",J="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",re=m+E+b+g+y+v+S+w+x+A+D+T+O+F+z+Z+M+q+H+P+$+J,le="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 деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",Ee="null истина ложь неопределено",Oe=e.inherit(e.NUMBER_MODE),Me={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},j={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},pe=e.inherit(e.C_LINE_COMMENT_MODE),ue={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:r+l},contains:[pe]},Ce={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},ke={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:Ee},contains:[Oe,Me,j]},pe]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:r,built_in:_,class:re,type:le,literal:Ee},contains:[ue,ke,pe,Ce,Oe,Me,j]}}return Lp=n,Lp}var Pp,rS;function d7e(){if(rS)return Pp;rS=1;function n(e){const t=e.regex,s=/^[a-zA-Z][a-zA-Z0-9-]*/,i=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],r=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]+)+)?/},u={scope:"symbol",match:/%[si](?=".*")/},d={scope:"attribute",match:t.concat(s,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:i,contains:[{scope:"operator",match:/=\/?/},d,r,o,a,l,u,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return Pp=n,Pp}var Up,oS;function u7e(){if(oS)return Up;oS=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 Up=n,Up}var Fp,aS;function p7e(){if(aS)return Fp;aS=1;function n(e){const t=e.regex,s=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=t.concat(s,t.concat("(\\.",s,")*")),r=/([*]|[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+/,i],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*/,r)}]},e.METHOD_GUARD],illegal:/#/}}return Fp=n,Fp}var Bp,lS;function _7e(){if(lS)return Bp;lS=1;function n(e){const t="\\d(_|\\d)*",s="[eE][-+]?"+t,i=t+"(\\."+t+")?("+s+")?",r="\\w+",a="\\b("+(t+"#"+r+"(\\."+r+")?#("+s+")?")+"|"+i+")",l="[A-Za-z](_?[A-Za-z0-9.])*",u=`[]\\{\\}%#'"`,d=e.COMMENT("--","$"),h={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:u,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:[d,{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:u},{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:[d,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:u},h,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:u}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:u},h]}}return Bp=n,Bp}var Gp,cS;function h7e(){if(cS)return Gp;cS=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_]+@"},i={className:"keyword",begin:"<",end:">",contains:[t,s]};return t.contains=[i],s.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,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 Gp=n,Gp}var Vp,dS;function f7e(){if(dS)return Vp;dS=1;function n(e){const t={className:"number",begin:/[$%]\d+/},s={className:"number",begin:/\b\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},r={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,r,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,s,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return Vp=n,Vp}var zp,uS;function m7e(){if(uS)return zp;uS=1;function n(e){const t=e.regex,s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,s]},r=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",r]}),a=[r,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/],u=[/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(...u),/\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 zp=n,zp}var Hp,pS;function g7e(){if(pS)return Hp;pS=1;function n(e){const t="[A-Za-z_][0-9A-Za-z_]*",s={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","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","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","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","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","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","Within","Year"]},i={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},a={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,r,e.REGEXP_MODE];const l=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:s,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,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:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:l}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Hp=n,Hp}var qp,_S;function b7e(){if(_S)return qp;_S=1;function n(t){const s=t.regex,i=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",a="<[^<>]+>",l="(?!struct)("+r+"|"+s.optional(o)+"[a-zA-Z_]\\w*"+s.optional(a)+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},d="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+d+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={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},_={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(h,{className:"string"}),{className:"string",begin:/<.*?>/},i,t.C_BLOCK_COMMENT_MODE]},m={className:"title",begin:s.optional(o)+t.IDENT_RE,relevance:0},E=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"],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"],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"],x={type:g,keyword:b,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},A={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:s.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,s.lookahead(/(<[^<>]+>|)\s*\(/))},D=[A,_,u,i,t.C_BLOCK_COMMENT_MODE,f,h],T={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:D.concat([{begin:/\(/,end:/\)/,keywords:x,contains:D.concat(["self"]),relevance:0}]),relevance:0},O={className:"function",begin:"("+l+"[\\*&\\s]+)+"+E,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:E,returnBegin:!0,contains:[m],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[i,t.C_BLOCK_COMMENT_MODE,h,f,u,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",i,t.C_BLOCK_COMMENT_MODE,h,f,u]}]},u,i,t.C_BLOCK_COMMENT_MODE,_]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:x,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(T,O,A,D,[_,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:x,contains:["self",u]},{begin:t.IDENT_RE+"::",keywords:x},{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"]},i=n(t),r=i.keywords;return r.type=[...r.type,...s.type],r.literal=[...r.literal,...s.literal],r.built_in=[...r.built_in,...s.built_in],r._hints=s._hints,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}return qp=e,qp}var Yp,hS;function E7e(){if(hS)return Yp;hS=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 Yp=n,Yp}var $p,fS;function y7e(){if(fS)return $p;fS=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),i=/[\p{L}0-9._:-]+/u,r={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"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,u,l,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,u,l]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(s,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:d}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return $p=n,$p}var Wp,mS;function v7e(){if(mS)return Wp;mS=1;function n(e){const t=e.regex,s={begin:"^'{3,}[ \\t]*$",relevance:10},i=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],r=[{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,...r,...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 Wp=n,Wp}var Kp,gS;function S7e(){if(gS)return Kp;gS=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"],i=["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(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:s,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:s.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: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 Kp=n,Kp}var jp,bS;function T7e(){if(bS)return jp;bS=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 jp=n,jp}var Qp,ES;function x7e(){if(ES)return Qp;ES=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"],i="True False And Null Not Or Default",r="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}]}]},u={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},d={className:"meta",begin:"#",end:"$",keywords:{keyword:s},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]},h={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,u]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:r,literal:i},contains:[o,a,l,u,d,h,f]}}return Qp=n,Qp}var Xp,yS;function C7e(){if(yS)return Xp;yS=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 Xp=n,Xp}var Zp,vS;function w7e(){if(vS)return Zp;vS=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",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:s},contains:[t,i,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return Zp=n,Zp}var Jp,SS;function R7e(){if(SS)return Jp;SS=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 Jp=n,Jp}var e_,TS;function A7e(){if(TS)return e_;TS=1;function n(e){const t=e.regex,s={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,r]};r.contains.push(a);const l={match:/\\"/},u={className:"string",begin:/'/,end:/'/},d={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,s]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},E=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],b=["true","false"],g={match:/(\/[a-z._-]+)+/},y=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],v=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],S=["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"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:E,literal:b,built_in:[...y,...v,"set","shopt",...S,...w]},contains:[_,e.SHEBANG(),m,h,e.HASH_COMMENT_MODE,o,g,a,l,u,d,s]}}return e_=n,e_}var t_,xS;function N7e(){if(xS)return t_;xS=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 t_=n,t_}var n_,CS;function O7e(){if(CS)return n_;CS=1;function n(e){return{name:"BackusNaur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return n_=n,n_}var s_,wS;function I7e(){if(wS)return s_;wS=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 s_=n,s_}var i_,RS;function M7e(){if(RS)return i_;RS=1;function n(e){const t=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="("+i+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional(o)+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+u+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={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 include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},m=t.optional(r)+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","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","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","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,s,e.C_BLOCK_COMMENT_MODE,h,d],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:y.concat([{begin:/\(/,end:/\)/,keywords:g,contains:y.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+a+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:g,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(_,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,s,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"</",contains:[].concat(v,S,y,[f,{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:d,keywords:g}}}return i_=n,i_}var r_,AS;function D7e(){if(AS)return r_;AS=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"],i="false true",r=[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},u={className:"string",begin:'"',end:'"'},d={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]},...r]},h=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],f={match:[/OBJECT/,/\s+/,t.either(...h),/\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:i},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,l,u,e.NUMBER_MODE,f,d]}}return r_=n,r_}var o_,NS;function k7e(){if(NS)return o_;NS=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"],i=["true","false"],r={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Capn Proto",aliases:["capnp"],keywords:{keyword:t,type:s,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/},r]}}return o_=n,o_}var a_,OS;function L7e(){if(OS)return a_;OS=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"],i=["doc","by","license","see","throws","tagged"],r={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[r]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return r.contains=o,{name:"Ceylon",keywords:{keyword:t.concat(s),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 a_=n,a_}var l_,IS;function P7e(){if(IS)return l_;IS=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 l_=n,l_}var c_,MS;function U7e(){if(MS)return c_;MS=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",s="[#]?["+t+"]["+t+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",r={$pattern:s,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: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?/}]},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}]},u={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),h={scope:"punctuation",match:/,/,relevance:0},f=e.COMMENT(";","$",{relevance:0}),_={className:"literal",begin:/\b(true|false|nil)\b/},m={begin:"\\[|(#::?"+s+")?\\{",end:"[\\]\\}]",relevance:0},E={className:"symbol",begin:"[:]{1,2}"+s},b={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},y={keywords:r,className:"name",begin:s,relevance:0,starts:g},v=[h,b,l,u,d,f,E,m,a,_,o],S={beginKeywords:i,keywords:{$pattern:s,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:s,relevance:0,excludeEnd:!0,endsParent:!0}].concat(v)};return b.contains=[S,y,g],g.contains=v,m.contains=v,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[h,b,l,u,d,f,E,m,a,_]}}return c_=n,c_}var d_,DS;function F7e(){if(DS)return d_;DS=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return d_=n,d_}var u_,kS;function B7e(){if(kS)return u_;kS=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 u_=n,u_}var p_,LS;function G7e(){if(LS)return p_;LS=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"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],r=[].concat(i,t,s);function o(a){const l=["npm","print"],u=["yes","no","on","off"],d=["then","unless","until","loop","by","when","and","or","is","isnt","not"],h=["var","const","let","function","static"],f=w=>x=>!w.includes(x),_={keyword:n.concat(d).filter(f(h)),literal:e.concat(u),built_in:r.concat(l)},m="[A-Za-z$_][0-9A-Za-z$_]*",E={className:"subst",begin:/#\{/,end:/\}/,keywords:_},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,E]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,E]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[E,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+m},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];E.contains=b;const g=a.inherit(a.TITLE_MODE,{begin:m}),y="(\\(.*\\)\\s*)?\\B[-=]>",v={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(b)}]},S={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:_};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:_,illegal:/\/\*/,contains:[...b,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+m+"\\s*=\\s*"+y,end:"[-=]>",returnBegin:!0,contains:[g,v]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:y,end:"[-=]>",returnBegin:!0,contains:[v]}]},S,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return p_=o,p_}var __,PS;function V7e(){if(PS)return __;PS=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 __=n,__}var h_,US;function z7e(){if(US)return h_;US=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)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return h_=n,h_}var f_,FS;function H7e(){if(FS)return f_;FS=1;function n(e){const t=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="(?!struct)("+i+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional(o)+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+u+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={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 include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},m=t.optional(r)+e.IDENT_RE+"\\s*\\(",E=["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"],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"],w={type:b,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},x={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},A=[x,f,l,s,e.C_BLOCK_COMMENT_MODE,h,d],D={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:A.concat([{begin:/\(/,end:/\)/,keywords:w,contains:A.concat(["self"]),relevance:0}]),relevance:0},T={className:"function",begin:"("+a+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:w,relevance:0},{begin:m,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,h]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,d,h,l,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,d,h,l]}]},l,s,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(D,T,x,A,[f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:w,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return f_=n,f_}var m_,BS;function q7e(){if(BS)return m_;BS=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",i="property rsc_defaults op_defaults",r="params meta operations op rule attributes utilization",o="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 \\",a="number string",l="Master Started Slave Stopped start promote demote stop monitor true false";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:r+" "+o+" "+a,literal:l},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:i,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:"</?",end:"/?>",relevance:0}]}}return m_=n,m_}var g_,GS;function Y7e(){if(GS)return g_;GS=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",s="(_?f(32|64))?",i="[a-zA-Z_]\\w*[!?=]?",r="[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},u={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},d={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function h(y,v){const S=[{begin:y,end:v}];return S[0].contains=S,S}const f={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:h("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},_={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%q<",end:">",contains:h("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},m={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},E={className:"regexp",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:"%r\\(",end:"\\)",contains:h("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:h("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:h(/\{/,/\}/)},{begin:"%r<",end:">",contains:h("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},b={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},g=[d,f,_,E,m,b,u,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:r,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:r}],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 l.contains=g,d.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:g}}return g_=n,g_}var b_,VS;function $7e(){if(VS)return b_;VS=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"],i=["default","false","null","true"],r=["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:r.concat(o),built_in:t,literal:i},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={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},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},h=e.inherit(d,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:a},_=e.inherit(f,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,_]},E={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},b=e.inherit(E,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]});f.contains=[E,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],_.contains=[b,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[E,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},v=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",S={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:"</?",end:">"}]}]}),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"}},g,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,y,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,y,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:"("+v+"\\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,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[g,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},S]}}return b_=n,b_}var E_,zS;function W7e(){if(zS)return E_;zS=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 E_=n,E_}var y_,HS;function K7e(){if(HS)return y_;HS=1;const n=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.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:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.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","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["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"],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"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","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-right-color","border-right-style","border-right-width","border-spacing","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","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","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","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","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-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","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","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","resize","rest","rest-after","rest-before","right","row-gap","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","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","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-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","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","z-index"].reverse();function o(a){const l=a.regex,u=n(a),d={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},h="and or not only",f=/@-?\w[\w]*(-\w+)*/,_="[a-zA-Z-][a-zA-Z0-9_-]*",m=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[u.BLOCK_COMMENT,d,u.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+_,relevance:0},u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+s.join("|")+")"},{begin:":(:)?("+i.join("|")+")"}]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[u.BLOCK_COMMENT,u.HEXCOLOR,u.IMPORTANT,u.CSS_NUMBER_MODE,...m,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...m,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},u.FUNCTION_DISPATCH]},{begin:l.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:t.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...m,u.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}return y_=o,y_}var v_,qS;function j7e(){if(qS)return v_;qS=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_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",r="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,l="([eE][+-]?"+i+")",u="("+i+"(\\.\\d*|"+l+")|\\d+\\."+i+"|\\."+s+l+"?)",d="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+i+")",h="("+s+"|"+r+"|"+a+")",f="("+d+"|"+u+")",_=`\\\\(['"\\?\\\\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,};`,m={className:"number",begin:"\\b"+h+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},E={className:"number",begin:"\\b("+f+"([fF]|L|i|[fF]i|Li)?|"+h+"(i|[fF]i|Li))",relevance:0},b={className:"string",begin:"'("+_+"|.)",end:"'",illegal:"."},y={className:"string",begin:'"',contains:[{begin:_,relevance:0}],end:'"[cwd]?'},v={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},S={className:"string",begin:"`",end:"`[cwd]?"},w={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},x={className:"string",begin:'q"\\{',end:'\\}"'},A={className:"meta",begin:"^#!",end:"$",relevance:5},D={className:"meta",begin:"#(line)",end:"$",relevance:5},T={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},O=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,O,w,y,v,S,x,E,m,b,A,D,T]}}return v_=n,v_}var S_,YS;function Q7e(){if(YS)return S_;YS=1;function n(e){const t=e.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},r={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+.-]*/,u={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}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},h={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(d,{contains:[]}),_=e.inherit(h,{contains:[]});d.contains.push(_),h.contains.push(f);let m=[s,u];return[d,h,f,_].forEach(g=>{g.contains=g.contains.concat(m)}),m=m.concat(d,h),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},s,o,d,h,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},r,i,u,a]}}return S_=n,S_}var T_,$S;function X7e(){if($S)return T_;$S=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"},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,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,i];const r=["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=r.map(u=>`${u}?`);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:r.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 T_=n,T_}var x_,WS;function Z7e(){if(WS)return x_;WS=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})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a={className:"string",begin:/(#\d+)+/},l={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},u={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:[r,a,i].concat(s)},i].concat(s)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[r,a,e.NUMBER_MODE,o,l,u,i].concat(s)}}return x_=n,x_}var C_,KS;function J7e(){if(KS)return C_;KS=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 C_=n,C_}var w_,jS;function eqe(){if(jS)return w_;jS=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 w_=n,w_}var R_,QS;function tqe(){if(QS)return R_;QS=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 R_=n,R_}var A_,XS;function nqe(){if(XS)return A_;XS=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:"</"}}return A_=n,A_}var N_,ZS;function sqe(){if(ZS)return N_;ZS=1;function n(e){const t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{className:"symbol",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",relevance:0}.begin,end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}}return N_=n,N_}var O_,JS;function iqe(){if(JS)return O_;JS=1;function n(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}return O_=n,O_}var I_,e0;function rqe(){if(e0)return I_;e0=1;function n(e){const t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},s={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(t,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r={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:[s,r]},u={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},d={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},h={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},f={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},_={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[d,r,o,a,u,f,h,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,t,i,_,{begin:e.IDENT_RE+"::",keywords:""}]}}return I_=n,I_}var M_,t0;function oqe(){if(t0)return M_;t0=1;function n(e){const t="if eq ne lt lte gt gte select default math sep";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:t}]}}return M_=n,M_}var D_,n0;function aqe(){if(n0)return D_;n0=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),s={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},r={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,r]}}return D_=n,D_}var k_,s0;function lqe(){if(s0)return k_;s0=1;function n(e){const t=e.regex,s="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[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"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:a},u={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},h={match:/\\[\s\S]/,scope:"char.escape",relevance:0},f=`[/|([{<"']`,_=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],m=x=>({scope:"char.escape",begin:t.concat(/\\/,x),relevance:0}),E={className:"string",begin:"~[a-z](?="+f+")",contains:_.map(x=>e.inherit(x,{contains:[m(x.end),h,l]}))},b={className:"string",begin:"~[A-Z](?="+f+")",contains:_.map(x=>e.inherit(x,{contains:[m(x.end)]}))},g={className:"regex",variants:[{begin:"~r(?="+f+")",contains:_.map(x=>e.inherit(x,{end:t.concat(x.end,/[uismxfU]{0,7}/),contains:[m(x.end),h,l]}))},{begin:"~R(?="+f+")",contains:_.map(x=>e.inherit(x,{end:t.concat(x.end,/[uismxfU]{0,7}/),contains:[m(x.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:/"/}]},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|$|;/}),w=[y,g,b,E,e.HASH_COMMENT_MODE,S,v,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[y,{begin:i}],relevance:0},{className:"symbol",begin:s+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},u,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=w,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:w}}return k_=n,k_}var L_,i0;function cqe(){if(i0)return L_;i0=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},s={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},r={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:[s,i,r,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 L_=n,L_}var P_,r0;function dqe(){if(r0)return P_;r0=1;function n(e){const t=e.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=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]+"},u={begin:"#<",end:">"},d=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],h={className:"subst",begin:/#\{/,end:/\}/,keywords:a},f={className:"string",contains:[e.BACKSLASH_ESCAPE,h],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{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",m="[0-9](_?[0-9])*",E={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${m}))?([eE][+-]?(${m})|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=[f,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:a},{relevance:0,match:[r,/\.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+/,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:[f,{begin:s}],relevance:0},E,{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,h],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(u,d),relevance:0}].concat(u,d);h.contains=A,b.contains=A;const D="[>?]>",T="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",O="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",F=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta.prompt",begin:"^("+D+"|"+T+"|"+O+")(?=[ ])",starts:{end:"$",keywords:a,contains:A}}];return d.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(F).concat(d).concat(A)}}return P_=n,P_}var U_,o0;function uqe(){if(o0)return U_;o0=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return U_=n,U_}var F_,a0;function pqe(){if(a0)return F_;a0=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 F_=n,F_}var B_,l0;function _qe(){if(l0)return B_;l0=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",s="("+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"},r=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:s+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:s,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},u={begin:/\{/,end:/\}/,relevance:0},d={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},h={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}]},_={beginKeywords:"fun receive if try case",end:"end",keywords:i};_.contains=[r,a,e.inherit(e.APOS_STRING_MODE,{className:""}),_,l,e.QUOTE_STRING_MODE,o,u,d,h,f];const m=[r,a,_,l,e.QUOTE_STRING_MODE,o,u,d,h,f];l.contains[1].contains=m,u.contains=m,f.contains[1].contains=m;const E=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],b={className:"params",begin:"\\(",end:"\\)",contains:m};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[b,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:i,contains:m}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:E.map(g=>`${g}|1.5`).join(" ")},contains:[b]},o,e.QUOTE_STRING_MODE,f,d,h,u,{begin:/\.$/}]}}return B_=n,B_}var G_,c0;function hqe(){if(c0)return G_;c0=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 G_=n,G_}var V_,d0;function fqe(){if(d0)return V_;d0=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 z_,u0;function mqe(){if(u0)return z_;u0=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},s={className:"string",variants:[{begin:'"',end:'"'}]},r={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,r,e.C_NUMBER_MODE]}}return z_=n,z_}var H_,p0;function gqe(){if(p0)return H_;p0=1;function n(e){const t=e.regex,s={className:"params",begin:"\\(",end:"\\)"},i={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},r=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,o,r)},{begin:t.concat(/\b\d+/,o,r)},{begin:t.concat(/\.\d+/,o,r)}],relevance:0},l={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,s]},u={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{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:[u,l,{begin:/^C\s*=(?!=)/,relevance:0},i,a]}}return H_=n,H_}var q_,_0;function bqe(){if(_0)return q_;_0=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(u=>e(u)).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 r(...a){return"("+(i(a).capture?"":"?:")+a.map(d=>e(d)).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"],u={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},d=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],h=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],f=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],_=["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"],E={keyword:l,literal:h,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},g={variants:[a.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),a.C_LINE_COMMENT_MODE]},y=/[a-zA-Z_](\w|')*/,v={scope:"variable",begin:/``/,end:/``/},S=/\B('|\^)/,w={scope:"symbol",variants:[{match:s(S,/``.*?``/)},{match:s(S,a.UNDERSCORE_IDENT_RE)}],relevance:0},x=function({includeEqual:Oe}){let Me;Oe?Me="!%&*+-/<=>@^|~?":Me="!%&*+-/<>@^|~?";const j=Array.from(Me),pe=s("[",...j.map(n),"]"),ue=r(pe,/\./),Ce=s(ue,t(ue)),ke=r(s(Ce,ue,"*"),s(pe,"+"));return{scope:"operator",match:r(ke,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},A=x({includeEqual:!0}),D=x({includeEqual:!1}),T=function(Oe,Me){return{begin:s(Oe,t(s(/\s*/,r(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:Me,end:t(r(/\n/,/=/)),relevance:0,keywords:a.inherit(E,{type:_}),contains:[g,w,a.inherit(v,{scope:null}),D]}},O=T(/:/,"operator"),F=T(/\bof\b/,"keyword"),z={begin:[/(^|\s+)/,/type/,/\s+/,y],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:E,contains:[g,a.inherit(v,{scope:null}),w,{scope:"operator",match:/<|>/},O]},Z={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},M={begin:[/^\s*/,s(/#/,r(...d)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},q={variants:[a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]},H={scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]},P={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},a.BACKSLASH_ESCAPE]},$={scope:"string",begin:/"""/,end:/"""/,relevance:2},J={scope:"subst",begin:/\{/,end:/\}/,keywords:E},re={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},a.BACKSLASH_ESCAPE,J]},me={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},a.BACKSLASH_ESCAPE,J]},Se={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},J],relevance:2},le={scope:"string",match:s(/'/,r(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return J.contains=[me,re,P,H,le,u,g,v,O,Z,M,q,w,A],{name:"F#",aliases:["fs","f#"],keywords:E,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[u,{variants:[Se,me,re,$,P,H,le]},g,v,z,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[v,$,P,H,le,q]},F,O,Z,M,q,w,A]}}return q_=o,q_}var Y_,h0;function Eqe(){if(h0)return Y_;h0=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"},i={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},r={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]},l=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,u={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: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,u]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[u]},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,r]},e.C_NUMBER_MODE,r]}}return Y_=n,Y_}var $_,f0;function yqe(){if(f0)return $_;f0=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("@","@"),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,s]},r={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,r]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},l=function(_,m,E){const b=e.inherit({className:"function",beginKeywords:_,end:m,excludeEnd:!0,contains:[].concat(o)},E||{});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},u={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},d={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},h={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},u,{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,s,u,h,d,"self"]};return h.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,s,d,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,s,f]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},h,r]}}return $_=n,$_}var W_,m0;function vqe(){if(m0)return W_;m0=1;function n(e){const t="[A-Z_][A-Z0-9_.]*",s="%",i={$pattern:t,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},r={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:s},r].concat(a)}}return W_=n,W_}var K_,g0;function Sqe(){if(g0)return K_;g0=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 K_=n,K_}var j_,b0;function Tqe(){if(b0)return j_;b0=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 j_=n,j_}var Q_,E0;function xqe(){if(E0)return Q_;E0=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","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","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_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","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_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_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","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_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","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_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","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_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","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","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_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_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","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_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","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_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","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_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_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_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_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","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","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_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","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_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","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","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","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_fog","gpu_get_lightingenable","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_alphatestfunc","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_fog","gpu_set_lightingenable","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","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","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","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","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","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_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","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_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","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_multiply","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","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_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","network_connect","network_connect_raw","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_depth","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_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","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_layer","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_speed","part_type_sprite","part_type_step","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_time","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","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","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_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","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_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_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_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","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_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","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_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","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","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","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_mask","tilemap_tileset","tilemap_x","tilemap_y","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","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","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_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","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","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","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_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","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_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","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","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","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","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_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","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","input_type","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_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","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","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","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","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","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","vertex_usage_textcoord","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_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","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"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","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","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","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","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return Q_=n,Q_}var X_,y0;function Cqe(){if(y0)return X_;y0=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:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}return X_=n,X_}var Z_,v0;function wqe(){if(v0)return Z_;v0=1;function n(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return Z_=n,Z_}var J_,S0;function Rqe(){if(S0)return J_;S0=1;function n(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}return J_=n,J_}var eh,T0;function Aqe(){if(T0)return eh;T0=1;function n(e){const t=e.regex,s=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(s,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return eh=n,eh}var th,x0;function Nqe(){if(x0)return th;x0=1;function n(t,s={}){return s.variants=t,s}function e(t){const s=t.regex,i="[A-Za-z0-9_$]+",r=n([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),o={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},a=n([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),l=n([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),u={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),r,l,o,a,u,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:i+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,l,o,a,"self"]},{className:"symbol",begin:"^[ ]*"+s.lookahead(i+":"),excludeBegin:!0,end:i+":",relevance:0}],illegal:/#|<\//}}return th=e,th}var nh,C0;function Oqe(){if(C0)return nh;C0=1;function n(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",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 nh=n,nh}var sh,w0;function Iqe(){if(w0)return sh;w0=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"]},i={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},r=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,l=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,u=/(\.|\/)/,d=t.either(r,o,a,l),h=t.concat(t.optional(/\.|\.\/|\//),d,t.anyNumberOfTimes(t.concat(u,d))),f=t.concat("(",a,"|",l,")(?==)"),_={begin:h},m=e.inherit(_,{keywords:i}),E={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,m,E]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},y={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,b,m,E],returnEnd:!0},v=e.inherit(_,{className:"name",keywords:s,starts:e.inherit(y,{end:/\)/})});E.contains=[v];const S=e.inherit(_,{keywords:s,className:"name",starts:e.inherit(y,{end:/\}\}/})}),w=e.inherit(_,{keywords:s,className:"name"}),x=e.inherit(_,{className:"name",keywords:s,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:[S],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[w]},{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:[w]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[x]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[x]}]}}return sh=n,sh}var ih,R0;function Mqe(){if(R0)return ih;R0=1;function n(e){const t="([0-9]_*)+",s="([0-9a-fA-F]_*)+",i="([01]_*)+",r="([0-7]_*)+",u="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",d={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},h={className:"meta",begin:/\{-#/,end:/#-\}/},f={className:"meta",begin:"^#",end:"$"},_={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},m={begin:"\\(",end:"\\)",illegal:'"',contains:[h,f,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),d]},E={begin:/\{/,end:/\}/,contains:m.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](${r})\\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:[m,d],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[m,d],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[_,m,d]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[h,_,m,E,d]},{beginKeywords:"default",end:"$",contains:[_,m,d]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,d]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[_,e.QUOTE_STRING_MODE,d]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},h,f,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,b,_,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${u}--+|--+(?!-)${u}`},d,{begin:"->|<-"}]}}return ih=n,ih}var rh,A0;function Dqe(){if(A0)return rh;A0=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",begin:/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 rh=n,rh}var oh,N0;function kqe(){if(N0)return oh;N0=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 oh=n,oh}var ah,O0;function Lqe(){if(O0)return ah;O0=1;function n(e){const t=e.regex,s="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,r={className:"attribute",begin:t.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[r,{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(r,{relevance:0})]}}return ah=n,ah}var lh,I0;function Pqe(){if(I0)return lh;I0=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",s="["+t+"]["+t+"0-9/;:]*",i={$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 | |= ~"},r="[-+]?\\d+(\\.\\d+)?",o={begin:s,relevance:0},a={className:"number",begin:r,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u=e.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},h={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},f={className:"comment",begin:"\\^"+s},_=e.COMMENT("\\^\\{","\\}"),m={className:"symbol",begin:"[:]{1,2}"+s},E={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:i,begin:s,starts:b},y=[E,l,f,_,u,m,h,a,d,o];return E.contains=[e.COMMENT("comment",""),g,b],b.contains=y,h.contains=y,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),E,l,f,_,u,m,h,a,d]}}return lh=n,lh}var ch,M0;function Uqe(){if(M0)return ch;M0=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 ch=n,ch}var dh,D0;function Fqe(){if(D0)return dh;D0=1;function n(e){const t=e.regex,s={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const r={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,r,a,s,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,h=/'[^']*'/,f=t.either(u,d,h),_=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:_,className:"attr",starts:{end:/$/,contains:[i,l,o,r,a,s]}}]}}return dh=n,dh}var uh,k0;function Bqe(){if(k0)return uh;k0=1;function n(e){const t=e.regex,s={className:"params",begin:"\\(",end:"\\)"},i=/(_[a-z_\d]+)?/,r=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,r,i)},{begin:t.concat(/\b\d+/,r,i)},{begin:t.concat(/\.\d+/,r,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,s]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}return uh=n,uh}var ph,L0;function Gqe(){if(L0)return ph;L0=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",s="[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 пока ",r="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 ",o="CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ",a="ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME ",l="DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ",u="ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION ",d="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 ",h="ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE ",f="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 ",m="COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE ",E="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 ",b="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 ",g="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 ",y="CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ",v="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 ",S="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 ",w="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 ",x="CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT ",A="STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER ",D="COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE ",T="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 ",O="RESULT_VAR_NAME RESULT_VAR_NAME_ENG ",F="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 ",z="SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY ",Z="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 ",M="SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS ",q="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 ",H="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 ",P="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 ",J="ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk ",re="EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE ",me="cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ",Se="ISBL_SYNTAX NO_SYNTAX XML_SYNTAX ",le="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 ",Ee="SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",Oe=r+o+a+l+u+d+h+f+_+m+E+b+g+y+v+S+w+x+A+D+T+O+F+z+Z+M+q+H+P+$+J+re+me+Se+le+Ee,Me="atUser atGroup atRole ",j="aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty ",pe="apBegin apEnd ",ue="alLeft alRight ",Ce="asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways ",ke="cirCommon cirRevoked ",N="ctSignature ctEncode ctSignatureEncode ",V="clbUnchecked clbChecked clbGrayed ",Y="ceISB ceAlways ceNever ",oe="ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob ",ne="cfInternal cfDisplay ",Te="ciUnspecified ciWrite ciRead ",Ae="ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ",te="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 ",we="cctDate cctInteger cctNumeric cctPick cctReference cctString cctText ",ge="cltInternal cltPrimary cltGUI ",De="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 ",k="dssEdit dssInsert dssBrowse dssInActive ",I="dftDate dftShortDate dftDateTime dftTimeStamp ",W="dotDays dotHours dotMinutes dotSeconds ",ye="dtkndLocal dtkndUTC ",K="arNone arView arEdit arFull ",ee="ddaView ddaEdit ",Re="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 ",xe="ecotFile ecotProcess ",Le="eaGet eaCopy eaCreate eaCreateStandardRoute ",Ze="edltAll edltNothing edltQuery ",ht="essmText essmCard ",Pe="esvtLast esvtLastActive esvtSpecified ",ct="edsfExecutive edsfArchive ",tt="edstSQLServer edstFile ",Ye="edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile ",et="vsDefault vsDesign vsActive vsObsolete ",We="etNone etCertificate etPassword etCertificatePassword ",Et="ecException ecWarning ecInformation ",X="estAll estApprovingOnly ",je="evtLast evtLastActive evtQuery ",Be="fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ",Ne="ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch ",Ve="grhAuto grhX1 grhX2 grhX3 ",ot="hltText hltRTF hltHTML ",Nt="iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG ",sn="im8bGrayscale im24bRGB im1bMonochrome ",bn="itBMP itJPEG itWMF itPNG ",Gt="ikhInformation ikhWarning ikhError ikhNoIcon ",En="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 ",ts="isShow isHide isByUserSettings ",sc="jkJob jkNotice jkControlJob ",Qu="jtInner jtLeft jtRight jtFull jtCross ",oo="lbpAbove lbpBelow lbpLeft lbpRight ",ic="eltPerConnection eltPerUser ",ao="sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac ",rc="sfsItalic sfsStrikeout sfsNormal ",oc="ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents ",Xu="mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom ",Zu="vtEqual vtGreaterOrEqual vtLessOrEqual vtRange ",Ju="rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth ",U="rdWindow rdFile rdPrinter ",ce="rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument ",be="reOnChange reOnChangeValues ",ve="ttGlobal ttLocal ttUser ttSystem ",fe="ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal ",Qe="smSelect smLike smCard ",nt="stNone stAuthenticating stApproving ",rt="sctString sctStream ",at="sstAnsiSort sstNaturalSort ",bt="svtEqual svtContain ",_t="soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown ",ft="tarAbortByUser tarAbortByWorkflowException ",Zt="tvtAllWords tvtExactPhrase tvtAnyWord ",Mn="usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp ",rn="utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected ",vs="btAnd btDetailAnd btOr btNotOr btOnly ",$t="vmView vmSelect vmNavigation ",yt="vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection ",Fa="wfatPrevious wfatNext wfatCancel wfatFinish ",Qt="wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 ",ai="wfetQueryParameter wfetText wfetDelimiter wfetLabel ",ac="wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate ",gr="wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal ",Ba="wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal ",hn="waAll waPerformers waManual ",li="wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause ",Ga="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 ",Gn="wiLow wiNormal wiHigh ",Va="wrtSoft wrtHard ",ep="wsInit wsRunning wsDone wsControlled wsAborted wsContinued ",lc="wtmFull wtmFromCurrent wtmOnlyCurrent ",hI=Me+j+pe+ue+Ce+ke+N+V+Y+oe+ne+Te+Ae+te+we+ge+De+k+I+W+ye+K+ee+Re+xe+Le+Ze+ht+Pe+ct+tt+Ye+et+We+Et+X+je+Be+Ne+Ve+ot+Nt+sn+bn+Gt+En+ts+sc+Qu+oo+ic+ao+rc+oc+Xu+Zu+Ju+U+ce+be+ve+fe+Qe+nt+rt+at+bt+_t+ft+Zt+Mn+rn+vs+$t+yt+Fa+Qt+ai+ac+gr+Ba+hn+li+Ga+Gn+Va+ep+lc,fI="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Дат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",mI="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 ВызовСпособ ИмяОтчета РеквЗнач ",gI="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 ",bI=Oe+hI,EI=mI,yI="null true false nil ",zE={className:"number",begin:e.NUMBER_RE,relevance:0},HE={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},qE={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},vI={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,qE]},SI={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,qE]},YE={variants:[vI,SI]},cc={$pattern:t,keyword:i,built_in:bI,class:EI,literal:yI},tp={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:cc,relevance:0},$E={className:"type",begin:":[ \\t]*("+gI.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},WE={className:"variable",keywords:cc,begin:t,relevance:0,contains:[$E,tp]},KE=s+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:cc,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:KE,end:"\\)$",returnBegin:!0,keywords:cc,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:fI},begin:KE,end:"\\(",returnBegin:!0,excludeEnd:!0},tp,WE,HE,zE,YE]},$E,tp,WE,HE,zE,YE]}}return ph=n,ph}var _h,P0;function Vqe(){if(P0)return _h;P0=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 i(o,a,l){return l===-1?"":o.replace(a,u=>i(o,a,l-1))}function r(o){const a=o.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",u=l+i("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),m={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"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},E={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:m,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:["(?:"+u+"\\s+)",o.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:m,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[E,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,E]}}return _h=r,_h}var hh,U0;function zqe(){if(U0)return hh;U0=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"],i=["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"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,s,i);function l(u){const d=u.regex,h=(j,{after:pe})=>{const ue="</"+j[0].slice(1);return j.input.indexOf(ue,pe)!==-1},f=n,_={begin:"<>",end:"</>"},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,E={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(j,pe)=>{const ue=j[0].length+j.index,Ce=j.input[ue];if(Ce==="<"||Ce===","){pe.ignoreMatch();return}Ce===">"&&(h(j,{after:ue})||pe.ignoreMatch());let ke;const N=j.input.substring(ue);if(ke=N.match(/^\s*=/)){pe.ignoreMatch();return}if((ke=N.match(/^\s+extends\s+/))&&ke.index===0){pe.ignoreMatch();return}}},b={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},g="[0-9](_?[0-9])*",y=`\\.(${g})`,v="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${v})((${y})|\\.)?|(${y}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\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},w={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"xml"}},A={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"css"}},D={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,w],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,w]},F={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:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},z=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,x,A,D,T,{match:/\$\d+/},S];w.contains=z.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(z)});const Z=[].concat(F,w.contains),M=Z.concat([{begin:/\(/,end:/\)/,keywords:b,contains:["self"].concat(Z)}]),q={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:M},H={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,d.concat(f,"(",d.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:d.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,...i]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},J={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},re={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function me(j){return d.concat("(?!",j.join("|"),")")}const Se={match:d.concat(/\b/,me([...r,"super","import"]),f,d.lookahead(/\(/)),className:"title.function",relevance:0},le={begin:d.concat(/\./,d.lookahead(d.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ee={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},Oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",Me={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(Oe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:M,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,x,A,D,T,F,{match:/\$\d+/},S,P,{className:"attr",begin:f+d.lookahead(":"),relevance:0},Me,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,u.REGEXP_MODE,{className:"function",begin:Oe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:M}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:_.begin,end:_.end},{match:m},{begin:E.begin,"on:begin":E.isTrulyOpeningTag,end:E.end}],subLanguage:"xml",contains:[{begin:E.begin,end:E.end,skip:!0,contains:["self"]}]}]},J,{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:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},Se,re,H,Ee,{match:/\$[(.]/}]}}return hh=l,hh}var fh,F0;function Hqe(){if(F0)return fh;F0=1;function n(e){const s={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},r={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,r,s]}}return fh=n,fh}var mh,B0;function qqe(){if(B0)return mh;B0=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},s={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],r={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",keywords:{literal:i},contains:[t,s,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return mh=n,mh}var gh,G0;function Yqe(){if(G0)return gh;G0=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},u={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},d={className:"subst",begin:/\$\(/,end:/\)/,keywords:o},h={className:"variable",begin:"\\$"+t},f={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},_={className:"string",contains:[e.BACKSLASH_ESCAPE,d,h],begin:"`",end:"`"},m={className:"meta",begin:"@"+t},E={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return a.name="Julia",a.contains=[l,u,f,_,m,E,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],d.contains=a.contains,a}return gh=n,gh}var bh,V0;function $qe(){if(V0)return bh;V0=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return bh=n,bh}var Eh,z0;function Wqe(){if(z0)return Eh;z0=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 i(r){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:r.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[r.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+r.UNDERSCORE_IDENT_RE},h={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[r.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[r.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(h);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+r.UNDERSCORE_IDENT_RE+")?"},_={className:"meta",begin:"@"+r.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[r.inherit(h,{className:"string"}),"self"]}]},m=s,E=r.COMMENT("/\\*","\\*/",{contains:[r.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:r.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:[r.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),r.C_LINE_COMMENT_MODE,E,a,l,f,_,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:o,relevance:5,contains:[{begin:r.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[r.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,r.C_LINE_COMMENT_MODE,E],relevance:0},r.C_LINE_COMMENT_MODE,E,f,_,h,r.C_NUMBER_MODE]},E]},{begin:[/class|interface|trait/,/\s+/,r.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},r.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,_]},h,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},m]}}return Eh=i,Eh}var yh,H0;function Kqe(){if(H0)return yh;H0=1;function n(e){const t="[a-zA-Z_][\\w.]*",s="<\\?(lasso(script)?|=)",i="\\]|\\?>",r={$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|"+s},u={className:"symbol",begin:"'"+t+"'"},d=[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:[u]},{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:r,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+s,returnEnd:!0,relevance:0,contains:[o]}},a,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:r,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+s,returnEnd:!0,contains:[o]}},a,l].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return yh=n,yh}var vh,q0;function jqe(){if(q0)return vh;q0=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(F=>F+"(?![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(F=>F+"(?![a-zA-Z:_])").join("|")),r=[{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:i},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:r}]},l={className:"params",relevance:0,begin:/#+\d?/},u={variants:o},d={className:"built_in",relevance:0,begin:/[$&^_]/},h={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},f=e.COMMENT("%","$",{relevance:0}),_=[a,l,u,d,h,f],m={begin:/\{/,end:/\}/,relevance:0,contains:["self",..._]},E=e.inherit(m,{relevance:0,endsParent:!0,contains:[m,..._]}),b={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[m,..._]},g={begin:/\s+/,relevance:0},y=[E],v=[b],S=function(F,z){return{contains:[g],starts:{relevance:0,contains:F,starts:z}}},w=function(F,z){return{begin:"\\\\"+F+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+F},relevance:0,contains:[g],starts:z}},x=function(F,z){return e.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+F+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},S(y,z))},A=(F="string")=>e.END_SAME_AS_BEGIN({className:F,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),D=function(F){return{className:"string",end:"(?=\\\\end\\{"+F+"\\})"}},T=(F="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:F,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),O=[...["verb","lstinline"].map(F=>w(F,{contains:[A()]})),w("mint",S(y,{contains:[A()]})),w("mintinline",S(y,{contains:[T(),A()]})),w("url",{contains:[T("link"),T("link")]}),w("hyperref",{contains:[T("link")]}),w("href",S(v,{contains:[T("link")]})),...[].concat(...["","\\*"].map(F=>[x("verbatim"+F,D("verbatim"+F)),x("filecontents"+F,S(y,D("filecontents"+F))),...["","B","L"].map(z=>x(z+"Verbatim"+F,S(v,D(z+"Verbatim"+F))))])),x("minted",S(v,S(y,D("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...O,..._]}}return vh=n,vh}var Sh,Y0;function Qqe(){if(Y0)return Sh;Y0=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 Sh=n,Sh}var Th,$0;function Xqe(){if($0)return Th;$0=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:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},r={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[i]};return i.contains.unshift(r),{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 Th=n,Th}var xh,W0;function Zqe(){if(W0)return xh;W0=1;const n=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.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:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.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","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["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"],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"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","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-right-color","border-right-style","border-right-width","border-spacing","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","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","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","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","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-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","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","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","resize","rest","rest-after","rest-before","right","row-gap","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","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","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-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","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","z-index"].reverse(),o=s.concat(i);function a(l){const u=n(l),d=o,h="and or not only",f="[\\w-]+",_="("+f+"|@\\{"+f+"\\})",m=[],E=[],b=function(F){return{className:"string",begin:"~?"+F+".*?"+F}},g=function(F,z,Z){return{className:F,begin:z,relevance:Z}},y={$pattern:/[a-z-]+/,keyword:h,attribute:t.join(" ")},v={begin:"\\(",end:"\\)",contains:E,keywords:y,relevance:0};E.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,b("'"),b('"'),u.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},u.HEXCOLOR,v,g("variable","@@?"+f,10),g("variable","@\\{"+f+"\\}"),g("built_in","~?`[^`]*?`"),{className:"attribute",begin:f+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},u.IMPORTANT,{beginKeywords:"and not"},u.FUNCTION_DISPATCH);const S=E.concat({begin:/\{/,end:/\}/,contains:m}),w={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(E)},x={begin:_+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:E}}]},A={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:y,returnEnd:!0,contains:E,relevance:0}},D={className:"variable",variants:[{begin:"@"+f+"\\s*:",relevance:15},{begin:"@"+f}],starts:{end:"[;}]",returnEnd:!0,contains:S}},T={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:_,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,w,g("keyword","all\\b"),g("variable","@\\{"+f+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},u.CSS_NUMBER_MODE,g("selector-tag",_,0),g("selector-id","#"+_),g("selector-class","\\."+_,0),g("selector-tag","&",0),u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+s.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+i.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:S},{begin:"!important"},u.FUNCTION_DISPATCH]},O={begin:f+`:(:)?(${d.join("|")})`,returnBegin:!0,contains:[T]};return m.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,A,D,O,x,T,w,u.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:m}}return xh=a,xh}var Ch,K0;function Jqe(){if(K0)return Ch;K0=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",s="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",r={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}),u={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+t},h={begin:t,relevance:0},f={begin:s},m={contains:[o,a,u,d,{begin:"\\(",end:"\\)",contains:["self",r,a,o,h]},h],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+s}]},E={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=[m,E,b,r,o,a,l,u,d,f,h],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),r,a,l,m,E,b,h]}}return Ch=n,Ch}var wh,j0;function eYe(){if(j0)return wh;j0=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("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=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,r,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:[r,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,r,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(s),illegal:";$|^\\[|^=|&|\\{"}}return wh=n,wh}var Rh,Q0;function tYe(){if(Q0)return Rh;Q0=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"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],r=[].concat(i,t,s);function o(a){const l=["npm","print"],u=["yes","no","on","off","it","that","void"],d=["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"],h={keyword:n.concat(d),literal:e.concat(u),built_in:r.concat(l)},f="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",_=a.inherit(a.TITLE_MODE,{begin:f}),m={className:"subst",begin:/#\{/,end:/\}/,keywords:h},E={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:h},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,m,E]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,m,E]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[m,a.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+f},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];m.contains=b;const g={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(b)}]},y={begin:"(#=>|=>|\\|>>|-?->|!->)"},v={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:"LiveScript",aliases:["ls"],keywords:h,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}>\\*?"}]},v,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return Rh=o,Rh}var Ah,X0;function nYe(){if(X0)return Ah;X0=1;function n(e){const t=e.regex,s=/([-a-zA-Z$._][\w$.-]*)/,i={className:"type",begin:/\bi\d+(?=\s|\b)/},r={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},u={className:"variable",variants:[{begin:t.concat(/%/,s)},{begin:/%\d+/},{begin:/#\d+/}]},d={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:"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 double",contains:[i,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},d,o,r,u,l,a]}}return Ah=n,Ah}var Nh,Z0;function sYe(){if(Z0)return Nh;Z0=1;function n(e){const s={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},i={className:"number",relevance:0,begin:e.C_NUMBER_RE},r={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},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,r,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return Nh=n,Nh}var Oh,J0;function iYe(){if(J0)return Oh;J0=1;function n(e){const t="\\[=*\\[",s="\\]=*\\]",i={begin:t,end:s,contains:["self"]},r=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,s,{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:r.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:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:s,contains:[i],relevance:5}])}}return Oh=n,Oh}var Ih,eT;function rYe(){if(eT)return Ih;eT=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,s,i,r,o,a]}}return Ih=n,Ih}var Mh,tT;function oYe(){if(tT)return Mh;tT=1;const n=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function e(t){const s=t.regex,i=/([2-9]|[1-2]\d|[3][0-5])\^\^/,r=/(\w*\.\w+|\w+\.\w*|\w+)/,o=/(\d*\.\d+|\d+\.\d*|\d+)/,a=s.either(s.concat(i,r),o),l=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,u=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,d=s.either(l,u),h=/\*\^[+-]?\d+/,_={className:"number",relevance:0,begin:s.concat(a,s.optional(d),s.optional(h))},m=/[a-zA-Z$][a-zA-Z0-9$]*/,E=new Set(n),b={variants:[{className:"builtin-symbol",begin:m,"on:begin":(A,D)=>{E.has(A[0])||D.ignoreMatch()}},{className:"symbol",relevance:0,begin:m}]},g={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},y={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]?/},w={className:"brace",relevance:0,begin:/[[\](){}]/},x={className:"message-name",relevance:0,begin:s.concat("::",m)};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,x,b,g,t.QUOTE_STRING_MODE,_,y,w]}}return Mh=e,Mh}var Dh,nT;function aYe(){if(nT)return Dh;nT=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 Dh=n,Dh}var kh,sT;function lYe(){if(sT)return kh;sT=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 kh=n,kh}var Lh,iT;function cYe(){if(iT)return Lh;iT=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:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return Lh=n,Lh}var Ph,rT;function dYe(){if(rT)return Ph;rT=1;function n(e){const t={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},s=e.COMMENT("%","$"),i={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},r=e.inherit(e.APOS_STRING_MODE,{relevance:0}),o=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),a={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return o.contains=o.contains.slice(),o.contains.push(a),{name:"Mercury",aliases:["m","moo"],keywords:t,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},s,e.C_BLOCK_COMMENT_MODE,i,e.NUMBER_MODE,r,o,{begin:/:-/},{begin:/\.$/}]}}return Ph=n,Ph}var Uh,oT;function uYe(){if(oT)return Uh;oT=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 Uh=n,Uh}var Fh,aT;function pYe(){if(aT)return Fh;aT=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 Fh=n,Fh}var Bh,lT;function _Ye(){if(lT)return Bh;lT=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","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","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","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}/,r={$pattern:/[\w.]+/,keyword:s.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},a={begin:/->\{/,end:/\}/},l={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},u=[e.BACKSLASH_ESCAPE,o,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(m,E,b="\\1")=>{const g=b==="\\1"?b:t.concat(b,E);return t.concat(t.concat("(?:",m,")"),E,/(?:\\.|[^\\\/])*?/,g,/(?:\\.|[^\\\/])*?/,b,i)},f=(m,E,b)=>t.concat(t.concat("(?:",m,")"),E,/(?:\\.|[^\\\/])*?/,b,i),_=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:u,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}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{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(...d,{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(...d,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=_,a.contains=_,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:_}}return Bh=n,Bh}var Gh,cT;function hYe(){if(cT)return Gh;cT=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 Gh=n,Gh}var Vh,dT;function fYe(){if(dT)return Vh;dT=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"}},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}),s,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 Vh=n,Vh}var zh,uT;function mYe(){if(uT)return zh;uT=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$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:t},r=[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=r;const o=e.inherit(e.TITLE_MODE,{begin:s}),a="(\\(.*\\)\\s*)?\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+s+"\\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:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return zh=n,zh}var Hh,pT;function gYe(){if(pT)return Hh;pT=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 Hh=n,Hh}var qh,_T;function bYe(){if(_T)return qh;_T=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"}},i={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},r={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}),r,i,t,s]}}return qh=n,qh}var Yh,hT;function EYe(){if(hT)return Yh;hT=1;function n(e){const t=e.regex,s={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={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:r.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:r}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return Yh=n,Yh}var $h,fT;function yYe(){if(fT)return $h;fT=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 $h=n,$h}var Wh,mT;function vYe(){if(mT)return Wh;mT=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},i={className:"char.escape",begin:/''\$/},r={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[i,s],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,r];return s.contains=a,{name:"Nix",aliases:["nixos"],keywords:t,contains:a}}return Wh=n,Wh}var Kh,gT;function SYe(){if(gT)return Kh;gT=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Kh=n,Kh}var jh,bT;function TYe(){if(bT)return jh;bT=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"],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"],r=["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.:-]+\}/},l={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},u={className:"variable",begin:/\$+\([\w^.:!-]+\)/},d={className:"params",begin:t.either(...i)},h={className:"keyword",begin:t.concat(/!/,t.either(...r))},f={className:"char.escape",begin:/\$(\\[nrt]|\$)/},_={className:"title.function",begin:/\w+::\w+/},m={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,o,a,l,u]},E=["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:E,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"},m,h,a,l,u,d,_,e.NUMBER_MODE]}}return jh=n,jh}var Qh,ET;function xYe(){if(ET)return Qh;ET=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_]*/,l={"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"]},u={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return Qh=n,Qh}var Xh,yT;function CYe(){if(yT)return Xh;yT=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 Xh=n,Xh}var Zh,vT;function wYe(){if(vT)return Zh;vT=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},s={className:"literal",begin:"false|true|PI|undef"},i={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},r=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,r,t,s]},l={begin:"[*!#%]",relevance:0},u={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,r,t,l,u]}}return Zh=n,Zh}var Jh,ST;function RYe(){if(ST)return Jh;ST=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}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={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:[r,o]},s,i]},l={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[s,i,e.C_LINE_COMMENT_MODE,r,o,e.NUMBER_MODE,a,l]}}return Jh=n,Jh}var ef,TT;function AYe(){if(TT)return ef;TT=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 ef=n,ef}var tf,xT;function NYe(){if(xT)return tf;xT=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 tf=n,tf}var nf,CT;function OYe(){if(CT)return nf;CT=1;function n(e){const t=e.COMMENT("--","$"),s="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\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 ",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 ",u="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 ",d=u.trim().split(" ").map(function(b){return b.split("|")[0]}).join("|"),h="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 ",_="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 ",E="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:h+f+_},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("+E+")\\s*\\("},{begin:"\\.("+d+")\\b"},{begin:"\\b("+d+")\\s+PATH\\b",keywords:{keyword:"PATH",type:u.replace("PATH ","")}},{className:"type",begin:"\\b("+d+")\\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:r,relevance:10}]}}return nf=n,nf}var sf,wT;function IYe(){if(wT)return sf;wT=1;function n(e){const t=e.regex,s=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),r=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),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:/\}/}]},u=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),h={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(M,q)=>{q.data._beginMatch=M[1]||M[2]},"on:end":(M,q)=>{q.data._beginMatch!==M[1]&&q.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),_=`[
]`,m={scope:"string",variants:[d,u,h,f]},E={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"],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"],S={keyword:g,literal:(M=>{const q=[];return M.forEach(H=>{q.push(H),H.toLowerCase()===H?q.push(H.toUpperCase()):q.push(H.toLowerCase())}),q})(b),built_in:y},w=M=>M.map(q=>q.replace(/\|\d+$/,"")),x={variants:[{match:[/new/,t.concat(_,"+"),t.concat("(?!",w(y).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},A=t.concat(i,"\\b(?!\\()"),D={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),A],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,t.concat(/::/,t.lookahead(/(?!class\b)/)),A],scope:{1:"title.class",3:"variable.constant"}},{match:[r,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},T={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},O={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[T,o,D,e.C_BLOCK_COMMENT_MODE,m,E,x]},F={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",w(g).join("\\b|"),"|",w(y).join("\\b|"),"\\b)"),i,t.concat(_,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[O]};O.contains.push(F);const z=[T,D,e.C_BLOCK_COMMENT_MODE,m,E,x],Z={begin:t.concat(/#\[\s*/,r),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...z]},...z,{scope:"meta",match:r}]};return{case_insensitive:!1,keywords:S,contains:[Z,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,F,D,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},x,{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,D,e.C_BLOCK_COMMENT_MODE,m,E]}]},{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]},m,E]}}return sf=n,sf}var rf,RT;function MYe(){if(RT)return rf;RT=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 rf=n,rf}var of,AT;function DYe(){if(AT)return of;AT=1;function n(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return of=n,of}var af,NT;function kYe(){if(NT)return af;NT=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},i={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},r={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,i,r,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 af=n,af}var lf,OT;function LYe(){if(OT)return lf;OT=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",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",r={$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_:]*/}]},u={className:"literal",begin:/\$(null|true|false)\b/},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,l,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},h={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+/}]},_=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[f]}),m={className:"built_in",variants:[{begin:"(".concat(s,")+(-)[\\w\\d]+")}]},E={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]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,h,{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}]},v={className:"selector-tag",begin:/@\B/,relevance:0},S={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(r.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},w=[S,_,a,e.NUMBER_MODE,d,h,m,l,u,v],x={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",w,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return S.contains.unshift(x),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:r,contains:w.concat(E,b,g,y,x)}}return lf=n,lf}var cf,IT;function PYe(){if(IT)return cf;IT=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"],i=e.IDENT_RE,r={variants:[{match:t.concat(t.either(...s),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"}},u=["boolean","byte","char","color","double","float","int","long","short"],d=["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,...d],type:u},contains:[l,o,r,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return cf=n,cf}var df,MT;function UYe(){if(MT)return df;MT=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 df=n,df}var uf,DT;function FYe(){if(DT)return uf;DT=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},i={begin:/\(/,end:/\)/,relevance:0},r={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'(\\'|.)/},u={className:"string",begin:/0'\\s/},h=[t,s,i,{begin:/:-/},r,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,l,u,e.C_NUMBER_MODE];return i.contains=h,r.contains=h,{name:"Prolog",contains:h.concat([{begin:/\.$/}])}}return uf=n,uf}var pf,kT;function BYe(){if(kT)return pf;kT=1;function n(e){const t="[ \\t\\f]*",s="[ \\t\\f]+",i=t+"[:=]"+t,r=s,o="("+i+"|"+r+")",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+r}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:l},{className:"attr",begin:a+t+"$"}]}}return pf=n,pf}var _f,LT;function GYe(){if(LT)return _f;LT=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"],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:s,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 _f=n,_f}var hf,PT;function VYe(){if(PT)return hf;PT=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("#","$"),i="([A-Za-z_]|::)(\\w|::)*",r=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:[s,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[r,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 hf=n,hf}var ff,UT;function zYe(){if(UT)return ff;UT=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 ff=n,ff}var mf,FT;function HYe(){if(FT)return mf;FT=1;function n(e){const t=e.regex,s=/[\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"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},h={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,h,d]},{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,h,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_="[0-9](_?[0-9])*",m=`(\\b(${_}))?\\.(${_})|\\b(${_})\\.`,E=`\\b|${i.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${_})|(${m}))[eE][+-]?(${_})[jJ]?(?=${E})`},{begin:`(${m})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${E})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${E})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${E})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${E})`},{begin:`\\b(${_})[jJ](?=${E})`}]},g={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",u,b,f,e.HASH_COMMENT_MODE]}]};return d.contains=[f,b,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[u,b,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},f,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[y]},{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,y,f]}]}}return mf=n,mf}var gf,BT;function qYe(){if(BT)return gf;BT=1;function n(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return gf=n,gf}var bf,GT;function YYe(){if(GT)return bf;GT=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 bf=n,bf}var Ef,VT;function $Ye(){if(VT)return Ef;VT=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"},i="[a-zA-Z_][a-zA-Z0-9\\._]*",r={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},u={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: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:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,r,{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,u],illegal:/#/}}return Ef=n,Ef}var yf,zT;function WYe(){if(zT)return yf;zT=1;function n(e){const t=e.regex,s=/(?:(?:[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]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,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:[r,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:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return yf=n,yf}var vf,HT;function KYe(){if(HT)return vf;HT=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 vf=n,vf}var Sf,qT;function jYe(){if(qT)return Sf;qT=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:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}return Sf=n,Sf}var Tf,YT;function QYe(){if(YT)return Tf;YT=1;function n(e){const t="[a-zA-Z-_][^\\n{]+\\{",s={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+t,end:/\}/,keywords:"facet",contains:[s,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",s,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[s,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}return Tf=n,Tf}var xf,$T;function XYe(){if($T)return xf;$T=1;function n(e){const t="foreach do while for if from to step else on-error and or not in",s="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",i="add remove enable disable set get print export edit find run debug error info warning",r="true false yes no nothing nil null",o="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",a={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},u={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:r,keyword:t+" :"+t.split(" ").join(" :")+" :"+s.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),l,u,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,u,a,{className:"literal",begin:"\\b("+r.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 xf=n,xf}var Cf,WT;function ZYe(){if(WT)return Cf;WT=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"],i=["while","for","if","do","return","else","break","extern","continue"],r={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:s},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},r,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return Cf=n,Cf}var wf,KT;function JYe(){if(KT)return wf;KT=1;function n(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return wf=n,wf}var Rf,jT;function e$e(){if(jT)return Rf;jT=1;function n(e){const t=e.regex,s={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},i="([ui](8|16|32|64|128|size)|f(32|64))?",r=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,keyword:r,literal:o,built_in:a},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+i},{begin:"\\b0o([0-7_]+)"+i},{begin:"\\b0x([A-Fa-f0-9_]+)"+i},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+i}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:a,type:l}},{className:"punctuation",begin:"->"},s]}}return Rf=n,Rf}var Af,QT;function t$e(){if(QT)return Af;QT=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"],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"],r=["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(...r)},{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 Af=n,Af}var Nf,XT;function n$e(){if(XT)return Nf;XT=1;function n(e){const t=e.regex,s={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},r={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]},u={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[a]},d={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},h={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},f=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],_={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,r,o,u,l,e.C_NUMBER_MODE,d,h,...f,_,s]}}return Nf=n,Nf}var Of,ZT;function s$e(){if(ZT)return Of;ZT=1;function n(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",s="(-|\\+)?\\d+([./]\\d+)?",i=s+"[+\\-]"+s+"i",r={$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-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? 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-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? 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: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,u=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:t,relevance:0},h={className:"symbol",begin:"'"+t},f={endsWithParent:!0,relevance:0},_={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,l,a,d,h]}]},m={className:"name",relevance:0,begin:t,keywords:r},b={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[m,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[d]}]},m,f]};return f.contains=[o,a,l,d,h,_,b].concat(u),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),a,l,h,_,b].concat(u)}}return Of=n,Of}var If,JT;function i$e(){if(JT)return If;JT=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 If=n,If}var Mf,ex;function r$e(){if(ex)return Mf;ex=1;const n=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.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:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.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","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["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"],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"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","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-right-color","border-right-style","border-right-width","border-spacing","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","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","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","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","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-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","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","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","resize","rest","rest-after","rest-before","right","row-gap","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","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","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-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","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","z-index"].reverse();function o(a){const l=n(a),u=i,d=s,h="@[a-z-]+",f="and or not only",m={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,l.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+u.join("|")+")"},m,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.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:[l.BLOCK_COMMENT,m,l.HEXCOLOR,l.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:h,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:t.join(" ")},contains:[{begin:h,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},m,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,l.HEXCOLOR,l.CSS_NUMBER_MODE]},l.FUNCTION_DISPATCH]}}return Mf=o,Mf}var Df,tx;function o$e(){if(tx)return Df;tx=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 Df=n,Df}var kf,nx;function a$e(){if(nx)return kf;nx=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"],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("+s.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return kf=n,kf}var Lf,sx;function l$e(){if(sx)return Lf;sx=1;function n(e){const t="[a-z][a-zA-Z0-9_]*",s={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,s,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,s,e.C_NUMBER_MODE,i]}]}}return Lf=n,Lf}var Pf,ix;function c$e(){if(ix)return Pf;ix=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 Pf=n,Pf}var Uf,rx;function d$e(){if(rx)return Uf;rx=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]+/},i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},r=["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:r,built_in:a,literal:o},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,s,i,l],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return Uf=n,Uf}var Ff,ox;function u$e(){if(ox)return Ff;ox=1;function n(e){const t=e.regex,s=e.COMMENT("--","$"),i={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={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"],u=["add","asc","collation","desc","final","first","last","view"],d=["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"],h=["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"],_=["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"],m=h,E=[...d,...u].filter(S=>!h.includes(S)),b={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={begin:t.concat(/\b/,t.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function v(S,{exceptions:w,when:x}={}){const A=x;return w=w||[],S.map(D=>D.match(/\|\d+$/)||w.includes(D)?D:A(D)?`${D}|0`:D)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(E,{when:S=>S.length<3}),literal:o,type:l,built_in:f},contains:[{begin:t.either(..._),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:E.concat(_),literal:o,type:l}},{className:"type",begin:t.either(...a)},y,b,i,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,s,g]}}return Ff=n,Ff}var Bf,ax;function p$e(){if(ax)return Bf;ax=1;function n(e){const t=e.regex,s=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],r=["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)/}]}),u={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},d=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:s,type:r,keyword:i,built_in:o},contains:[e.C_LINE_COMMENT_MODE,u,e.HASH_COMMENT_MODE,l,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...d),/\s*=/),keywords:d},{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 Bf=n,Bf}var Gf,lx;function _$e(){if(lx)return Gf;lx=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 Gf=n,Gf}var Vf,cx;function h$e(){if(cx)return Vf;cx=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 Vf=n,Vf}var zf,dx;function f$e(){if(dx)return zf;dx=1;const n=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.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:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.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","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["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"],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"],i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","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-right-color","border-right-style","border-right-width","border-spacing","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","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","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","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","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-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","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","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","resize","rest","rest-after","rest-before","right","row-gap","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","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","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-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","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","z-index"].reverse();function o(a){const l=n(a),u="and or not only",d={className:"variable",begin:"\\$"+a.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:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,l.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("+e.join("|")+")"+f,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+s.join("|")+")"+f},{className:"selector-pseudo",begin:"&?:(:)?("+i.join("|")+")"+f},l.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:t.join(" ")},contains:[l.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+h.join("|")+"))\\b"},d,l.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:[l.HEXCOLOR,d,a.APOS_STRING_MODE,l.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE]}]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b",starts:{end:/;|$/,contains:[l.HEXCOLOR,d,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,l.CSS_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},l.FUNCTION_DISPATCH]}}return zf=o,zf}var Hf,ux;function m$e(){if(ux)return Hf;ux=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 Hf=n,Hf}var qf,px;function g$e(){if(px)return qf;px=1;function n(D){return D?typeof D=="string"?D:D.source:null}function e(D){return t("(?=",D,")")}function t(...D){return D.map(O=>n(O)).join("")}function s(D){const T=D[D.length-1];return typeof T=="object"&&T.constructor===Object?(D.splice(D.length-1,1),T):{}}function i(...D){return"("+(s(D).capture?"":"?:")+D.map(F=>n(F)).join("|")+")"}const r=D=>t(/\b/,D,/\w$/.test(D)?/\b/:/\B/),o=["Protocol","Type"].map(r),a=["init","self"].map(r),l=["Any","Self"],u=["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","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"],d=["false","nil","true"],h=["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"],_=["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"],m=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]/),E=i(m,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(m,E,"*"),g=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(g,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),v=t(g,y,"*"),S=t(/[A-Z]/,y,"*"),w=["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\(/,v,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],x=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function A(D){const T={match:/\s+/,relevance:0},O=D.COMMENT("/\\*","\\*/",{contains:["self"]}),F=[D.C_LINE_COMMENT_MODE,O],z={match:[/\./,i(...o,...a)],className:{2:"keyword"}},Z={match:t(/\./,i(...u)),relevance:0},M=u.filter(Ye=>typeof Ye=="string").concat(["_|0"]),q=u.filter(Ye=>typeof Ye!="string").concat(l).map(r),H={variants:[{className:"keyword",match:i(...q,...a)}]},P={$pattern:i(/\b\w+/,/#\w+/),keyword:M.concat(f),literal:d},$=[z,Z,H],J={match:t(/\./,i(..._)),relevance:0},re={className:"built_in",match:t(/\b/,i(..._),/(?=\()/)},me=[J,re],Se={match:/->/,relevance:0},le={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${E})+`}]},Ee=[Se,le],Oe="([0-9]_*)+",Me="([0-9a-fA-F]_*)+",j={className:"number",relevance:0,variants:[{match:`\\b(${Oe})(\\.(${Oe}))?([eE][+-]?(${Oe}))?\\b`},{match:`\\b0x(${Me})(\\.(${Me}))?([pP][+-]?(${Oe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},pe=(Ye="")=>({className:"subst",variants:[{match:t(/\\/,Ye,/[0\\tnr"']/)},{match:t(/\\/,Ye,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ue=(Ye="")=>({className:"subst",match:t(/\\/,Ye,/[\t ]*(?:[\r\n]|\r\n)/)}),Ce=(Ye="")=>({className:"subst",label:"interpol",begin:t(/\\/,Ye,/\(/),end:/\)/}),ke=(Ye="")=>({begin:t(Ye,/"""/),end:t(/"""/,Ye),contains:[pe(Ye),ue(Ye),Ce(Ye)]}),N=(Ye="")=>({begin:t(Ye,/"/),end:t(/"/,Ye),contains:[pe(Ye),Ce(Ye)]}),V={className:"string",variants:[ke(),ke("#"),ke("##"),ke("###"),N(),N("#"),N("##"),N("###")]},Y=[D.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[D.BACKSLASH_ESCAPE]}],oe={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:Y},ne=Ye=>{const et=t(Ye,/\//),We=t(/\//,Ye);return{begin:et,end:We,contains:[...Y,{scope:"comment",begin:`#(?!.*${We})`,end:/$/}]}},Te={scope:"regexp",variants:[ne("###"),ne("##"),ne("#"),oe]},Ae={match:t(/`/,v,/`/)},te={className:"variable",match:/\$\d+/},we={className:"variable",match:`\\$${y}+`},ge=[Ae,te,we],De={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:x,contains:[...Ee,j,V]}]}},k={scope:"keyword",match:t(/@/,i(...w))},I={scope:"meta",match:t(/@/,v)},W=[De,k,I],ye={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:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:t(/\s+&\s+/,e(S)),relevance:0}]},K={begin:/</,end:/>/,keywords:P,contains:[...F,...$,...W,Se,ye]};ye.contains.push(K);const ee={match:t(v,/\s*:/),keywords:"_|0",relevance:0},Re={begin:/\(/,end:/\)/,relevance:0,keywords:P,contains:["self",ee,...F,Te,...$,...me,...Ee,j,V,...ge,...W,ye]},xe={begin:/</,end:/>/,keywords:"repeat each",contains:[...F,ye]},Le={begin:i(e(t(v,/\s*:/)),e(t(v,/\s+/,v,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:v}]},Ze={begin:/\(/,end:/\)/,keywords:P,contains:[Le,...F,...$,...Ee,j,V,...W,ye,Re],endsParent:!0,illegal:/["']/},ht={match:[/(func|macro)/,/\s+/,i(Ae.match,v,b)],className:{1:"keyword",3:"title.function"},contains:[xe,Ze,T],illegal:[/\[/,/%/]},Pe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[xe,Ze,T],illegal:/\[|%/},ct={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},tt={begin:[/precedencegroup/,/\s+/,S],className:{1:"keyword",3:"title"},contains:[ye],keywords:[...h,...d],end:/}/};for(const Ye of V.variants){const et=Ye.contains.find(Et=>Et.label==="interpol");et.keywords=P;const We=[...$,...me,...Ee,j,V,...ge];et.contains=[...We,{begin:/\(/,end:/\)/,contains:["self",...We]}]}return{name:"Swift",keywords:P,contains:[...F,ht,Pe,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:P,contains:[D.inherit(D.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...$]},ct,tt,{beginKeywords:"import",end:/$/,contains:[...F],relevance:0},Te,...$,...me,...Ee,j,V,...ge,...W,ye,Re]}}return qf=A,qf}var Yf,_x;function b$e(){if(_x)return Yf;_x=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 Yf=n,Yf}var $f,hx;function E$e(){if(hx)return $f;hx=1;function n(e){const t="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l="[0-9]{4}(-[0-9][0-9]){0,2}",u="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",d="(\\.[0-9]*)?",h="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",f={className:"number",begin:"\\b"+l+u+d+h+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},m={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},E={begin:"\\[",end:"\\]",contains:[_],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+!"+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}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},m,E,o],g=[...b];return g.pop(),g.push(a),_.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}return $f=n,$f}var Wf,fx;function y$e(){if(fx)return Wf;fx=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 Wf=n,Wf}var Kf,mx;function v$e(){if(mx)return Kf;mx=1;function n(e){const t=e.regex,s=/[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(/::/),s,"(::",s,")*")},{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 Kf=n,Kf}var jf,gx;function S$e(){if(gx)return jf;gx=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 jf=n,jf}var Qf,bx;function T$e(){if(bx)return Qf;bx=1;function n(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},s={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,s]},r={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:[i,r,{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 Qf=n,Qf}var Xf,Ex;function x$e(){if(Ex)return Xf;Ex=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"],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 r=["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"];r=r.concat(r.map(E=>`end${E}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},l={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},u={beginKeywords:s.join(" "),keywords:{name:s},relevance:0,contains:[l]},d={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:i}]},h=(E,{relevance:b})=>({beginScope:{1:"template-tag",3:"name"},relevance:b||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...E)],end:/%\}/,keywords:"in",contains:[d,u,o,a]}),f=/[a-z_]+/,_=h(r,{relevance:2}),m=h([f],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),_,m,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",d,u,o,a]}]}}return Xf=n,Xf}var Zf,yx;function C$e(){if(yx)return Zf;yx=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"],i=["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"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,s,i);function l(d){const h=d.regex,f=(pe,{after:ue})=>{const Ce="</"+pe[0].slice(1);return pe.input.indexOf(Ce,ue)!==-1},_=n,m={begin:"<>",end:"</>"},E=/<[A-Za-z0-9\\._:-]+\s*\/>/,b={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(pe,ue)=>{const Ce=pe[0].length+pe.index,ke=pe.input[Ce];if(ke==="<"||ke===","){ue.ignoreMatch();return}ke===">"&&(f(pe,{after:Ce})||ue.ignoreMatch());let N;const V=pe.input.substring(Ce);if(N=V.match(/^\s*=/)){ue.ignoreMatch();return}if((N=V.match(/^\s+extends\s+/))&&N.index===0){ue.ignoreMatch();return}}},g={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},y="[0-9](_?[0-9])*",v=`\\.(${y})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",w={className:"number",variants:[{begin:`(\\b(${S})((${v})|\\.)?|(${v}))[eE][+-]?(${y})\\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},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},A={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},D={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,x],subLanguage:"css"}},T={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,x]},z={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:_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},Z=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,A,D,T,O,{match:/\$\d+/},w];x.contains=Z.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(Z)});const M=[].concat(z,x.contains),q=M.concat([{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(M)}]),H={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:q},P={variants:[{match:[/class/,/\s+/,_,/\s+/,/extends/,/\s+/,h.concat(_,"(",h.concat(/\./,_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,_],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:h.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,...i]}},J={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},re={variants:[{match:[/function/,/\s+/,_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},me={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Se(pe){return h.concat("(?!",pe.join("|"),")")}const le={match:h.concat(/\b/,Se([...r,"super","import"]),_,h.lookahead(/\(/)),className:"title.function",relevance:0},Ee={begin:h.concat(/\./,h.lookahead(h.concat(_,/(?![0-9A-Za-z$_(])/))),end:_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Oe={match:[/get|set/,/\s+/,_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},Me="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",j={match:[/const|var|let/,/\s+/,_,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(Me)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:q,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),J,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,A,D,T,O,z,{match:/\$\d+/},w,$,{className:"attr",begin:_+h.lookahead(":"),relevance:0},j,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[z,d.REGEXP_MODE,{className:"function",begin:Me,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:q}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:m.begin,end:m.end},{match:E},{begin:b.begin,"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},re,{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:_,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},le,me,P,Oe,{match:/\$[(.]/}]}}function u(d){const h=l(d),f=n,_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],m={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[h.exports.CLASS_REFERENCE]},E={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:_},contains:[h.exports.CLASS_REFERENCE]},b={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],y={$pattern:n,keyword:e.concat(g),literal:t,built_in:a.concat(_),"variable.language":o},v={className:"meta",begin:"@"+f},S=(x,A,D)=>{const T=x.contains.findIndex(O=>O.label===A);if(T===-1)throw new Error("can not find mode to replace");x.contains.splice(T,1,D)};Object.assign(h.keywords,y),h.exports.PARAMS_CONTAINS.push(v),h.contains=h.contains.concat([v,m,E]),S(h,"shebang",d.SHEBANG()),S(h,"use_strict",b);const w=h.contains.find(x=>x.label==="func.def");return w.relevance=0,Object.assign(h,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),h}return Zf=u,Zf}var Jf,vx;function w$e(){if(vx)return Jf;vx=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 Jf=n,Jf}var em,Sx;function R$e(){if(Sx)return em;Sx=1;function n(e){const t=e.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\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}/,u={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,r),/ *#/)},{begin:t.concat(/# */,l,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,r),/ +/,t.either(a,l),/ *#/)}]},d={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])|[%&])?/}]},h={className:"label",begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),_=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,i,u,d,h,f,_,{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:[_]}]}}return em=n,em}var tm,Tx;function A$e(){if(Tx)return tm;Tx=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"],i=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],r={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:i,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[r,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return tm=n,tm}var nm,xx;function N$e(){if(xx)return nm;xx=1;function n(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return nm=n,nm}var sm,Cx;function O$e(){if(Cx)return sm;Cx=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"]},i=["__FILE__","__LINE__"],r=["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(...i))},{scope:"meta",begin:t.concat(/`/,t.either(...r)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:r}]}}return sm=n,sm}var im,wx;function I$e(){if(wx)return im;wx=1;function n(e){const t="\\d(_|\\d)*",s="[eE][-+]?"+t,i=t+"(\\."+t+")?("+s+")?",r="\\w+",a="\\b("+(t+"#"+r+"(\\."+r+")?#("+s+")?")+"|"+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 im=n,im}var rm,Rx;function M$e(){if(Rx)return rm;Rx=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 rm=n,rm}var om,Ax;function D$e(){if(Ax)return om;Ax=1;function n(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const s=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"],r={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/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},d={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:[s,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,r,e.QUOTE_STRING_MODE,u,d,l]}}return om=n,om}var am,Nx;function k$e(){if(Nx)return am;Nx=1;function n(e){const t=e.regex,s=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],r=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],l=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],u={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,s,/(?=\s*[({])/),className:"title.function"},d={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,s),t.either(...l)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:s}]}]}},h={variants:[{match:[/class\s+/,s,/\s+is\s+/,s]},{match:[/class\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},f={relevance:0,match:t.either(...l),className:"operator"},_={className:"string",begin:/"""/,end:/"""/},m={className:"property",begin:t.concat(/\./,t.lookahead(s)),end:s,excludeBegin:!0,relevance:0},E={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,y={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,u,E,f]},w={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(w);const x=[...i,...o,...r],A={relevance:0,match:t.concat("\\b(?!",x.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":o,literal:r},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:r},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},g,w,_,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,h,y,d,u,f,E,m,A]}}return am=n,am}var lm,Ox;function L$e(){if(Ox)return lm;Ox=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 lm=n,lm}var cm,Ix;function P$e(){if(Ix)return cm;Ix=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"],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:s.concat(i)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},l={className:"string",begin:"'",end:"'",illegal:"\\n"},u={className:"string",begin:"<<",end:">>"},d={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},h={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,u,f,h,d,e.NUMBER_MODE]}}return cm=n,cm}var dm,Mx;function U$e(){if(Mx)return dm;Mx=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:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return dm=n,dm}var um,Dx;function F$e(){if(Dx)return um;Dx=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,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},r="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:r,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:r,contains:["self",e.C_BLOCK_COMMENT_MODE,t,i]}]},{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,i]}}return um=n,um}var Q=l7e;Q.registerLanguage("1c",c7e());Q.registerLanguage("abnf",d7e());Q.registerLanguage("accesslog",u7e());Q.registerLanguage("actionscript",p7e());Q.registerLanguage("ada",_7e());Q.registerLanguage("angelscript",h7e());Q.registerLanguage("apache",f7e());Q.registerLanguage("applescript",m7e());Q.registerLanguage("arcade",g7e());Q.registerLanguage("arduino",b7e());Q.registerLanguage("armasm",E7e());Q.registerLanguage("xml",y7e());Q.registerLanguage("asciidoc",v7e());Q.registerLanguage("aspectj",S7e());Q.registerLanguage("autohotkey",T7e());Q.registerLanguage("autoit",x7e());Q.registerLanguage("avrasm",C7e());Q.registerLanguage("awk",w7e());Q.registerLanguage("axapta",R7e());Q.registerLanguage("bash",A7e());Q.registerLanguage("basic",N7e());Q.registerLanguage("bnf",O7e());Q.registerLanguage("brainfuck",I7e());Q.registerLanguage("c",M7e());Q.registerLanguage("cal",D7e());Q.registerLanguage("capnproto",k7e());Q.registerLanguage("ceylon",L7e());Q.registerLanguage("clean",P7e());Q.registerLanguage("clojure",U7e());Q.registerLanguage("clojure-repl",F7e());Q.registerLanguage("cmake",B7e());Q.registerLanguage("coffeescript",G7e());Q.registerLanguage("coq",V7e());Q.registerLanguage("cos",z7e());Q.registerLanguage("cpp",H7e());Q.registerLanguage("crmsh",q7e());Q.registerLanguage("crystal",Y7e());Q.registerLanguage("csharp",$7e());Q.registerLanguage("csp",W7e());Q.registerLanguage("css",K7e());Q.registerLanguage("d",j7e());Q.registerLanguage("markdown",Q7e());Q.registerLanguage("dart",X7e());Q.registerLanguage("delphi",Z7e());Q.registerLanguage("diff",J7e());Q.registerLanguage("django",eqe());Q.registerLanguage("dns",tqe());Q.registerLanguage("dockerfile",nqe());Q.registerLanguage("dos",sqe());Q.registerLanguage("dsconfig",iqe());Q.registerLanguage("dts",rqe());Q.registerLanguage("dust",oqe());Q.registerLanguage("ebnf",aqe());Q.registerLanguage("elixir",lqe());Q.registerLanguage("elm",cqe());Q.registerLanguage("ruby",dqe());Q.registerLanguage("erb",uqe());Q.registerLanguage("erlang-repl",pqe());Q.registerLanguage("erlang",_qe());Q.registerLanguage("excel",hqe());Q.registerLanguage("fix",fqe());Q.registerLanguage("flix",mqe());Q.registerLanguage("fortran",gqe());Q.registerLanguage("fsharp",bqe());Q.registerLanguage("gams",Eqe());Q.registerLanguage("gauss",yqe());Q.registerLanguage("gcode",vqe());Q.registerLanguage("gherkin",Sqe());Q.registerLanguage("glsl",Tqe());Q.registerLanguage("gml",xqe());Q.registerLanguage("go",Cqe());Q.registerLanguage("golo",wqe());Q.registerLanguage("gradle",Rqe());Q.registerLanguage("graphql",Aqe());Q.registerLanguage("groovy",Nqe());Q.registerLanguage("haml",Oqe());Q.registerLanguage("handlebars",Iqe());Q.registerLanguage("haskell",Mqe());Q.registerLanguage("haxe",Dqe());Q.registerLanguage("hsp",kqe());Q.registerLanguage("http",Lqe());Q.registerLanguage("hy",Pqe());Q.registerLanguage("inform7",Uqe());Q.registerLanguage("ini",Fqe());Q.registerLanguage("irpf90",Bqe());Q.registerLanguage("isbl",Gqe());Q.registerLanguage("java",Vqe());Q.registerLanguage("javascript",zqe());Q.registerLanguage("jboss-cli",Hqe());Q.registerLanguage("json",qqe());Q.registerLanguage("julia",Yqe());Q.registerLanguage("julia-repl",$qe());Q.registerLanguage("kotlin",Wqe());Q.registerLanguage("lasso",Kqe());Q.registerLanguage("latex",jqe());Q.registerLanguage("ldif",Qqe());Q.registerLanguage("leaf",Xqe());Q.registerLanguage("less",Zqe());Q.registerLanguage("lisp",Jqe());Q.registerLanguage("livecodeserver",eYe());Q.registerLanguage("livescript",tYe());Q.registerLanguage("llvm",nYe());Q.registerLanguage("lsl",sYe());Q.registerLanguage("lua",iYe());Q.registerLanguage("makefile",rYe());Q.registerLanguage("mathematica",oYe());Q.registerLanguage("matlab",aYe());Q.registerLanguage("maxima",lYe());Q.registerLanguage("mel",cYe());Q.registerLanguage("mercury",dYe());Q.registerLanguage("mipsasm",uYe());Q.registerLanguage("mizar",pYe());Q.registerLanguage("perl",_Ye());Q.registerLanguage("mojolicious",hYe());Q.registerLanguage("monkey",fYe());Q.registerLanguage("moonscript",mYe());Q.registerLanguage("n1ql",gYe());Q.registerLanguage("nestedtext",bYe());Q.registerLanguage("nginx",EYe());Q.registerLanguage("nim",yYe());Q.registerLanguage("nix",vYe());Q.registerLanguage("node-repl",SYe());Q.registerLanguage("nsis",TYe());Q.registerLanguage("objectivec",xYe());Q.registerLanguage("ocaml",CYe());Q.registerLanguage("openscad",wYe());Q.registerLanguage("oxygene",RYe());Q.registerLanguage("parser3",AYe());Q.registerLanguage("pf",NYe());Q.registerLanguage("pgsql",OYe());Q.registerLanguage("php",IYe());Q.registerLanguage("php-template",MYe());Q.registerLanguage("plaintext",DYe());Q.registerLanguage("pony",kYe());Q.registerLanguage("powershell",LYe());Q.registerLanguage("processing",PYe());Q.registerLanguage("profile",UYe());Q.registerLanguage("prolog",FYe());Q.registerLanguage("properties",BYe());Q.registerLanguage("protobuf",GYe());Q.registerLanguage("puppet",VYe());Q.registerLanguage("purebasic",zYe());Q.registerLanguage("python",HYe());Q.registerLanguage("python-repl",qYe());Q.registerLanguage("q",YYe());Q.registerLanguage("qml",$Ye());Q.registerLanguage("r",WYe());Q.registerLanguage("reasonml",KYe());Q.registerLanguage("rib",jYe());Q.registerLanguage("roboconf",QYe());Q.registerLanguage("routeros",XYe());Q.registerLanguage("rsl",ZYe());Q.registerLanguage("ruleslanguage",JYe());Q.registerLanguage("rust",e$e());Q.registerLanguage("sas",t$e());Q.registerLanguage("scala",n$e());Q.registerLanguage("scheme",s$e());Q.registerLanguage("scilab",i$e());Q.registerLanguage("scss",r$e());Q.registerLanguage("shell",o$e());Q.registerLanguage("smali",a$e());Q.registerLanguage("smalltalk",l$e());Q.registerLanguage("sml",c$e());Q.registerLanguage("sqf",d$e());Q.registerLanguage("sql",u$e());Q.registerLanguage("stan",p$e());Q.registerLanguage("stata",_$e());Q.registerLanguage("step21",h$e());Q.registerLanguage("stylus",f$e());Q.registerLanguage("subunit",m$e());Q.registerLanguage("swift",g$e());Q.registerLanguage("taggerscript",b$e());Q.registerLanguage("yaml",E$e());Q.registerLanguage("tap",y$e());Q.registerLanguage("tcl",v$e());Q.registerLanguage("thrift",S$e());Q.registerLanguage("tp",T$e());Q.registerLanguage("twig",x$e());Q.registerLanguage("typescript",C$e());Q.registerLanguage("vala",w$e());Q.registerLanguage("vbnet",R$e());Q.registerLanguage("vbscript",A$e());Q.registerLanguage("vbscript-html",N$e());Q.registerLanguage("verilog",O$e());Q.registerLanguage("vhdl",I$e());Q.registerLanguage("vim",M$e());Q.registerLanguage("wasm",D$e());Q.registerLanguage("wren",k$e());Q.registerLanguage("x86asm",L$e());Q.registerLanguage("xl",P$e());Q.registerLanguage("xquery",U$e());Q.registerLanguage("zephir",F$e());Q.HighlightJS=Q;Q.default=Q;var B$e=Q;const jr=_r(B$e),G$e="/assets/vscode_black-c05c76d9.svg",V$e="/assets/vscode-b22df1bb.svg";jr.configure({languages:[]});jr.configure({languages:["bash"]});jr.highlightAll();const z$e={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(){Ue(()=>{Ge.replace()})},computed:{highlightedCode(){let n;this.language==="vue"||this.language==="vue.js"?n="javascript":this.language==="function"?n="json":n=jr.getLanguage(this.language)?this.language:"plaintext";const e=this.code.trim(),t=e.split(`
`),s=t.length.toString().length,i=t.map((u,d)=>(d+1).toString().padStart(s," ")),r=document.createElement("div");r.classList.add("line-numbers"),r.innerHTML=i.join("<br>");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=jr.highlight(e,{language:n,ignoreIllegals:!0}).value,a.appendChild(l),o.appendChild(r),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),Ue(()=>{Ge.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)})}}},H$e={class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},q$e={class:"hljs p-1 rounded-md break-all grid grid-cols-1"},Y$e={class:"code-container"},$$e=["innerHTML"],W$e={class:"flex flex-row bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},K$e={class:"text-2xl mr-2"},j$e=["title"],Q$e=c("i",{"data-feather":"copy"},null,-1),X$e=[Q$e],Z$e=c("i",{"data-feather":"play-circle"},null,-1),J$e=[Z$e],eWe=c("i",{"data-feather":"airplay"},null,-1),tWe=[eWe],nWe=c("i",{"data-feather":"folder"},null,-1),sWe=[nWe],iWe=c("img",{src:G$e,width:"25",height:"25"},null,-1),rWe=[iWe],oWe=c("img",{src:V$e,width:"25",height:"25"},null,-1),aWe=[oWe],lWe={key:0,class:"text-2xl"},cWe={key:1,class:"hljs mt-0 p-1 rounded-md break-all grid grid-cols-1"},dWe={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"},uWe=["innerHTML"];function pWe(n,e,t,s,i,r){return C(),R("div",H$e,[c("pre",q$e,[Xe(" "),c("div",Y$e,[Xe(`
`),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:r.highlightedCode,contenteditable:"true",onInput:e[0]||(e[0]=(...o)=>n.updateCode&&n.updateCode(...o))},null,40,$$e),Xe(`
`)]),Xe(`
`)]),c("div",W$e,[c("span",K$e,se(t.language),1),c("button",{onClick:e[1]||(e[1]=(...o)=>r.copyCode&&r.copyCode(...o)),title:i.isCopied?"Copied!":"Copy code",class:Fe([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"])},X$e,10,j$e),["function","python","sh","shell","bash","cmd","powershell","latex","mermaid","graphviz","dot","javascript","html","html5","svg"].includes(t.language)?(C(),R("button",{key:0,ref:"btn_code_exec",onClick:e[2]||(e[2]=(...o)=>r.executeCode&&r.executeCode(...o)),title:"execute",class:Fe(["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":""])},J$e,2)):G("",!0),["airplay","mermaid","graphviz","dot","javascript","html","html5","svg","css"].includes(t.language)?(C(),R("button",{key:1,ref:"btn_code_exec_in_new_tab",onClick:e[3]||(e[3]=(...o)=>r.executeCode_in_new_tab&&r.executeCode_in_new_tab(...o)),title:"execute",class:Fe(["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":""])},tWe,2)):G("",!0),["python","latex","html"].includes(t.language)?(C(),R("button",{key:2,onClick:e[4]||(e[4]=(...o)=>r.openFolder&&r.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"},sWe)):G("",!0),["python","latex","html"].includes(t.language)?(C(),R("button",{key:3,onClick:e[5]||(e[5]=(...o)=>r.openFolderVsCode&&r.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"},rWe)):G("",!0),["python","latex","html"].includes(t.language)?(C(),R("button",{key:4,onClick:e[6]||(e[6]=(...o)=>r.openVsCode&&r.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"},aWe)):G("",!0)]),i.executionOutput?(C(),R("span",lWe,"Execution output")):G("",!0),i.executionOutput?(C(),R("pre",cWe,[Xe(" "),c("div",dWe,[Xe(`
`),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,uWe),Xe(`
`)]),Xe(`
`)])):G("",!0)])}const _We=pt(z$e,[["render",pWe]]);var qA={exports:{}};(function(n,e){(function(t,s){n.exports=s()})(oA,function(){function t(a,l){var u=a.pos;if(a.src.charCodeAt(u)!==92)return!1;var d=a.src.slice(++u).match(/^(?:\\\[|\\\(|begin\{([^}]*)\})/);if(!d)return!1;u+=d[0].length;var h,f,_;d[0]==="\\["?(h="display_math",f="\\\\]"):d[0]==="\\("?(h="inline_math",f="\\\\)"):d[1]&&(h="math",f="\\end{"+d[1]+"}",_=!0);var m=a.src.indexOf(f,u);if(m===-1)return!1;var E=m+f.length;if(!l){var b=a.push(h,"",0);b.content=_?a.src.slice(a.pos,E):a.src.slice(u,m)}return a.pos=E,!0}function s(a,l){var u=a.pos;if(a.src.charCodeAt(u)!==36)return!1;var d="$",h=a.src.charCodeAt(++u);if(h===36){if(d="$$",a.src.charCodeAt(++u)===36)return!1}else if(h===32||h===9||h===10)return!1;var f=a.src.indexOf(d,u);if(f===-1||a.src.charCodeAt(f-1)===92)return!1;var _=f+d.length;if(d.length===1){var m=a.src.charCodeAt(f-1);if(m===32||m===9||m===10)return!1;var E=a.src.charCodeAt(_);if(E>=48&&E<58)return!1}if(!l){var b=a.push(d.length===1?"inline_math":"display_math","",0);b.content=a.src.slice(u,f)}return a.pos=_,!0}function i(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")}function r(a,l){return Object.keys(l).reduce(function(u,d){return u[d]===void 0&&(u[d]=l[d]),u},a)}var o={math:"Math",inline_math:"InlineMath",display_math:"DisplayMath"};return function(a){var l={beforeMath:"",afterMath:"",beforeInlineMath:"\\(",afterInlineMath:"\\)",beforeDisplayMath:"\\[",afterDisplayMath:"\\]"};return a=r(a||{},l),function(u){u.inline.ruler.before("escape","math",t),u.inline.ruler.push("texMath",s),Object.keys(o).forEach(function(d){var h=a["before"+o[d]],f=a["after"+o[d]];u.renderer.rules[d]=function(_,m){return h+i(_[m].content)+f}})}}})})(qA);var hWe=qA.exports;const fWe=_r(hWe);function mWe(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}const gWe={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:_We},setup(n){const e=new Yge({html:!0,highlight:(r,o)=>{const a=o&&jr.getLanguage(o)?o:"plaintext";return jr.highlight(a,r).value},renderInline:!0,breaks:!0}).use(jze).use(Do).use(nHe,{figcaption:!0}).use(fHe).use(eHe,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:`
`}).use(fWe({inlineMath:[["$","$"],["\\(","\\)"]],blockMath:[["$$","$$"],["\\[","\\]"]]})),t=lt([]),s=()=>{if(n.markdownText){let r=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a<r.length;a++)r[a].type!=="fence"?o.push(r[a]):(o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:mWe(r[a].info),code:r[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];Ue(()=>{Ge.replace()})},i=(r,o)=>{t.value[r].code=o};return Fn(()=>n.markdownText,s),Mi(()=>{s(),Ue(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:t,updateCode:i}}},bWe={class:"break-all container w-full"},EWe={ref:"mdRender",class:"markdown-content"},yWe=["innerHTML"];function vWe(n,e,t,s,i,r){const o=dt("code-block");return C(),R("div",bWe,[c("div",EWe,[(C(!0),R(ze,null,st(s.markdownItems,(a,l)=>(C(),R("div",{key:l},[a.type==="code"?(C(),St(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:u=>s.updateCode(l,u)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(C(),R("div",{key:1,innerHTML:a.html},null,8,yWe))]))),128))],512)])}const Uu=pt(gWe,[["render",vWe]]),SWe={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:Uu},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},TWe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},xWe={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},CWe={class:"container max-h-500 overflow-y-auto"},wWe={class:"text-lg font-medium"},RWe={class:"mt-4 flex justify-center"},AWe={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},NWe=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),OWe=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),IWe=[NWe,OWe];function MWe(n,e,t,s,i,r){const o=dt("MarkdownRenderer");return i.show?(C(),R("div",TWe,[c("div",xWe,[c("div",CWe,[c("div",wWe,[_e(o,{ref:"mdRender",host:"","markdown-text":i.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),c("div",RWe,[i.has_button?(C(),R("button",{key:0,onClick:e[0]||(e[0]=(...a)=>r.hide&&r.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 ")):G("",!0),i.has_button?G("",!0):(C(),R("svg",AWe,IWe))])])])):G("",!0)}const YA=pt(SWe,[["render",MWe]]);const DWe={props:{progress:{type:Number,required:!0}}},kWe={class:"progress-bar-container"};function LWe(n,e,t,s,i,r){return C(),R("div",kWe,[c("div",{class:"progress-bar",style:jt({width:`${t.progress}%`})},null,4)])}const Ll=pt(DWe,[["render",LWe]]),PWe={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Ue(()=>{Ge.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 i=0;i<n.length;i++)n[i].isHelp=!1;return new Promise(i=>{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=i,console.log("show form",this.controls_array)})}},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(){Ue(()=>{Ge.replace()})}}},UWe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},FWe={class:"relative w-full max-w-md"},BWe={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},GWe={class:"flex flex-row flex-grow items-center m-2 p-1"},VWe={class:"grow flex items-center"},zWe=c("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),HWe={class:"text-lg font-semibold select-none mr-2"},qWe={class:"items-end"},YWe=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),$We=c("span",{class:"sr-only"},"Close form modal",-1),WWe=[YWe,$We],KWe={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},jWe={class:"px-2"},QWe={key:0},XWe={key:0},ZWe={class:"text-base font-semibold"},JWe={key:0,class:"relative inline-flex"},eKe=["onUpdate:modelValue"],tKe=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),nKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},sKe=["onUpdate:modelValue"],iKe={key:1},rKe={class:"text-base font-semibold"},oKe={key:0,class:"relative inline-flex"},aKe=["onUpdate:modelValue"],lKe=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),cKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},dKe=["onUpdate:modelValue"],uKe=["value","selected"],pKe={key:1},_Ke={class:"",onclick:"btn_clicked(item)"},hKe={key:2},fKe={key:0},mKe={class:"text-base font-semibold"},gKe={key:0,class:"relative inline-flex"},bKe=["onUpdate:modelValue"],EKe=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),yKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},vKe=["onUpdate:modelValue"],SKe={key:1},TKe={class:"text-base font-semibold"},xKe={key:0,class:"relative inline-flex"},CKe=["onUpdate:modelValue"],wKe=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),RKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},AKe=["onUpdate:modelValue"],NKe=["value","selected"],OKe={key:3},IKe={class:"text-base font-semibold"},MKe={key:0,class:"relative inline-flex"},DKe=["onUpdate:modelValue"],kKe=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),LKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},PKe=["onUpdate:modelValue"],UKe=["onUpdate:modelValue","min","max"],FKe={key:4},BKe={class:"text-base font-semibold"},GKe={key:0,class:"relative inline-flex"},VKe=["onUpdate:modelValue"],zKe=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),HKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},qKe=["onUpdate:modelValue"],YKe=["onUpdate:modelValue","min","max"],$Ke={key:5},WKe={class:"mb-2 relative flex items-center gap-2"},KKe={for:"default-checkbox",class:"text-base font-semibold"},jKe=["onUpdate:modelValue"],QKe={key:0,class:"relative inline-flex"},XKe=["onUpdate:modelValue"],ZKe=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),JKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},eje={key:6},tje={class:"text-base font-semibold"},nje={key:0,class:"relative inline-flex"},sje=["onUpdate:modelValue"],ije=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),rje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},oje=["onUpdate:modelValue"],aje=c("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),lje={class:"flex flex-row flex-grow gap-3"},cje={class:"p-2 text-center grow"};function dje(n,e,t,s,i,r){return i.show?(C(),R("div",UWe,[c("div",FWe,[c("div",BWe,[c("div",GWe,[c("div",VWe,[zWe,c("h3",HWe,se(i.title),1)]),c("div",qWe,[c("button",{type:"button",onClick:e[0]||(e[0]=ae(o=>r.hide(!1),["stop"])),title:"Close",class:"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"},WWe)])]),c("div",KWe,[(C(!0),R(ze,null,st(i.controls_array,(o,a)=>(C(),R("div",jWe,[o.type=="str"||o.type=="string"?(C(),R("div",QWe,[o.options?G("",!0):(C(),R("div",XWe,[c("label",{class:Fe(["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",ZWe,se(o.name)+": ",1),o.help?(C(),R("label",JWe,[B(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,eKe),[[Ke,o.isHelp]]),tKe])):G("",!0)],2),o.isHelp?(C(),R("p",nKe,se(o.help),1)):G("",!0),B(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,sKe),[[he,o.value]])])),o.options?(C(),R("div",iKe,[c("label",{class:Fe(["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",rKe,se(o.name)+": ",1),o.help?(C(),R("label",oKe,[B(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,aKe),[[Ke,o.isHelp]]),lKe])):G("",!0)],2),o.isHelp?(C(),R("p",cKe,se(o.help),1)):G("",!0),B(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"},[(C(!0),R(ze,null,st(o.options,l=>(C(),R("option",{value:l,selected:o.value===l},se(l),9,uKe))),256))],8,dKe),[[qt,o.value]])])):G("",!0)])):G("",!0),o.type=="btn"?(C(),R("div",pKe,[c("button",_Ke,se(o.name),1)])):G("",!0),o.type=="text"?(C(),R("div",hKe,[o.options?G("",!0):(C(),R("div",fKe,[c("label",{class:Fe(["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",mKe,se(o.name)+": ",1),o.help?(C(),R("label",gKe,[B(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,bKe),[[Ke,o.isHelp]]),EKe])):G("",!0)],2),o.isHelp?(C(),R("p",yKe,se(o.help),1)):G("",!0),B(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,vKe),[[he,o.value]])])),o.options?(C(),R("div",SKe,[c("label",{class:Fe(["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",TKe,se(o.name)+": ",1),o.help?(C(),R("label",xKe,[B(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,CKe),[[Ke,o.isHelp]]),wKe])):G("",!0)],2),o.isHelp?(C(),R("p",RKe,se(o.help),1)):G("",!0),B(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"},[(C(!0),R(ze,null,st(o.options,l=>(C(),R("option",{value:l,selected:o.value===l},se(l),9,NKe))),256))],8,AKe),[[qt,o.value]])])):G("",!0)])):G("",!0),o.type=="int"?(C(),R("div",OKe,[c("label",{class:Fe(["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",IKe,se(o.name)+": ",1),o.help?(C(),R("label",MKe,[B(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,DKe),[[Ke,o.isHelp]]),kKe])):G("",!0)],2),o.isHelp?(C(),R("p",LKe,se(o.help),1)):G("",!0),B(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,PKe),[[he,o.value]]),o.min!=null&&o.max!=null?B((C(),R("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,UKe)),[[he,o.value]]):G("",!0)])):G("",!0),o.type=="float"?(C(),R("div",FKe,[c("label",{class:Fe(["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",BKe,se(o.name)+": ",1),o.help?(C(),R("label",GKe,[B(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,VKe),[[Ke,o.isHelp]]),zKe])):G("",!0)],2),o.isHelp?(C(),R("p",HKe,se(o.help),1)):G("",!0),B(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,qKe),[[he,o.value]]),o.min!=null&&o.max!=null?B((C(),R("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,YKe)),[[he,o.value]]):G("",!0)])):G("",!0),o.type=="bool"?(C(),R("div",$Ke,[c("div",WKe,[c("label",KKe,se(o.name)+": ",1),B(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,jKe),[[Ke,o.value]]),o.help?(C(),R("label",QKe,[B(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,XKe),[[Ke,o.isHelp]]),ZKe])):G("",!0)]),o.isHelp?(C(),R("p",JKe,se(o.help),1)):G("",!0)])):G("",!0),o.type=="list"?(C(),R("div",eje,[c("label",{class:Fe(["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",tje,se(o.name)+": ",1),o.help?(C(),R("label",nje,[B(c("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,sje),[[Ke,o.isHelp]]),ije])):G("",!0)],2),o.isHelp?(C(),R("p",rje,se(o.help),1)):G("",!0),B(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,oje),[[he,o.value]])])):G("",!0),aje]))),256)),c("div",lje,[c("div",cje,[c("button",{onClick:e[1]||(e[1]=ae(o=>r.hide(!0),["stop"])),type:"button",class:"mr-2 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 sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},se(i.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=ae(o=>r.hide(!1),["stop"])),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-11 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"},se(i.DenyButtonText),1)])])])])])])):G("",!0)}const Xl=pt(PWe,[["render",dje]]),uje={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})}}},pje={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},_je={class:"relative w-full max-w-md max-h-full"},hje={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},fje=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),mje=c("span",{class:"sr-only"},"Close modal",-1),gje=[fje,mje],bje={class:"p-4 text-center"},Eje=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),yje={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function vje(n,e,t,s,i,r){return i.show?(C(),R("div",pje,[c("div",_je,[c("div",hje,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},gje),c("div",bje,[Eje,c("h3",yje,se(i.message),1),c("button",{onClick:e[1]||(e[1]=o=>r.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"},se(i.ConfirmButtonText),1),c("button",{onClick:e[2]||(e[2]=o=>r.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"},se(i.DenyButtonText),1)])])])])):G("",!0)}const $A=pt(uje,[["render",vje]]),Sje={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)})}}},Tje={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},xje={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},Cje={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"},wje=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),Rje=c("span",{class:"sr-only"},"Close modal",-1),Aje=[wje,Rje],Nje={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},Oje={class:"w-full flex flex-row mt-4 text-center justify-center"},Ije={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},Mje={class:"mb-4 w-full"},Dje={class:"w-full bg-bg-light dark:bg-bg-dark"},kje=c("td",null,[c("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1),Lje=c("td",null,[c("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1),Pje=c("td",null,[c("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1),Uje=c("td",null,[c("label",{for:"linkText"},"Link Text:")],-1),Fje=c("td",null,[c("label",{for:"welcomeMessage"},"Welcome Message:")],-1),Bje=c("td",null,[c("label",{for:"modelTemperature"},"Model Temperature:")],-1),Gje=c("td",null,[c("label",{for:"modelTopK"},"Model Top K:")],-1),Vje=c("td",null,[c("label",{for:"modelTopP"},"Model Top P:")],-1),zje=c("td",null,[c("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1),Hje=c("td",null,[c("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1),qje=c("td",null,[c("label",{for:"recommendedBinding"},"Recommended Binding:")],-1),Yje=c("td",null,[c("label",{for:"recommendedModel"},"Recommended Model:")],-1),$je=c("td",null,[c("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1),Wje=c("td",null,[c("label",{for:"antiPrompts"},"Anti Prompts:")],-1);function Kje(n,e,t,s,i,r){return i.show?(C(),R("div",Tje,[c("div",xje,[c("div",Cje,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},Aje),c("div",Nje,[c("div",Oje,[c("button",{type:"submit",onClick:e[1]||(e[1]=ae((...o)=>r.submitForm&&r.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]=ae(o=>r.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),c("div",Ije,[c("form",Mje,[c("table",Dje,[c("tr",null,[kje,c("td",null,[B(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),[[he,t.config.personality_conditioning]])])]),c("tr",null,[Lje,c("td",null,[B(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),[[he,t.config.user_message_prefix]])])]),c("tr",null,[Pje,c("td",null,[B(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),[[he,t.config.ai_message_prefix]])])]),c("tr",null,[Uje,c("td",null,[B(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),[[he,t.config.link_text]])])]),c("tr",null,[Fje,c("td",null,[B(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),[[he,t.config.welcome_message]])])]),c("tr",null,[Bje,c("td",null,[B(c("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[he,t.config.model_temperature]])])]),c("tr",null,[Gje,c("td",null,[B(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),[[he,t.config.model_top_k]])])]),c("tr",null,[Vje,c("td",null,[B(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),[[he,t.config.model_top_p]])])]),c("tr",null,[zje,c("td",null,[B(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),[[he,t.config.model_repeat_penalty]])])]),c("tr",null,[Hje,c("td",null,[B(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),[[he,t.config.model_repeat_last_n]])])]),c("tr",null,[qje,c("td",null,[B(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),[[he,t.config.recommended_binding]])])]),c("tr",null,[Yje,c("td",null,[B(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),[[he,t.config.recommended_model]])])]),c("tr",null,[$je,c("td",null,[B(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),[[he,t.config.dependencies]])])]),c("tr",null,[Wje,c("td",null,[B(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),[[he,t.config.anti_prompts]])])])])])])])])])])):G("",!0)}const WA=pt(Sje,[["render",Kje]]);const jje={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)})}}},Qje=n=>(no("data-v-d504dfc9"),n=n(),so(),n),Xje={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},Zje={class:"popup-container"},Jje=["src"],eQe={class:"checkbox-container"},tQe=Qje(()=>c("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1));function nQe(n,e,t,s,i,r){return C(),St(Ms,{name:"fade"},{default:qe(()=>[i.showPopup?(C(),R("div",Xje,[c("div",Zje,[c("button",{onClick:e[0]||(e[0]=(...o)=>r.hide&&r.hide(...o)),class:"close-button"}," X "),c("iframe",{src:i.webpageUrl,class:"iframe-content"},null,8,Jje),c("div",eQe,[B(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)=>r.save_configuration&&r.save_configuration(...o))},null,544),[[Ke,this.$store.state.config.show_news_panel]]),tQe])])])):G("",!0)]),_:1})}const KA=pt(jje,[["render",nQe],["__scopeId","data-v-d504dfc9"]]),jA="/assets/fastapi-4a6542d0.png",QA="/assets/discord-6817c341.svg";const sQe={key:0,class:"container z-60 flex flex-col sm:flex-row items-center"},iQe={class:"w-full text-center"},rQe={class:"m-0 flex border-b w-full items-center justify-center flex flex-row font-medium nav-ul text-center"},oQe={name:"Navigation",data(){return{}},methods:{isRouteActive(n){try{return this.$route.name===n}catch{return console.log("routeName not found"),False}}}},XA=Object.assign(oQe,{setup(n){return(e,t)=>e.$store.state.ready?(C(),R("div",sQe,[c("div",iQe,[c("div",rQe,[_e(mt(Ei),{to:{name:"discussions"},class:Fe(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("discussions"),"bounce-in":e.isRouteActive("discussions")}])},{default:qe(()=>[Xe(" Discussions ")]),_:1},8,["class"]),_e(mt(Ei),{to:{name:"playground"},class:Fe(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("playground"),"bounce-in":e.isRouteActive("playground")}])},{default:qe(()=>[Xe(" Playground ")]),_:1},8,["class"]),e.$store.state.config.enable_sd_service|e.$store.state.config.active_tti_service=="autosd"?(C(),St(mt(Ei),{key:0,to:{name:"AutoSD"},class:Fe(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("AutoSD"),"bounce-in":e.isRouteActive("AutoSD")}])},{default:qe(()=>[Xe(" Auto111-SD ")]),_:1},8,["class"])):G("",!0),e.$store.state.config.enable_comfyui_service|e.$store.state.config.active_tti_service=="comfyui"?(C(),St(mt(Ei),{key:1,to:{name:"ComfyUI"},class:Fe(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("ComfyUI"),"bounce-in":e.isRouteActive("ComfyUI")}])},{default:qe(()=>[Xe(" ComfyUI ")]),_:1},8,["class"])):G("",!0),e.$store.state.config.active_tts_service!="None"&e.$store.state.config.active_stt_service!="None"?(C(),St(mt(Ei),{key:2,to:{name:"interactive"},class:Fe(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("interactive"),"bounce-in":e.isRouteActive("interactive")}])},{default:qe(()=>[Xe(" interactive ")]),_:1},8,["class"])):G("",!0),_e(mt(Ei),{to:{name:"settings"},class:Fe(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("settings"),"bounce-in":e.isRouteActive("settings")}])},{default:qe(()=>[Xe(" Settings ")]),_:1},8,["class"]),_e(mt(Ei),{to:{name:"help_view"},class:Fe(["inline-block border-l border-t border-r rounded-t py-2 px-4 text-blue-700 font-semibold",{"text-green-600 hover:text-green-500 dark:text-green-100 font-bold bg-bg-secondary shadow-no-bottom":e.isRouteActive("help_view"),"bounce-in":e.isRouteActive("help_view")}])},{default:qe(()=>[Xe(" Help ")]),_:1},8,["class"])])])])):G("",!0)}}),ZA="/assets/static_info-b284ded1.svg",aQe="/assets/animated_info-7edcb0f9.svg",hs="/assets/logo-f63ca8ad.png",JA="/assets/fun_mode-14669a57.svg",eN="/assets/normal_mode-f539f08d.svg";const lQe={class:"top-0 shadow-lg"},cQe={class:"container flex flex-col lg:flex-row item-center gap-2 pb-0"},dQe={class:"flex items-center gap-3 flex-1"},uQe=["src"],pQe=c("div",{class:"flex flex-col"},[c("p",{class:"text-2xl font-bold text-2xl drop-shadow-md align-middle"},"LoLLMS"),c("p",{class:"text-gray-400"},"One tool to rule them all")],-1),_Qe={class:"flex gap-3 flex-1 items-center justify-end"},hQe={key:0,title:"Model is ok",class:"text-green-500 cursor-pointer"},fQe=c("b",{class:"text-2xl"},"M",-1),mQe=[fQe],gQe={key:1,title:"Model is not ok",class:"text-red-500 cursor-pointer"},bQe=c("b",{class:"text-2xl"},"M",-1),EQe=[bQe],yQe={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 cursor-pointer"},vQe=c("i",{"data-feather":"flag"},null,-1),SQe=[vQe],TQe={key:3,title:"Generation in progress...",class:"text-red-500 cursor-pointer"},xQe=c("i",{"data-feather":"flag"},null,-1),CQe=[xQe],wQe={key:4,title:"Connection status: Connected",class:"text-green-500 cursor-pointer"},RQe=c("i",{"data-feather":"zap"},null,-1),AQe=[RQe],NQe={key:5,title:"Connection status: Not connected",class:"text-red-500 cursor-pointer"},OQe=c("i",{"data-feather":"zap-off"},null,-1),IQe=[OQe],MQe=c("div",{class:"text-2xl hover:text-primary duration-150",title:"restart program"},[c("i",{"data-feather":"power"})],-1),DQe=[MQe],kQe=c("div",{class:"text-2xl hover:text-primary duration-150",title:"refresh page"},[c("i",{"data-feather":"refresh-ccw"})],-1),LQe=[kQe],PQe={href:"https://github.com/ParisNeo/lollms-webui",target:"_blank"},UQe={class:"text-2xl hover:text-primary duration-150",title:"Fast API doc"},FQe={href:"/docs",target:"_blank"},BQe=["src"],GQe=gu('<a href="https://github.com/ParisNeo/lollms-webui" target="_blank"><div class="text-2xl hover:text-primary duration-150" title="Visit repository page"><i data-feather="github"></i></div></a><a href="https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ" target="_blank"><div class="text-2xl hover:text-primary duration-150" title="Visit my youtube channel"><i data-feather="youtube"></i></div></a>',2),VQe={href:"https://x.com/ParisNeo_AI",target:"_blank"},zQe={class:"text-2xl hover:fill-primary dark:fill-white dark:hover:fill-primary duration-150",title:"Follow me on my twitter acount"},HQe={class:"w-10 h-10 rounded-lg object-fill dark:text-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1668.56 1221.19",style:{"enable-background":"new 0 0 1668.56 1221.19"},"xml:space":"preserve"},qQe=c("g",{id:"layer1",transform:"translate(52.390088,-25.058597)"},[c("path",{id:"path1009",d:`M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99\r
h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z`})],-1),YQe=[qQe],$Qe={href:"https://discord.com/channels/1092918764925882418",target:"_blank"},WQe={class:"text-2xl hover:text-primary duration-150",title:"Visit my discord channel"},KQe=["src"],jQe=c("i",{"data-feather":"sun"},null,-1),QQe=[jQe],XQe=c("i",{"data-feather":"moon"},null,-1),ZQe=[XQe],JQe=["src"],eXe=["src"],tXe=["src"],nXe={class:"language-selector relative",style:{position:"relative"}},sXe={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"}},iXe={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},rXe=["onClick"],oXe=["onClick"],aXe={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},lXe={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"},cXe={class:"text-2xl animate-pulse mt-2 text-white"},dXe={id:"app"},uXe=c("body",null,null,-1),pXe={name:"TopBar",computed:{storeLogo(){return this.$store.state.config?hs:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:hs},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}},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}},components:{Toast:Wl,MessageBox:YA,ProgressBar:Ll,UniversalForm:Xl,YesNoDialog:$A,Navigation:XA,PersonalityEditor:WA,PopupViewer:KA},watch:{"$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()),Ue(()=>{Ge.replace()})}},data(){return{customLanguage:"",selectedLanguage:"",isLanguageMenuVisible:!1,static_info:ZA,animated_info:aQe,normal_mode:eN,fun_mode:JA,is_first_connection:!0,discord:QA,FastAPI:jA,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:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches,posts_headers:{accept:"application/json","Content-Type":"application/json"}}},async mounted(){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,this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),Ue(()=>{Ge.replace()}),window.addEventListener("resize",this.adjustMenuPosition)},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{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="")},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},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)},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)},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),Ue(()=>{Ge.replace()})})},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()},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),Ue(()=>{Ep(()=>Promise.resolve({}),["assets/stackoverflow-dark-57af98f5.css"])});return}Ue(()=>{Ep(()=>Promise.resolve({}),["assets/stackoverflow-light-077a2b3c.css"])}),this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light",this.iconToggle();return}Ep(()=>Promise.resolve({}),["assets/tokyo-night-dark-f9656fc4.css"]),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}}},_Xe=Object.assign(pXe,{setup(n){return(e,t)=>(C(),R(ze,null,[c("header",lQe,[c("nav",cQe,[_e(mt(Ei),{to:{name:"discussions"}},{default:qe(()=>[c("div",dQe,[c("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:e.$store.state.config==null?mt(hs):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:mt(hs),alt:"Logo"},null,8,uQe),pQe])]),_:1}),c("div",_Qe,[e.isModelOK?(C(),R("div",hQe,mQe)):G("",!0),e.isModelOK?G("",!0):(C(),R("div",gQe,EQe)),e.isGenerating?G("",!0):(C(),R("div",yQe,SQe)),e.isGenerating?(C(),R("div",TQe,CQe)):G("",!0),e.isConnected?(C(),R("div",wQe,AQe)):G("",!0),e.isConnected?G("",!0):(C(),R("div",NQe,IQe)),c("a",{href:"#",onClick:t[0]||(t[0]=(...s)=>e.restartProgram&&e.restartProgram(...s))},DQe),c("a",{href:"#",onClick:t[1]||(t[1]=(...s)=>e.refreshPage&&e.refreshPage(...s))},LQe),c("a",PQe,[c("div",UQe,[c("a",FQe,[c("img",{src:mt(jA),width:"75",height:"25"},null,8,BQe)])])]),GQe,c("a",VQe,[c("div",zQe,[(C(),R("svg",HQe,YQe))])]),c("a",$Qe,[c("div",WQe,[c("img",{src:mt(QA),width:"25",height:"25"},null,8,KQe)])]),c("div",{class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Swith to Light theme",onClick:t[2]||(t[2]=s=>e.themeSwitch())},QQe),c("div",{class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Swith to Dark theme",onClick:t[3]||(t[3]=s=>e.themeSwitch())},ZQe),c("div",{class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Lollms News",onClick:t[4]||(t[4]=s=>e.showNews())},[c("img",{src:mt(ZA)},null,8,JQe)]),e.is_fun_mode?(C(),R("div",{key:6,title:"fun mode is on press to turn off",class:"text-green-500 cursor-pointer",onClick:t[5]||(t[5]=s=>e.fun_mode_off())},[c("img",{class:"w-5 h-5",src:mt(JA)},null,8,eXe)])):(C(),R("div",{key:7,title:"fun mode is off press to turn on",class:"text-red-500 cursor-pointer",onClick:t[6]||(t[6]=s=>e.fun_mode_on())},[c("img",{class:"w-5 h-5",src:mt(eN)},null,8,tXe)])),c("div",nXe,[c("button",{onClick:t[7]||(t[7]=(...s)=>e.toggleLanguageMenu&&e.toggleLanguageMenu(...s)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},se(e.$store.state.language.slice(0,2)),1),e.isLanguageMenuVisible?(C(),R("div",sXe,[c("ul",iXe,[(C(!0),R(ze,null,st(e.languages,s=>(C(),R("li",{key:s,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[c("button",{onClick:i=>e.deleteLanguage(s),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,rXe),c("div",{onClick:i=>e.selectLanguage(s),class:Fe({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":s===e.$store.state.language,"flex-grow":!0})},se(s),11,oXe)]))),128)),c("li",aXe,[B(c("input",{type:"text","onUpdate:modelValue":t[8]||(t[8]=s=>e.customLanguage=s),onKeyup:t[9]||(t[9]=Ai(ae((...s)=>e.addCustomLanguage&&e.addCustomLanguage(...s),["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),[[he,e.customLanguage]])])])],512)):G("",!0)])])]),_e(XA),_e(Wl,{ref:"toast"},null,512),_e(YA,{ref:"messageBox"},null,512),B(c("div",lXe,[_e(Ll,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",cXe,se(e.loading_infos)+" ...",1)],512),[[Ot,e.progress_visibility]]),_e(Xl,{ref:"universalForm",class:"z-20"},null,512),_e($A,{ref:"yesNoDialog",class:"z-20"},null,512),_e(WA,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),c("div",dXe,[_e(KA,{ref:"news"},null,512)])]),uXe],64))}}),hXe={class:"flex overflow-hidden flex-grow w-full"},fXe={__name:"App",setup(n){return(e,t)=>(C(),R("div",{class:Fe([e.currentTheme,"flex flex-col h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full dark:bg-bg-dark overflow-hidden"])},[_e(_Xe),c("div",hXe,[_e(mt(rA),null,{default:qe(({Component:s})=>[(C(),St(VM,null,[(C(),St(hu(s)))],1024))]),_:1})])],2))}},Js=Object.create(null);Js.open="0";Js.close="1";Js.ping="2";Js.pong="3";Js.message="4";Js.upgrade="5";Js.noop="6";const pd=Object.create(null);Object.keys(Js).forEach(n=>{pd[Js[n]]=n});const xg={type:"error",data:"parser error"},tN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",nN=typeof ArrayBuffer=="function",sN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,$b=({type:n,data:e},t,s)=>tN&&e instanceof Blob?t?s(e):kx(e,s):nN&&(e instanceof ArrayBuffer||sN(e))?t?s(e):kx(new Blob([e]),s):s(Js[n]+(e||"")),kx=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Lx(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let pm;function mXe(n,e){if(tN&&n.data instanceof Blob)return n.data.arrayBuffer().then(Lx).then(e);if(nN&&(n.data instanceof ArrayBuffer||sN(n.data)))return e(Lx(n.data));$b(n,!1,t=>{pm||(pm=new TextEncoder),e(pm.encode(t))})}const Px="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Px.length;n++)rl[Px.charCodeAt(n)]=n;const gXe=n=>{let e=n.length*.75,t=n.length,s,i=0,r,o,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const u=new ArrayBuffer(e),d=new Uint8Array(u);for(s=0;s<t;s+=4)r=rl[n.charCodeAt(s)],o=rl[n.charCodeAt(s+1)],a=rl[n.charCodeAt(s+2)],l=rl[n.charCodeAt(s+3)],d[i++]=r<<2|o>>4,d[i++]=(o&15)<<4|a>>2,d[i++]=(a&3)<<6|l&63;return u},bXe=typeof ArrayBuffer=="function",Wb=(n,e)=>{if(typeof n!="string")return{type:"message",data:iN(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:EXe(n.substring(1),e)}:pd[t]?n.length>1?{type:pd[t],data:n.substring(1)}:{type:pd[t]}:xg},EXe=(n,e)=>{if(bXe){const t=gXe(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}},rN=String.fromCharCode(30),yXe=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((r,o)=>{$b(r,!1,a=>{s[o]=a,++i===t&&e(s.join(rN))})})},vXe=(n,e)=>{const t=n.split(rN),s=[];for(let i=0;i<t.length;i++){const r=Wb(t[i],e);if(s.push(r),r.type==="error")break}return s};function SXe(){return new TransformStream({transform(n,e){mXe(n,t=>{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let _m;function yc(n){return n.reduce((e,t)=>e+t.length,0)}function vc(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;i<e;i++)t[i]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),t}function TXe(n,e){_m||(_m=new TextDecoder);const t=[];let s=0,i=-1,r=!1;return new TransformStream({transform(o,a){for(t.push(o);;){if(s===0){if(yc(t)<1)break;const l=vc(t,1);r=(l[0]&128)===128,i=l[0]&127,i<126?s=3:i===126?s=1:s=2}else if(s===1){if(yc(t)<2)break;const l=vc(t,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),s=3}else if(s===2){if(yc(t)<8)break;const l=vc(t,8),u=new DataView(l.buffer,l.byteOffset,l.length),d=u.getUint32(0);if(d>Math.pow(2,53-32)-1){a.enqueue(xg);break}i=d*Math.pow(2,32)+u.getUint32(4),s=3}else{if(yc(t)<i)break;const l=vc(t,i);a.enqueue(Wb(r?l:_m.decode(l),e)),s=0}if(i===0||i>n){a.enqueue(xg);break}}}})}const oN=4;function an(n){if(n)return xXe(n)}function xXe(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,i=0;i<t.length;i++)if(s=t[i],s===e||s.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+n],this};an.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,i=t.length;s<i;++s)t[s].apply(this,e)}return this};an.prototype.emitReserved=an.prototype.emit;an.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};an.prototype.hasListeners=function(n){return!!this.listeners(n).length};const os=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function aN(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const CXe=os.setTimeout,wXe=os.clearTimeout;function Fu(n,e){e.useNativeTimers?(n.setTimeoutFn=CXe.bind(os),n.clearTimeoutFn=wXe.bind(os)):(n.setTimeoutFn=os.setTimeout.bind(os),n.clearTimeoutFn=os.clearTimeout.bind(os))}const RXe=1.33;function AXe(n){return typeof n=="string"?NXe(n):Math.ceil((n.byteLength||n.size)*RXe)}function NXe(n){let e=0,t=0;for(let s=0,i=n.length;s<i;s++)e=n.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function OXe(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function IXe(n){let e={},t=n.split("&");for(let s=0,i=t.length;s<i;s++){let r=t[s].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}class MXe extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class Kb extends an{constructor(e){super(),this.writable=!1,Fu(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new MXe(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Wb(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=OXe(e);return t.length?"?"+t:""}}const lN="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Cg=64,DXe={};let Ux=0,Sc=0,Fx;function Bx(n){let e="";do e=lN[n%Cg]+e,n=Math.floor(n/Cg);while(n>0);return e}function cN(){const n=Bx(+new Date);return n!==Fx?(Ux=0,Fx=n):n+"."+Bx(Ux++)}for(;Sc<Cg;Sc++)DXe[lN[Sc]]=Sc;let dN=!1;try{dN=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const kXe=dN;function uN(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||kXe))return new XMLHttpRequest}catch{}if(!e)try{return new os[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function LXe(){}const PXe=function(){return new uN({xdomain:!1}).responseType!=null}();class UXe extends Kb{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const s=location.protocol==="https:";let i=location.port;i||(i=s?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const t=e&&e.forceBase64;this.supportsBinary=PXe&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{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)};vXe(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,yXe(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]=cN()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new qo(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}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 qo=class _d extends an{constructor(e,t){super(),Fu(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.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 s=this.xhr=new uN(t);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this.opts.extraHeaders[i])}}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 i;s.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(s)),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(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=_d.requestsCount++,_d.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=LXe,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete _d.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()}};qo.requestsCount=0;qo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Gx);else if(typeof addEventListener=="function"){const n="onpagehide"in os?"pagehide":"unload";addEventListener(n,Gx,!1)}}function Gx(){for(let n in qo.requests)qo.requests.hasOwnProperty(n)&&qo.requests[n].abort()}const jb=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0))(),Tc=os.WebSocket||os.MozWebSocket,Vx=!0,FXe="arraybuffer",zx=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class BXe extends Kb{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=zx?{}:aN(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=Vx&&!zx?t?new Tc(e,t):new Tc(e):new Tc(e,t,s)}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<e.length;t++){const s=e[t],i=t===e.length-1;$b(s,this.supportsBinary,r=>{const o={};try{Vx&&this.ws.send(r)}catch{}i&&jb(()=>{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]=cN()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Tc}}class GXe extends Kb{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=TXe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=SXe();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const r=()=>{s.read().then(({done:a,value:l})=>{a||(this.onPacket(l),r())}).catch(a=>{})};r();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<e.length;t++){const s=e[t],i=t===e.length-1;this.writer.write(s).then(()=>{i&&jb(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const VXe={websocket:BXe,webtransport:GXe,polling:UXe},zXe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,HXe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function wg(n){if(n.length>2e3)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 i=zXe.exec(n||""),r={},o=14;for(;o--;)r[HXe[o]]=i[o]||"";return t!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=qXe(r,r.path),r.queryKey=YXe(r,r.query),r}function qXe(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 YXe(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(t[i]=r)}),t}let pN=class Mo extends an{constructor(e,t={}){super(),this.binaryType=FXe,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=wg(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=wg(t.host).host),Fu(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=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=IXe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=oN,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 VXe[e](s)}open(){let e;if(this.opts.rememberUpgrade&&Mo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),s=!1;Mo.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",h=>{if(!s)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Mo.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(d(),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 r(){s||(s=!0,d(),t.close(),t=null)}const o=h=>{const f=new Error("probe error: "+h);f.transport=t.name,r(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function u(h){t&&h.name!==t.name&&r()}const d=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onOpen(){if(this.readyState="open",Mo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");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.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=AXe(i)),s>0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}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,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:t,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),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()},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){Mo.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const i=e.length;for(;s<i;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}};pN.protocol=oN;function $Xe(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=wg(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 r=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+r+":"+s.port+e,s.href=s.protocol+"://"+r+(t&&t.port===s.port?"":":"+s.port),s}const WXe=typeof ArrayBuffer=="function",KXe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,_N=Object.prototype.toString,jXe=typeof Blob=="function"||typeof Blob<"u"&&_N.call(Blob)==="[object BlobConstructor]",QXe=typeof File=="function"||typeof File<"u"&&_N.call(File)==="[object FileConstructor]";function Qb(n){return WXe&&(n instanceof ArrayBuffer||KXe(n))||jXe&&n instanceof Blob||QXe&&n instanceof File}function hd(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t<s;t++)if(hd(n[t]))return!0;return!1}if(Qb(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return hd(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&hd(n[t]))return!0;return!1}function XXe(n){const e=[],t=n.data,s=n;return s.data=Rg(t,e),s.attachments=e.length,{packet:s,buffers:e}}function Rg(n,e){if(!n)return n;if(Qb(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let s=0;s<n.length;s++)t[s]=Rg(n[s],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=Rg(n[s],e));return t}return n}function ZXe(n,e){return n.data=Ag(n.data,e),delete n.attachments,n}function Ag(n,e){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=Ag(n[t],e);else if(typeof n=="object")for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=Ag(n[t],e));return n}const JXe=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eZe=5;var It;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(It||(It={}));class tZe{constructor(e){this.replacer=e}encode(e){return(e.type===It.EVENT||e.type===It.ACK)&&hd(e)?this.encodeAsBinary({type:e.type===It.EVENT?It.BINARY_EVENT:It.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===It.BINARY_EVENT||e.type===It.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=XXe(e),s=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(s),i}}function Hx(n){return Object.prototype.toString.call(n)==="[object Object]"}class Xb extends an{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===It.BINARY_EVENT;s||t.type===It.BINARY_ACK?(t.type=s?It.EVENT:It.ACK,this.reconstructor=new nZe(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Qb(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(It[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===It.BINARY_EVENT||s.type===It.BINARY_ACK){const r=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(o)}if(e.charAt(t+1)==="/"){const r=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(r,t)}else s.nsp="/";const i=e.charAt(t+1);if(i!==""&&Number(i)==i){const r=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}s.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(Xb.isPayloadValid(s.type,r))s.data=r;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case It.CONNECT:return Hx(t);case It.DISCONNECT:return t===void 0;case It.CONNECT_ERROR:return typeof t=="string"||Hx(t);case It.EVENT:case It.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&JXe.indexOf(t[0])===-1);case It.ACK:case It.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class nZe{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=ZXe(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const sZe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Xb,Encoder:tZe,get PacketType(){return It},protocol:eZe},Symbol.toStringTag,{value:"Module"}));function Cs(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const iZe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class hN extends an{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Cs(e,"open",this.onopen.bind(this)),Cs(e,"packet",this.onpacket.bind(this)),Cs(e,"error",this.onerror.bind(this)),Cs(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(iZe.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const s={type:It.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const o=this.ids++,a=t.pop();this._registerAckCallback(o,a),s.id=o}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var s;const i=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);t.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(r),t.apply(this,[null,...o])}}emitWithAck(e,...t){const s=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,r)=>{t.push((o,a)=>s?o?r(o):i(a):i(o)),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((i,...r)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...r)),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:It.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)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case It.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 It.EVENT:case It.BINARY_EVENT:this.onevent(e);break;case It.ACK:case It.BINARY_ACK:this.onack(e);break;case It.DISCONNECT:this.ondisconnect();break;case It.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(...i){s||(s=!0,t.packet({type:It.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(t.apply(this,e.data),delete this.acks[e.id])}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:It.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;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}function Ia(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Ia.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};Ia.prototype.reset=function(){this.attempts=0};Ia.prototype.setMin=function(n){this.ms=n};Ia.prototype.setMax=function(n){this.max=n};Ia.prototype.setJitter=function(n){this.jitter=n};class Ng 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,Fu(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 Ia({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||sZe;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,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 pN(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=Cs(t,"open",function(){s.onopen(),e&&e()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Cs(t,"error",r);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),r(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(Cs(e,"ping",this.onping.bind(this)),Cs(e,"data",this.ondata.bind(this)),Cs(e,"error",this.onerror.bind(this)),Cs(e,"close",this.onclose.bind(this)),Cs(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){jb(()=>{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 hN(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;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),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(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):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 $a={};function fd(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=$Xe(n,e.path||"/socket.io"),s=t.source,i=t.id,r=t.path,o=$a[i]&&r in $a[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let l;return a?l=new Ng(s,e):($a[i]||($a[i]=new Ng(s,e)),l=$a[i]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(fd,{Manager:Ng,Socket:hN,io:fd,connect:fd});const fN="/";console.log(fN);const He=new fd(fN,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3});const rZe={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(){Ue(()=>{Ge.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)}}},oZe={class:"flex items-center space-x-2"},aZe=["value","type","placeholder"],lZe=["value","min","max"],cZe=c("i",{"data-feather":"clipboard"},null,-1),dZe=[cZe],uZe=c("i",{"data-feather":"upload"},null,-1),pZe=[uZe],_Ze=["accept"];function hZe(n,e,t,s,i,r){return C(),R("div",oZe,[n.useSlider?(C(),R("input",{key:1,type:"range",value:parseInt(i.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>r.handleSliderInput&&r.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,lZe)):(C(),R("input",{key:0,value:i.inputValue,type:t.inputType,placeholder:i.placeholderText,onInput:e[0]||(e[0]=(...o)=>r.handleInput&&r.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>r.handlePaste&&r.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,aZe)),c("button",{onClick:e[3]||(e[3]=(...o)=>r.pasteFromClipboard&&r.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"},dZe),t.inputType==="file"?(C(),R("button",{key:2,onClick:e[4]||(e[4]=(...o)=>r.openFileInput&&r.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"},pZe)):G("",!0),t.inputType==="file"?(C(),R("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>r.handleFileInputChange&&r.handleFileInputChange(...o))},null,40,_Ze)):G("",!0)])}const Zb=pt(rZe,[["render",hZe]]),fZe={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"]}}},mZe={class:"w-full"},gZe={class:"break-words"},bZe={class:"break-words mt-2"},EZe={class:"mt-4"};function yZe(n,e,t,s,i,r){return C(),R("div",mZe,[c("div",gZe,[(C(!0),R(ze,null,st(t.namedTokens,(o,a)=>(C(),R("span",{key:a},[c("span",{class:"inline-block whitespace-pre-wrap",style:jt({backgroundColor:i.colors[a%i.colors.length]})},se(o[0]),5)]))),128))]),c("div",bZe,[(C(!0),R(ze,null,st(t.namedTokens,(o,a)=>(C(),R("span",{key:a},[c("span",{class:"inline-block px-1 whitespace-pre-wrap",style:jt({backgroundColor:i.colors[a%i.colors.length]})},se(o[1]),5)]))),128))]),c("div",EZe,[c("strong",null,"Total Tokens: "+se(t.namedTokens.length),1)])])}const vZe=pt(fZe,[["render",yZe]]);const SZe={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)}}},TZe={key:1,class:"flex flex-wrap"},xZe={key:2,class:"mb-2"};function CZe(n,e,t,s,i,r){return C(),R(ze,null,[i.isActive?(C(),R("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>r.toggleCard&&r.toggleCard(...o))})):G("",!0),B(c("div",{class:Fe(["border-blue-300 rounded-lg shadow-lg p-2",r.cardWidthClass,"m-2",{"bg-white dark:bg-gray-800":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]=ae((...o)=>r.toggleCard&&r.toggleCard(...o),["self"])),style:jt({cursor:this.disableFocus?"":"pointer"})},[t.title?(C(),R("div",{key:0,onClick:e[1]||(e[1]=o=>i.shrink=!0),class:Fe([{"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"])},se(t.title),3)):G("",!0),t.isHorizontal?(C(),R("div",TZe,[An(n.$slots,"default")])):(C(),R("div",xZe,[An(n.$slots,"default")]))],38),[[Ot,i.shrink===!1]]),t.is_subcard?B((C(),R("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"},se(t.title),513)),[[Ot,i.shrink===!0]]):B((C(),R("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)),[[Ot,i.shrink===!0]])],64)}const Bu=pt(SZe,[["render",CZe]]),mN="/assets/code_block-e2753d3f.svg",gN="/assets/python_block-4008a934.png",bN="/assets/javascript_block-5e59df30.svg",EN="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==",yN="/assets/cpp_block-109b2fbe.png",vN="/assets/html5_block-205d2852.png",SN="/assets/LaTeX_block-06b165c0.png",TN="/assets/bash_block-7ca80e4e.png",wZe="/assets/tokenize_icon-0553c60f.svg",RZe="/assets/deaf_on-7481cb29.svg",AZe="/assets/deaf_off-c2c46908.svg",NZe="/assets/rec_on-3b37b566.svg",OZe="/assets/rec_off-2c08e836.svg",xN="/assets/loading-c3bdfb0a.svg";async function qx(n,e="",t=[]){return new Promise((s,i)=>{const r=document.createElement("div");r.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?r.innerHTML=`
<div class="bg-white p-6 rounded-md shadow-md w-80">
<h2 class="text-lg font-semibold mb-3">${n}</h2>
<textarea id="replacementInput" class="w-full h-32 border rounded p-2 mb-3">${e}</textarea>
<div class="flex justify-end">
<button id="cancelButton" class="mr-2 px-4 py-2 border rounded">Cancel</button>
<button id="okButton" class="px-4 py-2 bg-blue-500 text-white rounded">OK</button>
</div>
</div>
`:r.innerHTML=`
<div class="bg-white p-6 rounded-md shadow-md w-80">
<h2 class="text-lg font-semibold mb-3">${n}</h2>
<select id="options_selector" class="form-control w-full h-25 border rounded p-2 mb-3">
${t.map(l=>`<option value="${l}">${l}</option>`)}
</select>
<div class="flex justify-end">
<button id="cancelButton" class="mr-2 px-4 py-2 border rounded">Cancel</button>
<button id="okButton" class="px-4 py-2 bg-blue-500 text-white rounded">OK</button>
</div>
</div>
`,document.body.appendChild(r);const o=r.querySelector("#cancelButton"),a=r.querySelector("#okButton");o.addEventListener("click",()=>{document.body.removeChild(r),s(null)}),a.addEventListener("click",()=>{if(t.length===0){const u=r.querySelector("#replacementInput").value.trim();document.body.removeChild(r),s(u)}else{const u=r.querySelector("#options_selector").value.trim();document.body.removeChild(r),s(u)}})})}function IZe(n,e){console.log(n);let t={},s=/@<([^>]+)>@/g,i=[],r;for(;(r=s.exec(n))!==null;)i.push("@<"+r[1]+">@");console.log("matches"),console.log(i),i=[...new Set(i)];async function o(l){console.log(l);let u=l.toLowerCase().substring(2,l.length-2);if(u!=="generation_placeholder")if(u.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 y(w){return w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const v=y(b),S=new RegExp(v,"g");u=u.replace(S,g)});let h=u.split(":"),f=h[0],_=h[1]||"",m=[];h.length>2&&(m=h.slice(1));let E=await qx(f,_,m);E!==null&&(t[l]=E)}else{let d=await qx(u);d!==null&&(t[l]=d)}}let a=Promise.resolve();i.forEach(l=>{a=a.then(()=>o(l)).then(u=>{console.log(u)})}),a.then(()=>{Object.entries(t).forEach(([l,u])=>{console.log(`Key: ${l}, Value: ${u}`);function d(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const h=d(l),f=new RegExp(h,"g");n=n.replace(f,u)}),e(n)})}const MZe={name:"PlayGroundView",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},pending:!1,is_recording:!1,is_deaf_transcribing:!1,cpp_block:yN,html5_block:vN,LaTeX_block:SN,javascript_block:bN,json_block:EN,code_block:mN,python_block:gN,bash_block:TN,tokenize_icon:wZe,deaf_off:AZe,deaf_on:RZe,rec_off:OZe,rec_on:NZe,loading_icon:xN,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:Wl,MarkdownRenderer:Uu,ClipBoardTextInput:Zb,TokensHilighter:vZe,Card:Bu},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)}),He.on("text_chunk",n=>{this.appendToOutput(n.chunk)}),He.on("text_generated",n=>{this.generating=!1}),He.on("generation_error",n=>{console.log("generation_error:",n),this.$refs.toast.showToast(`Error: ${n}`,4,!1),this.generating=!1}),He.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),He.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}),He.on("generation_canceled",n=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{Ge.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,s=e.selectionEnd,i=e.value.substring(0,t),r=e.value.substring(s),o=i+" "+r;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",{text:t}).then(s=>{console.log(s.data.url);let i=s.data.url;this.audio_url=i,this.isSynthesizingVoice=!1,Ue(()=>{Ge.replace()})}).catch(s=>{this.$refs.toast.showToast(`Error: ${s}`,4,!1),this.isSynthesizingVoice=!1,Ue(()=>{Ge.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 r=this.text.substring(i,i+e);const o=[".","!","?",`
`];let a=-1;return o.forEach(l=>{const u=r.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=r.length),console.log(a),a+i+1},s=()=>{const i=t(n),r=this.text.substring(n,i);this.msg.text=r,n=i+1,this.msg.onend=o=>{n<this.text.length-2?setTimeout(()=>{s()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",i))},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("@<generation_placeholder>@");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),He.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}`),He.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(){He.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=IZe(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.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<n.results.length;e++)this.generated+=n.results[e][0].transcript;this.text=this.pre_text+this.generated+this.post_text,this.cursorPosition=this.pre_text.length+this.generated.length,clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{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.")}}},DZe={class:"container w-full bg-bg-light dark:bg-bg-dark 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"},kZe={class:"container flex flex-row m-2 w-full"},LZe={class:"flex-grow max-w-[900px] m-2"},PZe={class:"flex gap-3 flex-1 items-center flex-grow flex-row m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4"},UZe=c("i",{"data-feather":"pen-tool"},null,-1),FZe=[UZe],BZe=c("i",{"data-feather":"archive"},null,-1),GZe=[BZe],VZe=["src"],zZe=c("span",{class:"w-80"},null,-1),HZe=c("i",{"data-feather":"x"},null,-1),qZe=[HZe],YZe=c("i",{"data-feather":"mic"},null,-1),$Ze=[YZe],WZe=c("i",{"data-feather":"volume-2"},null,-1),KZe=[WZe],jZe=c("i",{"data-feather":"speaker"},null,-1),QZe=[jZe],XZe=["src"],ZZe=["src"],JZe=["src"],eJe=["src"],tJe=c("i",{"data-feather":"voicemail"},null,-1),nJe=[tJe],sJe={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iJe=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),rJe=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),oJe=[iJe,rJe],aJe=c("i",{"data-feather":"upload"},null,-1),lJe=[aJe],cJe=c("i",{"data-feather":"download"},null,-1),dJe=[cJe],uJe={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},pJe=c("input",{type:"file",id:"import-input",class:"hidden"},null,-1),_Je={key:0},hJe={class:"flex flex-row justify-end mx-2"},fJe=["src"],mJe=["src"],gJe=["src"],bJe=["src"],EJe=["src"],yJe=["src"],vJe=["src"],SJe=["src"],TJe=c("i",{"data-feather":"copy"},null,-1),xJe=[TJe],CJe=["src"],wJe={key:2},RJe=["value"],AJe={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},NJe=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),OJe=[NJe],IJe=["value"],MJe=c("br",null,null,-1),DJe=c("i",{"data-feather":"check"},null,-1),kJe=[DJe],LJe=c("i",{"data-feather":"plus"},null,-1),PJe=[LJe],UJe=c("i",{"data-feather":"x"},null,-1),FJe=[UJe],BJe=c("i",{"data-feather":"refresh-ccw"},null,-1),GJe=[BJe],VJe={class:"slider-container ml-2 mr-2"},zJe=c("h3",{class:"text-gray-600"},"Temperature",-1),HJe={class:"slider-value text-gray-500"},qJe={class:"slider-container ml-2 mr-2"},YJe=c("h3",{class:"text-gray-600"},"Top K",-1),$Je={class:"slider-value text-gray-500"},WJe={class:"slider-container ml-2 mr-2"},KJe=c("h3",{class:"text-gray-600"},"Top P",-1),jJe={class:"slider-value text-gray-500"},QJe={class:"slider-container ml-2 mr-2"},XJe=c("h3",{class:"text-gray-600"},"Repeat Penalty",-1),ZJe={class:"slider-value text-gray-500"},JJe={class:"slider-container ml-2 mr-2"},eet=c("h3",{class:"text-gray-600"},"Repeat Last N",-1),tet={class:"slider-value text-gray-500"},net={class:"slider-container ml-2 mr-2"},set=c("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1),iet={class:"slider-value text-gray-500"},ret={class:"slider-container ml-2 mr-2"},oet=c("h3",{class:"text-gray-600"},"Number of tokens to generate",-1),aet={class:"slider-value text-gray-500"},cet={class:"slider-container ml-2 mr-2"},det=c("h3",{class:"text-gray-600"},"Seed",-1),uet={class:"slider-value text-gray-500"};function pet(n,e,t,s,i,r){const o=dt("tokens-hilighter"),a=dt("MarkdownRenderer"),l=dt("Card"),u=dt("Toast");return C(),R(ze,null,[c("div",DZe,[c("div",kZe,[c("div",LZe,[c("div",PZe,[B(c("button",{id:"generate-button",title:"Generate from current cursor position",onClick:e[0]||(e[0]=(...d)=>r.generate&&r.generate(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},FZe,512),[[Ot,!i.generating]]),B(c("button",{id:"generate-next-button",title:"Generate from next place holder",onClick:e[1]||(e[1]=(...d)=>r.generate_in_placeholder&&r.generate_in_placeholder(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},GZe,512),[[Ot,!i.generating]]),B(c("button",{id:"tokenize",title:"Tokenize text",onClick:e[2]||(e[2]=(...d)=>r.tokenize_text&&r.tokenize_text(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},[c("img",{width:"25",height:"25",src:i.tokenize_icon},null,8,VZe)],512),[[Ot,!i.generating]]),zZe,B(c("button",{id:"stop-button",onClick:e[3]||(e[3]=(...d)=>r.stopGeneration&&r.stopGeneration(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},qZe,512),[[Ot,i.generating]]),c("button",{type:"button",title:"Dictate (using your browser for transcription)",onClick:e[4]||(e[4]=(...d)=>r.startSpeechRecognition&&r.startSpeechRecognition(...d)),class:Fe([{"text-red-500":i.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},$Ze,2),c("button",{title:"convert text to audio (not saved and uses your browser tts service)",onClick:e[5]||(e[5]=ae(d=>r.speak(),["stop"])),class:Fe([{"text-red-500":r.isTalking},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},KZe,2),c("input",{type:"file",ref:"fileInput",onChange:e[6]||(e[6]=(...d)=>r.handleFileUpload&&r.handleFileUpload(...d)),style:{display:"none"},accept:".wav"},null,544),c("button",{title:"Upload a voice",onClick:e[7]||(e[7]=(...d)=>r.triggerFileUpload&&r.triggerFileUpload(...d))},QZe),c("button",{type:"button",title:"Start audio to audio",onClick:e[8]||(e[8]=(...d)=>r.startRecordingAndTranscribing&&r.startRecordingAndTranscribing(...d)),class:Fe([{"text-green-500":i.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer text-red-500"])},[i.pending?G("",!0):(C(),R("img",{key:0,src:i.is_deaf_transcribing?i.deaf_on:i.deaf_off,height:"25"},null,8,XZe)),i.pending?(C(),R("img",{key:1,src:i.loading_icon,height:"25"},null,8,ZZe)):G("",!0)],2),c("button",{type:"button",title:"Start recording audio",onClick:e[9]||(e[9]=(...d)=>r.startRecording&&r.startRecording(...d)),class:Fe([{"text-green-500":i.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer text-red-500"])},[i.pending?G("",!0):(C(),R("img",{key:0,src:i.is_recording?i.rec_on:i.rec_off,height:"25"},null,8,JZe)),i.pending?(C(),R("img",{key:1,src:i.loading_icon,height:"25"},null,8,eJe)):G("",!0)],2),i.isSynthesizingVoice?(C(),R("svg",sJe,oJe)):(C(),R("button",{key:0,title:"generate audio from the text",onClick:e[10]||(e[10]=ae(d=>r.read(),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},nJe)),B(c("button",{id:"export-button",onClick:e[11]||(e[11]=(...d)=>r.exportText&&r.exportText(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},lJe,512),[[Ot,!i.generating]]),B(c("button",{id:"import-button",onClick:e[12]||(e[12]=(...d)=>r.importText&&r.importText(...d)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},dJe,512),[[Ot,!i.generating]]),c("div",uJe,[c("button",{class:Fe(["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[13]||(e[13]=d=>i.tab_id="source")}," Source ",2),c("button",{class:Fe(["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[14]||(e[14]=d=>i.tab_id="render")}," Render ",2)]),pJe]),c("div",{class:Fe(["flex-grow m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4",{"border-red-500":i.generating}])},[i.tab_id==="source"?(C(),R("div",_Je,[c("div",hJe,[c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add generic block",onClick:e[15]||(e[15]=ae(d=>r.addBlock(""),["stop"]))},[c("img",{src:i.code_block,width:"25",height:"25"},null,8,fJe)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add python block",onClick:e[16]||(e[16]=ae(d=>r.addBlock("python"),["stop"]))},[c("img",{src:i.python_block,width:"25",height:"25"},null,8,mJe)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add javascript block",onClick:e[17]||(e[17]=ae(d=>r.addBlock("javascript"),["stop"]))},[c("img",{src:i.javascript_block,width:"25",height:"25"},null,8,gJe)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add json block",onClick:e[18]||(e[18]=ae(d=>r.addBlock("json"),["stop"]))},[c("img",{src:i.json_block,width:"25",height:"25"},null,8,bJe)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add c++ block",onClick:e[19]||(e[19]=ae(d=>r.addBlock("c++"),["stop"]))},[c("img",{src:i.cpp_block,width:"25",height:"25"},null,8,EJe)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add html block",onClick:e[20]||(e[20]=ae(d=>r.addBlock("html"),["stop"]))},[c("img",{src:i.html5_block,width:"25",height:"25"},null,8,yJe)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add LaTex block",onClick:e[21]||(e[21]=ae(d=>r.addBlock("latex"),["stop"]))},[c("img",{src:i.LaTeX_block,width:"25",height:"25"},null,8,vJe)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add bash block",onClick:e[22]||(e[22]=ae(d=>r.addBlock("bash"),["stop"]))},[c("img",{src:i.bash_block,width:"25",height:"25"},null,8,SJe)]),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Copy message to clipboard",onClick:e[23]||(e[23]=ae(d=>n.copyContentToClipboard(),["stop"]))},xJe)]),B(c("textarea",{ref:"mdTextarea",onKeydown:e[24]||(e[24]=Ai(ae((...d)=>r.insertTab&&r.insertTab(...d),["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:jt({minHeight:i.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[25]||(e[25]=d=>i.text=d),onClick:e[26]||(e[26]=ae((...d)=>r.mdTextarea_clicked&&r.mdTextarea_clicked(...d),["prevent"])),onChange:e[27]||(e[27]=ae((...d)=>r.mdTextarea_changed&&r.mdTextarea_changed(...d),["prevent"]))},`\r
`,36),[[he,i.text]]),c("span",null,"Cursor position "+se(i.cursorPosition),1)])):G("",!0),i.audio_url!=null?(C(),R("audio",{controls:"",key:i.audio_url},[c("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,CJe),Xe(" Your browser does not support the audio element. ")])):G("",!0),_e(o,{namedTokens:i.namedTokens},null,8,["namedTokens"]),i.tab_id==="render"?(C(),R("div",wJe,[_e(a,{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"])])):G("",!0)],2)]),_e(l,{title:"settings",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:qe(()=>[_e(l,{title:"Model",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:qe(()=>[B(c("select",{"onUpdate:modelValue":e[28]||(e[28]=d=>this.$store.state.selectedModel=d),onChange:e[29]||(e[29]=(...d)=>r.setModel&&r.setModel(...d)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(C(!0),R(ze,null,st(r.models,d=>(C(),R("option",{key:d,value:d},se(d),9,RJe))),128))],544),[[qt,this.$store.state.selectedModel]]),i.selecting_model?(C(),R("div",AJe,OJe)):G("",!0)]),_:1}),_e(l,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:qe(()=>[B(c("select",{"onUpdate:modelValue":e[30]||(e[30]=d=>i.selectedPreset=d),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(C(!0),R(ze,null,st(i.presets,d=>(C(),R("option",{key:d,value:d},se(d.name),9,IJe))),128))],512),[[qt,i.selectedPreset]]),MJe,c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[31]||(e[31]=(...d)=>r.setPreset&&r.setPreset(...d)),title:"Use preset"},kJe),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[32]||(e[32]=(...d)=>r.addPreset&&r.addPreset(...d)),title:"Add this text as a preset"},PJe),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[33]||(e[33]=(...d)=>r.removePreset&&r.removePreset(...d)),title:"Remove preset"},FJe),c("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[34]||(e[34]=(...d)=>r.reloadPresets&&r.reloadPresets(...d)),title:"Reload presets list"},GJe)]),_:1}),_e(l,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:qe(()=>[c("div",VJe,[zJe,B(c("input",{type:"range","onUpdate:modelValue":e[35]||(e[35]=d=>i.temperature=d),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[he,i.temperature]]),c("span",HJe,"Current value: "+se(i.temperature),1)]),c("div",qJe,[YJe,B(c("input",{type:"range","onUpdate:modelValue":e[36]||(e[36]=d=>i.top_k=d),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[he,i.top_k]]),c("span",$Je,"Current value: "+se(i.top_k),1)]),c("div",WJe,[KJe,B(c("input",{type:"range","onUpdate:modelValue":e[37]||(e[37]=d=>i.top_p=d),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[he,i.top_p]]),c("span",jJe,"Current value: "+se(i.top_p),1)]),c("div",QJe,[XJe,B(c("input",{type:"range","onUpdate:modelValue":e[38]||(e[38]=d=>i.repeat_penalty=d),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),[[he,i.repeat_penalty]]),c("span",ZJe,"Current value: "+se(i.repeat_penalty),1)]),c("div",JJe,[eet,B(c("input",{type:"range","onUpdate:modelValue":e[39]||(e[39]=d=>i.repeat_last_n=d),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[he,i.repeat_last_n]]),c("span",tet,"Current value: "+se(i.repeat_last_n),1)]),c("div",net,[set,B(c("input",{type:"number","onUpdate:modelValue":e[40]||(e[40]=d=>i.n_crop=d),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[he,i.n_crop]]),c("span",iet,"Current value: "+se(i.n_crop),1)]),c("div",ret,[oet,B(c("input",{type:"number","onUpdate:modelValue":e[41]||(e[41]=d=>i.n_predicts=d),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[he,i.n_predicts]]),c("span",aet,"Current value: "+se(i.n_predicts),1)]),c("div",cet,[det,B(c("input",{type:"number","onUpdate:modelValue":e[42]||(e[42]=d=>i.seed=d),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[he,i.seed]]),c("span",uet,"Current value: "+se(i.seed),1)])]),_:1})]),_:1})])]),_e(u,{ref:"toast"},null,512)],64)}const _et=pt(MZe,[["render",pet]]);const het={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(_I(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(n){this.activeExtension=n}}},fet={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"},met={key:0},get=["onClick"],bet={key:0},Eet=["src"],yet={key:1},vet=c("p",null,"No extension is active. Please install and activate an extension.",-1),Tet=[vet];function xet(n,e,t,s,i,r){return C(),R("div",fet,[r.activeExtensions.length>0?(C(),R("div",met,[(C(!0),R(ze,null,st(r.activeExtensions,o=>(C(),R("div",{key:o.name,onClick:a=>r.showExtensionPage(o)},[c("div",{class:Fe({"active-tab":o===i.activeExtension})},se(o.name),3)],8,get))),128)),i.activeExtension?(C(),R("div",bet,[c("iframe",{src:i.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,Eet)])):G("",!0)])):(C(),R("div",yet,Tet))])}const Cet=pt(het,[["render",xet]]),wet={},Ret={style:{width:"100vw",height:"100vh"}},Aet=c("iframe",{src:"/help/index.html",class:"m-0 p-0 w-full h-full"},null,-1),Net=[Aet];function Oet(n,e,t,s,i,r){return C(),R("div",Ret,Net)}const Iet=pt(wet,[["render",Oet]]);function js(n,e=!0,t=1){const s=e?1e3:1024;if(Math.abs(n)<s)return n+" B";const i=e?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let r=-1;const o=10**t;do n/=s,++r;while(Math.round(Math.abs(n)*o)/o>=s&&r<i.length-1);return n.toFixed(t)+" "+i[r]}const ws="/assets/default_model-252b3424.png";const Met={props:{title:{type:String,required:!1,value:"menu"},icon:{type:String,required:!1,value:"feather:menu"},commands:{type:Array,required:!0},force_position:{required:!1,value:0},execute_cmd:{type:Function,required:!1},menuIconClass:{type:String,required:!1,default:""},selected_entry:{type:String,required:!1}},data(){return{isMenuOpen:!1,menuPosition:{bottom:"auto",top:"calc(100% + 10px)"}}},methods:{handleClickOutside(n){const e=this.$refs.menu,t=this.$refs.menuButton;e&&!e.contains(n.target)&&!t.contains(n.target)&&(this.isMenuOpen=!1,window.removeEventListener("click",this.handleClickOutside))},toggleMenu(){this.positionMenu(),this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?window.addEventListener("click",this.handleClickOutside):window.removeEventListener("click",this.handleClickOutside),Ue(()=>{Ge.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(),Ue(()=>{Ge.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},Det={class:"menu-container"},ket=["title"],Let=["src"],Pet=["data-feather"],Uet={key:2,class:"w-5 h-5"},Fet={key:3,"data-feather":"menu"},Bet={class:"flex-grow menu-ul"},Get=["onClick"],Vet={key:0,"data-feather":"check"},zet=["src","alt"],Het=["data-feather"],qet={key:3,class:"menu-icon"};function Yet(n,e,t,s,i,r){return C(),R("div",Det,[c("button",{onClick:e[0]||(e[0]=ae((...o)=>r.toggleMenu&&r.toggleMenu(...o),["prevent"])),title:t.title,class:Fe([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")?(C(),R("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,Let)):t.icon&&t.icon.includes("feather")?(C(),R("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,Pet)):t.icon&&t.icon.includes("#")?(C(),R("p",Uet,se(t.icon.split("#")[1]),1)):(C(),R("i",Fet))],10,ket),_e(Ms,{name:"slide"},{default:qe(()=>[i.isMenuOpen?(C(),R("div",{key:0,class:"menu-list flex-grow",style:jt(i.menuPosition),ref:"menu"},[c("ul",Bet,[(C(!0),R(ze,null,st(t.commands,(o,a)=>(C(),R("li",{key:a,onClick:ae(l=>r.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(C(),R("i",Vet)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(C(),R("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,zet)):G("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(C(),R("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,Het)):(C(),R("span",qet)),c("span",null,se(o.name),1)],8,Get))),128))])],4)):G("",!0)]),_:1})])}const Jb=pt(Met,[["render",Yet]]),$et={components:{InteractiveMenu:Jb},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){Ue(()=>{Ge.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 js(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?ws:this.model.icon},defaultImg(n){n.target.src=ws},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,Ue(()=>{Ge.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 js(this.speed)},total_size_computed(){return js(this.total_size)},downloaded_size_computed(){return js(this.downloaded_size)}},watch:{linkNotValid(){Ue(()=>{Ge.replace()})}}},Wet=["title"],Ket={key:0,class:"flex flex-row"},jet={class:"max-w-[300px] overflow-x-auto"},Qet={class:"flex gap-3 items-center grow"},Xet=["href"],Zet=["src"],Jet={class:"flex-1 overflow-hidden"},ett={class:"font-bold font-large text-lg truncate"},ttt={key:1,class:"flex items-center flex-row gap-2 my-1"},ntt={class:"flex grow items-center"},stt=c("i",{"data-feather":"box",class:"w-5"},null,-1),itt=c("span",{class:"sr-only"},"Custom model / local model",-1),rtt=[stt,itt],ott=c("span",{class:"sr-only"},"Remove",-1),att={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"},ltt={class:"relative flex flex-col items-center justify-center flex-grow h-full"},ctt=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),dtt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},utt={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},ptt={class:"flex justify-between mb-1"},_tt=c("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),htt={class:"text-sm font-medium text-blue-700 dark:text-white"},ftt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},mtt={class:"flex justify-between mb-1"},gtt={class:"text-base font-medium text-blue-700 dark:text-white"},btt={class:"text-sm font-medium text-blue-700 dark:text-white"},Ett={class:"flex flex-grow"},ytt={class:"flex flex-row flex-grow gap-3"},vtt={class:"p-2 text-center grow"},Stt={key:3},Ttt={class:"flex flex-row items-center gap-3"},xtt=["src"],Ctt={class:"font-bold font-large text-lg truncate"},wtt=c("div",{class:"grow"},null,-1),Rtt={class:"flex items-center flex-row-reverse gap-2 my-1"},Att={class:"flex flex-row items-center"},Ntt={key:0,class:"text-base text-red-600 flex items-center mt-1"},Ott=c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),Itt=["title"],Mtt={class:""},Dtt={class:"flex flex-row items-center"},ktt=c("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),Ltt=c("b",null,"Card: ",-1),Ptt=["href","title"],Utt=c("div",{class:"grow"},null,-1),Ftt=c("i",{"data-feather":"clipboard",class:"w-5"},null,-1),Btt=[Ftt],Gtt={class:"flex items-center"},Vtt=c("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),ztt=c("b",null,"File size: ",-1),Htt={class:"flex items-center"},qtt=c("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),Ytt=c("b",null,"License: ",-1),$tt={key:0,class:"flex items-center"},Wtt=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Ktt=c("b",null,"quantizer: ",-1),jtt=["href"],Qtt={class:"flex items-center"},Xtt=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Ztt=c("b",null,"Model creator: ",-1),Jtt=["href"],ent={class:"flex items-center"},tnt=c("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1),nnt=c("b",null,"Release date: ",-1),snt={class:"flex items-center"},int=c("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1),rnt=c("b",null,"Category: ",-1),ont=["href"];function ant(n,e,t,s,i,r){const o=dt("InteractiveMenu");return C(),R("div",{class:Fe(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",r.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=ae(a=>r.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(C(),R("div",Ket,[c("div",jet,[c("div",Qet,[c("a",{href:t.model.model_creator_link,target:"_blank"},[c("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,Zet)],8,Xet),c("div",Jet,[c("h3",ett,se(t.model.name),1)])])])])):G("",!0),t.model.isCustomModel?(C(),R("div",ttt,[c("div",ntt,[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]=ae(()=>{},["stop"]))},rtt),Xe(" Custom model ")]),c("div",null,[t.model.isInstalled?(C(),R("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=ae((...a)=>r.uninstall&&r.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"},[Xe(" Uninstall "),ott])):G("",!0)])])):G("",!0),i.installing?(C(),R("div",att,[c("div",ltt,[ctt,c("div",dtt,[c("div",utt,[c("div",ptt,[_tt,c("span",htt,se(Math.floor(i.progress))+"%",1)]),c("div",ftt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt({width:i.progress+"%"})},null,4)]),c("div",mtt,[c("span",gtt,"Download speed: "+se(r.speed_computed)+"/s",1),c("span",btt,se(r.downloaded_size_computed)+"/"+se(r.total_size_computed),1)])])]),c("div",Ett,[c("div",ytt,[c("div",vtt,[c("button",{onClick:e[3]||(e[3]=ae((...a)=>r.toggleCancelInstall&&r.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 ")])])])])])):G("",!0),t.model.isCustomModel?G("",!0):(C(),R("div",Stt,[c("div",Ttt,[c("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[4]||(e[4]=a=>r.defaultImg(a)),class:Fe(["w-10 h-10 rounded-lg object-fill",i.linkNotValid?"grayscale":""])},null,42,xtt),c("h3",Ctt,se(t.model.name),1),wtt,_e(o,{commands:r.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),c("div",Rtt,[c("div",Att,[i.linkNotValid?(C(),R("div",Ntt,[Ott,Xe(" Link is not valid ")])):G("",!0)])]),c("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[c("div",Mtt,[c("div",Dtt,[ktt,Ltt,c("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=ae(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:i.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/<current binding> folder then refresh"}," View full model card ",8,Ptt),Utt,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]=ae(a=>r.toggleCopyLink(),["stop"]))},Btt)]),c("div",Gtt,[c("div",{class:Fe(["flex flex-shrink-0 items-center",i.linkNotValid?"text-red-600":""])},[Vtt,ztt,Xe(" "+se(r.fileSize),1)],2)]),c("div",Htt,[qtt,Ytt,Xe(" "+se(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(C(),R("div",$tt,[Wtt,Ktt,c("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},se(t.model.quantizer),9,jtt)])):G("",!0),c("div",Qtt,[Xtt,Ztt,c("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},se(t.model.model_creator),9,Jtt)]),c("div",ent,[tnt,nnt,Xe(" "+se(t.model.last_commit_time),1)]),c("div",snt,[int,rnt,c("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=ae(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},se(t.model.category),9,ont)])])],8,Itt)]))],10,Wet)}const lnt=pt($et,[["render",ant]]),cnt={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}}},dnt={class:"p-4"},unt={class:"flex items-center mb-4"},pnt=["src"],_nt={class:"text-lg font-semibold"},hnt=c("strong",null,"Author:",-1),fnt=c("strong",null,"Description:",-1),mnt=c("strong",null,"Category:",-1),gnt={key:0},bnt=c("strong",null,"Disclaimer:",-1),Ent=c("strong",null,"Conditioning Text:",-1),ynt=c("strong",null,"AI Prefix:",-1),vnt=c("strong",null,"User Prefix:",-1),Snt=c("strong",null,"Antiprompts:",-1);function Tnt(n,e,t,s,i,r){return C(),R("div",dnt,[c("div",unt,[c("img",{src:i.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,pnt),c("h2",_nt,se(i.personalityName),1)]),c("p",null,[hnt,Xe(" "+se(i.personalityAuthor),1)]),c("p",null,[fnt,Xe(" "+se(i.personalityDescription),1)]),c("p",null,[mnt,Xe(" "+se(i.personalityCategory),1)]),i.disclaimer?(C(),R("p",gnt,[bnt,Xe(" "+se(i.disclaimer),1)])):G("",!0),c("p",null,[Ent,Xe(" "+se(i.conditioningText),1)]),c("p",null,[ynt,Xe(" "+se(i.aiPrefix),1)]),c("p",null,[vnt,Xe(" "+se(i.userPrefix),1)]),c("div",null,[Snt,c("ul",null,[(C(!0),R(ze,null,st(i.antipromptsList,o=>(C(),R("li",{key:o.id},se(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?(C(),R("button",{key:1,onClick:e[1]||(e[1]=(...o)=>r.commitChanges&&r.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):G("",!0)])}const xnt=pt(cnt,[["render",Tnt]]),Gu="/assets/logo-9d653710.svg",Cnt="/",wnt={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},components:{InteractiveMenu:Jb},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,Ue(()=>{Ge.replace()})},methods:{showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return Cnt+this.personality.avatar},defaultImg(n){n.target.src=Gu},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(){Ue(()=>{Ge.replace()})}}},Rnt=["title"],Ant={class:"flex flex-row items-center flex-shrink-0 gap-3"},Nnt=["src"],Ont=c("i",{"data-feather":"clipboard",class:"w-5"},null,-1),Int=[Ont],Mnt=["src"],Dnt={class:""},knt={class:""},Lnt={class:"flex items-center"},Pnt=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Unt=c("b",null,"Author: ",-1),Fnt={class:"flex items-center"},Bnt=c("i",{"data-feather":"git-commit",class:"w-5 m-1"},null,-1),Gnt=c("b",null,"Version: ",-1),Vnt={key:0,class:"flex items-center"},znt=c("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),Hnt=c("b",null,"Languages: ",-1),qnt=["selected"],Ynt={key:1,class:"flex items-center"},$nt=c("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),Wnt=c("b",null,"Language: ",-1),Knt={class:"flex items-center"},jnt=c("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),Qnt=c("b",null,"Category: ",-1),Xnt=c("div",{class:"flex items-center"},[c("i",{"data-feather":"info",class:"w-5 m-1"}),c("b",null,"Description: "),c("br")],-1),Znt=["title","innerHTML"],Jnt={class:"rounded bg-blue-300"},est=c("i",{"data-feather":"check"},null,-1),tst=c("span",{class:"sr-only"},"Select",-1),nst=[est,tst],sst=c("i",{"data-feather":"send",class:"w-5"},null,-1),ist=c("span",{class:"sr-only"},"Talk",-1),rst=[sst,ist],ost=c("i",{"data-feather":"folder",class:"w-5"},null,-1),ast=c("span",{class:"sr-only"},"Show Folder",-1),lst=[ost,ast];function cst(n,e,t,s,i,r){const o=dt("InteractiveMenu");return C(),R("div",{class:Fe(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",r.selected_computed?"border-2 border-primary-light":"border-transparent",i.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:t.personality.installed?"":"Not installed"},[c("div",{class:Fe(t.personality.installed?"":"border-red-500")},[c("div",Ant,[c("img",{onClick:e[0]||(e[0]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),ref:"imgElement",src:r.getImgUrl(),onError:e[1]||(e[1]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer",onMouseover:e[2]||(e[2]=(...a)=>r.showThumbnail&&r.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>r.updateThumbnailPosition&&r.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>r.hideThumbnail&&r.hideThumbnail(...a))},null,40,Nnt),c("h3",{onClick:e[5]||(e[5]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer",onMouseover:e[6]||(e[6]=(...a)=>r.showThumbnail&&r.showThumbnail(...a)),onMousemove:e[7]||(e[7]=(...a)=>r.updateThumbnailPosition&&r.updateThumbnailPosition(...a)),onMouseleave:e[8]||(e[8]=(...a)=>r.hideThumbnail&&r.hideThumbnail(...a))},se(t.personality.name),33),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[9]||(e[9]=ae(a=>r.toggleCopyLink(),["stop"]))},Int),i.thumbnailVisible?(C(),R("div",{key:0,style:jt({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:r.getImgUrl(),class:"w-full h-full object-fill"},null,8,Mnt)],4)):G("",!0)]),c("div",Dnt,[c("div",knt,[c("div",Lnt,[Pnt,Unt,Xe(" "+se(t.personality.author),1)]),c("div",Fnt,[Bnt,Gnt,Xe(" "+se(t.personality.version),1)]),t.personality.languages&&t.select_language?(C(),R("div",Vnt,[znt,Hnt,i.isMounted?G("",!0):B((C(),R("select",{key:0,id:"languages","onUpdate:modelValue":e[10]||(e[10]=a=>t.personality.language=a),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(C(!0),R(ze,null,st(t.personality.languages,(a,l)=>(C(),R("option",{key:l,selected:a==t.personality.languages[0]},se(a),9,qnt))),128))],512)),[[qt,t.personality.language]])])):G("",!0),t.personality.language?(C(),R("div",Ynt,[$nt,Wnt,Xe(" "+se(t.personality.language),1)])):G("",!0),c("div",Knt,[jnt,Qnt,Xe(" "+se(t.personality.category),1)])]),Xnt,c("p",{class:"mx-1 opacity-80 h-20 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",title:t.personality.description,innerHTML:t.personality.description},null,8,Znt)]),c("div",Jnt,[i.isMounted?(C(),R("button",{key:0,type:"button",title:"Select",onClick:[e[11]||(e[11]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),e[12]||(e[12]=ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},nst)):G("",!0),i.isMounted?(C(),R("button",{key:1,type:"button",title:"Talk",onClick:[e[13]||(e[13]=(...a)=>r.toggleTalk&&r.toggleTalk(...a)),e[14]||(e[14]=ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},rst)):G("",!0),c("button",{type:"button",title:"Show_folder",onClick:[e[15]||(e[15]=(...a)=>r.showFolder&&r.showFolder(...a)),e[16]||(e[16]=ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},lst),_e(o,{commands:r.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,Rnt)}const CN=pt(wnt,[["render",cst]]);const dst={props:{ui:{type:String,required:!0,default:""}},watch:{ui(n,e){console.log(`ui changed from ${e} to ${n}`),this.$nextTick(()=>{this.evaluateScriptTags()})}},data(){return{}},mounted(){this.$nextTick(()=>{this.evaluateScriptTags()})},methods:{evaluateScriptTags(){console.log("evaluateScriptTags");const n=document.createElement("div");n.innerHTML=this.ui,n.querySelectorAll("script").forEach(t=>{const s=document.createElement("script");s.textContent=t.textContent,document.body.appendChild(s),document.body.removeChild(s)}),this.$refs.ui.innerHTML=n.innerHTML,console.log("this.$refs.ui.innerHTML"),console.log(this.$refs.ui.innerHTML)}}},ust={class:"w-full h-auto 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",ref:"ui"};function pst(n,e,t,s,i,r){return C(),R("div",ust,null,512)}const wN=pt(dst,[["render",pst]]),_st="/",hst={components:{DynamicUIRenderer:wN},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Ue(()=>{Ge.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return _st+this.binding.icon},defaultImg(n){n.target.src=Gu},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){Ue(()=>{Ge.replace()})}}},fst=["title"],mst={class:"flex flex-row items-center gap-3"},gst=["src"],bst={class:"font-bold font-large text-lg truncate"},Est=c("div",{class:"grow"},null,-1),yst={class:"flex-none gap-1"},vst=c("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),Sst=c("span",{class:"sr-only"},"Help",-1),Tst=[vst,Sst],xst={class:"flex items-center flex-row-reverse gap-2 my-1"},Cst=c("span",{class:"sr-only"},"Click to install",-1),wst=c("span",{class:"sr-only"},"Reinstall",-1),Rst=c("span",{class:"sr-only"},"UnInstall",-1),Ast=c("span",{class:"sr-only"},"Settings",-1),Nst={class:""},Ost={class:""},Ist={class:"flex items-center"},Mst=c("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Dst=c("b",null,"Author: ",-1),kst={class:"flex items-center"},Lst=c("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Pst=c("b",null,"Folder: ",-1),Ust=c("div",{class:"grow"},null,-1),Fst=c("i",{"data-feather":"clipboard",class:"w-5"},null,-1),Bst=[Fst],Gst={class:"flex items-center"},Vst=c("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),zst=c("b",null,"Version: ",-1),Hst={class:"flex items-center"},qst=c("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),Yst=c("b",null,"Link: ",-1),$st=["href"],Wst=c("div",{class:"flex items-center"},[c("i",{"data-feather":"info",class:"w-5 m-1"}),c("b",null,"Description: "),c("br")],-1),Kst=["title","innerHTML"];function jst(n,e,t,s,i,r){const o=dt("DynamicUIRenderer");return C(),R("div",{class:Fe(["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]=ae((...a)=>r.toggleSelected&&r.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[c("div",null,[c("div",mst,[c("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,gst),c("h3",bst,se(t.binding.name),1),Est,c("div",yst,[t.selected?(C(),R("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>r.toggleReloadBinding&&r.toggleReloadBinding(...a)),e[2]||(e[2]=ae(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Tst)):G("",!0)])]),c("div",xst,[t.binding.installed?G("",!0):(C(),R("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=ae((...a)=>r.toggleInstall&&r.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"},[Xe(" Install "),Cst])),t.binding.installed?(C(),R("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=ae((...a)=>r.toggleReinstall&&r.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"},[Xe(" Reinstall "),wst])):G("",!0),t.binding.installed?(C(),R("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=ae((...a)=>r.toggleUnInstall&&r.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"},[Xe(" Uninstall "),Rst])):G("",!0),t.selected?(C(),R("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=ae((...a)=>r.toggleSettings&&r.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"},[Xe(" Settings "),Ast])):G("",!0)]),t.binding.ui?(C(),St(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):G("",!0),c("div",Nst,[c("div",Ost,[c("div",Ist,[Mst,Dst,Xe(" "+se(t.binding.author),1)]),c("div",kst,[Lst,Pst,Xe(" "+se(t.binding.folder)+" ",1),Ust,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]=ae(a=>r.copyToClipBoard(this.binding.folder),["stop"]))},Bst)]),c("div",Gst,[Vst,zst,Xe(" "+se(t.binding.version),1)]),c("div",Hst,[qst,Yst,c("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},se(t.binding.link),9,$st)])]),Wst,c("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,Kst)])])],10,fst)}const Qst=pt(hst,[["render",jst]]),Xst={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})}}},Zst={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},Jst={class:"relative w-full max-w-md max-h-full"},eit={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},tit=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),nit=c("span",{class:"sr-only"},"Close modal",-1),sit=[tit,nit],iit={class:"p-4 text-center"},rit=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),oit={class:"p-4 text-center mx-auto mb-4"},ait=c("label",{class:"mr-2"},"Model path",-1);function lit(n,e,t,s,i,r){return i.show?(C(),R("div",Zst,[c("div",Jst,[c("div",eit,[c("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},sit),c("div",iit,[rit,c("div",oit,[ait,B(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),[[he,i.model_path]])]),c("button",{onClick:e[2]||(e[2]=o=>r.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=>r.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")])])])])):G("",!0)}const cit=pt(Xst,[["render",lit]]);const dit={props:{show:{type:Boolean,default:!1,required:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return console.log("choice:",n),typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},toggleInput(){this.showInput=!this.showInput},addNewFilename(){const n=this.newFilename.trim();n!==""&&(this.choices.push(n),this.newFilename="",this.selectChoice(n)),this.showInput=!1},removeChoice(n,e){this.choices.splice(e,1),n===this.selectedChoice&&(this.selectedChoice=null),this.$emit("choice-removed",n)}}},uit={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},pit={class:"bg-bg-light dark:bg-bg-dark rounded-lg p-6 w-96"},_it={class:"text-xl font-bold text-5xl drop-shadow-md align-middle"},hit={class:"h-48 text-light-text-panel dark:text-dark-text-panel bg-bg-light-tone-panel dark:bg-dark-tone-panel overflow-y-auto rounded drop-shadow-md 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=["onClick"],mit={class:"font-bold text-dark-text-panel dark:text-light-text-panel"},git=c("br",null,null,-1),bit={key:0,class:"text-xs text-gray-500"},Eit=["onClick"],yit={key:0,class:"flex flex-row mt-4 bg-light-tone-panel dark:bg-dark-tone-panel"},vit={class:"flex justify-end mt-4"},Sit=["disabled"];function Tit(n,e,t,s,i,r){return C(),St(Ms,{name:"fade"},{default:qe(()=>[t.show?(C(),R("div",uit,[c("div",pit,[c("h2",_it,se(t.title),1),c("div",hit,[c("ul",null,[(C(!0),R(ze,null,st(t.choices,(o,a)=>(C(),R("li",{key:a,onClick:l=>r.selectChoice(o),class:Fe([{"selected-choice":o===i.selectedChoice},"py-2 px-4 cursor-pointer hover:bg-accent dark:hover:bg-secondary"])},[c("span",mit,se(r.displayName(o)),1),git,o.size?(C(),R("span",bit,se(r.formatSize(o.size)),1)):G("",!0),t.can_remove?(C(),R("button",{key:1,onClick:ae(l=>r.removeChoice(o,a),["stop"]),class:"ml-2 text-red-500 hover:text-red-600"}," X ",8,Eit)):G("",!0)],10,fit))),128))])]),i.showInput?(C(),R("div",yit,[B(c("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>i.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 p-2 rounded-lg w-full"},null,512),[[he,i.newFilename]]),c("button",{onClick:e[1]||(e[1]=(...o)=>r.addNewFilename&&r.addNewFilename(...o)),class:"ml-2 grow pl-2 pr-2 bg-primary hover:bg-primary-light text-white rounded-lg transition duration-300"}," Add ")])):G("",!0),c("div",vit,[c("button",{onClick:e[2]||(e[2]=(...o)=>r.closeDialog&&r.closeDialog(...o)),class:"py-2 px-4 mr-2 bg-secondary hover:bg-accent text-white rounded-lg transition duration-300"}," Cancel "),c("button",{onClick:e[3]||(e[3]=(...o)=>r.validateChoice&&r.validateChoice(...o)),class:Fe([{"bg-gray-400 cursor-not-allowed":!i.selectedChoice,"bg-primary hover:bg-primary-light":i.selectedChoice,"text-white":i.selectedChoice,"text-gray-500":!i.selectedChoice},"py-2 px-4 rounded-lg transition duration-300"]),disabled:!i.selectedChoice}," Validate ",10,Sit),c("button",{onClick:e[4]||(e[4]=(...o)=>r.toggleInput&&r.toggleInput(...o)),class:"py-2 px-4 ml-2 bg-accent hover:bg-secondary text-white rounded-lg transition duration-300"}," Add New ")])])])):G("",!0)]),_:1})}const eE=pt(dit,[["render",Tit]]),xit={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(){}}},Cit={class:"flex space-x-4"},wit=["value","aria-checked"],Rit={class:"text-gray-700"};function Ait(n,e,t,s,i,r){return C(),R("div",Cit,[(C(!0),R(ze,null,st(t.radioOptions,(o,a)=>(C(),R("label",{key:o.value,class:"flex items-center space-x-2"},[B(c("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=l=>i.selectedValue=l),onChange:e[1]||(e[1]=(...l)=>r.handleRadioChange&&r.handleRadioChange(...l)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":i.selectedValue===o.value.toString(),role:"radio"},null,40,wit),[[eD,i.selectedValue]]),c("span",Rit,se(o.label),1)]))),128))])}const Nit=pt(xit,[["render",Ait]]),Oit="/assets/gpu-df72bf63.svg";const Iit="/";de.defaults.baseURL="/";const Mit={components:{AddModelDialog:cit,ModelEntry:lnt,PersonalityViewer:xnt,PersonalityEntry:CN,BindingEntry:Qst,ChoiceDialog:eE,Card:Bu,RadioOptions:Nit},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:ws,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:hs,binding_changed:!1,SVGGPU:Oit,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,minconf_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:Iit,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)}He.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{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{He.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==="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)},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("upgrade_sd",{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)})},reinstallMotionCtrlService(){de.post("install_motion_ctrl",{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<this.models_zoo.length?this.models_zoo_initialLoadCount+=10:this.models_zoo_initialLoadCount=this.models_zoo.length},async modelsZooToggleCollapse(){this.mzc_collapsed=!this.mzc_collapsed,Ue(()=>{Ge.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=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 r=this.models_zoo.findIndex(o=>o.name===e.model.name);this.models_zoo[r].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),He.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 He.off("install_progress",s),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")};He.on("install_progress",s),He.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(s=>{console.log("Logo uploaded successfully"),this.$store.state.toast.showToast("Avatar uploaded successfully!",4,!0);const i=s.data.fileName;console.log("response",s),this.app_custom_logo=i,this.$store.state.config.app_custom_logo=i,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"),de.post("/upload_avatar",t).then(s=>{console.log("Avatar uploaded successfully"),this.$store.state.toast.showToast("Avatar uploaded successfully!",4,!0);const i=s.data.fileName;console.log("response",s),this.user_avatar=i,this.$store.state.config.user_avatar=i,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,Ue(()=>{Ge.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.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;He.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.minconf_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);Ue(()=>{Ge.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),Ue(()=>{Ge.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),Ue(()=>{Ge.replace()})),this.settingsChanged=!0,this.isModelSelected=!0}):this.$store.state.toast.showToast(`Model:
`+n.model.name+`
is not installed`,4,!1),Ue(()=>{Ge.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.folder})},onCancelInstall(){const n=this.addModel;console.log("cancel install",n),this.modelDownlaodInProgress=!1,this.addModel={},He.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"),He.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"))):(He.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"))};He.on("install_progress",e),He.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"),He.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"))):(He.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"))};He.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,He.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,He.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"))};He.on("uninstall_progress",t),this.selected_variant!=null?He.emit("uninstall_model",{path:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name+"/resolve/main/"+this.selected_variant.name,type:n.model.type}):He.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),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,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(s=>{s&&s.data?(console.log("binding set with new settings",s.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.
`+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,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(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.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 i=await de.post("/update_setting",s,{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 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;e<this.$store.state.modelsArr.length;e++){const t=this.$store.state.modelsArr[e];let s=n.findIndex(i=>i.name==t);if(s==-1)for(let i=0;i<n.length;i++){let r=n[i].variants;if(r!=null&&(s=r.findIndex(o=>o.name==t),s!=-1)){s=i,console.log(`Found ${t} at index ${s}`);break}}if(s==-1){let i={};i.name=t,i.icon=this.imgBinding,i.isCustomModel=!0,i.isInstalled=!0,n.push(i)}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(i=>i.folder==n),s=this.bindingsZoo[t];s?s.installed=!0:s.installed=!1,this.settingsChanged=!0,this.isLoading=!1,Ue(()=>{Ge.replace()}),console.log("updating model"),this.update_model(null).then(()=>{}),Ue(()=>{Ge.replace()})}),Ue(()=>{Ge.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,Ue(()=>{Ge.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),Ue(()=>{Ge.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.personalities=[];const n=await this.api_get_req("get_all_personalities"),e=this.$store.state.config,t=Object.keys(n);for(let s=0;s<t.length;s++){const i=t[s],o=n[i].map(a=>{const l=e.personalities.includes(i+"/"+a.folder);let u={};return u=a,u.category=i,u.language="",u.full_path=i+"/"+a.folder,u.isMounted=l,u});this.personalities.length==0?this.personalities=o:this.personalities=this.personalities.concat(o)}this.personalities.sort((s,i)=>s.name.localeCompare(i.name)),this.personalitiesFiltered=this.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.personalities.filter(t=>t.category===this.configFile.personality_category),this.personalitiesFiltered.sort(),this.searchPersonalityInProgress=!1;return}const n=this.searchPersonality.toLowerCase(),e=this.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.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 js(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),s={client_id:this.$store.state.client_id,id:t};try{const i=await de.post("/select_personality",s,{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.personalities.findIndex(a=>a.full_path==n.full_path),s=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.personalities[t]),this.personalities[t].isMounted=!1,s>-1&&(this.personalitiesFiltered[s].isMounted=!1),i>-1&&(this.$refs.personalitiesZoo[i].isMounted=!1),this.$store.dispatch("refreshMountedPersonalities");const r=this.mountedPersArr[this.mountedPersArr.length-1];console.log(r,this.mountedPersArr.length),(await this.select_personality(n.personality)).status&&this.$store.state.toast.showToast(`Selected personality:
`+r.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=hs},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{console.log("Getting comfyui models");const n=await de.get("/list_comfyui_models");console.log("res is ",n),n.data.status&&(this.comfyui_models=n.data.models)}catch{console.log("Couldin't list output devices")}},activated(){},computed:{full_template:{get(){return(this.configFile.start_header_id_template+this.configFile.system_message_template+this.configFile.end_header_id_template+" system message"+this.configFile.separator_template+this.configFile.start_user_header_id_template+"user name"+this.configFile.end_user_header_id_template+" User prompt"+this.configFile.separator_template+this.configFile.end_user_message_id_template+this.configFile.separator_template+this.configFile.start_ai_header_id_template+"ai personality"+this.configFile.end_ai_header_id_template+"ai response"+this.configFile.end_ai_message_id_template).replace(`
`,"<br>")}},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 ws;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return ws}}},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):ws}catch{console.log("error")}if(!this.isMounted)return ws;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return ws}}},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:hs},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.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return n>-1?this.personalities[n].name:null},speed_computed(){return js(this.addModel.speed)},total_size_computed(){return js(this.addModel.total_size)},downloaded_size_computed(){return js(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Ue(()=>{Ge.replace()})},pc_collapsed(){Ue(()=>{Ge.replace()})},mc_collapsed(){Ue(()=>{Ge.replace()})},sc_collapsed(){Ue(()=>{Ge.replace()})},showConfirmation(){Ue(()=>{Ge.replace()})},mzl_collapsed(){Ue(()=>{Ge.replace()})},pzl_collapsed(){Ue(()=>{Ge.replace()})},ezl_collapsed(){Ue(()=>{Ge.replace()})},bzl_collapsed(){Ue(()=>{Ge.replace()})},all_collapsed(n){this.collapseAll(n),Ue(()=>{Ge.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Ue(()=>{Ge.replace()})},isLoading(){Ue(()=>{Ge.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Ue(()=>{Ge.replace()})}},async beforeRouteLeave(n){if(await this.$router.isReady(),this.settingsChanged)return await this.$store.state.yesNoDialog.askQuestion(`Did You forget to apply changes?
You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},L=n=>(no("data-v-2d3d13af"),n=n(),so(),n),Dit={class:"container overflow-y-scroll flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},kit={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},Lit={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Pit=L(()=>c("i",{"data-feather":"x"},null,-1)),Uit=[Pit],Fit=L(()=>c("i",{"data-feather":"check"},null,-1)),Bit=[Fit],Git={key:1,class:"flex gap-3 flex-1 items-center"},Vit=L(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),zit=[Vit],Hit=L(()=>c("i",{"data-feather":"list"},null,-1)),qit=[Hit],Yit={class:"flex gap-3 flex-1 items-center justify-end"},$it=L(()=>c("i",{"data-feather":"trash-2"},null,-1)),Wit=[$it],Kit=L(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),jit=[Kit],Qit=L(()=>c("i",{"data-feather":"arrow-up-circle"},null,-1)),Xit=L(()=>c("i",{"data-feather":"alert-circle"},null,-1)),Zit={class:"flex gap-3 items-center"},Jit={key:0,class:"flex gap-3 items-center"},ert=L(()=>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)),trt=[ert],nrt=L(()=>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)),srt=[nrt],irt={key:1,role:"status"},rrt=L(()=>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)),ort=L(()=>c("span",{class:"sr-only"},"Loading...",-1)),art={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},lrt={class:"flex flex-row p-3"},crt=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),drt=[crt],urt=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),prt=[urt],_rt=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),hrt=L(()=>c("div",{class:"mr-2"},"|",-1)),frt={class:"text-base font-semibold cursor-pointer select-none items-center"},mrt={class:"flex gap-2 items-center"},grt={key:0},brt=["src"],Ert={class:"font-bold font-large text-lg"},yrt={key:1},vrt={class:"flex gap-2 items-center"},Srt=["src"],Trt={class:"font-bold font-large text-lg"},xrt=L(()=>c("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Crt={class:"font-bold font-large text-lg"},wrt=L(()=>c("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Rrt={class:"font-bold font-large text-lg"},Art={class:"mb-2"},Nrt=L(()=>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"})]),Xe(" CPU Ram usage: ")],-1)),Ort={class:"flex flex-col mx-2"},Irt=L(()=>c("b",null,"Avaliable ram: ",-1)),Mrt=L(()=>c("b",null,"Ram usage: ",-1)),Drt={class:"p-2"},krt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Lrt={class:"mb-2"},Prt=L(()=>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"}),Xe(" Disk usage: ")],-1)),Urt={class:"flex flex-col mx-2"},Frt=L(()=>c("b",null,"Avaliable disk space: ",-1)),Brt=L(()=>c("b",null,"Disk usage: ",-1)),Grt={class:"p-2"},Vrt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},zrt={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Hrt=["src"],qrt={class:"flex flex-col mx-2"},Yrt=L(()=>c("b",null,"Model: ",-1)),$rt=L(()=>c("b",null,"Avaliable vram: ",-1)),Wrt=L(()=>c("b",null,"GPU usage: ",-1)),Krt={class:"p-2"},jrt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Qrt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Xrt={class:"flex flex-row p-3"},Zrt=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Jrt=[Zrt],eot=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),tot=[eot],not=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),sot={class:"flex flex-col mb-2 px-3 pb-2"},iot={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"},rot=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),oot={for:"logo-upload"},aot=["src"],lot={style:{width:"10%"}},cot=L(()=>c("i",{"data-feather":"x"},null,-1)),dot=[cot],uot=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),pot={class:"text-center items-center"},_ot={class:"flex flex-row"},hot=L(()=>c("option",{value:"cpu"},"CPU",-1)),fot=L(()=>c("option",{value:"cpu-noavx"},"CPU (No AVX)",-1)),mot=L(()=>c("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1)),got=L(()=>c("option",{value:"nvidia"},"NVIDIA",-1)),bot=L(()=>c("option",{value:"amd-noavx"},"AMD (No AVX)",-1)),Eot=L(()=>c("option",{value:"amd"},"AMD",-1)),yot=L(()=>c("option",{value:"apple-intel"},"Apple Intel",-1)),vot=L(()=>c("option",{value:"apple-silicon"},"Apple Silicon",-1)),Sot=[hot,fot,mot,got,bot,Eot,yot,vot],Tot=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),xot={style:{width:"100%"}},Cot=L(()=>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)),wot={class:"flex flex-row"},Rot=L(()=>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)),Aot={class:"flex flex-row"},Not=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),Oot={class:"flex flex-row"},Iot=L(()=>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)),Mot={class:"flex flex-row"},Dot=L(()=>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)),kot={class:"flex flex-row"},Lot=L(()=>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)),Pot={class:"flex flex-row"},Uot=L(()=>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)),Fot={class:"flex flex-row"},Bot=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),Got={class:"flex flex-row"},Vot=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),zot={class:"flex flex-row"},Hot=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),qot={class:"flex flex-row"},Yot={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"},$ot=L(()=>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)),Wot=L(()=>c("option",{value:"lollms"},"Lollms communication template",-1)),Kot=L(()=>c("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1)),jot=L(()=>c("option",{value:"llama3"},"LLama3 communication template",-1)),Qot=L(()=>c("option",{value:"mistral"},"Mistral communication template",-1)),Xot=[Wot,Kot,jot,Qot],Zot=L(()=>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)),Jot=L(()=>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)),eat=L(()=>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)),tat=L(()=>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)),nat=L(()=>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)),sat=L(()=>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)),iat=L(()=>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)),rat=L(()=>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)),oat=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),aat=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),lat=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),cat=["innerHTML"],dat=L(()=>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)),uat={style:{width:"100%"}},pat={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"},_at=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),hat={style:{width:"100%"}},fat=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),mat={style:{width:"100%"}},gat=L(()=>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)),bat={style:{width:"100%"}},Eat=L(()=>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)),yat={style:{width:"100%"}},vat=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),Sat={for:"avatar-upload"},Tat=["src"],xat={style:{width:"10%"}},Cat=L(()=>c("i",{"data-feather":"x"},null,-1)),wat=[Cat],Rat=L(()=>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)),Aat={class:"flex flex-row"},Nat=L(()=>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)),Oat={style:{width:"100%"}},Iat=L(()=>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)),Mat={style:{width:"100%"}},Dat={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"},kat=L(()=>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)),Lat={style:{width:"100%"}},Pat=L(()=>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)),Uat={style:{width:"100%"}},Fat=L(()=>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)),Bat={style:{width:"100%"}},Gat=L(()=>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)),Vat={style:{width:"100%"}},zat=L(()=>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)),Hat={style:{width:"100%"}},qat={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"},Yat=L(()=>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)),$at={class:"flex flex-row"},Wat=L(()=>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)),Kat={style:{width:"100%"}},jat={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"},Qat=L(()=>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)),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=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),elt={class:"flex flex-row"},tlt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),nlt={class:"flex flex-row"},slt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),ilt={class:"flex flex-row"},rlt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},olt={class:"flex flex-row p-3"},alt=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),llt=[alt],clt=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),dlt=[clt],ult=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1)),plt={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"},_lt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),hlt={style:{width:"100%"}},flt=["onUpdate:modelValue"],mlt=["onClick"],glt=["onClick"],blt=["onClick"],Elt=L(()=>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)),ylt=L(()=>c("option",{value:"bert"},"Bert Vectorizer",-1)),vlt=L(()=>c("option",{value:"tfidf"},"TFIDF Vectorizer",-1)),Slt=L(()=>c("option",{value:"word2vec"},"Word2Vec Vectorizer",-1)),Tlt=[ylt,vlt,Slt],xlt=L(()=>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)),Clt=L(()=>c("option",{value:"bert-base-nli-mean-tokens"},"bert-base-nli-mean-tokens",-1)),wlt=[Clt],Rlt=L(()=>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)),Alt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),Nlt=L(()=>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)),Olt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),Ilt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),Mlt=L(()=>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)),Dlt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),klt=L(()=>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)),Llt=L(()=>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)),Plt={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"},Ult=L(()=>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)),Flt={class:"flex flex-row"},Blt=L(()=>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)),Glt={class:"flex flex-row"},Vlt=L(()=>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)),zlt={class:"flex flex-row"},Hlt=L(()=>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)),qlt={class:"flex flex-row"},Ylt=L(()=>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)),$lt={class:"flex flex-row"},Wlt=L(()=>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)),Klt=L(()=>c("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),jlt=L(()=>c("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1)),Qlt=L(()=>c("option",{value:"model_embedding"},"Model Embedding",-1)),Xlt=L(()=>c("option",{value:"sentense_transformer"},"Sentense Transformer",-1)),Zlt=[Klt,jlt,Qlt,Xlt],Jlt=L(()=>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)),ect={style:{width:"100%"}},tct=L(()=>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)),nct=L(()=>c("option",{value:"PCA"},"PCA",-1)),sct=L(()=>c("option",{value:"TSNE"},"TSNE",-1)),ict=[nct,sct],rct=L(()=>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)),oct={class:"flex flex-row"},act=L(()=>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)),lct=L(()=>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)),cct=L(()=>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)),dct={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},uct={class:"flex flex-row p-3"},pct=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),_ct=[pct],hct=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),fct=[hct],mct=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1)),gct={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"},bct=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet search:")],-1)),Ect={class:"flex flex-row"},yct=L(()=>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)),vct={class:"flex flex-row"},Sct=L(()=>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)),Tct={class:"flex flex-row"},xct=L(()=>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)),Cct={class:"flex flex-row"},wct=L(()=>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)),Rct={class:"flex flex-col"},Act=L(()=>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)),Nct={class:"flex flex-col"},Oct=L(()=>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)),Ict={class:"flex flex-col"},Mct=L(()=>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)),Dct={class:"flex flex-col"},kct={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Lct={class:"flex flex-row p-3"},Pct=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Uct=[Pct],Fct=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Bct=[Fct],Gct=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1)),Vct={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"},zct=L(()=>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)),Hct={style:{width:"100%"}},qct=L(()=>c("option",{value:"None"},"None",-1)),Yct=L(()=>c("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1)),$ct=L(()=>c("option",{value:"xtts"},"XTTS",-1)),Wct=L(()=>c("option",{value:"openai_tts"},"Open AI TTS",-1)),Kct=[qct,Yct,$ct,Wct],jct=L(()=>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)),Qct={style:{width:"100%"}},Xct=L(()=>c("option",{value:"None"},"None",-1)),Zct=L(()=>c("option",{value:"whisper"},"Whisper",-1)),Jct=L(()=>c("option",{value:"openai_whisper"},"Open AI Whisper",-1)),edt=[Xct,Zct,Jct],tdt=L(()=>c("tr",null,null,-1)),ndt=L(()=>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)),sdt={style:{width:"100%"}},idt=L(()=>c("option",{value:"None"},"None",-1)),rdt=L(()=>c("option",{value:"diffusers"},"Diffusers",-1)),odt=L(()=>c("option",{value:"autosd"},"AUTO1111's SD",-1)),adt=L(()=>c("option",{value:"dall-e"},"Open AI DALL-E",-1)),ldt=L(()=>c("option",{value:"midjourney"},"Midjourney",-1)),cdt=L(()=>c("option",{value:"comfyui"},"Comfyui",-1)),ddt=L(()=>c("option",{value:"fooocus"},"Fooocus",-1)),udt=[idt,rdt,odt,adt,ldt,cdt,ddt],pdt=L(()=>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)),_dt={style:{width:"100%"}},hdt=L(()=>c("option",{value:"None"},"None",-1)),fdt=L(()=>c("option",{value:"musicgen"},"Music Gen",-1)),mdt=[hdt,fdt],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"},bdt=L(()=>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)),Edt={class:"flex flex-row"},ydt=L(()=>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)),vdt={class:"flex flex-row"},Sdt=L(()=>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)),Tdt={class:"flex flex-row"},xdt=L(()=>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)),Cdt={class:"flex flex-row"},wdt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Rdt=L(()=>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)),Adt={style:{width:"100%"}},Ndt=L(()=>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)),Odt={style:{width:"100%"}},Idt=L(()=>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)),Mdt={style:{width:"100%"}},Ddt=L(()=>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)),kdt={style:{width:"100%"}},Ldt=L(()=>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)),Pdt={style:{width:"100%"}},Udt=L(()=>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)),Fdt={style:{width:"100%"}},Bdt=L(()=>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)),Gdt={style:{width:"100%"}},Vdt=L(()=>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)),zdt={class:"flex flex-row"},Hdt=L(()=>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)),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=L(()=>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)),Wdt={style:{width:"100%"}},Kdt=["value"],jdt=L(()=>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)),Qdt={style:{width:"100%"}},Xdt=["value"],Zdt={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"},Jdt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),eut={style:{width:"100%"}},tut=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys (coma separated, if empty, anyone can use the server without authentication):")],-1)),nut={style:{width:"100%"}},sut=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),iut={style:{width:"100%"}},rut=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode (deactivates all code exectuion to protect the PC from attacks):")],-1)),out={style:{width:"100%"}},aut=L(()=>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)),lut={style:{width:"100%"}},cut=L(()=>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)),dut={style:{width:"100%"}},uut=L(()=>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)),put={style:{width:"100%"}},_ut=L(()=>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)),hut={style:{width:"100%"}},fut={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=L(()=>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)),gut={class:"flex flex-row"},but=L(()=>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)),Eut={class:"flex flex-row"},yut=L(()=>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)),vut=L(()=>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)),Sut=["value"],Tut={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"},xut=L(()=>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)),Cut={class:"flex flex-row"},wut=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),Rut={class:"flex flex-row"},Aut=["value"],Nut={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"},Out=L(()=>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)),Iut={class:"flex flex-row"},Mut=L(()=>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)),Dut={class:"flex flex-row"},kut=["value"],Lut={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Put=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),Uut={class:"flex flex-row"},Fut=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),But=L(()=>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)),Gut=["value"],Vut={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"},zut=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),Hut={class:"flex flex-row"},qut=["value"],Yut=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),$ut={class:"flex flex-row"},Wut=["value"],Kut=L(()=>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)),jut={class:"flex flex-row"},Qut=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),Xut={class:"flex flex-row"},Zut=L(()=>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)),Jut={class:"flex flex-row"},ept=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),tpt={class:"flex flex-row"},npt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),spt={class:"flex flex-row"},ipt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),rpt={class:"flex flex-row"},opt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),apt={class:"flex flex-row"},lpt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),cpt={class:"flex flex-row"},dpt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),upt={class:"flex flex-row"},ppt=L(()=>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)),_pt={class:"flex flex-row"},hpt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},fpt=L(()=>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)),mpt={class:"flex flex-row"},gpt=L(()=>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)),bpt={class:"flex flex-row"},Ept=L(()=>c("option",null," tts-1 ",-1)),ypt=L(()=>c("option",null," tts-2 ",-1)),vpt=[Ept,ypt],Spt=L(()=>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)),Tpt={class:"flex flex-row"},xpt=L(()=>c("option",null," alloy ",-1)),Cpt=L(()=>c("option",null," echo ",-1)),wpt=L(()=>c("option",null," fable ",-1)),Rpt=L(()=>c("option",null," nova ",-1)),Apt=L(()=>c("option",null," shimmer ",-1)),Npt=[xpt,Cpt,wpt,Rpt,Apt],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"},Ipt=L(()=>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)),Mpt={class:"flex flex-row"},Dpt=L(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),kpt=[Dpt],Lpt=L(()=>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)),Ppt={class:"flex flex-row"},Upt=L(()=>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)),Fpt={class:"flex flex-row"},Bpt=L(()=>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)),Gpt={class:"flex flex-row"},Vpt={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=L(()=>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)),Hpt={class:"flex flex-row"},qpt=L(()=>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)),Ypt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),$pt={class:"flex flex-row"},Wpt=L(()=>c("td",null,null,-1)),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=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),Qpt={class:"flex flex-row"},Xpt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),Zpt={class:"flex flex-row"},Jpt=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),e_t={class:"flex flex-row"},t_t={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},n_t=L(()=>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)),s_t={class:"flex flex-row"},i_t=L(()=>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)),r_t={class:"flex flex-row"},o_t=L(()=>c("option",null," dall-e-2 ",-1)),a_t=L(()=>c("option",null," dall-e-3 ",-1)),l_t=[o_t,a_t],c_t={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},d_t=L(()=>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)),u_t={class:"flex flex-row"},p_t=L(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),__t=[p_t],h_t=L(()=>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)),f_t={class:"flex flex-row"},m_t=["value"],g_t=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),b_t={class:"flex flex-row"},E_t=L(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),y_t=[E_t],v_t=L(()=>c("td",{style:{"min-width":"200px"}},null,-1)),S_t={class:"flex flex-row"},T_t=L(()=>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)),x_t=L(()=>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_t={class:"flex flex-row"},w_t={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},R_t=L(()=>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)),A_t={class:"flex flex-row"},N_t=L(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),O_t=[N_t],I_t=L(()=>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)),M_t={class:"flex flex-row"},D_t=L(()=>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)),k_t={class:"flex flex-row"},L_t={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},P_t=L(()=>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)),U_t={class:"flex flex-row"},F_t=L(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),B_t=[F_t],G_t=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),V_t={class:"flex flex-row"},z_t=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),H_t={class:"flex flex-row"},q_t=L(()=>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)),Y_t={class:"flex flex-col align-bottom"},$_t={class:"relative"},W_t=L(()=>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)),K_t={class:"absolute right-0"},j_t=L(()=>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)),Q_t={class:"flex flex-row"},X_t=L(()=>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)),Z_t={class:"flex flex-row"},J_t=L(()=>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)),eht={class:"flex flex-row"},tht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},nht=L(()=>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)),sht={class:"flex flex-row"},iht=L(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),rht=[iht],oht=L(()=>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)),aht={class:"flex flex-row"},lht=L(()=>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)),cht={class:"flex flex-row"},dht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},uht=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Motion Ctrl service:")],-1)),pht={class:"flex flex-row"},_ht=L(()=>c("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),hht=[_ht],fht=L(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Motion Ctrl service:")],-1)),mht={class:"flex flex-row"},ght=L(()=>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)),bht={class:"flex flex-row"},Eht={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},yht=L(()=>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)),vht={class:"flex flex-row"},Sht=L(()=>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)),Tht={class:"flex flex-row"},xht=L(()=>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)),Cht={class:"flex flex-row"},wht={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Rht={class:"flex flex-row p-3"},Aht=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Nht=[Aht],Oht=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Iht=[Oht],Mht=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),Dht={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},kht=L(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Lht={key:1,class:"mr-2"},Pht={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Uht={class:"flex gap-1 items-center"},Fht=["src"],Bht={class:"font-bold font-large text-lg line-clamp-1"},Ght={key:0,class:"mb-2"},Vht={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},zht=L(()=>c("i",{"data-feather":"chevron-up"},null,-1)),Hht=[zht],qht=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Yht=[qht],$ht={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Wht={class:"flex flex-row p-3"},Kht=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),jht=[Kht],Qht=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Xht=[Qht],Zht=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),Jht={class:"flex flex-row items-center"},eft={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},tft=L(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),nft={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},sft=L(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),ift={key:2,class:"mr-2"},rft={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},oft={class:"flex gap-1 items-center"},aft=["src"],lft={class:"font-bold font-large text-lg line-clamp-1"},cft={class:"mx-2 mb-4"},dft={class:"relative"},uft={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},pft={key:0},_ft=L(()=>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)),hft=[_ft],fft={key:1},mft=L(()=>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)),gft=[mft],bft=L(()=>c("label",{for:"only_installed"},"Show only installed models",-1)),Eft=L(()=>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)),yft={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},vft=L(()=>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)),Sft=L(()=>c("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),Tft=[vft,Sft],xft={key:1,class:"mb-2"},Cft={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},wft=L(()=>c("i",{"data-feather":"chevron-up"},null,-1)),Rft=[wft],Aft=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Nft=[Aft],Oft={class:"mb-2"},Ift={class:"p-2"},Mft={class:"mb-3"},Dft=L(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),kft={key:0},Lft={class:"mb-3"},Pft=L(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),Uft={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},Fft=L(()=>c("div",{role:"status",class:"justify-center"},null,-1)),Bft={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Gft={class:"w-full p-2"},Vft={class:"flex justify-between mb-1"},zft=gu('<span class="flex flex-row items-center gap-2 text-base font-medium text-blue-700 dark:text-white" data-v-2d3d13af> Downloading <svg aria-hidden="true" class="w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-secondary" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2d3d13af><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" data-v-2d3d13af></path><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" data-v-2d3d13af></path></svg><span class="sr-only" data-v-2d3d13af>Loading...</span></span>',1),Hft={class:"text-sm font-medium text-blue-700 dark:text-white"},qft=["title"],Yft={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},$ft={class:"flex justify-between mb-1"},Wft={class:"text-base font-medium text-blue-700 dark:text-white"},Kft={class:"text-sm font-medium text-blue-700 dark:text-white"},jft={class:"flex flex-grow"},Qft={class:"flex flex-row flex-grow gap-3"},Xft={class:"p-2 text-center grow"},Zft={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Jft={class:"flex flex-row p-3 items-center"},emt=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),tmt=[emt],nmt=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),smt=[nmt],imt=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),rmt={key:0,class:"mr-2"},omt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},amt={key:1,class:"mr-2"},lmt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},cmt={key:0,class:"flex -space-x-4 items-center"},dmt={class:"group items-center flex flex-row"},umt=["onClick"],pmt=["src","title"],_mt=["onClick"],hmt=L(()=>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)),fmt=[hmt],mmt=L(()=>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)),gmt=[mmt],bmt={class:"mx-2 mb-4"},Emt=L(()=>c("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),ymt={class:"relative"},vmt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Smt={key:0},Tmt=L(()=>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)),xmt=[Tmt],Cmt={key:1},wmt=L(()=>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)),Rmt=[wmt],Amt={key:0,class:"mx-2 mb-4"},Nmt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Omt=["selected"],Imt={key:0,class:"mb-2"},Mmt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Dmt=L(()=>c("i",{"data-feather":"chevron-up"},null,-1)),kmt=[Dmt],Lmt=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Pmt=[Lmt],Umt={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Fmt={class:"flex flex-row"},Bmt=L(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Gmt=[Bmt],Vmt=L(()=>c("i",{"data-feather":"chevron-down"},null,-1)),zmt=[Vmt],Hmt=L(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),qmt={class:"m-2"},Ymt={class:"flex flex-row gap-2 items-center"},$mt=L(()=>c("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),Wmt={class:"m-2"},Kmt=L(()=>c("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),jmt={class:"m-2"},Qmt={class:"flex flex-col align-bottom"},Xmt={class:"relative"},Zmt=L(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),Jmt={class:"absolute right-0"},egt={class:"m-2"},tgt={class:"flex flex-col align-bottom"},ngt={class:"relative"},sgt=L(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),igt={class:"absolute right-0"},rgt={class:"m-2"},ogt={class:"flex flex-col align-bottom"},agt={class:"relative"},lgt=L(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),cgt={class:"absolute right-0"},dgt={class:"m-2"},ugt={class:"flex flex-col align-bottom"},pgt={class:"relative"},_gt=L(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),hgt={class:"absolute right-0"},fgt={class:"m-2"},mgt={class:"flex flex-col align-bottom"},ggt={class:"relative"},bgt=L(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),Egt={class:"absolute right-0"},ygt={class:"m-2"},vgt={class:"flex flex-col align-bottom"},Sgt={class:"relative"},Tgt=L(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),xgt={class:"absolute right-0"};function Cgt(n,e,t,s,i,r){const o=dt("Card"),a=dt("BindingEntry"),l=dt("RadioOptions"),u=dt("model-entry"),d=dt("personality-entry"),h=dt("AddModelDialog"),f=dt("ChoiceDialog");return C(),R(ze,null,[c("div",Dit,[c("div",kit,[i.showConfirmation?(C(),R("div",Lit,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=ae(_=>i.showConfirmation=!1,["stop"]))},Uit),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=ae(_=>r.save_configuration(),["stop"]))},Bit)])):G("",!0),i.showConfirmation?G("",!0):(C(),R("div",Git,[c("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=_=>r.reset_configuration())},zit),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]=ae(_=>i.all_collapsed=!i.all_collapsed,["stop"]))},qit)])),c("div",Yit,[c("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=_=>r.api_get_req("clear_uploads").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},Wit),c("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=_=>r.api_post_req("restart_program").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},jit),i.has_updates?(C(),R("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=_=>r.api_post_req("update_software").then(m=>{m.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},[Qit,Xit,Xe(" = ")])):G("",!0),c("div",Zit,[i.settingsChanged?(C(),R("div",Jit,[i.isLoading?G("",!0):(C(),R("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=ae(_=>r.applyConfiguration(),["stop"]))},trt)),i.isLoading?G("",!0):(C(),R("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=ae(_=>r.cancelConfiguration(),["stop"]))},srt))])):G("",!0),i.isLoading?(C(),R("div",irt,[c("p",null,se(i.loading_text),1),rrt,ort])):G("",!0)])])]),c("div",{class:Fe(i.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[c("div",art,[c("div",lrt,[c("button",{onClick:e[9]||(e[9]=ae(_=>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"},[B(c("div",null,drt,512),[[Ot,i.sc_collapsed]]),B(c("div",null,prt,512),[[Ot,!i.sc_collapsed]]),_rt,hrt,c("div",frt,[c("div",mrt,[c("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(C(),R("div",grt,[(C(!0),R(ze,null,st(r.vramUsage.gpus,_=>(C(),R("div",{class:"flex gap-2 items-center",key:_},[c("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,brt),c("h3",Ert,[c("div",null,se(r.computedFileSize(_.used_vram))+" / "+se(r.computedFileSize(_.total_vram))+" ("+se(_.percentage)+"%) ",1)])]))),128))])):G("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(C(),R("div",yrt,[c("div",vrt,[c("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,Srt),c("h3",Trt,[c("div",null,se(r.vramUsage.gpus.length)+"x ",1)])])])):G("",!0)]),xrt,c("h3",Crt,[c("div",null,se(r.ram_usage)+" / "+se(r.ram_total_space)+" ("+se(r.ram_percent_usage)+"%)",1)]),wrt,c("h3",Rrt,[c("div",null,se(r.disk_binding_models_usage)+" / "+se(r.disk_total_space)+" ("+se(r.disk_percent_usage)+"%)",1)])])])])]),c("div",{class:Fe([{hidden:i.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Art,[Nrt,c("div",Ort,[c("div",null,[Irt,Xe(se(r.ram_available_space),1)]),c("div",null,[Mrt,Xe(" "+se(r.ram_usage)+" / "+se(r.ram_total_space)+" ("+se(r.ram_percent_usage)+")% ",1)])]),c("div",Drt,[c("div",krt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt("width: "+r.ram_percent_usage+"%;")},null,4)])])]),c("div",Lrt,[Prt,c("div",Urt,[c("div",null,[Frt,Xe(se(r.disk_available_space),1)]),c("div",null,[Brt,Xe(" "+se(r.disk_binding_models_usage)+" / "+se(r.disk_total_space)+" ("+se(r.disk_percent_usage)+"%)",1)])]),c("div",Grt,[c("div",Vrt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(C(!0),R(ze,null,st(r.vramUsage.gpus,_=>(C(),R("div",{class:"mb-2",key:_},[c("label",zrt,[c("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,Hrt),Xe(" GPU usage: ")]),c("div",qrt,[c("div",null,[Yrt,Xe(se(_.gpu_model),1)]),c("div",null,[$rt,Xe(se(this.computedFileSize(_.available_space)),1)]),c("div",null,[Wrt,Xe(" "+se(this.computedFileSize(_.used_vram))+" / "+se(this.computedFileSize(_.total_vram))+" ("+se(_.percentage)+"%)",1)])]),c("div",Krt,[c("div",jrt,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt("width: "+_.percentage+"%;")},null,4)])])]))),128))],2)]),c("div",Qrt,[c("div",Xrt,[c("button",{onClick:e[10]||(e[10]=ae(_=>i.minconf_collapsed=!i.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[B(c("div",null,Jrt,512),[[Ot,i.minconf_collapsed]]),B(c("div",null,tot,512),[[Ot,!i.minconf_collapsed]]),not])]),c("div",{class:Fe([{hidden:i.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",sot,[_e(o,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",iot,[c("tr",null,[rot,c("td",null,[c("label",oot,[c("img",{src:r.configFile.app_custom_logo!=null&&r.configFile.app_custom_logo!=""?"/user_infos/"+r.configFile.app_custom_logo:i.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,aot)]),c("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[11]||(e[11]=(..._)=>r.uploadLogo&&r.uploadLogo(..._))},null,32)]),c("td",lot,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[12]||(e[12]=ae(_=>r.resetLogo(),["stop"]))},dot)])]),c("tr",null,[uot,c("td",pot,[c("div",_ot,[B(c("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[13]||(e[13]=_=>r.configFile.hardware_mode=_),onChange:e[14]||(e[14]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},Sot,544),[[qt,r.configFile.hardware_mode]])])])]),c("tr",null,[Tot,c("td",xot,[B(c("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[15]||(e[15]=_=>r.configFile.discussion_db_name=_),onChange:e[16]||(e[16]=_=>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),[[he,r.configFile.discussion_db_name]])])]),c("tr",null,[Cot,c("td",null,[c("div",wot,[B(c("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[17]||(e[17]=_=>r.configFile.copy_to_clipboard_add_all_details=_),onChange:e[18]||(e[18]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.copy_to_clipboard_add_all_details]])])])]),c("tr",null,[Rot,c("td",null,[c("div",Aot,[B(c("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[19]||(e[19]=_=>r.configFile.auto_show_browser=_),onChange:e[20]||(e[20]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.auto_show_browser]])])])]),c("tr",null,[Not,c("td",null,[c("div",Oot,[B(c("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[21]||(e[21]=_=>r.configFile.debug=_),onChange:e[22]||(e[22]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.debug]])])])]),c("tr",null,[Iot,c("td",null,[c("div",Mot,[B(c("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[23]||(e[23]=_=>r.configFile.debug_show_final_full_prompt=_),onChange:e[24]||(e[24]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.debug_show_final_full_prompt]])])])]),c("tr",null,[Dot,c("td",null,[c("div",kot,[B(c("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[25]||(e[25]=_=>r.configFile.debug_show_chunks=_),onChange:e[26]||(e[26]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.debug_show_chunks]])])])]),c("tr",null,[Lot,c("td",null,[c("div",Pot,[B(c("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[27]||(e[27]=_=>r.configFile.debug_log_file_path=_),onChange:e[28]||(e[28]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.debug_log_file_path]])])])]),c("tr",null,[Uot,c("td",null,[c("div",Fot,[B(c("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[29]||(e[29]=_=>r.configFile.show_news_panel=_),onChange:e[30]||(e[30]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.show_news_panel]])])])]),c("tr",null,[Bot,c("td",null,[c("div",Got,[B(c("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[31]||(e[31]=_=>r.configFile.auto_save=_),onChange:e[32]||(e[32]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.auto_save]])])])]),c("tr",null,[Vot,c("td",null,[c("div",zot,[B(c("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[33]||(e[33]=_=>r.configFile.auto_update=_),onChange:e[34]||(e[34]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.auto_update]])])])]),c("tr",null,[Hot,c("td",null,[c("div",qot,[B(c("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[35]||(e[35]=_=>r.configFile.auto_title=_),onChange:e[36]||(e[36]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.auto_title]])])])])])]),_:1}),_e(o,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Yot,[c("tr",null,[$ot,c("td",null,[c("select",{onChange:e[37]||(e[37]=(..._)=>r.handleTemplateSelection&&r.handleTemplateSelection(..._))},Xot,32)])]),c("tr",null,[Zot,c("td",null,[B(c("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[38]||(e[38]=_=>r.configFile.start_header_id_template=_),onChange:e[39]||(e[39]=_=>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),[[he,r.configFile.start_header_id_template]])])]),c("tr",null,[Jot,c("td",null,[B(c("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[40]||(e[40]=_=>r.configFile.end_header_id_template=_),onChange:e[41]||(e[41]=_=>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),[[he,r.configFile.end_header_id_template]])])]),c("tr",null,[eat,c("td",null,[B(c("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[42]||(e[42]=_=>r.configFile.start_user_header_id_template=_),onChange:e[43]||(e[43]=_=>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),[[he,r.configFile.start_user_header_id_template]])])]),c("tr",null,[tat,c("td",null,[B(c("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[44]||(e[44]=_=>r.configFile.end_user_header_id_template=_),onChange:e[45]||(e[45]=_=>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),[[he,r.configFile.end_user_header_id_template]])])]),c("tr",null,[nat,c("td",null,[B(c("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[46]||(e[46]=_=>r.configFile.end_user_message_id_template=_),onChange:e[47]||(e[47]=_=>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),[[he,r.configFile.end_user_message_id_template]])])]),c("tr",null,[sat,c("td",null,[B(c("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[48]||(e[48]=_=>r.configFile.start_ai_header_id_template=_),onChange:e[49]||(e[49]=_=>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),[[he,r.configFile.start_ai_header_id_template]])])]),c("tr",null,[iat,c("td",null,[B(c("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[50]||(e[50]=_=>r.configFile.end_ai_header_id_template=_),onChange:e[51]||(e[51]=_=>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),[[he,r.configFile.end_ai_header_id_template]])])]),c("tr",null,[rat,c("td",null,[B(c("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[52]||(e[52]=_=>r.configFile.end_ai_message_id_template=_),onChange:e[53]||(e[53]=_=>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),[[he,r.configFile.end_ai_message_id_template]])])]),c("tr",null,[oat,c("td",null,[B(c("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[54]||(e[54]=_=>r.configFile.separator_template=_),onChange:e[55]||(e[55]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.separator_template]])])]),c("tr",null,[aat,c("td",null,[B(c("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[56]||(e[56]=_=>r.configFile.system_message_template=_),onChange:e[57]||(e[57]=_=>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),[[he,r.configFile.system_message_template]])])]),c("tr",null,[lat,c("td",null,[c("div",{innerHTML:r.full_template},null,8,cat)])]),c("tr",null,[dat,c("td",uat,[B(c("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[58]||(e[58]=_=>r.configFile.use_continue_message=_),onChange:e[59]||(e[59]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.use_continue_message]])])])])]),_:1}),_e(o,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",pat,[c("tr",null,[_at,c("td",hat,[B(c("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[60]||(e[60]=_=>r.configFile.user_name=_),onChange:e[61]||(e[61]=_=>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),[[he,r.configFile.user_name]])])]),c("tr",null,[fat,c("td",mat,[B(c("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[62]||(e[62]=_=>r.configFile.user_description=_),onChange:e[63]||(e[63]=_=>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),[[he,r.configFile.user_description]])])]),c("tr",null,[gat,c("td",bat,[B(c("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[64]||(e[64]=_=>r.configFile.use_user_informations_in_discussion=_),onChange:e[65]||(e[65]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.use_user_informations_in_discussion]])])]),c("tr",null,[Eat,c("td",yat,[B(c("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[66]||(e[66]=_=>r.configFile.use_model_name_in_discussions=_),onChange:e[67]||(e[67]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.use_model_name_in_discussions]])])]),c("tr",null,[vat,c("td",null,[c("label",Sat,[c("img",{src:r.configFile.user_avatar!=null&&r.configFile.user_avatar!=""?"/user_infos/"+r.configFile.user_avatar:i.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Tat)]),c("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[68]||(e[68]=(..._)=>r.uploadAvatar&&r.uploadAvatar(..._))},null,32)]),c("td",xat,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[69]||(e[69]=ae(_=>r.resetAvatar(),["stop"]))},wat)])]),c("tr",null,[Rat,c("td",null,[c("div",Aat,[B(c("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[70]||(e[70]=_=>r.configFile.use_user_name_in_discussions=_),onChange:e[71]||(e[71]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.use_user_name_in_discussions]])])])]),c("tr",null,[Nat,c("td",Oat,[B(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[72]||(e[72]=_=>r.configFile.max_n_predict=_),onChange:e[73]||(e[73]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.max_n_predict]])])]),c("tr",null,[Iat,c("td",Mat,[B(c("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[74]||(e[74]=_=>r.configFile.max_n_predict=_),onChange:e[75]||(e[75]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.max_n_predict]])])])])]),_:1}),_e(o,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Dat,[c("tr",null,[kat,c("td",Lat,[B(c("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[76]||(e[76]=_=>r.configFile.turn_on_code_execution=_),onChange:e[77]||(e[77]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.turn_on_code_execution]])])]),c("tr",null,[Pat,c("td",Uat,[B(c("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[78]||(e[78]=_=>r.configFile.turn_on_code_validation=_),onChange:e[79]||(e[79]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.turn_on_code_validation]])])]),c("tr",null,[Fat,c("td",Bat,[B(c("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[80]||(e[80]=_=>r.configFile.turn_on_setting_update_validation=_),onChange:e[81]||(e[81]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.turn_on_setting_update_validation]])])]),c("tr",null,[Gat,c("td",Vat,[B(c("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[82]||(e[82]=_=>r.configFile.turn_on_open_file_validation=_),onChange:e[83]||(e[83]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.turn_on_open_file_validation]])])]),c("tr",null,[zat,c("td",Hat,[B(c("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[84]||(e[84]=_=>r.configFile.turn_on_send_file_validation=_),onChange:e[85]||(e[85]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.turn_on_send_file_validation]])])])])]),_:1}),_e(o,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",qat,[c("tr",null,[Yat,c("td",null,[c("div",$at,[B(c("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[86]||(e[86]=_=>r.configFile.activate_skills_lib=_),onChange:e[87]||(e[87]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.activate_skills_lib]])])])]),c("tr",null,[Wat,c("td",Kat,[B(c("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[88]||(e[88]=_=>r.configFile.skills_lib_database_name=_),onChange:e[89]||(e[89]=_=>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),[[he,r.configFile.skills_lib_database_name]])])])])]),_:1}),_e(o,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",jat,[c("tr",null,[Qat,c("td",null,[c("div",Xat,[B(c("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[90]||(e[90]=_=>r.configFile.pdf_latex_path=_),onChange:e[91]||(e[91]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.pdf_latex_path]])])])])])]),_:1}),_e(o,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Zat,[c("tr",null,[Jat,c("td",null,[c("div",elt,[B(c("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[92]||(e[92]=_=>r.configFile.positive_boost=_),onChange:e[93]||(e[93]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.positive_boost]])])])]),c("tr",null,[tlt,c("td",null,[c("div",nlt,[B(c("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[94]||(e[94]=_=>r.configFile.negative_boost=_),onChange:e[95]||(e[95]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.negative_boost]])])])]),c("tr",null,[slt,c("td",null,[c("div",ilt,[B(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[96]||(e[96]=_=>r.configFile.fun_mode=_),onChange:e[97]||(e[97]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.fun_mode]])])])])])]),_:1})])],2)]),c("div",rlt,[c("div",olt,[c("button",{onClick:e[98]||(e[98]=ae(_=>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"},[B(c("div",null,llt,512),[[Ot,i.data_conf_collapsed]]),B(c("div",null,dlt,512),[[Ot,!i.data_conf_collapsed]]),ult])]),c("div",{class:Fe([{hidden:i.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_e(o,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",plt,[c("tr",null,[_lt,c("td",hlt,[(C(!0),R(ze,null,st(r.configFile.rag_databases,(_,m)=>(C(),R("div",{key:m,class:"flex items-center mb-2"},[B(c("input",{type:"text","onUpdate:modelValue":E=>r.configFile.rag_databases[m]=E,onChange:e[99]||(e[99]=E=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,flt),[[he,r.configFile.rag_databases[m]]]),c("button",{onClick:E=>r.vectorize_folder(m),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,mlt),c("button",{onClick:E=>r.select_folder(m),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,glt),c("button",{onClick:E=>r.removeDataSource(m),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,blt)]))),128)),c("button",{onClick:e[100]||(e[100]=(..._)=>r.addDataSource&&r.addDataSource(..._)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),c("tr",null,[Elt,c("td",null,[B(c("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[101]||(e[101]=_=>r.configFile.rag_vectorizer=_),onChange:e[102]||(e[102]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Tlt,544),[[qt,r.configFile.rag_vectorizer]])])]),c("tr",null,[xlt,c("td",null,[B(c("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[103]||(e[103]=_=>r.configFile.rag_vectorizer_model=_),onChange:e[104]||(e[104]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},wlt,544),[[qt,r.configFile.rag_vectorizer_model]])])]),c("tr",null,[Rlt,c("td",null,[B(c("input",{id:"rag_chunk_size","onUpdate:modelValue":e[105]||(e[105]=_=>r.configFile.rag_chunk_size=_),onChange:e[106]||(e[106]=_=>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),[[he,r.configFile.rag_chunk_size]]),B(c("input",{"onUpdate:modelValue":e[107]||(e[107]=_=>r.configFile.rag_chunk_size=_),type:"number",onChange:e[108]||(e[108]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.rag_chunk_size]])])]),c("tr",null,[Alt,c("td",null,[B(c("input",{id:"rag_overlap","onUpdate:modelValue":e[109]||(e[109]=_=>r.configFile.rag_overlap=_),onChange:e[110]||(e[110]=_=>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),[[he,r.configFile.rag_overlap]]),B(c("input",{"onUpdate:modelValue":e[111]||(e[111]=_=>r.configFile.rag_overlap=_),type:"number",onChange:e[112]||(e[112]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.rag_overlap]])])]),c("tr",null,[Nlt,c("td",null,[B(c("input",{id:"rag_n_chunks","onUpdate:modelValue":e[113]||(e[113]=_=>r.configFile.rag_n_chunks=_),onChange:e[114]||(e[114]=_=>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),[[he,r.configFile.rag_n_chunks]]),B(c("input",{"onUpdate:modelValue":e[115]||(e[115]=_=>r.configFile.rag_n_chunks=_),type:"number",onChange:e[116]||(e[116]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.rag_n_chunks]])])]),c("tr",null,[Olt,c("td",null,[B(c("input",{"onUpdate:modelValue":e[117]||(e[117]=_=>r.configFile.rag_clean_chunks=_),type:"checkbox",onChange:e[118]||(e[118]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.rag_clean_chunks]])])]),c("tr",null,[Ilt,c("td",null,[B(c("input",{"onUpdate:modelValue":e[119]||(e[119]=_=>r.configFile.rag_follow_subfolders=_),type:"checkbox",onChange:e[120]||(e[120]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.rag_follow_subfolders]])])]),c("tr",null,[Mlt,c("td",null,[B(c("input",{"onUpdate:modelValue":e[121]||(e[121]=_=>r.configFile.rag_check_new_files_at_startup=_),type:"checkbox",onChange:e[122]||(e[122]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.rag_check_new_files_at_startup]])])]),c("tr",null,[Dlt,c("td",null,[B(c("input",{"onUpdate:modelValue":e[123]||(e[123]=_=>r.configFile.rag_preprocess_chunks=_),type:"checkbox",onChange:e[124]||(e[124]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.rag_preprocess_chunks]])])]),c("tr",null,[klt,c("td",null,[B(c("input",{"onUpdate:modelValue":e[125]||(e[125]=_=>r.configFile.rag_activate_multi_hops=_),type:"checkbox",onChange:e[126]||(e[126]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.rag_activate_multi_hops]])])]),c("tr",null,[Llt,c("td",null,[B(c("input",{"onUpdate:modelValue":e[127]||(e[127]=_=>r.configFile.contextual_summary=_),type:"checkbox",onChange:e[128]||(e[128]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.contextual_summary]])])])])]),_:1}),_e(o,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Plt,[c("tr",null,[Ult,c("td",null,[c("div",Flt,[B(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[129]||(e[129]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[130]||(e[130]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.data_vectorization_save_db]])])])]),c("tr",null,[Blt,c("td",null,[c("div",Glt,[B(c("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[131]||(e[131]=_=>r.configFile.data_vectorization_visualize_on_vectorization=_),onChange:e[132]||(e[132]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),c("tr",null,[Vlt,c("td",null,[c("div",zlt,[B(c("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[133]||(e[133]=_=>r.configFile.data_vectorization_build_keys_words=_),onChange:e[134]||(e[134]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.data_vectorization_build_keys_words]])])])]),c("tr",null,[Hlt,c("td",null,[c("div",qlt,[B(c("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[135]||(e[135]=_=>r.configFile.data_vectorization_force_first_chunk=_),onChange:e[136]||(e[136]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.data_vectorization_force_first_chunk]])])])]),c("tr",null,[Ylt,c("td",null,[c("div",$lt,[B(c("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[137]||(e[137]=_=>r.configFile.data_vectorization_put_chunk_informations_into_context=_),onChange:e[138]||(e[138]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),c("tr",null,[Wlt,c("td",null,[B(c("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[139]||(e[139]=_=>r.configFile.data_vectorization_method=_),onChange:e[140]||(e[140]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Zlt,544),[[qt,r.configFile.data_vectorization_method]])])]),c("tr",null,[Jlt,c("td",ect,[B(c("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[141]||(e[141]=_=>r.configFile.data_vectorization_sentense_transformer_model=_),onChange:e[142]||(e[142]=_=>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),[[he,r.configFile.data_vectorization_sentense_transformer_model]])])]),c("tr",null,[tct,c("td",null,[B(c("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[143]||(e[143]=_=>r.configFile.data_visualization_method=_),onChange:e[144]||(e[144]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},ict,544),[[qt,r.configFile.data_visualization_method]])])]),c("tr",null,[rct,c("td",null,[c("div",oct,[B(c("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[145]||(e[145]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[146]||(e[146]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.data_vectorization_save_db]])])])]),c("tr",null,[act,c("td",null,[B(c("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[147]||(e[147]=_=>r.configFile.data_vectorization_chunk_size=_),onChange:e[148]||(e[148]=_=>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),[[he,r.configFile.data_vectorization_chunk_size]]),B(c("input",{"onUpdate:modelValue":e[149]||(e[149]=_=>r.configFile.data_vectorization_chunk_size=_),type:"number",onChange:e[150]||(e[150]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.data_vectorization_chunk_size]])])]),c("tr",null,[lct,c("td",null,[B(c("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[151]||(e[151]=_=>r.configFile.data_vectorization_overlap_size=_),onChange:e[152]||(e[152]=_=>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),[[he,r.configFile.data_vectorization_overlap_size]]),B(c("input",{"onUpdate:modelValue":e[153]||(e[153]=_=>r.configFile.data_vectorization_overlap_size=_),type:"number",onChange:e[154]||(e[154]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.data_vectorization_overlap_size]])])]),c("tr",null,[cct,c("td",null,[B(c("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[155]||(e[155]=_=>r.configFile.data_vectorization_nb_chunks=_),onChange:e[156]||(e[156]=_=>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),[[he,r.configFile.data_vectorization_nb_chunks]]),B(c("input",{"onUpdate:modelValue":e[157]||(e[157]=_=>r.configFile.data_vectorization_nb_chunks=_),type:"number",onChange:e[158]||(e[158]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),c("div",dct,[c("div",uct,[c("button",{onClick:e[159]||(e[159]=ae(_=>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"},[B(c("div",null,_ct,512),[[Ot,i.internet_conf_collapsed]]),B(c("div",null,fct,512),[[Ot,!i.internet_conf_collapsed]]),mct])]),c("div",{class:Fe([{hidden:i.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_e(o,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",gct,[c("tr",null,[bct,c("td",null,[c("div",Ect,[B(c("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[160]||(e[160]=_=>r.configFile.activate_internet_search=_),onChange:e[161]||(e[161]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.activate_internet_search]])])])]),c("tr",null,[yct,c("td",null,[c("div",vct,[B(c("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[162]||(e[162]=_=>r.configFile.activate_internet_pages_judgement=_),onChange:e[163]||(e[163]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.activate_internet_pages_judgement]])])])]),c("tr",null,[Sct,c("td",null,[c("div",Tct,[B(c("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[164]||(e[164]=_=>r.configFile.internet_quick_search=_),onChange:e[165]||(e[165]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.internet_quick_search]])])])]),c("tr",null,[xct,c("td",null,[c("div",Cct,[B(c("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[166]||(e[166]=_=>r.configFile.internet_activate_search_decision=_),onChange:e[167]||(e[167]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.internet_activate_search_decision]])])])]),c("tr",null,[wct,c("td",null,[c("div",Rct,[B(c("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[168]||(e[168]=_=>r.configFile.internet_vectorization_chunk_size=_),onChange:e[169]||(e[169]=_=>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),[[he,r.configFile.internet_vectorization_chunk_size]]),B(c("input",{"onUpdate:modelValue":e[170]||(e[170]=_=>r.configFile.internet_vectorization_chunk_size=_),type:"number",onChange:e[171]||(e[171]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.internet_vectorization_chunk_size]])])])]),c("tr",null,[Act,c("td",null,[c("div",Nct,[B(c("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[172]||(e[172]=_=>r.configFile.internet_vectorization_overlap_size=_),onChange:e[173]||(e[173]=_=>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),[[he,r.configFile.internet_vectorization_overlap_size]]),B(c("input",{"onUpdate:modelValue":e[174]||(e[174]=_=>r.configFile.internet_vectorization_overlap_size=_),type:"number",onChange:e[175]||(e[175]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.internet_vectorization_overlap_size]])])])]),c("tr",null,[Oct,c("td",null,[c("div",Ict,[B(c("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[176]||(e[176]=_=>r.configFile.internet_vectorization_nb_chunks=_),onChange:e[177]||(e[177]=_=>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),[[he,r.configFile.internet_vectorization_nb_chunks]]),B(c("input",{"onUpdate:modelValue":e[178]||(e[178]=_=>r.configFile.internet_vectorization_nb_chunks=_),type:"number",onChange:e[179]||(e[179]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.internet_vectorization_nb_chunks]])])])]),c("tr",null,[Mct,c("td",null,[c("div",Dct,[B(c("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[180]||(e[180]=_=>r.configFile.internet_nb_search_pages=_),onChange:e[181]||(e[181]=_=>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),[[he,r.configFile.internet_nb_search_pages]]),B(c("input",{"onUpdate:modelValue":e[182]||(e[182]=_=>r.configFile.internet_nb_search_pages=_),type:"number",onChange:e[183]||(e[183]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),c("div",kct,[c("div",Lct,[c("button",{onClick:e[184]||(e[184]=ae(_=>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"},[B(c("div",null,Uct,512),[[Ot,i.servers_conf_collapsed]]),B(c("div",null,Bct,512),[[Ot,!i.servers_conf_collapsed]]),Gct])]),c("div",{class:Fe([{hidden:i.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_e(o,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Vct,[c("tr",null,[zct,c("td",Hct,[B(c("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[185]||(e[185]=_=>r.configFile.active_tts_service=_),onChange:e[186]||(e[186]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Kct,544),[[qt,r.configFile.active_tts_service]])])]),c("tr",null,[jct,c("td",Qct,[B(c("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[187]||(e[187]=_=>r.configFile.active_stt_service=_),onChange:e[188]||(e[188]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},edt,544),[[qt,r.configFile.active_stt_service]])])]),tdt,c("tr",null,[ndt,c("td",sdt,[B(c("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[189]||(e[189]=_=>r.configFile.active_tti_service=_),onChange:e[190]||(e[190]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},udt,544),[[qt,r.configFile.active_tti_service]])])]),c("tr",null,[pdt,c("td",_dt,[B(c("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[191]||(e[191]=_=>r.configFile.active_ttm_service=_),onChange:e[192]||(e[192]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},mdt,544),[[qt,r.configFile.active_ttm_service]])])])])]),_:1}),_e(o,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",gdt,[c("tr",null,[bdt,c("td",null,[c("div",Edt,[B(c("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[193]||(e[193]=_=>r.configFile.use_negative_prompt=_),onChange:e[194]||(e[194]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.use_negative_prompt]])])])]),c("tr",null,[ydt,c("td",null,[c("div",vdt,[B(c("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[195]||(e[195]=_=>r.configFile.use_ai_generated_negative_prompt=_),onChange:e[196]||(e[196]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.use_ai_generated_negative_prompt]])])])]),c("tr",null,[Sdt,c("td",null,[c("div",Tdt,[B(c("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[197]||(e[197]=_=>r.configFile.negative_prompt_generation_prompt=_),onChange:e[198]||(e[198]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.negative_prompt_generation_prompt]])])])]),c("tr",null,[xdt,c("td",null,[c("div",Cdt,[B(c("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[199]||(e[199]=_=>r.configFile.default_negative_prompt=_),onChange:e[200]||(e[200]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.default_negative_prompt]])])])])])]),_:1}),_e(o,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",wdt,[c("tr",null,[Rdt,c("td",Adt,[B(c("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[201]||(e[201]=_=>r.configFile.stt_listening_threshold=_),onChange:e[202]||(e[202]=_=>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),[[he,r.configFile.stt_listening_threshold]])])]),c("tr",null,[Ndt,c("td",Odt,[B(c("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[203]||(e[203]=_=>r.configFile.stt_silence_duration=_),onChange:e[204]||(e[204]=_=>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),[[he,r.configFile.stt_silence_duration]])])]),c("tr",null,[Idt,c("td",Mdt,[B(c("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[205]||(e[205]=_=>r.configFile.stt_sound_threshold_percentage=_),onChange:e[206]||(e[206]=_=>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),[[he,r.configFile.stt_sound_threshold_percentage]])])]),c("tr",null,[Ddt,c("td",kdt,[B(c("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[207]||(e[207]=_=>r.configFile.stt_gain=_),onChange:e[208]||(e[208]=_=>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),[[he,r.configFile.stt_gain]])])]),c("tr",null,[Ldt,c("td",Pdt,[B(c("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[209]||(e[209]=_=>r.configFile.stt_rate=_),onChange:e[210]||(e[210]=_=>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),[[he,r.configFile.stt_rate]])])]),c("tr",null,[Udt,c("td",Fdt,[B(c("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[211]||(e[211]=_=>r.configFile.stt_channels=_),onChange:e[212]||(e[212]=_=>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),[[he,r.configFile.stt_channels]])])]),c("tr",null,[Bdt,c("td",Gdt,[B(c("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[213]||(e[213]=_=>r.configFile.stt_buffer_size=_),onChange:e[214]||(e[214]=_=>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),[[he,r.configFile.stt_buffer_size]])])]),c("tr",null,[Vdt,c("td",null,[c("div",zdt,[B(c("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[215]||(e[215]=_=>r.configFile.stt_activate_word_detection=_),onChange:e[216]||(e[216]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.stt_activate_word_detection]])])])]),c("tr",null,[Hdt,c("td",null,[c("div",qdt,[B(c("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[217]||(e[217]=_=>r.configFile.stt_word_detection_file=_),onChange:e[218]||(e[218]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.stt_word_detection_file]])])])])])]),_:1}),_e(o,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Ydt,[c("tr",null,[$dt,c("td",Wdt,[B(c("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[219]||(e[219]=_=>r.configFile.stt_input_device=_),onChange:e[220]||(e[220]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(C(!0),R(ze,null,st(i.snd_input_devices,(_,m)=>(C(),R("option",{key:_,value:i.snd_input_devices_indexes[m]},se(_),9,Kdt))),128))],544),[[qt,r.configFile.stt_input_device]])])]),c("tr",null,[jdt,c("td",Qdt,[B(c("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[221]||(e[221]=_=>r.configFile.tts_output_device=_),onChange:e[222]||(e[222]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(C(!0),R(ze,null,st(i.snd_output_devices,(_,m)=>(C(),R("option",{key:_,value:i.snd_output_devices_indexes[m]},se(_),9,Xdt))),128))],544),[[qt,r.configFile.tts_output_device]])])])])]),_:1}),_e(o,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Zdt,[c("tr",null,[Jdt,c("td",eut,[B(c("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[223]||(e[223]=_=>r.configFile.host=_),onChange:e[224]||(e[224]=_=>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),[[he,r.configFile.host]])])]),c("tr",null,[tut,c("td",nut,[B(c("input",{type:"text",id:"lollms_access_keys",required:"","onUpdate:modelValue":e[225]||(e[225]=_=>r.configFile.lollms_access_keys=_),onChange:e[226]||(e[226]=_=>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),[[he,r.configFile.lollms_access_keys]])])]),c("tr",null,[sut,c("td",iut,[B(c("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[227]||(e[227]=_=>r.configFile.port=_),onChange:e[228]||(e[228]=_=>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),[[he,r.configFile.port]])])]),c("tr",null,[rut,c("td",out,[B(c("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[229]||(e[229]=_=>r.configFile.headless_server_mode=_),onChange:e[230]||(e[230]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ke,r.configFile.headless_server_mode]])])]),c("tr",null,[aut,c("td",lut,[B(c("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[231]||(e[231]=_=>r.configFile.activate_lollms_server=_),onChange:e[232]||(e[232]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ke,r.configFile.activate_lollms_server]])])]),c("tr",null,[cut,c("td",dut,[B(c("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[233]||(e[233]=_=>r.configFile.activate_ollama_emulator=_),onChange:e[234]||(e[234]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ke,r.configFile.activate_ollama_emulator]])])]),c("tr",null,[uut,c("td",put,[B(c("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[235]||(e[235]=_=>r.configFile.activate_openai_emulator=_),onChange:e[236]||(e[236]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ke,r.configFile.activate_openai_emulator]])])]),c("tr",null,[_ut,c("td",hut,[B(c("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[237]||(e[237]=_=>r.configFile.activate_mistralai_emulator=_),onChange:e[238]||(e[238]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[Ke,r.configFile.activate_mistralai_emulator]])])])])]),_:1}),_e(o,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[_e(o,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",fut,[c("tr",null,[mut,c("td",null,[c("div",gut,[B(c("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[239]||(e[239]=_=>r.configFile.activate_audio_infos=_),onChange:e[240]||(e[240]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.activate_audio_infos]])])])]),c("tr",null,[but,c("td",null,[c("div",Eut,[B(c("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[241]||(e[241]=_=>r.configFile.audio_auto_send_input=_),onChange:e[242]||(e[242]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.audio_auto_send_input]])])])]),c("tr",null,[yut,c("td",null,[B(c("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[243]||(e[243]=_=>r.configFile.audio_silenceTimer=_),onChange:e[244]||(e[244]=_=>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),[[he,r.configFile.audio_silenceTimer]]),B(c("input",{"onUpdate:modelValue":e[245]||(e[245]=_=>r.configFile.audio_silenceTimer=_),onChange:e[246]||(e[246]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.audio_silenceTimer]])])]),c("tr",null,[vut,c("td",null,[B(c("select",{id:"audio_in_language","onUpdate:modelValue":e[247]||(e[247]=_=>r.configFile.audio_in_language=_),onChange:e[248]||(e[248]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(C(!0),R(ze,null,st(r.audioLanguages,_=>(C(),R("option",{key:_.code,value:_.code},se(_.name),9,Sut))),128))],544),[[qt,r.configFile.audio_in_language]])])])])]),_:1}),_e(o,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Tut,[c("tr",null,[xut,c("td",null,[c("div",Cut,[B(c("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[249]||(e[249]=_=>r.configFile.whisper_activate=_),onChange:e[250]||(e[250]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.whisper_activate]])])])]),c("tr",null,[wut,c("td",null,[c("div",Rut,[B(c("select",{id:"whisper_model","onUpdate:modelValue":e[251]||(e[251]=_=>r.configFile.whisper_model=_),onChange:e[252]||(e[252]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(C(!0),R(ze,null,st(r.whisperModels,_=>(C(),R("option",{key:_,value:_},se(_),9,Aut))),128))],544),[[qt,r.configFile.whisper_model]])])])])])]),_:1}),_e(o,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Nut,[c("tr",null,[Out,c("td",null,[c("div",Iut,[B(c("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[253]||(e[253]=_=>r.configFile.openai_whisper_key=_),onChange:e[254]||(e[254]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.openai_whisper_key]])])])]),c("tr",null,[Mut,c("td",null,[c("div",Dut,[B(c("select",{id:"openai_whisper_model","onUpdate:modelValue":e[255]||(e[255]=_=>r.configFile.openai_whisper_model=_),onChange:e[256]||(e[256]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(C(!0),R(ze,null,st(r.openaiWhisperModels,_=>(C(),R("option",{key:_,value:_},se(_),9,kut))),128))],544),[[qt,r.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),_e(o,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[_e(o,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Lut,[c("tr",null,[Put,c("td",null,[c("div",Uut,[B(c("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[257]||(e[257]=_=>r.configFile.auto_speak=_),onChange:e[258]||(e[258]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.auto_speak]])])])]),c("tr",null,[Fut,c("td",null,[B(c("input",{id:"audio_pitch","onUpdate:modelValue":e[259]||(e[259]=_=>r.configFile.audio_pitch=_),onChange:e[260]||(e[260]=_=>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),[[he,r.configFile.audio_pitch]]),B(c("input",{"onUpdate:modelValue":e[261]||(e[261]=_=>r.configFile.audio_pitch=_),onChange:e[262]||(e[262]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.audio_pitch]])])]),c("tr",null,[But,c("td",null,[B(c("select",{id:"audio_out_voice","onUpdate:modelValue":e[263]||(e[263]=_=>r.configFile.audio_out_voice=_),onChange:e[264]||(e[264]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(C(!0),R(ze,null,st(i.audioVoices,_=>(C(),R("option",{key:_.name,value:_.name},se(_.name),9,Gut))),128))],544),[[qt,r.configFile.audio_out_voice]])])])])]),_:1}),_e(o,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Vut,[c("tr",null,[zut,c("td",null,[c("div",Hut,[B(c("select",{"onUpdate:modelValue":e[265]||(e[265]=_=>r.xtts_current_language=_),onChange:e[266]||(e[266]=_=>i.settingsChanged=!0)},[(C(!0),R(ze,null,st(i.voice_languages,(_,m)=>(C(),R("option",{key:m,value:_},se(m),9,qut))),128))],544),[[qt,r.xtts_current_language]])])])]),c("tr",null,[Yut,c("td",null,[c("div",$ut,[B(c("select",{"onUpdate:modelValue":e[267]||(e[267]=_=>r.xtts_current_voice=_),onChange:e[268]||(e[268]=_=>i.settingsChanged=!0)},[(C(!0),R(ze,null,st(i.voices,_=>(C(),R("option",{key:_,value:_},se(_),9,Wut))),128))],544),[[qt,r.xtts_current_voice]])])])]),c("tr",null,[Kut,c("td",null,[c("div",jut,[B(c("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[269]||(e[269]=_=>r.configFile.xtts_freq=_),onChange:e[270]||(e[270]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[he,r.configFile.xtts_freq,void 0,{number:!0}]])])])]),c("tr",null,[Qut,c("td",null,[c("div",Xut,[B(c("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[271]||(e[271]=_=>r.configFile.auto_read=_),onChange:e[272]||(e[272]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.auto_read]])])])]),c("tr",null,[Zut,c("td",null,[c("div",Jut,[B(c("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[273]||(e[273]=_=>r.configFile.xtts_stream_chunk_size=_),onChange:e[274]||(e[274]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.xtts_stream_chunk_size]])])])]),c("tr",null,[ept,c("td",null,[c("div",tpt,[B(c("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[275]||(e[275]=_=>r.configFile.xtts_temperature=_),onChange:e[276]||(e[276]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[he,r.configFile.xtts_temperature,void 0,{number:!0}]])])])]),c("tr",null,[npt,c("td",null,[c("div",spt,[B(c("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[277]||(e[277]=_=>r.configFile.xtts_length_penalty=_),onChange:e[278]||(e[278]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[he,r.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),c("tr",null,[ipt,c("td",null,[c("div",rpt,[B(c("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[279]||(e[279]=_=>r.configFile.xtts_repetition_penalty=_),onChange:e[280]||(e[280]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[he,r.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),c("tr",null,[opt,c("td",null,[c("div",apt,[B(c("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[281]||(e[281]=_=>r.configFile.xtts_top_k=_),onChange:e[282]||(e[282]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.xtts_top_k,void 0,{number:!0}]])])])]),c("tr",null,[lpt,c("td",null,[c("div",cpt,[B(c("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[283]||(e[283]=_=>r.configFile.xtts_top_p=_),onChange:e[284]||(e[284]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.xtts_top_p,void 0,{number:!0}]])])])]),c("tr",null,[dpt,c("td",null,[c("div",upt,[B(c("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[285]||(e[285]=_=>r.configFile.xtts_speed=_),onChange:e[286]||(e[286]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[he,r.configFile.xtts_speed,void 0,{number:!0}]])])])]),c("tr",null,[ppt,c("td",null,[c("div",_pt,[B(c("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[287]||(e[287]=_=>r.configFile.enable_text_splitting=_),onChange:e[288]||(e[288]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.enable_text_splitting]])])])])])]),_:1}),_e(o,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",hpt,[c("tr",null,[fpt,c("td",null,[c("div",mpt,[B(c("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[289]||(e[289]=_=>r.configFile.openai_tts_key=_),onChange:e[290]||(e[290]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.openai_tts_key]])])])]),c("tr",null,[gpt,c("td",null,[c("div",bpt,[B(c("select",{"onUpdate:modelValue":e[291]||(e[291]=_=>r.configFile.openai_tts_model=_),onChange:e[292]||(e[292]=_=>i.settingsChanged=!0)},vpt,544),[[qt,r.configFile.openai_tts_model]])])])]),c("tr",null,[Spt,c("td",null,[c("div",Tpt,[B(c("select",{"onUpdate:modelValue":e[293]||(e[293]=_=>r.configFile.openai_tts_voice=_),onChange:e[294]||(e[294]=_=>i.settingsChanged=!0)},Npt,544),[[qt,r.configFile.openai_tts_voice]])])])])])]),_:1})]),_:1}),_e(o,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[_e(o,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Opt,[c("tr",null,[Ipt,c("td",null,[c("div",Mpt,[B(c("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[295]||(e[295]=_=>r.configFile.enable_sd_service=_),onChange:e[296]||(e[296]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.enable_sd_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[297]||(e[297]=_=>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"))},kpt)])]),c("tr",null,[Lpt,c("td",null,[c("div",Ppt,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[298]||(e[298]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[299]||(e[299]=(..._)=>r.upgradeSDService&&r.upgradeSDService(..._))},"upgrade sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[300]||(e[300]=(..._)=>r.startSDService&&r.startSDService(..._))},"start sd service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[301]||(e[301]=(..._)=>r.showSD&&r.showSD(..._))},"show sd ui"),Upt])]),c("td",null,[c("div",Fpt,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[302]||(e[302]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service")])])]),c("tr",null,[Bpt,c("td",null,[c("div",Gpt,[B(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[303]||(e[303]=_=>r.configFile.sd_base_url=_),onChange:e[304]||(e[304]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.sd_base_url]])])])])])]),_:1}),_e(o,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Vpt,[c("tr",null,[zpt,c("td",null,[c("div",Hpt,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[305]||(e[305]=(..._)=>r.reinstallDiffusersService&&r.reinstallDiffusersService(..._))},"install diffusers service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[306]||(e[306]=(..._)=>r.upgradeDiffusersService&&r.upgradeDiffusersService(..._))},"upgrade diffusers service"),qpt])])]),c("tr",null,[Ypt,c("td",null,[c("div",$pt,[B(c("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[307]||(e[307]=_=>r.configFile.diffusers_model=_),onChange:e[308]||(e[308]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.diffusers_model]])])]),Wpt])])]),_:1}),_e(o,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Kpt,[c("tr",null,[jpt,c("td",null,[c("div",Qpt,[B(c("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[309]||(e[309]=_=>r.configFile.midjourney_key=_),onChange:e[310]||(e[310]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.midjourney_key]])])])]),c("tr",null,[Xpt,c("td",null,[c("div",Zpt,[B(c("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[311]||(e[311]=_=>r.configFile.midjourney_timeout=_),onChange:e[312]||(e[312]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.midjourney_timeout]])])])]),c("tr",null,[Jpt,c("td",null,[c("div",e_t,[B(c("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[313]||(e[313]=_=>r.configFile.midjourney_retries=_),onChange:e[314]||(e[314]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.midjourney_retries]])])])])])]),_:1}),_e(o,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",t_t,[c("tr",null,[n_t,c("td",null,[c("div",s_t,[B(c("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[315]||(e[315]=_=>r.configFile.dall_e_key=_),onChange:e[316]||(e[316]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.dall_e_key]])])])]),c("tr",null,[i_t,c("td",null,[c("div",r_t,[B(c("select",{"onUpdate:modelValue":e[317]||(e[317]=_=>r.configFile.dall_e_generation_engine=_),onChange:e[318]||(e[318]=_=>i.settingsChanged=!0)},l_t,544),[[qt,r.configFile.dall_e_generation_engine]])])])])])]),_:1}),_e(o,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",c_t,[c("tr",null,[d_t,c("td",null,[c("div",u_t,[B(c("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[319]||(e[319]=_=>r.configFile.enable_comfyui_service=_),onChange:e[320]||(e[320]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.enable_comfyui_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[321]||(e[321]=_=>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"))},__t)])]),c("tr",null,[h_t,c("td",null,[c("div",f_t,[B(c("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[322]||(e[322]=_=>r.configFile.comfyui_model=_),onChange:e[323]||(e[323]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(C(!0),R(ze,null,st(i.comfyui_models,(_,m)=>(C(),R("option",{key:_,value:_},se(_),9,m_t))),128))],544),[[qt,r.configFile.comfyui_model]])])])]),c("tr",null,[g_t,c("td",null,[c("div",b_t,[B(c("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[324]||(e[324]=_=>r.configFile.comfyui_model=_),onChange:e[325]||(e[325]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.comfyui_model]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[326]||(e[326]=_=>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"))},y_t)])]),c("tr",null,[v_t,c("td",null,[c("div",S_t,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[327]||(e[327]=(..._)=>r.reinstallComfyUIService&&r.reinstallComfyUIService(..._))},"install comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[328]||(e[328]=(..._)=>r.upgradeComfyUIService&&r.upgradeComfyUIService(..._))},"upgrade comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[329]||(e[329]=(..._)=>r.startComfyUIService&&r.startComfyUIService(..._))},"start comfyui service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[330]||(e[330]=(..._)=>r.showComfyui&&r.showComfyui(..._))},"show comfyui"),T_t])])]),c("tr",null,[x_t,c("td",null,[c("div",C_t,[B(c("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[331]||(e[331]=_=>r.configFile.comfyui_base_url=_),onChange:e[332]||(e[332]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),_e(o,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[_e(o,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",w_t,[c("tr",null,[R_t,c("td",null,[c("div",A_t,[B(c("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[333]||(e[333]=_=>r.configFile.enable_ollama_service=_),onChange:e[334]||(e[334]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.enable_ollama_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[335]||(e[335]=_=>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.
<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},O_t)])]),c("tr",null,[I_t,c("td",null,[c("div",M_t,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[336]||(e[336]=(..._)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(..._))},"install ollama service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[337]||(e[337]=(..._)=>r.startollamaService&&r.startollamaService(..._))},"start ollama service")])])]),c("tr",null,[D_t,c("td",null,[c("div",k_t,[B(c("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[338]||(e[338]=_=>r.configFile.ollama_base_url=_),onChange:e[339]||(e[339]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.ollama_base_url]])])])])])]),_:1}),_e(o,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",L_t,[c("tr",null,[P_t,c("td",null,[c("div",U_t,[B(c("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[340]||(e[340]=_=>r.configFile.enable_vllm_service=_),onChange:e[341]||(e[341]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.enable_vllm_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[342]||(e[342]=_=>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.
<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},B_t)])]),c("tr",null,[G_t,c("td",null,[c("div",V_t,[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]=(..._)=>r.reinstallvLLMService&&r.reinstallvLLMService(..._))},"install vLLM service"),c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[344]||(e[344]=(..._)=>r.startvLLMService&&r.startvLLMService(..._))},"start vllm service")])])]),c("tr",null,[z_t,c("td",null,[c("div",H_t,[B(c("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[345]||(e[345]=_=>r.configFile.vllm_url=_),onChange:e[346]||(e[346]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.vllm_url]])])])]),c("tr",null,[q_t,c("td",null,[c("div",Y_t,[c("div",$_t,[W_t,c("p",K_t,[B(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[347]||(e[347]=_=>r.configFile.vllm_gpu_memory_utilization=_),onChange:e[348]||(e[348]=_=>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),[[he,r.configFile.vllm_gpu_memory_utilization]])])]),B(c("input",{id:"vllm_gpu_memory_utilization",onChange:e[349]||(e[349]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[350]||(e[350]=_=>r.configFile.vllm_gpu_memory_utilization=_),min:"0.10",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[he,r.configFile.vllm_gpu_memory_utilization]])])])]),c("tr",null,[j_t,c("td",null,[c("div",Q_t,[B(c("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[351]||(e[351]=_=>r.configFile.vllm_max_num_seqs=_),onChange:e[352]||(e[352]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.vllm_max_num_seqs]])])])]),c("tr",null,[X_t,c("td",null,[c("div",Z_t,[B(c("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[353]||(e[353]=_=>r.configFile.vllm_max_model_len=_),onChange:e[354]||(e[354]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.vllm_max_model_len]])])])]),c("tr",null,[J_t,c("td",null,[c("div",eht,[B(c("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[355]||(e[355]=_=>r.configFile.vllm_model_path=_),onChange:e[356]||(e[356]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.vllm_model_path]])])])])])]),_:1}),_e(o,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",tht,[c("tr",null,[nht,c("td",null,[c("div",sht,[B(c("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[357]||(e[357]=_=>r.configFile.enable_petals_service=_),onChange:e[358]||(e[358]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.enable_petals_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[359]||(e[359]=_=>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.
<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},rht)])]),c("tr",null,[oht,c("td",null,[c("div",aht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[360]||(e[360]=(..._)=>r.reinstallPetalsService&&r.reinstallPetalsService(..._))},"install petals service")])])]),c("tr",null,[lht,c("td",null,[c("div",cht,[B(c("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[361]||(e[361]=_=>r.configFile.petals_base_url=_),onChange:e[362]||(e[362]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),_e(o,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[_e(o,{title:"Motion Ctrl service",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",dht,[c("tr",null,[uht,c("td",null,[c("div",pht,[B(c("input",{type:"checkbox",id:"enable_motion_ctrl_service",required:"","onUpdate:modelValue":e[363]||(e[363]=_=>r.configFile.enable_motion_ctrl_service=_),onChange:e[364]||(e[364]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.enable_motion_ctrl_service]])])]),c("td",null,[c("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[365]||(e[365]=_=>this.$store.state.messageBox.showMessage("Activates Motion ctrl service. The service will be automatically loaded at startup alowing you to use the motoin control endpoint to generate videos"))},hht)])]),c("tr",null,[fht,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[366]||(e[366]=(..._)=>r.reinstallMotionCtrlService&&r.reinstallMotionCtrlService(..._))},"install Motion Ctrl service")])])]),c("tr",null,[ght,c("td",null,[c("div",bht,[B(c("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[367]||(e[367]=_=>r.configFile.sd_base_url=_),onChange:e[368]||(e[368]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.sd_base_url]])])])])])]),_:1}),_e(o,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:qe(()=>[c("table",Eht,[c("tr",null,[yht,c("td",null,[c("div",vht,[B(c("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[369]||(e[369]=_=>r.configFile.elastic_search_service=_),onChange:e[370]||(e[370]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ke,r.configFile.elastic_search_service]])])])]),c("tr",null,[Sht,c("td",null,[c("div",Tht,[c("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[371]||(e[371]=(..._)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(..._))},"install ElasticSearch service")])])]),c("tr",null,[xht,c("td",null,[c("div",Cht,[B(c("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[372]||(e[372]=_=>r.configFile.elastic_search_url=_),onChange:e[373]||(e[373]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[he,r.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),c("div",wht,[c("div",Rht,[c("button",{onClick:e[374]||(e[374]=ae(_=>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"},[B(c("div",null,Nht,512),[[Ot,i.bzc_collapsed]]),B(c("div",null,Iht,512),[[Ot,!i.bzc_collapsed]]),Mht,r.configFile.binding_name?G("",!0):(C(),R("div",Dht,[kht,Xe(" No binding selected! ")])),r.configFile.binding_name?(C(),R("div",Lht,"|")):G("",!0),r.configFile.binding_name?(C(),R("div",Pht,[c("div",Uht,[c("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Fht),c("h3",Bht,se(r.binding_name),1)])])):G("",!0)])]),c("div",{class:Fe([{hidden:i.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(C(),R("div",Ght,[c("label",Vht," Bindings: ("+se(r.bindingsZoo.length)+") ",1),c("div",{class:Fe(["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"])},[_e(Qs,{name:"list"},{default:qe(()=>[(C(!0),R(ze,null,st(r.bindingsZoo,(_,m)=>(C(),St(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+m+"-"+_.folder,binding:_,"on-selected":r.onBindingSelected,"on-reinstall":r.onReinstallBinding,"on-unInstall":r.onUnInstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:_.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):G("",!0),i.bzl_collapsed?(C(),R("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[375]||(e[375]=_=>i.bzl_collapsed=!i.bzl_collapsed)},Hht)):(C(),R("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[376]||(e[376]=_=>i.bzl_collapsed=!i.bzl_collapsed)},Yht))],2)]),c("div",$ht,[c("div",Wht,[c("button",{onClick:e[377]||(e[377]=ae(_=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[B(c("div",null,jht,512),[[Ot,i.mzc_collapsed]]),B(c("div",null,Xht,512),[[Ot,!i.mzc_collapsed]]),Zht,c("div",Jht,[r.configFile.binding_name?G("",!0):(C(),R("div",eft,[tft,Xe(" Select binding first! ")])),!r.configFile.model_name&&r.configFile.binding_name?(C(),R("div",nft,[sft,Xe(" No model selected! ")])):G("",!0),r.configFile.model_name?(C(),R("div",ift,"|")):G("",!0),r.configFile.model_name?(C(),R("div",rft,[c("div",oft,[c("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,aft),c("h3",lft,se(r.configFile.model_name),1)])])):G("",!0)])])]),c("div",{class:Fe([{hidden:i.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",cft,[c("div",dft,[c("div",uft,[i.searchModelInProgress?(C(),R("div",pft,hft)):G("",!0),i.searchModelInProgress?G("",!0):(C(),R("div",fft,gft))]),B(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[378]||(e[378]=_=>i.searchModel=_),onKeyup:e[379]||(e[379]=Ai((..._)=>r.searchModel_func&&r.searchModel_func(..._),["enter"]))},null,544),[[he,i.searchModel]]),i.searchModel?(C(),R("button",{key:0,onClick:e[380]||(e[380]=ae(_=>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")):G("",!0)])]),c("div",null,[B(c("input",{"onUpdate:modelValue":e[381]||(e[381]=_=>i.show_only_installed_models=_),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[Ke,i.show_only_installed_models]]),bft]),c("div",null,[_e(l,{radioOptions:i.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Eft,i.is_loading_zoo?(C(),R("div",yft,Tft)):G("",!0),i.models_zoo&&i.models_zoo.length>0?(C(),R("div",xft,[c("label",Cft," Models: ("+se(i.models_zoo.length)+") ",1),c("div",{class:Fe(["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"])},[_e(Qs,{name:"list"},{default:qe(()=>[(C(!0),R(ze,null,st(r.rendered_models_zoo,(_,m)=>(C(),St(u,{ref_for:!0,ref:"modelZoo",key:"index-"+m+"-"+_.name,model:_,"is-installed":_.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:_.name===r.configFile.model_name,model_type:_.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),c("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[382]||(e[382]=(..._)=>r.load_more_models&&r.load_more_models(..._))},"Load more models",512)]),_:1})],2)])):G("",!0),i.mzl_collapsed?(C(),R("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[383]||(e[383]=(..._)=>r.open_mzl&&r.open_mzl(..._))},Rft)):(C(),R("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[384]||(e[384]=(..._)=>r.open_mzl&&r.open_mzl(..._))},Nft)),c("div",Oft,[c("div",Ift,[c("div",null,[c("div",Mft,[Dft,B(c("input",{type:"text","onUpdate:modelValue":e[385]||(e[385]=_=>i.reference_path=_),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter Path ...",required:""},null,512),[[he,i.reference_path]])]),c("button",{type:"button",onClick:e[386]||(e[386]=ae(_=>r.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),i.modelDownlaodInProgress?G("",!0):(C(),R("div",kft,[c("div",Lft,[Pft,B(c("input",{type:"text","onUpdate:modelValue":e[387]||(e[387]=_=>i.addModel.url=_),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter URL ...",required:""},null,512),[[he,i.addModel.url]])]),c("button",{type:"button",onClick:e[388]||(e[388]=ae(_=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),i.modelDownlaodInProgress?(C(),R("div",Uft,[Fft,c("div",Bft,[c("div",Gft,[c("div",Vft,[zft,c("span",Hft,se(Math.floor(i.addModel.progress))+"%",1)]),c("div",{class:"mx-1 opacity-80 line-clamp-1",title:i.addModel.url},se(i.addModel.url),9,qft),c("div",Yft,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt({width:i.addModel.progress+"%"})},null,4)]),c("div",$ft,[c("span",Wft,"Download speed: "+se(r.speed_computed)+"/s",1),c("span",Kft,se(r.downloaded_size_computed)+"/"+se(r.total_size_computed),1)])])]),c("div",jft,[c("div",Qft,[c("div",Xft,[c("button",{onClick:e[389]||(e[389]=ae((..._)=>r.onCancelInstall&&r.onCancelInstall(..._),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])):G("",!0)])])],2)]),c("div",Zft,[c("div",Jft,[c("button",{onClick:e[392]||(e[392]=ae(_=>i.pzc_collapsed=!i.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[B(c("div",null,tmt,512),[[Ot,i.pzc_collapsed]]),B(c("div",null,smt,512),[[Ot,!i.pzc_collapsed]]),imt,r.configFile.personalities?(C(),R("div",rmt,"|")):G("",!0),c("div",omt,se(r.active_pesonality),1),r.configFile.personalities?(C(),R("div",amt,"|")):G("",!0),r.configFile.personalities?(C(),R("div",lmt,[r.mountedPersArr.length>0?(C(),R("div",cmt,[(C(!0),R(ze,null,st(r.mountedPersArr,(_,m)=>(C(),R("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:m+"-"+_.name,ref_for:!0,ref:"mountedPersonalities"},[c("div",dmt,[c("button",{onClick:ae(E=>r.onPersonalitySelected(_),["stop"])},[c("img",{src:i.bUrl+_.avatar,onError:e[390]||(e[390]=(...E)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...E)),class:Fe(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(_.full_path)?"border-secondary":"border-transparent z-0"]),title:_.name},null,42,pmt)],8,umt),c("button",{onClick:ae(E=>r.unmountPersonality(_),["stop"])},fmt,8,_mt)])]))),128))])):G("",!0)])):G("",!0),c("button",{onClick:e[391]||(e[391]=ae(_=>r.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},gmt)])]),c("div",{class:Fe([{hidden:i.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",bmt,[Emt,c("div",ymt,[c("div",vmt,[i.searchPersonalityInProgress?(C(),R("div",Smt,xmt)):G("",!0),i.searchPersonalityInProgress?G("",!0):(C(),R("div",Cmt,Rmt))]),B(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[393]||(e[393]=_=>i.searchPersonality=_),onKeyup:e[394]||(e[394]=ae((..._)=>r.searchPersonality_func&&r.searchPersonality_func(..._),["stop"]))},null,544),[[he,i.searchPersonality]]),i.searchPersonality?(C(),R("button",{key:0,onClick:e[395]||(e[395]=ae(_=>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")):G("",!0)])]),i.searchPersonality?G("",!0):(C(),R("div",Amt,[c("label",Nmt," Personalities Category: ("+se(i.persCatgArr.length)+") ",1),c("select",{id:"persCat",onChange:e[396]||(e[396]=_=>r.update_personality_category(_.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(C(!0),R(ze,null,st(i.persCatgArr,(_,m)=>(C(),R("option",{key:m,selected:_==this.configFile.personality_category},se(_),9,Omt))),128))],32)])),c("div",null,[i.personalitiesFiltered.length>0?(C(),R("div",Imt,[c("label",Mmt,se(i.searchPersonality?"Search results":"Personalities")+": ("+se(i.personalitiesFiltered.length)+") ",1),c("div",{class:Fe(["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"])},[_e(Qs,{name:"bounce"},{default:qe(()=>[(C(!0),R(ze,null,st(i.personalitiesFiltered,(_,m)=>(C(),St(d,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+m+"-"+_.name,personality:_,select_language:!0,full_path:_.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(E=>E===_.full_path||E===_.full_path+":"+_.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})],2)])):G("",!0)]),i.pzl_collapsed?(C(),R("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[397]||(e[397]=_=>i.pzl_collapsed=!i.pzl_collapsed)},kmt)):(C(),R("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[398]||(e[398]=_=>i.pzl_collapsed=!i.pzl_collapsed)},Pmt))],2)]),c("div",Umt,[c("div",Fmt,[c("button",{onClick:e[399]||(e[399]=ae(_=>i.mc_collapsed=!i.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[B(c("div",null,Gmt,512),[[Ot,i.mc_collapsed]]),B(c("div",null,zmt,512),[[Ot,!i.mc_collapsed]]),Hmt])]),c("div",{class:Fe([{hidden:i.mc_collapsed},"flex flex-col mb-2 p-2"])},[c("div",qmt,[c("div",Ymt,[B(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[400]||(e[400]=ae(()=>{},["stop"])),"onUpdate:modelValue":e[401]||(e[401]=_=>r.configFile.override_personality_model_parameters=_),onChange:e[402]||(e[402]=_=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[Ke,r.configFile.override_personality_model_parameters]]),$mt])]),c("div",{class:Fe(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[c("div",Wmt,[Kmt,B(c("input",{type:"text",id:"seed","onUpdate:modelValue":e[403]||(e[403]=_=>r.configFile.seed=_),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[he,r.configFile.seed]])]),c("div",jmt,[c("div",Qmt,[c("div",Xmt,[Zmt,c("p",Jmt,[B(c("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[404]||(e[404]=_=>r.configFile.temperature=_),onChange:e[405]||(e[405]=_=>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),[[he,r.configFile.temperature]])])]),B(c("input",{id:"temperature",onChange:e[406]||(e[406]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[407]||(e[407]=_=>r.configFile.temperature=_),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[he,r.configFile.temperature]])])]),c("div",egt,[c("div",tgt,[c("div",ngt,[sgt,c("p",igt,[B(c("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[408]||(e[408]=_=>r.configFile.n_predict=_),onChange:e[409]||(e[409]=_=>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),[[he,r.configFile.n_predict]])])]),B(c("input",{id:"predict",type:"range",onChange:e[410]||(e[410]=_=>i.settingsChanged=!0),"onUpdate:modelValue":e[411]||(e[411]=_=>r.configFile.n_predict=_),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[he,r.configFile.n_predict]])])]),c("div",rgt,[c("div",ogt,[c("div",agt,[lgt,c("p",cgt,[B(c("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[412]||(e[412]=_=>r.configFile.top_k=_),onChange:e[413]||(e[413]=_=>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),[[he,r.configFile.top_k]])])]),B(c("input",{id:"top_k",type:"range",onChange:e[414]||(e[414]=_=>i.settingsChanged=!0),"onUpdate:modelValue":e[415]||(e[415]=_=>r.configFile.top_k=_),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[he,r.configFile.top_k]])])]),c("div",dgt,[c("div",ugt,[c("div",pgt,[_gt,c("p",hgt,[B(c("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[416]||(e[416]=_=>r.configFile.top_p=_),onChange:e[417]||(e[417]=_=>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),[[he,r.configFile.top_p]])])]),B(c("input",{id:"top_p",type:"range","onUpdate:modelValue":e[418]||(e[418]=_=>r.configFile.top_p=_),min:"0",max:"1",step:"0.01",onChange:e[419]||(e[419]=_=>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),[[he,r.configFile.top_p]])])]),c("div",fgt,[c("div",mgt,[c("div",ggt,[bgt,c("p",Egt,[B(c("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[420]||(e[420]=_=>r.configFile.repeat_penalty=_),onChange:e[421]||(e[421]=_=>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),[[he,r.configFile.repeat_penalty]])])]),B(c("input",{id:"repeat_penalty",onChange:e[422]||(e[422]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[423]||(e[423]=_=>r.configFile.repeat_penalty=_),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[he,r.configFile.repeat_penalty]])])]),c("div",ygt,[c("div",vgt,[c("div",Sgt,[Tgt,c("p",xgt,[B(c("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[424]||(e[424]=_=>r.configFile.repeat_last_n=_),onChange:e[425]||(e[425]=_=>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),[[he,r.configFile.repeat_last_n]])])]),B(c("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[426]||(e[426]=_=>r.configFile.repeat_last_n=_),min:"0",max:"100",step:"1",onChange:e[427]||(e[427]=_=>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),[[he,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),_e(h,{ref:"addmodeldialog"},null,512),_e(f,{class:"z-20",show:i.variantSelectionDialogVisible,choices:i.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const wgt=pt(Mit,[["render",Cgt],["__scopeId","data-v-2d3d13af"]]),Rgt={components:{ClipBoardTextInput:Zb,Card:Bu},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}}},Agt={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"},Ngt={class:"mb-4"},Ogt=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Igt=["value"],Mgt={class:"mb-4"},Dgt=c("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),kgt={class:"mb-4"},Lgt=c("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),Pgt={class:"mb-4"},Ugt=c("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),Fgt={class:"mb-4"},Bgt=c("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),Ggt={class:"mb-4"},Vgt=c("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),zgt={class:"mb-4"},Hgt=c("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),qgt=c("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),Ygt={key:1};function $gt(n,e,t,s,i,r){const o=dt("Card"),a=dt("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(C(),R("div",Agt,[c("form",{onSubmit:e[2]||(e[2]=ae((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:""},[_e(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:qe(()=>[_e(o,{title:"Model",class:"",isHorizontal:!1},{default:qe(()=>[c("div",Ngt,[Ogt,B(c("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>r.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>n.setModel&&n.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(C(!0),R(ze,null,st(r.models,l=>(C(),R("option",{key:l,value:l},se(l),9,Igt))),128))],544),[[qt,r.selectedModel]])])]),_:1}),_e(o,{title:"Data",isHorizontal:!1},{default:qe(()=>[c("div",Mgt,[Dgt,_e(a,{id:"model_path",inputType:"file",value:i.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),_e(o,{title:"Training",isHorizontal:!1},{default:qe(()=>[c("div",kgt,[Lgt,_e(a,{id:"model_path",inputType:"integer",value:i.lr},null,8,["value"])]),c("div",Pgt,[Ugt,_e(a,{id:"model_path",inputType:"integer",value:i.num_epochs},null,8,["value"])]),c("div",Fgt,[Bgt,_e(a,{id:"model_path",inputType:"integer",value:i.max_length},null,8,["value"])]),c("div",Ggt,[Vgt,_e(a,{id:"model_path",inputType:"integer",value:i.batch_size},null,8,["value"])])]),_:1}),_e(o,{title:"Output",isHorizontal:!1},{default:qe(()=>[c("div",zgt,[Hgt,_e(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),_e(o,{disableHoverAnimation:!0,disableFocus:!0},{default:qe(()=>[qgt]),_:1})],32)])):(C(),R("div",Ygt,[_e(o,{title:"Info",class:"",isHorizontal:!1},{default:qe(()=>[Xe(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const Wgt=pt(Rgt,[["render",$gt]]),Kgt={components:{ClipBoardTextInput:Zb,Card:Bu},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)}}},jgt={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"},Qgt={class:"mb-4"},Xgt=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Zgt={class:"mb-4"},Jgt=c("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),ebt=c("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function tbt(n,e,t,s,i,r){const o=dt("ClipBoardTextInput"),a=dt("Card");return C(),R("div",jgt,[c("form",{onSubmit:e[0]||(e[0]=ae((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[_e(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:qe(()=>[_e(a,{title:"Model",class:"",isHorizontal:!1},{default:qe(()=>[c("div",Qgt,[Xgt,_e(o,{id:"model_path",inputType:"text",value:i.model_name},null,8,["value"])]),c("div",Zgt,[Jgt,_e(o,{id:"model_path",inputType:"text",value:i.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),_e(a,{disableHoverAnimation:!0,disableFocus:!0},{default:qe(()=>[ebt]),_:1})],32)])}const nbt=pt(Kgt,[["render",tbt]]),sbt={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,Ue(()=>{Ge.replace()})},watch:{showConfirmation(){Ue(()=>{Ge.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&Ue(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&Ue(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},ibt=["id"],rbt={class:"flex flex-row items-center gap-2"},obt={key:0},abt={class:"flex flex-row items-center w-full"},lbt=["title"],cbt=["value"],dbt={class:"flex items-center flex-1 max-h-6"},ubt={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},pbt=c("i",{"data-feather":"x"},null,-1),_bt=[pbt],hbt=c("i",{"data-feather":"check"},null,-1),fbt=[hbt],mbt={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},gbt=c("i",{"data-feather":"folder"},null,-1),bbt=[gbt],Ebt=c("i",{"data-feather":"type"},null,-1),ybt=[Ebt],vbt=c("i",{"data-feather":"edit-2"},null,-1),Sbt=[vbt],Tbt=c("i",{"data-feather":"trash"},null,-1),xbt=[Tbt];function Cbt(n,e,t,s,i,r){return C(),R("div",{class:Fe([t.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md min-w-[23rem] max-w-[23rem]":" min-w-[23rem] max-w-[23rem]","flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"]),id:"dis-"+t.id,onClick:e[13]||(e[13]=ae(o=>r.selectEvent(),["stop"]))},[c("div",rbt,[t.isCheckbox?(C(),R("div",obt,[B(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]=ae(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>i.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,t.id))},null,544),[[Ke,i.checkBoxValue_local]])])):G("",!0),t.selected?(C(),R("div",{key:1,class:Fe(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):G("",!0),t.selected?G("",!0):(C(),R("div",{key:2,class:Fe(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),c("div",abt,[i.editTitle?G("",!0):(C(),R("p",{key:0,title:t.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},se(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,lbt)),i.editTitle?(C(),R("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]=Ai(ae(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Ai(ae(o=>i.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=ae(()=>{},["stop"]))},null,40,cbt)):G("",!0),c("div",dbt,[i.showConfirmation?(C(),R("div",ubt,[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]=ae(o=>r.cancel(),["stop"]))},_bt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=ae(o=>i.editTitleMode?r.editTitleEvent():i.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},fbt)])):G("",!0),i.showConfirmation?G("",!0):(C(),R("div",mbt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=ae(o=>r.openFolderEvent(),["stop"]))},bbt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=ae(o=>i.makeTitleMode=!0,["stop"]))},ybt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=ae(o=>i.editTitleMode=!0,["stop"]))},Sbt),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=ae(o=>i.deleteMode=!0,["stop"]))},xbt)]))])])],10,ibt)}const tE=pt(sbt,[["render",Cbt]]),wbt={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}}},Rbt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},Abt={class:"bg-white p-8 rounded"},Nbt={class:"text-xl font-bold mb-4"};function Obt(n,e,t,s,i,r){return C(),R("div",null,[i.show?(C(),R("div",Rbt,[c("div",Abt,[c("h2",Nbt,se(t.promptText),1),B(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),[[he,i.inputText]]),c("button",{onClick:e[1]||(e[1]=(...o)=>r.ok&&r.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),c("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):G("",!0)])}const RN=pt(wbt,[["render",Obt]]),Ibt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:tE,MarkdownRenderer:Uu},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(){}}},Mbt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},Dbt={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"},kbt={class:"search p-4"},Lbt={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"},Pbt=c("h2",{class:"text-xl font-bold m-4"},"Titles",-1),Ubt={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"},Fbt=c("h2",{class:"text-xl font-bold m-4"},"Content",-1);function Bbt(n,e,t,s,i,r){const o=dt("Discussion"),a=dt("MarkdownRenderer");return C(),R("div",{class:Fe([{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",Mbt,[c("div",Dbt,[c("div",kbt,[B(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),[[he,i.searchQuery]]),c("button",{onClick:e[1]||(e[1]=(...l)=>r.searchSkills&&r.searchSkills(...l)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),c("div",Lbt,[Pbt,i.titles.length>0?(C(),St(Qs,{key:0,name:"list"},{default:qe(()=>[(C(!0),R(ze,null,st(i.titles,l=>(C(),St(o,{key:l.id,id:l.id,title:l.title,selected:r.fetchContent(l.id),loading:i.loading,isCheckbox:i.isCheckbox,checkBoxValue:!1,onSelect:u=>r.fetchContent(l.id),onDelete:u=>r.deleteSkill(l.id),onEditTitle:r.editTitle,onMakeTitle:r.makeTitle,onChecked:r.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):G("",!0)])]),c("div",Ubt,[Fbt,_e(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)=>r.closeComponent&&r.closeComponent(...l)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const AN=pt(Ibt,[["render",Bbt]]),Gbt={props:{htmlContent:{type:String,required:!0}}},Vbt=["innerHTML"];function zbt(n,e,t,s,i,r){return C(),R("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,Vbt)}const Hbt=pt(Gbt,[["render",zbt]]);const qbt={props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Form"}},data(){return{collapsed:!0}},computed:{formattedJson(){return typeof this.jsonData=="string"?JSON.stringify(JSON.parse(this.jsonData),null," ").replace(/\n/g,"<br>"):JSON.stringify(this.jsonData,null," ").replace(/\n/g,"<br>")},isObject(){return typeof this.jsonData=="object"&&this.jsonData!==null},isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")}},methods:{toggleCollapsed(){this.collapsed=!this.collapsed},toggleCollapsible(){this.collapsed=!this.collapsed}}},Ybt={key:0},$bt={class:"toggle-icon mr-1"},Wbt={key:0,class:"fas fa-plus-circle text-gray-600"},Kbt={key:1,class:"fas fa-minus-circle text-gray-600"},jbt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},Qbt={key:0,class:"fas fa-plus-circle text-gray-600"},Xbt={key:1,class:"fas fa-minus-circle text-gray-600"},Zbt=["innerHTML"];function Jbt(n,e,t,s,i,r){return r.isContentPresent?(C(),R("div",Ybt,[c("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...o)=>r.toggleCollapsible&&r.toggleCollapsible(...o))},[c("span",$bt,[i.collapsed?(C(),R("i",Wbt)):(C(),R("i",Kbt))]),Xe(" "+se(t.jsonFormText),1)]),B(c("div",null,[c("div",jbt,[r.isObject?(C(),R("span",{key:0,onClick:e[1]||(e[1]=(...o)=>r.toggleCollapsed&&r.toggleCollapsed(...o)),class:"toggle-icon cursor-pointer mr-1"},[i.collapsed?(C(),R("i",Qbt)):(C(),R("i",Xbt))])):G("",!0),c("pre",{innerHTML:r.formattedJson},null,8,Zbt)])],512),[[Ot,!i.collapsed]])])):G("",!0)}const eEt=pt(qbt,[["render",Jbt]]),tEt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0},step_type:{type:String,required:!1,default:"start_end"}}},nEt={class:"flex items-start"},sEt={class:"step flex items-center mb-4"},iEt={key:0,class:"flex items-center justify-center w-6 h-6 mr-2"},rEt={key:0},oEt=c("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),aEt=[oEt],lEt={key:1},cEt=c("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),dEt=[cEt],uEt={key:2},pEt=c("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),_Et=[pEt],hEt={key:1,role:"status",class:"m-15"},fEt=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),mEt=[fEt],gEt={class:"text-sm ml-6"};function bEt(n,e,t,s,i,r){return C(),R("div",nEt,[c("div",sEt,[t.step_type=="start_end"?(C(),R("div",iEt,[t.done?G("",!0):(C(),R("div",rEt,aEt)),t.done&&t.status?(C(),R("div",lEt,dEt)):G("",!0),t.done&&!t.status?(C(),R("div",uEt,_Et)):G("",!0)])):G("",!0),t.done?G("",!0):(C(),R("div",hEt,mEt)),c("h3",gEt,se(t.message),1)])])}const EEt=pt(tEt,[["render",bEt]]),yEt="/assets/process-61f7a21b.svg",vEt="/assets/ok-a0b56451.svg",SEt="/assets/failed-183609e7.svg",NN="/assets/send_globe-305330b9.svg";const TEt="/",xEt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:Uu,Step:EEt,RenderHTMLJS:Hbt,JsonViewer:eEt,DynamicUIRenderer:wN},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:yN,html5_block:vN,LaTeX_block:SN,json_block:EN,javascript_block:bN,process_svg:yEt,ok_svg:vEt,failed_svg:SEt,loading_svg:xN,sendGlobe:NN,code_block:mN,python_block:gN,bash_block:TN,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."),Ue(()=>{Ge.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 i=Math.floor(t/(1e3*60));t-=i*(1e3*60);const r=Math.floor(t/1e3);return t-=r*1e3,[s,i,r]},insertTab(n){const e=n.target,t=e.selectionStart,s=e.selectionEnd,i=n.shiftKey;if(t===s)if(i){if(e.value.substring(t-4,t)==" "){const r=e.value.substring(0,t-4),o=e.value.substring(s),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const r=e.value.substring(0,t),o=e.value.substring(s),a=r+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,s).split(`
`).map(d=>d.trim()===""?d:i?d.startsWith(" ")?d.substring(4):d:" "+d),a=e.value.substring(0,t),l=e.value.substring(s),u=a+o.join(`
`)+l;this.message.content=u,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,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 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,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 r=this.message.content.substring(i,i+e);const o=[".","!","?",`
`];let a=-1;return o.forEach(l=>{const u=r.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=r.length),console.log(a),a+i+1},s=()=>{if(this.status_message=="Done"||this.message.content.includes(".")||this.message.content.includes("?")||this.message.content.includes("!")){const i=t(n),r=this.message.content.substring(n,i);this.msg.text=r,n=i+1,this.msg.onend=o=>{n<this.message.content.length-2?setTimeout(()=>{s()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",i))},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?TEt+this.avatar:(console.log("No avatar found"),hs)},defaultImg(n){n.target.src=hs},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"),this.ui_componentKey++},showConfirmation(){Ue(()=>{Ge.replace()})},deleteMsgMode(){Ue(()=>{Ge.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,Ue(()=>{Ge.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,i,r]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(s)+"h:"+o(i)+"m:"+o(r)+"s"},warmup_duration(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",n," -> ",e),e.getTime()===n.getTime())return 0;if(!n.getTime()||!e.getTime())return;let s,i,r;[s,i,r]=this.computeTimeDiff(n,e);function o(l){return l<10&&(l="0"+l),l}return o(s)+"h:"+o(i)+"m:"+o(r)+"s"},generation_rate(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),t=this.message.nb_tokens;if(e.getTime()===n.getTime()||!t||!n.getTime()||!e.getTime())return;let i=e.getTime()-n.getTime();const r=Math.floor(i/1e3),o=t/r;return Math.round(o)+" t/s"}}},CEt={class:"relative w-full group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},wEt={class:"flex flex-row gap-2"},REt={class:"flex-shrink-0"},AEt={class:"group/avatar"},NEt=["src","data-popover-target"],OEt={class:"flex flex-col w-full flex-grow-0"},IEt={class:"flex flex-row flex-grow items-start"},MEt={class:"flex flex-col mb-2"},DEt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},kEt=["title"],LEt=c("div",{class:"flex-grow"},null,-1),PEt={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"},UEt={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"},FEt={class:"grid min-w-72 select-none grid-cols-[40px,1fr] items-center gap-2.5 p-2"},BEt={class:"relative grid aspect-square place-content-center overflow-hidden rounded-lg bg-gray-300 dark:bg-gray-200"},GEt=["src"],VEt=["src"],zEt=["src"],HEt={class:"leading-4"},qEt=c("dd",{class:"text-sm"},"Processing infos",-1),YEt={class:"flex items-center gap-1 truncate whitespace-nowrap text-[.82rem] text-gray-400"},$Et={class:"content px-5 pb-5 pt-4"},WEt={class:"list-none"},KEt=c("div",{class:"flex flex-col items-start w-full"},null,-1),jEt={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"},QEt={key:1},XEt={key:2},ZEt=["src"],JEt={class:"flex-row justify-end mx-2"},eyt={class:"invisible group-hover:visible flex flex-row"},tyt={key:0,class:"flex items-center duration-75"},nyt=c("i",{"data-feather":"x"},null,-1),syt=[nyt],iyt=c("i",{"data-feather":"check"},null,-1),ryt=[iyt],oyt=c("i",{"data-feather":"edit"},null,-1),ayt=[oyt],lyt=["src"],cyt=["src"],dyt=["src"],uyt=["src"],pyt=["src"],_yt=["src"],hyt=["src"],fyt=["src"],myt=c("i",{"data-feather":"copy"},null,-1),gyt=[myt],byt=c("i",{"data-feather":"send"},null,-1),Eyt=[byt],yyt=["src"],vyt=c("i",{"data-feather":"send"},null,-1),Syt=[vyt],Tyt=c("i",{"data-feather":"fast-forward"},null,-1),xyt=[Tyt],Cyt={key:14,class:"flex items-center duration-75"},wyt=c("i",{"data-feather":"x"},null,-1),Ryt=[wyt],Ayt=c("i",{"data-feather":"check"},null,-1),Nyt=[Ayt],Oyt=c("i",{"data-feather":"trash"},null,-1),Iyt=[Oyt],Myt=c("i",{"data-feather":"thumbs-up"},null,-1),Dyt=[Myt],kyt={class:"flex flex-row items-center"},Lyt=c("i",{"data-feather":"thumbs-down"},null,-1),Pyt=[Lyt],Uyt={class:"flex flex-row items-center"},Fyt=c("i",{"data-feather":"volume-2"},null,-1),Byt=[Fyt],Gyt={key:16,class:"flex flex-row items-center"},Vyt=c("i",{"data-feather":"voicemail"},null,-1),zyt=[Vyt],Hyt=["src"],qyt={class:"text-sm text-gray-400 mt-2"},Yyt={class:"flex flex-row items-center gap-2"},$yt={key:0},Wyt={class:"font-thin"},Kyt={key:1},jyt={class:"font-thin"},Qyt={key:2},Xyt={class:"font-thin"},Zyt={key:3},Jyt=["title"],evt={key:4},tvt=["title"],nvt={key:5},svt=["title"],ivt={key:6},rvt=["title"];function ovt(n,e,t,s,i,r){var h;const o=dt("Step"),a=dt("RenderHTMLJS"),l=dt("MarkdownRenderer"),u=dt("JsonViewer"),d=dt("DynamicUIRenderer");return C(),R("div",CEt,[c("div",wEt,[c("div",REt,[c("div",AEt,[c("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=f=>r.defaultImg(f)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,NEt)])]),c("div",OEt,[c("div",IEt,[c("div",MEt,[c("div",DEt,se(t.message.sender)+" ",1),t.message.created_at?(C(),R("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},se(r.created_at),9,kEt)):G("",!0)]),LEt]),c("div",PEt,[B(c("details",UEt,[c("summary",FEt,[c("div",BEt,[t.message.status_message!="Done"&t.message.status_message!="Generation canceled"?(C(),R("img",{key:0,src:i.loading_svg,class:"w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,GEt)):G("",!0),t.message.status_message=="Generation canceled"?(C(),R("img",{key:1,src:i.failed_svg,class:"w-50 h-50 absolute inset-0 text-gray-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,VEt)):G("",!0),t.message.status_message=="Done"?(C(),R("img",{key:2,src:i.ok_svg,class:"w-50 h-50 absolute m-2 w-6 inset-0 text-geen-100 transition-opacity dark:text-gray-800 opacity-100"},null,8,zEt)):G("",!0)]),c("dl",HEt,[qEt,c("dt",YEt,se(t.message==null?"":t.message.status_message),1)])]),c("div",$Et,[c("ol",WEt,[(C(!0),R(ze,null,st(t.message.steps,(f,_)=>(C(),R("div",{key:"step-"+t.message.id+"-"+_,class:"group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800",style:jt({backgroundColor:f.done?"transparent":"inherit"})},[_e(o,{done:f.done,message:f.message,status:f.status,step_type:f.type},null,8,["done","message","status","step_type"])],4))),128))])])],512),[[Ot,t.message!=null&&t.message.steps!=null&&t.message.steps.length>0]]),KEt,c("div",jEt,[(C(!0),R(ze,null,st(t.message.html_js_s,(f,_)=>(C(),R("div",{key:"htmljs-"+t.message.id+"-"+_,class:"htmljs font-bold",style:jt({backgroundColor:n.step.done?"transparent":"inherit"})},[_e(a,{htmlContent:f},null,8,["htmlContent"])],4))),128))]),r.editMsgMode?G("",!0):(C(),St(l,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),c("div",null,[t.message.open?B((C(),R("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=Ai(ae((...f)=>r.insertTab&&r.insertTab(...f),["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]=f=>t.message.content=f)},`\r
`,544)),[[he,t.message.content]]):G("",!0)]),t.message.metadata!==null?(C(),R("div",QEt,[(C(!0),R(ze,null,st(((h=t.message.metadata)==null?void 0:h.filter(f=>f!=null&&f.hasOwnProperty("title")&&f.hasOwnProperty("content")))||[],(f,_)=>(C(),R("div",{key:"json-"+t.message.id+"-"+_,class:"json font-bold"},[_e(u,{jsonFormText:f.title,jsonData:f.content},null,8,["jsonFormText","jsonData"])]))),128))])):G("",!0),t.message.ui!==null?(C(),R("div",XEt,[_e(d,{ref:"ui",class:"w-full",ui:t.message.ui},null,8,["ui"])])):G("",!0),i.audio_url!=null?(C(),R("audio",{controls:"",key:i.audio_url},[c("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,ZEt),Xe(" Your browser does not support the audio element. ")])):G("",!0)]),c("div",JEt,[c("div",eyt,[r.editMsgMode?(C(),R("div",tyt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel edit",type:"button",onClick:e[3]||(e[3]=ae(f=>r.editMsgMode=!1,["stop"]))},syt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[4]||(e[4]=ae((...f)=>r.updateMessage&&r.updateMessage(...f),["stop"]))},ryt)])):G("",!0),r.editMsgMode?G("",!0):(C(),R("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Edit message",onClick:e[5]||(e[5]=ae(f=>r.editMsgMode=!0,["stop"]))},ayt)),r.editMsgMode?(C(),R("div",{key:2,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add generic block",onClick:e[6]||(e[6]=ae(f=>r.addBlock(""),["stop"]))},[c("img",{src:i.code_block,width:"25",height:"25"},null,8,lyt)])):G("",!0),r.editMsgMode?(C(),R("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add python block",onClick:e[7]||(e[7]=ae(f=>r.addBlock("python"),["stop"]))},[c("img",{src:i.python_block,width:"25",height:"25"},null,8,cyt)])):G("",!0),r.editMsgMode?(C(),R("div",{key:4,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add javascript block",onClick:e[8]||(e[8]=ae(f=>r.addBlock("javascript"),["stop"]))},[c("img",{src:i.javascript_block,width:"25",height:"25"},null,8,dyt)])):G("",!0),r.editMsgMode?(C(),R("div",{key:5,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add json block",onClick:e[9]||(e[9]=ae(f=>r.addBlock("json"),["stop"]))},[c("img",{src:i.json_block,width:"25",height:"25"},null,8,uyt)])):G("",!0),r.editMsgMode?(C(),R("div",{key:6,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add c++ block",onClick:e[10]||(e[10]=ae(f=>r.addBlock("c++"),["stop"]))},[c("img",{src:i.cpp_block,width:"25",height:"25"},null,8,pyt)])):G("",!0),r.editMsgMode?(C(),R("div",{key:7,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add html block",onClick:e[11]||(e[11]=ae(f=>r.addBlock("html"),["stop"]))},[c("img",{src:i.html5_block,width:"25",height:"25"},null,8,_yt)])):G("",!0),r.editMsgMode?(C(),R("div",{key:8,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add LaTex block",onClick:e[12]||(e[12]=ae(f=>r.addBlock("latex"),["stop"]))},[c("img",{src:i.LaTeX_block,width:"25",height:"25"},null,8,hyt)])):G("",!0),r.editMsgMode?(C(),R("div",{key:9,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Add bash block",onClick:e[13]||(e[13]=ae(f=>r.addBlock("bash"),["stop"]))},[c("img",{src:i.bash_block,width:"25",height:"25"},null,8,fyt)])):G("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Copy message to clipboard",onClick:e[14]||(e[14]=ae(f=>r.copyContentToClipboard(),["stop"]))},gyt),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(C(),R("div",{key:10,class:Fe(["text-lg text-red-500 hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message with full context",onClick:e[15]||(e[15]=ae(f=>r.resendMessage("full_context"),["stop"]))},Eyt,2)):G("",!0),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(C(),R("div",{key:11,class:Fe(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message without the full context",onClick:e[16]||(e[16]=ae(f=>r.resendMessage("full_context_with_internet"),["stop"]))},[c("img",{src:i.sendGlobe,width:"25",height:"25"},null,8,yyt)],2)):G("",!0),!r.editMsgMode&&t.message.sender!=this.$store.state.mountedPers.name?(C(),R("div",{key:12,class:Fe(["text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",{"text-5xl":r.editMsgMode}]),title:"Resend message without the full context",onClick:e[17]||(e[17]=ae(f=>r.resendMessage("simple_question"),["stop"]))},Syt,2)):G("",!0),!r.editMsgMode&&t.message.sender==this.$store.state.mountedPers.name?(C(),R("div",{key:13,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Resend message",onClick:e[18]||(e[18]=ae(f=>r.continueMessage(),["stop"]))},xyt)):G("",!0),i.deleteMsgMode?(C(),R("div",Cyt,[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[19]||(e[19]=ae(f=>i.deleteMsgMode=!1,["stop"]))},Ryt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[20]||(e[20]=ae(f=>r.deleteMsg(),["stop"]))},Nyt)])):G("",!0),!r.editMsgMode&&!i.deleteMsgMode?(C(),R("div",{key:15,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[21]||(e[21]=f=>i.deleteMsgMode=!0)},Iyt)):G("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[22]||(e[22]=ae(f=>r.rankUp(),["stop"]))},Dyt),c("div",kyt,[c("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[23]||(e[23]=ae(f=>r.rankDown(),["stop"]))},Pyt),t.message.rank!=0?(C(),R("div",{key:0,class:Fe(["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"},se(t.message.rank),3)):G("",!0)]),c("div",Uyt,[this.$store.state.config.active_tts_service!="None"?(C(),R("div",{key:0,class:Fe(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":r.isTalking}]),title:"speak",onClick:e[24]||(e[24]=ae(f=>r.speak(),["stop"]))},Byt,2)):G("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(C(),R("div",Gyt,[i.isSynthesizingVoice?(C(),R("img",{key:1,src:i.loading_svg},null,8,Hyt)):(C(),R("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[25]||(e[25]=ae(f=>r.read(),["stop"]))},zyt))])):G("",!0)])]),c("div",qyt,[c("div",Yyt,[t.message.binding?(C(),R("p",$yt,[Xe("Binding: "),c("span",Wyt,se(t.message.binding),1)])):G("",!0),t.message.model?(C(),R("p",Kyt,[Xe("Model: "),c("span",jyt,se(t.message.model),1)])):G("",!0),t.message.seed?(C(),R("p",Qyt,[Xe("Seed: "),c("span",Xyt,se(t.message.seed),1)])):G("",!0),t.message.nb_tokens?(C(),R("p",Zyt,[Xe("Number of tokens: "),c("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},se(t.message.nb_tokens),9,Jyt)])):G("",!0),r.warmup_duration?(C(),R("p",evt,[Xe("Warmup duration: "),c("span",{class:"font-thin",title:"Warmup duration: "+r.warmup_duration},se(r.warmup_duration),9,tvt)])):G("",!0),r.time_spent?(C(),R("p",nvt,[Xe("Generation duration: "),c("span",{class:"font-thin",title:"Finished generating: "+r.time_spent},se(r.time_spent),9,svt)])):G("",!0),r.generation_rate?(C(),R("p",ivt,[Xe("Rate: "),c("span",{class:"font-thin",title:"Generation rate: "+r.generation_rate},se(r.generation_rate),9,rvt)])):G("",!0)])])])])])}const ON=pt(xEt,[["render",ovt]]),avt="/";de.defaults.baseURL="/";const lvt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Wl,UniversalForm:Xl},data(){return{bUrl:avt,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),s={client_id:this.$store.state.client_id,id:t};e=await de.post("/select_personality",s),console.log("Generating message from ",e.data.status),He.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(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)}},toggleShowPersList(){this.onShowPersList()},async constructor(){for(Ue(()=>{Ge.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=Gu}}},cvt={class:"w-fit flex select-none"},dvt={class:"w-fit flex select-none"},uvt={class:"w-8 h-8 group relative"},pvt=["src","title"],_vt={class:"opacity-0 group-hover:opacity-100"},hvt=c("span",{title:"Remount"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-0 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("g",{id:"surface1"},[c("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1),fvt=[hvt],mvt=c("span",{title:"Talk"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),c("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1),gvt=[mvt];function bvt(n,e,t,s,i,r){const o=dt("UniversalForm");return C(),R(ze,null,[c("div",cvt,[c("div",dvt,[c("div",uvt,[c("img",{src:i.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 hover:scale-150 active:scale-90 hover:z-50 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+r.mountedPers.name,onClick:e[1]||(e[1]=a=>r.onSettingsPersonality(r.mountedPers))},null,40,pvt),c("div",_vt,[n.personalityHoveredIndex===n.index?(C(),R("button",{key:0,class:"z-50 -top-1 group-hover:translate-x-5 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[2]||(e[2]=ae(a=>r.remount_personality(),["prevent"]))},fvt)):G("",!0),n.personalityHoveredIndex===n.index?(C(),R("button",{key:1,class:"-top-1 group-hover:-translate-x-12 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[3]||(e[3]=ae(a=>r.handleOnTalk(),["prevent"]))},gvt)):G("",!0),c("div",{class:"top-0 group-hover:-translate-x-8 group-hover:-translate-y-8 left-0 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-500 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[4]||(e[4]=ae((...a)=>r.toggleShowPersList&&r.toggleShowPersList(...a),["stop"])),title:"Click to show more"},"+"+se(r.mountedPersArr.length-1),1)])])])]),_e(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const Evt=pt(lvt,[["render",bvt]]);const yvt="/";de.defaults.baseURL="/";const vvt={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:CN,Toast:Wl,UniversalForm:Xl},name:"MountedPersonalitiesList",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},bUrl:yvt,isMounted:!1,isLoading:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async onCopyToCustom(n){await de.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:n.personality.category,name:n.personality.name})},onCopyPersonalityName(n){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(n.name)},toggleShowPersList(){this.onShowPersList()},async constructor(){},async api_get_req(n){try{const e=await de.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=Gu},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,de.post("/reinstall_personality",{name:n.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality
`+e.message,4,!1),{status:!1}))},editPersonality(n){n=n.personality,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)})},onPersonalityMounted(n){this.mountPersonality(n)},onPersonalityUnMounted(n){this.unmountPersonality(n)},onPersonalityRemount(n){this.reMountPersonality(n)},async handleOpenFolder(n){const e={client_id:this.$store.state.client_id,personality_folder:n.personality.folder};console.log(e),await de.post("/open_personality_folder",e)},async handleOnTalk(n){if(Ge.replace(),console.log("ppa",n),n){if(n.isMounted){const e=await this.select_personality(n);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality:
`+n.name,4,!0))}else this.onPersonalityMounted(n);this.onTalk(n)}},async onPersonalitySelected(n){if(Ge.replace(),console.log("Selected personality : ",JSON.stringify(n.personality)),n){if(n.selected){this.$refs.toast.showToast("Personality already selected",4,!0);return}if(n.isMounted){const e=await this.select_personality(n);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality:
`+n.name,4,!0))}else this.onPersonalityMounted(n)}},onSettingsPersonality(n){try{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.personality.name,"Save changes","Cancel").then(t=>{try{de.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 mount_personality(n){if(!n)return{status:!1,error:"no personality - mount_personality"};try{const e={category:n.category,folder:n.folder,language:n.language},t=await de.post("/mount_personality",e);if(t)return t.data}catch(e){console.log(e.message,"mount_personality - settings");return}},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"),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_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||!n.personality)return{status:!1,error:"no personality - select_personality"};let e=-1;if(console.log("Personality full path : ",n.full_path),console.log("Personality language : ",n.personality.language),n.personality.language!=null&&n.personality.language!=null?(console.log("Mounting a localized version of personality"),console.log("Mounted personalities :",JSON.stringify(this.configFile.personalities)),console.log("Personality to select: ",n.full_path+":"+n.personality.language),e=this.configFile.personalities.findIndex(t=>t===n.full_path+":"+n.personality.language)):(console.log("Mounted personalities :",JSON.stringify(this.configFile.personalities)),e=this.configFile.personalities.findIndex(t=>t===n.full_path)),e>-1){console.log("Selecting personality with id:",JSON.stringify(e));const t={client_id:this.$store.state.client_id,id:e};try{const s=await de.post("/select_personality",t);if(s)return this.$store.dispatch("refreshConfig").then(()=>{console.log("recovered config",this.configFile.active_personality_id),this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),s.data}catch(s){console.log(s,"select_personality - settings");return}}else return console.log("Personality id is wrong"),this.$refs.toast.showToast("Personality id is wrong!",4,!1),{status:!1,error:"Personality id is wrong"}},async mountPersonality(n){if(console.log("mount pers",n),!n)return;if(this.configFile.personalities.includes(n.personality.full_path)){this.$refs.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(n.personality);console.log("mount_personality res",e),e.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality mounted",4,!0),n.isMounted=!0,this.onMounted(this),(await this.select_personality(n.personality)).status&&this.$refs.toast.showToast(`Selected personality:
`+n.personality.name,4,!0),this.getMountedPersonalities()):(n.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality
Error: `+e.error,4,!1))},async reMountPersonality(n){if(console.log("remount pers",n),!n)return;if(!this.configFile.personalities.includes(n.personality.full_path)){this.$refs.toast.showToast("Personality not mounted",4,!1);return}const e=await this.remount_personality(n.personality);console.log("remount_personality res",e),e.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality remounted",4,!0),n.isMounted=!0,this.onMounted(this),(await this.select_personality(n.personality)).status&&this.$refs.toast.showToast(`Selected personality:
`+n.personality.name,4,!0),this.getMountedPersonalities()):(n.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality
Error: `+e.error,4,!1))},async unmountPersonality(n){if(!n)return;console.log(`Unmounting ${JSON.stringify(n.personality)}`);const e=await this.unmount_personality(n.personality);if(e.status){console.log("unmount response",e),this.configFile.active_personality_id=e.active_personality_id,this.configFile.personalities=e.personalities;const t=this.configFile.personalities[this.configFile.active_personality_id],s=this.personalities.findIndex(a=>a.full_path==t),i=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==n.full_path),r=this.personalities[s];r.isMounted=!1,r.selected=!0,this.$refs.personalitiesZoo[i].isMounted=!1,this.getMountedPersonalities(),(await this.select_personality(r)).status&&Ge.replace(),this.$refs.toast.showToast("Personality unmounted",4,!0),this.onUnMounted(this)}else this.$refs.toast.showToast(`Could not unmount personality
Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let n=[];console.log(this.configFile.personalities.length);for(let e=0;e<this.configFile.personalities.length;e++){const t=this.configFile.personalities[e],s=this.personalities.findIndex(r=>r.full_path==t),i=this.personalities[s];if(i)console.log("adding from config"),n.push(i);else{console.log("adding default");const r=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),o=this.personalities[r];n.push(o)}}if(this.mountedPersArr=[],this.mountedPersArr=n,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;e<this.discussionPersonalities.length;e++){const t=this.discussionPersonalities[e];console.log("discussionPersonalities - per",t);const s=this.mountedPersArr.findIndex(i=>i.full_path==t);if(console.log("discussionPersonalities -includes",s),console.log("discussionPersonalities -mounted list",this.mountedPersArr),s==-1){const i=this.personalities.findIndex(o=>o.full_path==t),r=this.personalities[i];console.log("adding discucc121",r,t),r&&(this.mountedPersArr.push(r),console.log("adding discucc",r))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},nE=n=>(no("data-v-de7bc8fe"),n=n(),so(),n),Svt={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Tvt={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},xvt=nE(()=>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)),Cvt=nE(()=>c("span",{class:"sr-only"},"Loading...",-1)),wvt=[xvt,Cvt],Rvt=nE(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Avt=[Rvt],Nvt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},Ovt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function Ivt(n,e,t,s,i,r){const o=dt("personality-entry"),a=dt("Toast"),l=dt("UniversalForm");return C(),R("div",Svt,[i.isLoading?(C(),R("div",Tvt,wvt)):G("",!0),c("div",null,[r.mountedPersArr.length>0?(C(),R("div",{key:0,class:Fe(i.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[c("button",{class:"mt-0 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Close personality list",type:"button",onClick:e[0]||(e[0]=ae((...u)=>r.toggleShowPersList&&r.toggleShowPersList(...u),["stop"]))},Avt),c("label",Nvt," Mounted Personalities: ("+se(r.mountedPersArr.length)+") ",1),c("div",Ovt,[_e(Qs,{name:"bounce"},{default:qe(()=>[(C(!0),R(ze,null,st(this.$store.state.mountedPersArr,(u,d)=>(C(),St(o,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+d+"-"+u.name,personality:u,full_path:u.full_path,select_language:!1,selected:r.configFile.personalities[r.configFile.active_personality_id]===u.full_path||r.configFile.personalities[r.configFile.active_personality_id]===u.full_path+":"+u.language,"on-selected":r.onPersonalitySelected,"on-mount":r.onPersonalityMounted,"on-edit":r.editPersonality,"on-un-mount":r.onPersonalityUnMounted,"on-remount":r.onPersonalityRemount,"on-settings":r.onSettingsPersonality,"on-reinstall":r.onPersonalityReinstall,"on-talk":r.handleOnTalk,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-edit","on-un-mount","on-remount","on-settings","on-reinstall","on-talk","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})])],2)):G("",!0)]),_e(a,{ref:"toast"},null,512),_e(l,{ref:"universalForm",class:"z-20"},null,512)])}const Mvt=pt(vvt,[["render",Ivt],["__scopeId","data-v-de7bc8fe"]]);const Dvt={components:{InteractiveMenu:Jb},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),Ue(()=>{Ge.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};He.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,He.off("file_received")}),He.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){Ue(()=>{Ge.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)}},kvt=n=>(no("data-v-1a32c141"),n=n(),so(),n),Lvt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},Pvt=kvt(()=>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)),Uvt=[Pvt];function Fvt(n,e,t,s,i,r){const o=dt("InteractiveMenu");return i.loading?(C(),R("div",Lvt,Uvt)):(C(),St(o,{key:1,commands:t.commandsList,execute_cmd:r.execute_cmd},null,8,["commands","execute_cmd"]))}const Bvt=pt(Dvt,[["render",Fvt],["__scopeId","data-v-1a32c141"]]),Gvt="/assets/loader_v0-16906488.svg";console.log("modelImgPlaceholder:",ws);const Vvt="/",zvt={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{UniversalForm:Xl,MountedPersonalities:Evt,MountedPersonalitiesList:Mvt,PersonalitiesCommands:Bvt},setup(){},data(){return{is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:Gvt,sendGlobe:NN,modelImgPlaceholder:ws,bUrl:Vvt,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const 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},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},installedBindings(){return this.$store.state.installedBindings},installedModels(){return this.$store.state.installedModels},mountedPersonalities(){return this.$store.state.mountedPersArr},binding_name(){return this.$store.state.config.binding_name},model_name(){return this.$store.state.config.model_name},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let n=[];for(let e=0;e<this.discussionList.length;e++)!n.includes(this.discussionList[e].personality)&&!this.discussionList[e].personality==""&&n.push(this.discussionList[e].personality);return console.log("conputer pers",n),console.log("dis conputer pers",this.discussionList),n}return null}},methods:{handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let s of e)if(s.type.indexOf("image")!==-1){const i=s.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(s.kind==="file"){const i=s.getAsFile();t.push(i)}t.length>0&&this.addFiles(t)},toggleSwitch(){this.$store.state.config.activate_internet_search=!this.$store.state.config.activate_internet_search,this.isLoading=!0,de.post("/apply_settings",{config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.config.activate_internet_search?this.$store.state.toast.showToast("Websearch activated.",4,!0):this.$store.state.toast.showToast("Websearch deactivated.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Ue(()=>{Ge.replace()})})},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)},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}},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(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"),Ue(()=>{Ge.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),s={client_id:this.$store.state.client_id,id:t};try{const i=await de.post("/select_personality",s);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}},emitloaded(){this.$emit("loaded")},showModels(n){n.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const t=new MouseEvent("click");e.dispatchEvent(t)},setBinding(n){console.log("Setting binding to "+n.name),this.selecting_binding=!0,this.selectedBinding=n,this.$store.state.messageBox.showBlockingMessage("Loading binding"),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})},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})},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,s=24*1024;let i=0,r=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,l=i+a.byteLength>=n.size;He.emit("send_file_chunk",{filename:n.name,chunk:a,offset:i,isLastChunk:l,chunkIndex:r}),i+=a.byteLength,r++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(i,i+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),He.emit("start_bidirectional_audio_stream"),Ue(()=>{Ge.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),He.emit("stop_bidirectional_audio_stream"),Ue(()=>{Ge.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<n.results.length;t++)e+=n.results[t][0].transcript;this.message=e,clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(n){this.showPersonalities=!this.showPersonalities},handleOnTalk(n){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${n.name} is Talking`,4,!0),this.onTalk(n)},onMountFun(n){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(n){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(n){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(n){return Ue(()=>{Ge.replace()}),js(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(){He.emit("take_picture"),He.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 s=()=>{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++,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(){Ue(()=>{Ge.replace()})},loading(n,e){Ue(()=>{Ge.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let s=0;s<n.length;s++)t=t+parseInt(n[s].size);this.totalSize=js(t,!0),console.log("filesList changed")},deep:!0},discussionList(n){console.log("discussion arr",n)}},mounted(){this.emitloaded(),Ue(()=>{Ge.replace()}),console.log("Chatbar mounted"),He.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(){Ue(()=>{Ge.replace()})}},kt=n=>(no("data-v-64fb461b"),n=n(),so(),n),Hvt={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},qvt={key:0,class:"items-center gap-2 bg-bg-light-panel dark:bg-bg-dark-tone shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},Yvt={class:"flex"},$vt=["title"],Wvt=kt(()=>c("i",{"data-feather":"list"},null,-1)),Kvt=[Wvt],jvt={key:0},Qvt={class:"flex flex-col max-h-64"},Xvt=["title"],Zvt={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"},Jvt={key:0,filesList:"",role:"status"},eSt=kt(()=>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)),tSt=kt(()=>c("span",{class:"sr-only"},"Loading...",-1)),nSt=[eSt,tSt],sSt=kt(()=>c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),iSt=kt(()=>c("div",{class:"grow"},null,-1)),rSt={class:"flex flex-row items-center"},oSt={class:"whitespace-nowrap"},aSt=["onClick"],lSt=kt(()=>c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),cSt=[lSt],dSt={key:1,class:"flex mx-1 w-500"},uSt={class:"whitespace-nowrap flex flex-row gap-2"},pSt=kt(()=>c("p",{class:"font-bold"}," Total size: ",-1)),_St=kt(()=>c("div",{class:"grow"},null,-1)),hSt=kt(()=>c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),fSt=[hSt],mSt=kt(()=>c("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)),gSt=[mSt],bSt={key:2,class:"mx-1"},ESt={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end bg-primary"},ySt={role:"status"},vSt=["src"],SSt=kt(()=>c("span",{class:"sr-only"},"Selecting model...",-1)),TSt={class:"flex w-fit relative grow w-full"},xSt={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 bg-bg-light-panel dark:bg-bg-dark-tone p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},CSt={key:0,title:"Waiting for reply"},wSt=["src"],RSt=kt(()=>c("div",{role:"status"},[c("span",{class:"sr-only"},"Loading...")],-1)),ASt={key:1,class:"w-fit group relative"},NSt={class:"hide top-50 hide opacity-0 group-hover:bottom-0 opacity-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},OSt={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},ISt=["onMouseover"],MSt={class:"relative"},DSt=["onClick"],kSt=["src","title"],LSt={class:"group items-center flex flex-row"},PSt=["src","title"],USt={key:2,class:"w-fit group relative"},FSt={class:"hide top-50 hide opacity-0 group-hover:bottom-0 opacity-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},BSt={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},GSt=["onMouseover"],VSt={class:"relative"},zSt=["onClick"],HSt=["src","title"],qSt={class:"group items-center flex flex-row"},YSt=["src","title"],$St={key:3,class:"w-fit group relative"},WSt={class:"top-50 hide opacity-0 group-hover:bottom-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},KSt={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},jSt=["onMouseover"],QSt={class:"relative"},XSt=["onClick"],ZSt=["src","title"],JSt=["onClick"],e0t=kt(()=>c("span",{class:"-top-6 -right-6 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Unmount personality"},[c("svg",{"aria-hidden":"true",class:"top-1 left-1 relative w-5 h-5 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20","stroke-width":"1",xmlns:"http://www.w3.org/2000/svg"},[c("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)),t0t=[e0t],n0t=["onClick"],s0t=kt(()=>c("span",{class:"-top-9 left-2 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Remount"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("g",{id:"surface1"},[c("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1)),i0t=[s0t],r0t=["onClick"],o0t=kt(()=>c("span",{class:"-top-6 -left-6 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Talk"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[c("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),c("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1)),a0t=[o0t],l0t={class:"w-fit"},c0t={class:"w-fit"},d0t={class:"relative grow"},u0t={class:"group relative w-max"},p0t=kt(()=>c("i",{"data-feather":"send"},null,-1)),_0t=[p0t],h0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Sends your message to the AI.")],-1)),f0t={class:"group relative w-max"},m0t=["src"],g0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Sends your message to the AI with internet search.")],-1)),b0t={class:"group relative w-max"},E0t=kt(()=>c("i",{"data-feather":"mic"},null,-1)),y0t=[E0t],v0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Press and talk.")],-1)),S0t={key:5,class:"group relative w-max"},T0t=kt(()=>c("i",{"data-feather":"mic"},null,-1)),x0t=[T0t],C0t=kt(()=>c("i",{"data-feather":"mic"},null,-1)),w0t=[C0t],R0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Real time bidirectional audio mode.")],-1)),A0t={key:6,class:"group relative w-max"},N0t=kt(()=>c("i",{"data-feather":"file-plus"},null,-1)),O0t=[N0t],I0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Send File to the AI.")],-1)),M0t={class:"group relative w-max"},D0t=kt(()=>c("i",{"data-feather":"camera"},null,-1)),k0t=[D0t],L0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Take a shot from webcam.")],-1)),P0t={class:"group relative w-max"},U0t=kt(()=>c("i",{"data-feather":"globe"},null,-1)),F0t=[U0t],B0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"Add a weblink to the discussion.")],-1)),G0t={class:"group relative w-max"},V0t=kt(()=>c("i",{"data-feather":"message-square"},null,-1)),z0t=[V0t],H0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"New empty User message.")],-1)),q0t={class:"group relative w-max"},Y0t=kt(()=>c("i",{"data-feather":"message-square"},null,-1)),$0t=[Y0t],W0t=kt(()=>c("div",{class:"pointer-events-none absolute -top-20 left-1/2 w-max -translate-x-1/2 rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"},[c("p",{class:"max-w-sm text-sm text-gray-800 dark:text-gray-200"},"New empty ai message.")],-1)),K0t=kt(()=>c("div",{class:"ml-auto gap-2"},null,-1));function j0t(n,e,t,s,i,r){const o=dt("MountedPersonalitiesList"),a=dt("MountedPersonalities"),l=dt("PersonalitiesCommands"),u=dt("UniversalForm");return C(),R(ze,null,[c("form",null,[c("div",Hvt,[i.filesList.length>0||i.showPersonalities?(C(),R("div",qvt,[c("div",Yvt,[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]=ae(d=>i.showfilesList=!i.showfilesList,["stop"]))},Kvt,8,$vt)]),i.filesList.length>0&&i.showfilesList==!0?(C(),R("div",jvt,[c("div",Qvt,[_e(Qs,{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:qe(()=>[(C(!0),R(ze,null,st(i.filesList,(d,h)=>(C(),R("div",{key:h+"-"+d.name},[c("div",{class:"m-1",title:d.name},[c("div",Zvt,[i.isFileSentList[h]?G("",!0):(C(),R("div",Jvt,nSt)),sSt,c("div",{class:Fe(["line-clamp-1 w-3/5",i.isFileSentList[h]?"text-green-500":"text-red-200"])},se(d.name),3),iSt,c("div",rSt,[c("p",oSt,se(r.computedFileSize(d.size)),1),c("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:f=>r.removeItem(d)},cSt,8,aSt)])])],8,Xvt)]))),128))]),_:1})])])):G("",!0),i.filesList.length>0?(C(),R("div",dSt,[c("div",uSt,[pSt,Xe(" "+se(i.totalSize)+" ("+se(i.filesList.length)+") ",1)]),_St,c("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...d)=>r.clear_files&&r.clear_files(...d))},fSt),c("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...d)=>r.download_files&&r.download_files(...d))},gSt)])):G("",!0),i.showPersonalities?(C(),R("div",bSt,[_e(o,{ref:"mountedPersList",onShowPersList:r.onShowPersListFun,"on-mounted":r.onMountFun,"on-un-mounted":r.onUnmountFun,"on-remounted":n.onRemountFun,"on-talk":r.handleOnTalk,discussionPersonalities:r.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):G("",!0)])):G("",!0),i.selecting_model||i.selecting_binding?(C(),R("div",ESt,[c("div",ySt,[c("img",{src:i.loader_v0,class:"w-50 h-50"},null,8,vSt),SSt])])):G("",!0),c("div",TSt,[c("div",xSt,[t.loading?(C(),R("div",CSt,[c("img",{src:i.loader_v0},null,8,wSt),RSt])):G("",!0),t.loading?G("",!0):(C(),R("div",ASt,[c("div",NSt,[c("div",OSt,[(C(!0),R(ze,null,st(r.installedBindings,(d,h)=>(C(),R("div",{class:"w-fit h-fit inset-0 opacity-100",key:h+"-"+d.name,ref_for:!0,ref:"installedBindings",onMouseover:f=>r.showBindingHoveredIn(h),onMouseleave:e[4]||(e[4]=f=>r.showBindingHoveredOut())},[h!=r.binding_name?(C(),R("div",{key:0,class:Fe(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.bindingHoveredIndex===h?"scale-150":""])},[c("div",MSt,[c("button",{onClick:ae(f=>r.setBinding(d),["prevent"]),class:"w-10 h-10 relative"},[c("img",{src:d.icon?d.icon:i.modelImgPlaceholder,onError:e[3]||(e[3]=(...f)=>i.modelImgPlaceholder&&i.modelImgPlaceholder(...f)),class:Fe(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.bindingHoveredIndex===h?"scale-150 ":""+d.name==r.binding_name?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,kSt)],8,DSt)])],2)):G("",!0)],40,ISt))),128))])]),c("div",LSt,[c("button",{onClick:e[5]||(e[5]=ae(d=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:r.currentBindingIcon,class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:r.currentBinding?r.currentBinding.name:"unknown"},null,8,PSt)])])])),t.loading?G("",!0):(C(),R("div",USt,[c("div",FSt,[c("div",BSt,[(C(!0),R(ze,null,st(r.installedModels,(d,h)=>(C(),R("div",{class:"w-fit h-fit",key:h+"-"+d.name,ref_for:!0,ref:"installedModels",onMouseover:f=>r.showModelHoveredIn(h),onMouseleave:e[7]||(e[7]=f=>r.showModelHoveredOut())},[h!=r.model_name?(C(),R("div",{key:0,class:Fe(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.modelHoveredIndex===h?"scale-150":""])},[c("div",VSt,[c("button",{onClick:ae(f=>r.setModel(d),["prevent"]),class:"w-10 h-10 relative"},[c("img",{src:d.icon?d.icon:i.modelImgPlaceholder,onError:e[6]||(e[6]=(...f)=>n.personalityImgPlacehodler&&n.personalityImgPlacehodler(...f)),class:Fe(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.modelHoveredIndex===h?"scale-150 ":""+d.name==r.model_name?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,HSt)],8,zSt)])],2)):G("",!0)],40,GSt))),128))])]),c("div",qSt,[c("button",{onClick:e[8]||(e[8]=ae(d=>r.copyModelName(),["prevent"])),class:"w-8 h-8"},[c("img",{src:r.currentModelIcon,class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:r.currentModel?r.currentModel.name:"unknown"},null,8,YSt)])])])),t.loading?G("",!0):(C(),R("div",$St,[c("div",WSt,[c("div",KSt,[(C(!0),R(ze,null,st(r.mountedPersonalities,(d,h)=>(C(),R("div",{class:"w-fit h-fit inset-0 opacity-100",key:h+"-"+d.name,ref_for:!0,ref:"mountedPersonalities",onMouseover:f=>r.showPersonalityHoveredIn(h),onMouseleave:e[10]||(e[10]=f=>r.showPersonalityHoveredOut())},[h!=r.personality_name?(C(),R("div",{key:0,class:Fe(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.personalityHoveredIndex===h?"scale-150":""])},[c("div",QSt,[c("button",{onClick:ae(f=>r.onPersonalitySelected(d),["prevent"]),class:"w-10 h-10 relative"},[c("img",{src:i.bUrl+d.avatar,onError:e[9]||(e[9]=(...f)=>n.personalityImgPlacehodler&&n.personalityImgPlacehodler(...f)),class:Fe(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.personalityHoveredIndex===h?"scale-150 ":""+this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(d.full_path)?"border-secondary":"border-transparent z-0"]),title:d.name},null,42,ZSt)],8,XSt),i.personalityHoveredIndex===h?(C(),R("button",{key:0,onClick:ae(f=>r.unmountPersonality(d),["prevent"])},t0t,8,JSt)):G("",!0),i.personalityHoveredIndex===h?(C(),R("button",{key:1,onClick:ae(f=>r.remount_personality(d),["prevent"])},i0t,8,n0t)):G("",!0),i.personalityHoveredIndex===h?(C(),R("button",{key:2,onClick:ae(f=>r.handleOnTalk(d),["prevent"])},a0t,8,r0t)):G("",!0)])],2)):G("",!0)],40,jSt))),128))])]),_e(a,{ref:"mountedPers",onShowPersList:r.onShowPersListFun,onReady:r.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])])),c("div",l0t,[i.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(C(),St(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):G("",!0)]),c("div",c0t,[r.isDataSourceNamesValid?(C(),St(l,{key:0,icon:"feather:book",commandsList:r.dataSourceNames,sendCommand:r.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):G("",!0)]),c("div",d0t,[B(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[11]||(e[11]=d=>i.message=d),title:"Hold SHIFT + ENTER to add new line",onPaste:e[12]||(e[12]=(...d)=>r.handlePaste&&r.handlePaste(...d)),class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[13]||(e[13]=Ai(ae(d=>r.submitOnEnter(d),["exact"]),["enter"]))},`\r
`,544),[[he,i.message]])]),t.loading?(C(),R("button",{key:4,type:"button",class:"bg-red-500 dark:bg-red-800 hover:bg-red-600 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[14]||(e[14]=ae((...d)=>r.stopGenerating&&r.stopGenerating(...d),["stop"]))}," Stop generating ")):G("",!0),c("div",u0t,[t.loading?G("",!0):(C(),R("button",{key:0,type:"button",onClick:e[15]||(e[15]=(...d)=>r.submit&&r.submit(...d)),title:"Send",class:"w-6 text-panel hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},_0t)),h0t]),c("div",f0t,[t.loading?G("",!0):(C(),R("button",{key:0,type:"button",onClick:e[16]||(e[16]=(...d)=>r.submitWithInternetSearch&&r.submitWithInternetSearch(...d)),title:"Send With internet",class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},[c("img",{src:i.sendGlobe,width:"50",height:"50",style:{stroke:"currentColor",fill:"currentColor"}},null,8,m0t)])),g0t]),c("div",b0t,[t.loading?G("",!0):(C(),R("button",{key:0,type:"button",onClick:e[17]||(e[17]=(...d)=>r.startSpeechRecognition&&r.startSpeechRecognition(...d)),class:Fe([{"text-red-500":i.isListeningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"])},y0t,2)),v0t]),n.$store.state.config.active_tts_service!="None"?(C(),R("div",S0t,[i.is_rt?(C(),R("button",{key:0,type:"button",onClick:e[18]||(e[18]=(...d)=>r.stopRTCom&&r.stopRTCom(...d)),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90 bg-red-500 border borderred700 rounded-md"},x0t)):(C(),R("button",{key:1,type:"button",onClick:e[19]||(e[19]=(...d)=>r.startRTCom&&r.startRTCom(...d)),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90 bg-green-500 border border-green-700 rounded-md"},w0t)),R0t])):G("",!0),t.loading?G("",!0):(C(),R("div",A0t,[c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[20]||(e[20]=(...d)=>r.addFiles&&r.addFiles(...d)),multiple:""},null,544),c("button",{type:"button",onClick:e[21]||(e[21]=ae((...d)=>r.add_file&&r.add_file(...d),["prevent"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},O0t),I0t])),c("div",M0t,[t.loading?G("",!0):(C(),R("button",{key:0,type:"button",onClick:e[22]||(e[22]=ae((...d)=>r.takePicture&&r.takePicture(...d),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},k0t)),L0t]),c("div",P0t,[t.loading?G("",!0):(C(),R("button",{key:0,type:"button",onClick:e[23]||(e[23]=ae((...d)=>r.addWebLink&&r.addWebLink(...d),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer transform transition-transform hover:translate-y-[-5px] active:scale-90"},F0t)),B0t]),c("div",G0t,[t.loading?G("",!0):(C(),R("button",{key:0,type:"button",onClick:e[24]||(e[24]=ae((...d)=>r.makeAnEmptyUserMessage&&r.makeAnEmptyUserMessage(...d),["stop"])),class:"w-6 text-gray-800 hover:text-secondary duration-75 active:scale-90 hover:translate-y-[-5px]"},z0t)),H0t]),c("div",q0t,[t.loading?G("",!0):(C(),R("button",{key:0,type:"button",onClick:e[25]||(e[25]=ae((...d)=>r.makeAnEmptyAIMessage&&r.makeAnEmptyAIMessage(...d),["stop"])),class:"w-6 text-red-400 hover:text-secondary duration-75 active:scale-90 hover:translate-y-[-5px]"},$0t)),W0t])]),K0t])])]),_e(u,{ref:"universalForm",class:"z-20"},null,512)],64)}const IN=pt(zvt,[["render",j0t],["__scopeId","data-v-64fb461b"]]),Q0t={name:"WelcomeComponent",computed:{storeLogo(){return this.$store.state.config?hs:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:hs}},data(){},setup(){return{}}},X0t={class:"flex flex-col text-center w-full h-full"},Z0t={class:"flex flex-col text-center items-center"},J0t={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},eTt=["src"],tTt=c("div",{class:"flex flex-col items-start"},[c("p",{class:"text-2xl"},"LoLLMS"),c("p",{class:"text-gray-400 text-base"},"One tool to rule them all")],-1),nTt=c("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1),sTt=c("p",{class:"text-2xl"},"Welcome",-1),iTt=c("p",{class:"text-lg"},"Please create a new discussion or select existing one to start",-1);function rTt(n,e,t,s,i,r){return C(),R("div",X0t,[c("div",Z0t,[c("div",J0t,[c("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:n.$store.state.config==null?r.storeLogo:n.$store.state.config.app_custom_logo!=""?"/user_infos/"+n.$store.state.config.app_custom_logo:r.storeLogo,alt:"Logo"},null,8,eTt),tTt]),nTt,sTt,iTt])])}const MN=pt(Q0t,[["render",rTt]]);var oTt=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}(),Pd=globalThis&&globalThis.__assign||function(){return Pd=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Pd.apply(this,arguments)},Ud={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},DN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=Ud),this._items=e,this._options=Pd(Pd({},Ud),t),this._init()}return n.prototype._init=function(){var e=this;this._items.length&&this._items.map(function(t){t.active&&e.open(t.id),t.triggerEl.addEventListener("click",function(){e.toggle(t.id)})})},n.prototype.getItem=function(e){return this._items.filter(function(t){return t.id===e})[0]},n.prototype.open=function(e){var t,s,i=this,r=this.getItem(e);this._options.alwaysOpen||this._items.map(function(o){var a,l;o!==r&&((a=o.triggerEl.classList).remove.apply(a,i._options.activeClasses.split(" ")),(l=o.triggerEl.classList).add.apply(l,i._options.inactiveClasses.split(" ")),o.targetEl.classList.add("hidden"),o.triggerEl.setAttribute("aria-expanded","false"),o.active=!1,o.iconEl&&o.iconEl.classList.remove("rotate-180"))}),(t=r.triggerEl.classList).add.apply(t,this._options.activeClasses.split(" ")),(s=r.triggerEl.classList).remove.apply(s,this._options.inactiveClasses.split(" ")),r.triggerEl.setAttribute("aria-expanded","true"),r.targetEl.classList.remove("hidden"),r.active=!0,r.iconEl&&r.iconEl.classList.add("rotate-180"),this._options.onOpen(this,r)},n.prototype.toggle=function(e){var t=this.getItem(e);t.active?this.close(e):this.open(e),this._options.onToggle(this,t)},n.prototype.close=function(e){var t,s,i=this.getItem(e);(t=i.triggerEl.classList).remove.apply(t,this._options.activeClasses.split(" ")),(s=i.triggerEl.classList).add.apply(s,this._options.inactiveClasses.split(" ")),i.targetEl.classList.add("hidden"),i.triggerEl.setAttribute("aria-expanded","false"),i.active=!1,i.iconEl&&i.iconEl.classList.remove("rotate-180"),this._options.onClose(this,i)},n}();function sE(){document.querySelectorAll("[data-accordion]").forEach(function(n){var e=n.getAttribute("data-accordion"),t=n.getAttribute("data-active-classes"),s=n.getAttribute("data-inactive-classes"),i=[];n.querySelectorAll("[data-accordion-target]").forEach(function(r){if(r.closest("[data-accordion]")===n){var o={id:r.getAttribute("data-accordion-target"),triggerEl:r,targetEl:document.querySelector(r.getAttribute("data-accordion-target")),iconEl:r.querySelector("[data-accordion-icon]"),active:r.getAttribute("aria-expanded")==="true"};i.push(o)}}),new DN(i,{alwaysOpen:e==="open",activeClasses:t||Ud.activeClasses,inactiveClasses:s||Ud.inactiveClasses})})}typeof window<"u"&&(window.Accordion=DN,window.initAccordions=sE);var Fd=globalThis&&globalThis.__assign||function(){return Fd=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Fd.apply(this,arguments)},Yx={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},kN=function(){function n(e,t,s){e===void 0&&(e=null),t===void 0&&(t=null),s===void 0&&(s=Yx),this._targetEl=e,this._triggerEl=t,this._options=Fd(Fd({},Yx),s),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){e.toggle()}))},n.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},n.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},n.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},n}();function iE(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(n){var e=n.getAttribute("data-collapse-toggle"),t=document.getElementById(e);t?new kN(t,n):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=kN,window.initCollapses=iE);var Mr=globalThis&&globalThis.__assign||function(){return Mr=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Mr.apply(this,arguments)},md={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},LN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=md),this._items=e,this._options=Mr(Mr(Mr({},md),t),{indicators:Mr(Mr({},md.indicators),t.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._init()}return n.prototype._init=function(){var e=this;this._items.map(function(t){t.el.classList.add("absolute","inset-0","transition-transform","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(t,s){t.el.addEventListener("click",function(){e.slideTo(s)})})},n.prototype.getItem=function(e){return this._items[e]},n.prototype.slideTo=function(e){var t=this._items[e],s={left:t.position===0?this._items[this._items.length-1]:this._items[t.position-1],middle:t,right:t.position===this._items.length-1?this._items[0]:this._items[t.position+1]};this._rotate(s),this._setActiveItem(t),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},n.prototype.next=function(){var e=this._getActiveItem(),t=null;e.position===this._items.length-1?t=this._items[0]:t=this._items[e.position+1],this.slideTo(t.position),this._options.onNext(this)},n.prototype.prev=function(){var e=this._getActiveItem(),t=null;e.position===0?t=this._items[this._items.length-1]:t=this._items[e.position-1],this.slideTo(t.position),this._options.onPrev(this)},n.prototype._rotate=function(e){this._items.map(function(t){t.el.classList.add("hidden")}),e.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.left.el.classList.add("-translate-x-full","z-10"),e.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),e.middle.el.classList.add("translate-x-0","z-20"),e.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.right.el.classList.add("translate-x-full","z-10")},n.prototype.cycle=function(){var e=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){e.next()},this._intervalDuration))},n.prototype.pause=function(){clearInterval(this._intervalInstance)},n.prototype._getActiveItem=function(){return this._activeItem},n.prototype._setActiveItem=function(e){var t,s,i=this;this._activeItem=e;var r=e.position;this._indicators.length&&(this._indicators.map(function(o){var a,l;o.el.setAttribute("aria-current","false"),(a=o.el.classList).remove.apply(a,i._options.indicators.activeClasses.split(" ")),(l=o.el.classList).add.apply(l,i._options.indicators.inactiveClasses.split(" "))}),(t=this._indicators[r].el.classList).add.apply(t,this._options.indicators.activeClasses.split(" ")),(s=this._indicators[r].el.classList).remove.apply(s,this._options.indicators.inactiveClasses.split(" ")),this._indicators[r].el.setAttribute("aria-current","true"))},n}();function rE(){document.querySelectorAll("[data-carousel]").forEach(function(n){var e=n.getAttribute("data-carousel-interval"),t=n.getAttribute("data-carousel")==="slide",s=[],i=0;n.querySelectorAll("[data-carousel-item]").length&&Array.from(n.querySelectorAll("[data-carousel-item]")).map(function(u,d){s.push({position:d,el:u}),u.getAttribute("data-carousel-item")==="active"&&(i=d)});var r=[];n.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(n.querySelectorAll("[data-carousel-slide-to]")).map(function(u){r.push({position:parseInt(u.getAttribute("data-carousel-slide-to")),el:u})});var o=new LN(s,{defaultPosition:i,indicators:{items:r},interval:e||md.interval});t&&o.cycle();var a=n.querySelector("[data-carousel-next]"),l=n.querySelector("[data-carousel-prev]");a&&a.addEventListener("click",function(){o.next()}),l&&l.addEventListener("click",function(){o.prev()})})}typeof window<"u"&&(window.Carousel=LN,window.initCarousels=rE);var Bd=globalThis&&globalThis.__assign||function(){return Bd=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Bd.apply(this,arguments)},$x={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},PN=function(){function n(e,t,s){e===void 0&&(e=null),t===void 0&&(t=null),s===void 0&&(s=$x),this._targetEl=e,this._triggerEl=t,this._options=Bd(Bd({},$x),s),this._init()}return n.prototype._init=function(){var e=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){e.hide()})},n.prototype.hide=function(){var e=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){e._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},n}();function oE(){document.querySelectorAll("[data-dismiss-target]").forEach(function(n){var e=n.getAttribute("data-dismiss-target"),t=document.querySelector(e);t?new PN(t,n):console.error('The dismiss element with id "'.concat(e,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=PN,window.initDismisses=oE);var Hn="top",gs="bottom",bs="right",qn="left",aE="auto",Zl=[Hn,gs,bs,qn],sa="start",Pl="end",aTt="clippingParents",UN="viewport",Wa="popper",lTt="reference",Wx=Zl.reduce(function(n,e){return n.concat([e+"-"+sa,e+"-"+Pl])},[]),FN=[].concat(Zl,[aE]).reduce(function(n,e){return n.concat([e,e+"-"+sa,e+"-"+Pl])},[]),cTt="beforeRead",dTt="read",uTt="afterRead",pTt="beforeMain",_Tt="main",hTt="afterMain",fTt="beforeWrite",mTt="write",gTt="afterWrite",bTt=[cTt,dTt,uTt,pTt,_Tt,hTt,fTt,mTt,gTt];function ei(n){return n?(n.nodeName||"").toLowerCase():null}function Jn(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Qr(n){var e=Jn(n).Element;return n instanceof e||n instanceof Element}function fs(n){var e=Jn(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function lE(n){if(typeof ShadowRoot>"u")return!1;var e=Jn(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function ETt(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var s=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];!fs(r)||!ei(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(o){var a=i[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function yTt(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 i=e.elements[s],r=e.attributes[s]||{},o=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:t[s]),a=o.reduce(function(l,u){return l[u]="",l},{});!fs(i)||!ei(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(l){i.removeAttribute(l)}))})}}const vTt={name:"applyStyles",enabled:!0,phase:"write",fn:ETt,effect:yTt,requires:["computeStyles"]};function Xs(n){return n.split("-")[0]}var zr=Math.max,Gd=Math.min,ia=Math.round;function Og(){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 BN(){return!/^((?!chrome|android).)*safari/i.test(Og())}function ra(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var s=n.getBoundingClientRect(),i=1,r=1;e&&fs(n)&&(i=n.offsetWidth>0&&ia(s.width)/n.offsetWidth||1,r=n.offsetHeight>0&&ia(s.height)/n.offsetHeight||1);var o=Qr(n)?Jn(n):window,a=o.visualViewport,l=!BN()&&t,u=(s.left+(l&&a?a.offsetLeft:0))/i,d=(s.top+(l&&a?a.offsetTop:0))/r,h=s.width/i,f=s.height/r;return{width:h,height:f,top:d,right:u+h,bottom:d+f,left:u,x:u,y:d}}function cE(n){var e=ra(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 GN(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&lE(t)){var s=e;do{if(s&&n.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Ni(n){return Jn(n).getComputedStyle(n)}function STt(n){return["table","td","th"].indexOf(ei(n))>=0}function fr(n){return((Qr(n)?n.ownerDocument:n.document)||window.document).documentElement}function Vu(n){return ei(n)==="html"?n:n.assignedSlot||n.parentNode||(lE(n)?n.host:null)||fr(n)}function Kx(n){return!fs(n)||Ni(n).position==="fixed"?null:n.offsetParent}function TTt(n){var e=/firefox/i.test(Og()),t=/Trident/i.test(Og());if(t&&fs(n)){var s=Ni(n);if(s.position==="fixed")return null}var i=Vu(n);for(lE(i)&&(i=i.host);fs(i)&&["html","body"].indexOf(ei(i))<0;){var r=Ni(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function Jl(n){for(var e=Jn(n),t=Kx(n);t&&STt(t)&&Ni(t).position==="static";)t=Kx(t);return t&&(ei(t)==="html"||ei(t)==="body"&&Ni(t).position==="static")?e:t||TTt(n)||e}function dE(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function _l(n,e,t){return zr(n,Gd(e,t))}function xTt(n,e,t){var s=_l(n,e,t);return s>t?t:s}function VN(){return{top:0,right:0,bottom:0,left:0}}function zN(n){return Object.assign({},VN(),n)}function HN(n,e){return e.reduce(function(t,s){return t[s]=n,t},{})}var CTt=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,zN(typeof e!="number"?e:HN(e,Zl))};function wTt(n){var e,t=n.state,s=n.name,i=n.options,r=t.elements.arrow,o=t.modifiersData.popperOffsets,a=Xs(t.placement),l=dE(a),u=[qn,bs].indexOf(a)>=0,d=u?"height":"width";if(!(!r||!o)){var h=CTt(i.padding,t),f=cE(r),_=l==="y"?Hn:qn,m=l==="y"?gs:bs,E=t.rects.reference[d]+t.rects.reference[l]-o[l]-t.rects.popper[d],b=o[l]-t.rects.reference[l],g=Jl(r),y=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,v=E/2-b/2,S=h[_],w=y-f[d]-h[m],x=y/2-f[d]/2+v,A=_l(S,x,w),D=l;t.modifiersData[s]=(e={},e[D]=A,e.centerOffset=A-x,e)}}function RTt(n){var e=n.state,t=n.options,s=t.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||GN(e.elements.popper,i)&&(e.elements.arrow=i))}const ATt={name:"arrow",enabled:!0,phase:"main",fn:wTt,effect:RTt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oa(n){return n.split("-")[1]}var NTt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function OTt(n,e){var t=n.x,s=n.y,i=e.devicePixelRatio||1;return{x:ia(t*i)/i||0,y:ia(s*i)/i||0}}function jx(n){var e,t=n.popper,s=n.popperRect,i=n.placement,r=n.variation,o=n.offsets,a=n.position,l=n.gpuAcceleration,u=n.adaptive,d=n.roundOffsets,h=n.isFixed,f=o.x,_=f===void 0?0:f,m=o.y,E=m===void 0?0:m,b=typeof d=="function"?d({x:_,y:E}):{x:_,y:E};_=b.x,E=b.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=qn,S=Hn,w=window;if(u){var x=Jl(t),A="clientHeight",D="clientWidth";if(x===Jn(t)&&(x=fr(t),Ni(x).position!=="static"&&a==="absolute"&&(A="scrollHeight",D="scrollWidth")),x=x,i===Hn||(i===qn||i===bs)&&r===Pl){S=gs;var T=h&&x===w&&w.visualViewport?w.visualViewport.height:x[A];E-=T-s.height,E*=l?1:-1}if(i===qn||(i===Hn||i===gs)&&r===Pl){v=bs;var O=h&&x===w&&w.visualViewport?w.visualViewport.width:x[D];_-=O-s.width,_*=l?1:-1}}var F=Object.assign({position:a},u&&NTt),z=d===!0?OTt({x:_,y:E},Jn(t)):{x:_,y:E};if(_=z.x,E=z.y,l){var Z;return Object.assign({},F,(Z={},Z[S]=y?"0":"",Z[v]=g?"0":"",Z.transform=(w.devicePixelRatio||1)<=1?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",Z))}return Object.assign({},F,(e={},e[S]=y?E+"px":"",e[v]=g?_+"px":"",e.transform="",e))}function ITt(n){var e=n.state,t=n.options,s=t.gpuAcceleration,i=s===void 0?!0:s,r=t.adaptive,o=r===void 0?!0:r,a=t.roundOffsets,l=a===void 0?!0:a,u={placement:Xs(e.placement),variation:oa(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,jx(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,jx(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const MTt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ITt,data:{}};var xc={passive:!0};function DTt(n){var e=n.state,t=n.instance,s=n.options,i=s.scroll,r=i===void 0?!0:i,o=s.resize,a=o===void 0?!0:o,l=Jn(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(d){d.addEventListener("scroll",t.update,xc)}),a&&l.addEventListener("resize",t.update,xc),function(){r&&u.forEach(function(d){d.removeEventListener("scroll",t.update,xc)}),a&&l.removeEventListener("resize",t.update,xc)}}const kTt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:DTt,data:{}};var LTt={left:"right",right:"left",bottom:"top",top:"bottom"};function gd(n){return n.replace(/left|right|bottom|top/g,function(e){return LTt[e]})}var PTt={start:"end",end:"start"};function Qx(n){return n.replace(/start|end/g,function(e){return PTt[e]})}function uE(n){var e=Jn(n),t=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:t,scrollTop:s}}function pE(n){return ra(fr(n)).left+uE(n).scrollLeft}function UTt(n,e){var t=Jn(n),s=fr(n),i=t.visualViewport,r=s.clientWidth,o=s.clientHeight,a=0,l=0;if(i){r=i.width,o=i.height;var u=BN();(u||!u&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:r,height:o,x:a+pE(n),y:l}}function FTt(n){var e,t=fr(n),s=uE(n),i=(e=n.ownerDocument)==null?void 0:e.body,r=zr(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=zr(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+pE(n),l=-s.scrollTop;return Ni(i||t).direction==="rtl"&&(a+=zr(t.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function _E(n){var e=Ni(n),t=e.overflow,s=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+s)}function qN(n){return["html","body","#document"].indexOf(ei(n))>=0?n.ownerDocument.body:fs(n)&&_E(n)?n:qN(Vu(n))}function hl(n,e){var t;e===void 0&&(e=[]);var s=qN(n),i=s===((t=n.ownerDocument)==null?void 0:t.body),r=Jn(s),o=i?[r].concat(r.visualViewport||[],_E(s)?s:[]):s,a=e.concat(o);return i?a:a.concat(hl(Vu(o)))}function Ig(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function BTt(n,e){var t=ra(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 Xx(n,e,t){return e===UN?Ig(UTt(n,t)):Qr(e)?BTt(e,t):Ig(FTt(fr(n)))}function GTt(n){var e=hl(Vu(n)),t=["absolute","fixed"].indexOf(Ni(n).position)>=0,s=t&&fs(n)?Jl(n):n;return Qr(s)?e.filter(function(i){return Qr(i)&&GN(i,s)&&ei(i)!=="body"}):[]}function VTt(n,e,t,s){var i=e==="clippingParents"?GTt(n):[].concat(e),r=[].concat(i,[t]),o=r[0],a=r.reduce(function(l,u){var d=Xx(n,u,s);return l.top=zr(d.top,l.top),l.right=Gd(d.right,l.right),l.bottom=Gd(d.bottom,l.bottom),l.left=zr(d.left,l.left),l},Xx(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 YN(n){var e=n.reference,t=n.element,s=n.placement,i=s?Xs(s):null,r=s?oa(s):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case Hn:l={x:o,y:e.y-t.height};break;case gs:l={x:o,y:e.y+e.height};break;case bs:l={x:e.x+e.width,y:a};break;case qn:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var u=i?dE(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(r){case sa:l[u]=l[u]-(e[d]/2-t[d]/2);break;case Pl:l[u]=l[u]+(e[d]/2-t[d]/2);break}}return l}function Ul(n,e){e===void 0&&(e={});var t=e,s=t.placement,i=s===void 0?n.placement:s,r=t.strategy,o=r===void 0?n.strategy:r,a=t.boundary,l=a===void 0?aTt:a,u=t.rootBoundary,d=u===void 0?UN:u,h=t.elementContext,f=h===void 0?Wa:h,_=t.altBoundary,m=_===void 0?!1:_,E=t.padding,b=E===void 0?0:E,g=zN(typeof b!="number"?b:HN(b,Zl)),y=f===Wa?lTt:Wa,v=n.rects.popper,S=n.elements[m?y:f],w=VTt(Qr(S)?S:S.contextElement||fr(n.elements.popper),l,d,o),x=ra(n.elements.reference),A=YN({reference:x,element:v,strategy:"absolute",placement:i}),D=Ig(Object.assign({},v,A)),T=f===Wa?D:x,O={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},F=n.modifiersData.offset;if(f===Wa&&F){var z=F[i];Object.keys(O).forEach(function(Z){var M=[bs,gs].indexOf(Z)>=0?1:-1,q=[Hn,gs].indexOf(Z)>=0?"y":"x";O[Z]+=z[q]*M})}return O}function zTt(n,e){e===void 0&&(e={});var t=e,s=t.placement,i=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?FN:l,d=oa(s),h=d?a?Wx:Wx.filter(function(m){return oa(m)===d}):Zl,f=h.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=h);var _=f.reduce(function(m,E){return m[E]=Ul(n,{placement:E,boundary:i,rootBoundary:r,padding:o})[Xs(E)],m},{});return Object.keys(_).sort(function(m,E){return _[m]-_[E]})}function HTt(n){if(Xs(n)===aE)return[];var e=gd(n);return[Qx(n),e,Qx(e)]}function qTt(n){var e=n.state,t=n.options,s=n.name;if(!e.modifiersData[s]._skip){for(var i=t.mainAxis,r=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,u=t.padding,d=t.boundary,h=t.rootBoundary,f=t.altBoundary,_=t.flipVariations,m=_===void 0?!0:_,E=t.allowedAutoPlacements,b=e.options.placement,g=Xs(b),y=g===b,v=l||(y||!m?[gd(b)]:HTt(b)),S=[b].concat(v).reduce(function(Ee,Oe){return Ee.concat(Xs(Oe)===aE?zTt(e,{placement:Oe,boundary:d,rootBoundary:h,padding:u,flipVariations:m,allowedAutoPlacements:E}):Oe)},[]),w=e.rects.reference,x=e.rects.popper,A=new Map,D=!0,T=S[0],O=0;O<S.length;O++){var F=S[O],z=Xs(F),Z=oa(F)===sa,M=[Hn,gs].indexOf(z)>=0,q=M?"width":"height",H=Ul(e,{placement:F,boundary:d,rootBoundary:h,altBoundary:f,padding:u}),P=M?Z?bs:qn:Z?gs:Hn;w[q]>x[q]&&(P=gd(P));var $=gd(P),J=[];if(r&&J.push(H[z]<=0),a&&J.push(H[P]<=0,H[$]<=0),J.every(function(Ee){return Ee})){T=F,D=!1;break}A.set(F,J)}if(D)for(var re=m?3:1,me=function(Oe){var Me=S.find(function(j){var pe=A.get(j);if(pe)return pe.slice(0,Oe).every(function(ue){return ue})});if(Me)return T=Me,"break"},Se=re;Se>0;Se--){var le=me(Se);if(le==="break")break}e.placement!==T&&(e.modifiersData[s]._skip=!0,e.placement=T,e.reset=!0)}}const YTt={name:"flip",enabled:!0,phase:"main",fn:qTt,requiresIfExists:["offset"],data:{_skip:!1}};function Zx(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 Jx(n){return[Hn,bs,gs,qn].some(function(e){return n[e]>=0})}function $Tt(n){var e=n.state,t=n.name,s=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,o=Ul(e,{elementContext:"reference"}),a=Ul(e,{altBoundary:!0}),l=Zx(o,s),u=Zx(a,i,r),d=Jx(l),h=Jx(u);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const WTt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$Tt};function KTt(n,e,t){var s=Xs(n),i=[qn,Hn].indexOf(s)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=r[0],a=r[1];return o=o||0,a=(a||0)*i,[qn,bs].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function jTt(n){var e=n.state,t=n.options,s=n.name,i=t.offset,r=i===void 0?[0,0]:i,o=FN.reduce(function(d,h){return d[h]=KTt(h,e.rects,r),d},{}),a=o[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[s]=o}const QTt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jTt};function XTt(n){var e=n.state,t=n.name;e.modifiersData[t]=YN({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const ZTt={name:"popperOffsets",enabled:!0,phase:"read",fn:XTt,data:{}};function JTt(n){return n==="x"?"y":"x"}function ext(n){var e=n.state,t=n.options,s=n.name,i=t.mainAxis,r=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,u=t.rootBoundary,d=t.altBoundary,h=t.padding,f=t.tether,_=f===void 0?!0:f,m=t.tetherOffset,E=m===void 0?0:m,b=Ul(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:d}),g=Xs(e.placement),y=oa(e.placement),v=!y,S=dE(g),w=JTt(S),x=e.modifiersData.popperOffsets,A=e.rects.reference,D=e.rects.popper,T=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,O=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),F=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(x){if(r){var Z,M=S==="y"?Hn:qn,q=S==="y"?gs:bs,H=S==="y"?"height":"width",P=x[S],$=P+b[M],J=P-b[q],re=_?-D[H]/2:0,me=y===sa?A[H]:D[H],Se=y===sa?-D[H]:-A[H],le=e.elements.arrow,Ee=_&&le?cE(le):{width:0,height:0},Oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:VN(),Me=Oe[M],j=Oe[q],pe=_l(0,A[H],Ee[H]),ue=v?A[H]/2-re-pe-Me-O.mainAxis:me-pe-Me-O.mainAxis,Ce=v?-A[H]/2+re+pe+j+O.mainAxis:Se+pe+j+O.mainAxis,ke=e.elements.arrow&&Jl(e.elements.arrow),N=ke?S==="y"?ke.clientTop||0:ke.clientLeft||0:0,V=(Z=F==null?void 0:F[S])!=null?Z:0,Y=P+ue-V-N,oe=P+Ce-V,ne=_l(_?Gd($,Y):$,P,_?zr(J,oe):J);x[S]=ne,z[S]=ne-P}if(a){var Te,Ae=S==="x"?Hn:qn,te=S==="x"?gs:bs,we=x[w],ge=w==="y"?"height":"width",De=we+b[Ae],k=we-b[te],I=[Hn,qn].indexOf(g)!==-1,W=(Te=F==null?void 0:F[w])!=null?Te:0,ye=I?De:we-A[ge]-D[ge]-W+O.altAxis,K=I?we+A[ge]+D[ge]-W-O.altAxis:k,ee=_&&I?xTt(ye,we,K):_l(_?ye:De,we,_?K:k);x[w]=ee,z[w]=ee-we}e.modifiersData[s]=z}}const txt={name:"preventOverflow",enabled:!0,phase:"main",fn:ext,requiresIfExists:["offset"]};function nxt(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function sxt(n){return n===Jn(n)||!fs(n)?uE(n):nxt(n)}function ixt(n){var e=n.getBoundingClientRect(),t=ia(e.width)/n.offsetWidth||1,s=ia(e.height)/n.offsetHeight||1;return t!==1||s!==1}function rxt(n,e,t){t===void 0&&(t=!1);var s=fs(e),i=fs(e)&&ixt(e),r=fr(e),o=ra(n,i,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!t)&&((ei(e)!=="body"||_E(r))&&(a=sxt(e)),fs(e)?(l=ra(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=pE(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function oxt(n){var e=new Map,t=new Set,s=[];n.forEach(function(r){e.set(r.name,r)});function i(r){t.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),s.push(r)}return n.forEach(function(r){t.has(r.name)||i(r)}),s}function axt(n){var e=oxt(n);return bTt.reduce(function(t,s){return t.concat(e.filter(function(i){return i.phase===s}))},[])}function lxt(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function cxt(n){var e=n.reduce(function(t,s){var i=t[s.name];return t[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,t},{});return Object.keys(e).map(function(t){return e[t]})}var eC={placement:"bottom",modifiers:[],strategy:"absolute"};function tC(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function dxt(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,s=t===void 0?[]:t,i=e.defaultOptions,r=i===void 0?eC:i;return function(a,l,u){u===void 0&&(u=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},eC,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],f=!1,_={state:d,setOptions:function(g){var y=typeof g=="function"?g(d.options):g;E(),d.options=Object.assign({},r,d.options,y),d.scrollParents={reference:Qr(a)?hl(a):a.contextElement?hl(a.contextElement):[],popper:hl(l)};var v=axt(cxt([].concat(s,d.options.modifiers)));return d.orderedModifiers=v.filter(function(S){return S.enabled}),m(),_.update()},forceUpdate:function(){if(!f){var g=d.elements,y=g.reference,v=g.popper;if(tC(y,v)){d.rects={reference:rxt(y,Jl(v),d.options.strategy==="fixed"),popper:cE(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(O){return d.modifiersData[O.name]=Object.assign({},O.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var w=d.orderedModifiers[S],x=w.fn,A=w.options,D=A===void 0?{}:A,T=w.name;typeof x=="function"&&(d=x({state:d,options:D,name:T,instance:_})||d)}}}},update:lxt(function(){return new Promise(function(b){_.forceUpdate(),b(d)})}),destroy:function(){E(),f=!0}};if(!tC(a,l))return _;_.setOptions(u).then(function(b){!f&&u.onFirstUpdate&&u.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var g=b.name,y=b.options,v=y===void 0?{}:y,S=b.effect;if(typeof S=="function"){var w=S({state:d,name:g,instance:_,options:v}),x=function(){};h.push(w||x)}})}function E(){h.forEach(function(b){return b()}),h=[]}return _}}var uxt=[kTt,ZTt,MTt,vTt,QTt,YTt,txt,ATt,WTt],hE=dxt({defaultModifiers:uxt}),Qi=globalThis&&globalThis.__assign||function(){return Qi=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Qi.apply(this,arguments)},Cc=globalThis&&globalThis.__spreadArray||function(n,e,t){if(t||arguments.length===2)for(var s=0,i=e.length,r;s<i;s++)(r||!(s in e))&&(r||(r=Array.prototype.slice.call(e,0,s)),r[s]=e[s]);return n.concat(r||Array.prototype.slice.call(e))},Xi={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},$N=function(){function n(e,t,s){e===void 0&&(e=null),t===void 0&&(t=null),s===void 0&&(s=Xi),this._targetEl=e,this._triggerEl=t,this._options=Qi(Qi({},Xi),s),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();this._options.triggerType==="click"&&t.showEvents.forEach(function(s){e._triggerEl.addEventListener(s,function(){e.toggle()})}),this._options.triggerType==="hover"&&(t.showEvents.forEach(function(s){e._triggerEl.addEventListener(s,function(){s==="click"?e.toggle():setTimeout(function(){e.show()},e._options.delay)}),e._targetEl.addEventListener(s,function(){e.show()})}),t.hideEvents.forEach(function(s){e._triggerEl.addEventListener(s,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},e._options.delay)}),e._targetEl.addEventListener(s,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},e._options.delay)})}))},n.prototype._createPopperInstance=function(){return hE(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var s=e.target,i=this._options.ignoreClickOutsideClass,r=!1;if(i){var o=document.querySelectorAll(".".concat(i));o.forEach(function(a){if(a.contains(s)){r=!0;return}})}s!==t&&!t.contains(s)&&!this._triggerEl.contains(s)&&!r&&this.isVisible()&&this.hide()},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},n.prototype.isVisible=function(){return this._visible},n.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(e){return Qi(Qi({},e),{modifiers:Cc(Cc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(e){return Qi(Qi({},e),{modifiers:Cc(Cc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},n}();function fE(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(n){var e=n.getAttribute("data-dropdown-toggle"),t=document.getElementById(e);if(t){var s=n.getAttribute("data-dropdown-placement"),i=n.getAttribute("data-dropdown-offset-skidding"),r=n.getAttribute("data-dropdown-offset-distance"),o=n.getAttribute("data-dropdown-trigger"),a=n.getAttribute("data-dropdown-delay"),l=n.getAttribute("data-dropdown-ignore-click-outside-class");new $N(t,n,{placement:s||Xi.placement,triggerType:o||Xi.triggerType,offsetSkidding:i?parseInt(i):Xi.offsetSkidding,offsetDistance:r?parseInt(r):Xi.offsetDistance,delay:a?parseInt(a):Xi.delay,ignoreClickOutsideClass:l||Xi.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(e,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=$N,window.initDropdowns=fE);var Vd=globalThis&&globalThis.__assign||function(){return Vd=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Vd.apply(this,arguments)},ko={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},Mg=function(){function n(e,t){e===void 0&&(e=null),t===void 0&&(t=ko),this._targetEl=e,this._options=Vd(Vd({},ko),t),this._isHidden=!0,this._backdropEl=null,this._init()}return n.prototype._init=function(){var e=this;this._targetEl&&this._getPlacementClasses().map(function(t){e._targetEl.classList.add(t)})},n.prototype._createBackdrop=function(){var e;if(this._isHidden){var t=document.createElement("div");t.setAttribute("modal-backdrop",""),(e=t.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(t),this._backdropEl=t}},n.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},n.prototype._setupModalCloseEventListeners=function(){var e=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(t){e._handleOutsideClick(t.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._handleOutsideClick=function(e){(e===this._targetEl||e===this._backdropEl&&this.isVisible())&&this.hide()},n.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},n.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},n.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,document.body.classList.add("overflow-hidden"),this._options.closable&&this._setupModalCloseEventListeners(),this._options.onShow(this))},n.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},n.prototype.isVisible=function(){return!this._isHidden},n.prototype.isHidden=function(){return this._isHidden},n}(),wc=function(n,e){return e.some(function(t){return t.id===n})?e.find(function(t){return t.id===n}):null};function mE(){var n=[];document.querySelectorAll("[data-modal-target]").forEach(function(e){var t=e.getAttribute("data-modal-target"),s=document.getElementById(t);if(s){var i=s.getAttribute("data-modal-placement"),r=s.getAttribute("data-modal-backdrop");wc(t,n)||n.push({id:t,object:new Mg(s,{placement:i||ko.placement,backdrop:r||ko.backdrop})})}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(e){var t=e.getAttribute("data-modal-toggle"),s=document.getElementById(t);if(s){var i=s.getAttribute("data-modal-placement"),r=s.getAttribute("data-modal-backdrop"),o=wc(t,n);o||(o={id:t,object:new Mg(s,{placement:i||ko.placement,backdrop:r||ko.backdrop})},n.push(o)),e.addEventListener("click",function(){o.object.toggle()})}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(e){var t=e.getAttribute("data-modal-show"),s=document.getElementById(t);if(s){var i=wc(t,n);i?e.addEventListener("click",function(){i.object.isHidden&&i.object.show()}):console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(e){var t=e.getAttribute("data-modal-hide"),s=document.getElementById(t);if(s){var i=wc(t,n);i?e.addEventListener("click",function(){i.object.isVisible&&i.object.hide()}):console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=Mg,window.initModals=mE);var zd=globalThis&&globalThis.__assign||function(){return zd=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},zd.apply(this,arguments)},Dr={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},WN=function(){function n(e,t){e===void 0&&(e=null),t===void 0&&(t=Dr),this._targetEl=e,this._options=zd(zd({},Dr),t),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(t){e._targetEl.classList.add(t)}),document.addEventListener("keydown",function(t){t.key==="Escape"&&e.isVisible()&&e.hide()})},n.prototype.hide=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(t){e._targetEl.classList.remove(t)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(t){e._targetEl.classList.add(t)})):(this._getPlacementClasses(this._options.placement).active.map(function(t){e._targetEl.classList.remove(t)}),this._getPlacementClasses(this._options.placement).inactive.map(function(t){e._targetEl.classList.add(t)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},n.prototype.show=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(t){e._targetEl.classList.add(t)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(t){e._targetEl.classList.remove(t)})):(this._getPlacementClasses(this._options.placement).active.map(function(t){e._targetEl.classList.add(t)}),this._getPlacementClasses(this._options.placement).inactive.map(function(t){e._targetEl.classList.remove(t)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},n.prototype._createBackdrop=function(){var e,t=this;if(!this._visible){var s=document.createElement("div");s.setAttribute("drawer-backdrop",""),(e=s.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(s),s.addEventListener("click",function(){t.hide()})}},n.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},n.prototype._getPlacementClasses=function(e){switch(e){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},n.prototype.isHidden=function(){return!this._visible},n.prototype.isVisible=function(){return this._visible},n}(),Rc=function(n,e){if(e.some(function(t){return t.id===n}))return e.find(function(t){return t.id===n})};function gE(){var n=[];document.querySelectorAll("[data-drawer-target]").forEach(function(e){var t=e.getAttribute("data-drawer-target"),s=document.getElementById(t);if(s){var i=e.getAttribute("data-drawer-placement"),r=e.getAttribute("data-drawer-body-scrolling"),o=e.getAttribute("data-drawer-backdrop"),a=e.getAttribute("data-drawer-edge"),l=e.getAttribute("data-drawer-edge-offset");Rc(t,n)||n.push({id:t,object:new WN(s,{placement:i||Dr.placement,bodyScrolling:r?r==="true":Dr.bodyScrolling,backdrop:o?o==="true":Dr.backdrop,edge:a?a==="true":Dr.edge,edgeOffset:l||Dr.edgeOffset})})}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var t=e.getAttribute("data-drawer-toggle"),s=document.getElementById(t);if(s){var i=Rc(t,n);i?e.addEventListener("click",function(){i.object.toggle()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var t=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide"),s=document.getElementById(t);if(s){var i=Rc(t,n);i?e.addEventListener("click",function(){i.object.hide()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var t=e.getAttribute("data-drawer-show"),s=document.getElementById(t);if(s){var i=Rc(t,n);i?e.addEventListener("click",function(){i.object.show()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=WN,window.initDrawers=gE);var Hd=globalThis&&globalThis.__assign||function(){return Hd=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Hd.apply(this,arguments)},nC={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},KN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=nC),this._items=e,this._activeTab=t?this.getTab(t.defaultTabId):null,this._options=Hd(Hd({},nC),t),this._init()}return n.prototype._init=function(){var e=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(t){t.triggerEl.addEventListener("click",function(){e.show(t.id)})}))},n.prototype.getActiveTab=function(){return this._activeTab},n.prototype._setActiveTab=function(e){this._activeTab=e},n.prototype.getTab=function(e){return this._items.filter(function(t){return t.id===e})[0]},n.prototype.show=function(e,t){var s,i,r=this;t===void 0&&(t=!1);var o=this.getTab(e);o===this._activeTab&&!t||(this._items.map(function(a){var l,u;a!==o&&((l=a.triggerEl.classList).remove.apply(l,r._options.activeClasses.split(" ")),(u=a.triggerEl.classList).add.apply(u,r._options.inactiveClasses.split(" ")),a.targetEl.classList.add("hidden"),a.triggerEl.setAttribute("aria-selected","false"))}),(s=o.triggerEl.classList).add.apply(s,this._options.activeClasses.split(" ")),(i=o.triggerEl.classList).remove.apply(i,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-selected","true"),o.targetEl.classList.remove("hidden"),this._setActiveTab(o),this._options.onShow(this,o))},n}();function bE(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(n){var e=[],t=null;n.querySelectorAll('[role="tab"]').forEach(function(s){var i=s.getAttribute("aria-selected")==="true",r={id:s.getAttribute("data-tabs-target"),triggerEl:s,targetEl:document.querySelector(s.getAttribute("data-tabs-target"))};e.push(r),i&&(t=r.id)}),new KN(e,{defaultTabId:t})})}typeof window<"u"&&(window.Tabs=KN,window.initTabs=bE);var Zi=globalThis&&globalThis.__assign||function(){return Zi=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Zi.apply(this,arguments)},Ac=globalThis&&globalThis.__spreadArray||function(n,e,t){if(t||arguments.length===2)for(var s=0,i=e.length,r;s<i;s++)(r||!(s in e))&&(r||(r=Array.prototype.slice.call(e,0,s)),r[s]=e[s]);return n.concat(r||Array.prototype.slice.call(e))},qd={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},jN=function(){function n(e,t,s){e===void 0&&(e=null),t===void 0&&(t=null),s===void 0&&(s=qd),this._targetEl=e,this._triggerEl=t,this._options=Zi(Zi({},qd),s),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();t.showEvents.forEach(function(s){e._triggerEl.addEventListener(s,function(){e.show()})}),t.hideEvents.forEach(function(s){e._triggerEl.addEventListener(s,function(){e.hide()})})},n.prototype._createPopperInstance=function(){return hE(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var s=e.target;s!==t&&!t.contains(s)&&!this._triggerEl.contains(s)&&this.isVisible()&&this.hide()},n.prototype.isVisible=function(){return this._visible},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},n.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return Zi(Zi({},e),{modifiers:Ac(Ac([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return Zi(Zi({},e),{modifiers:Ac(Ac([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},n}();function EE(){document.querySelectorAll("[data-tooltip-target]").forEach(function(n){var e=n.getAttribute("data-tooltip-target"),t=document.getElementById(e);if(t){var s=n.getAttribute("data-tooltip-trigger"),i=n.getAttribute("data-tooltip-placement");new jN(t,n,{placement:i||qd.placement,triggerType:s||qd.triggerType})}else console.error('The tooltip element with id "'.concat(e,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=jN,window.initTooltips=EE);var Ji=globalThis&&globalThis.__assign||function(){return Ji=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Ji.apply(this,arguments)},Nc=globalThis&&globalThis.__spreadArray||function(n,e,t){if(t||arguments.length===2)for(var s=0,i=e.length,r;s<i;s++)(r||!(s in e))&&(r||(r=Array.prototype.slice.call(e,0,s)),r[s]=e[s]);return n.concat(r||Array.prototype.slice.call(e))},fl={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},QN=function(){function n(e,t,s){e===void 0&&(e=null),t===void 0&&(t=null),s===void 0&&(s=fl),this._targetEl=e,this._triggerEl=t,this._options=Ji(Ji({},fl),s),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();t.showEvents.forEach(function(s){e._triggerEl.addEventListener(s,function(){e.show()}),e._targetEl.addEventListener(s,function(){e.show()})}),t.hideEvents.forEach(function(s){e._triggerEl.addEventListener(s,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},100)}),e._targetEl.addEventListener(s,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},100)})})},n.prototype._createPopperInstance=function(){return hE(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var s=e.target;s!==t&&!t.contains(s)&&!this._triggerEl.contains(s)&&this.isVisible()&&this.hide()},n.prototype.isVisible=function(){return this._visible},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},n.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return Ji(Ji({},e),{modifiers:Nc(Nc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return Ji(Ji({},e),{modifiers:Nc(Nc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},n}();function yE(){document.querySelectorAll("[data-popover-target]").forEach(function(n){var e=n.getAttribute("data-popover-target"),t=document.getElementById(e);if(t){var s=n.getAttribute("data-popover-trigger"),i=n.getAttribute("data-popover-placement"),r=n.getAttribute("data-popover-offset");new QN(t,n,{placement:i||fl.placement,offset:r?parseInt(r):fl.offset,triggerType:s||fl.triggerType})}else console.error('The popover element with id "'.concat(e,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=QN,window.initPopovers=yE);var Yd=globalThis&&globalThis.__assign||function(){return Yd=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Yd.apply(this,arguments)},Dg={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},XN=function(){function n(e,t,s,i){e===void 0&&(e=null),t===void 0&&(t=null),s===void 0&&(s=null),i===void 0&&(i=Dg),this._parentEl=e,this._triggerEl=t,this._targetEl=s,this._options=Yd(Yd({},Dg),i),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;if(this._triggerEl){var t=this._getTriggerEventTypes(this._options.triggerType);t.showEvents.forEach(function(s){e._triggerEl.addEventListener(s,function(){e.show()}),e._targetEl.addEventListener(s,function(){e.show()})}),t.hideEvents.forEach(function(s){e._parentEl.addEventListener(s,function(){e._parentEl.matches(":hover")||e.hide()})})}},n.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},n.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},n.prototype.toggle=function(){this._visible?this.hide():this.show()},n.prototype.isHidden=function(){return!this._visible},n.prototype.isVisible=function(){return this._visible},n.prototype._getTriggerEventTypes=function(e){switch(e){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n}();function vE(){document.querySelectorAll("[data-dial-init]").forEach(function(n){var e=n.querySelector("[data-dial-toggle]");if(e){var t=e.getAttribute("data-dial-toggle"),s=document.getElementById(t);if(s){var i=e.getAttribute("data-dial-trigger");new XN(n,e,s,{triggerType:i||Dg.triggerType})}else console.error("Dial with id ".concat(t," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(n.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=XN,window.initDials=vE);function ZN(){sE(),iE(),rE(),oE(),fE(),mE(),gE(),bE(),EE(),yE(),vE()}typeof window<"u"&&(window.initFlowbite=ZN);var pxt=new oTt("load",[sE,iE,rE,oE,fE,mE,gE,bE,EE,yE,vE]);pxt.init();const _xt="/assets/memory_icon-c56ac42c.svg",hxt="/assets/active-80ac3366.svg",fxt="/assets/inactive-36ac9976.svg",mxt="/assets/registry-382fcf02.svg",gxt="/assets/robot-5e627a0e.svg";const At=n=>(no("data-v-c538ea16"),n=n(),so(),n),bxt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},Ext={class:"flex flex-col text-center"},yxt={class:"flex flex-col text-center items-center"},vxt={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},Sxt=At(()=>c("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:hs,alt:"Logo"},null,-1)),Txt={class:"flex flex-col items-start"},xxt={class:"text-2xl font-bold text-5xl drop-shadow-md align-middle"},Cxt=At(()=>c("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),wxt=At(()=>c("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),Rxt=At(()=>c("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1)),Axt=At(()=>c("p",{class:"text-2xl mb-10 font-bold drop-shadow-md"},"Welcome",-1)),Nxt={role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},Oxt={class:"text-2xl animate-pulse mt-2"},Ixt=At(()=>c("i",{"data-feather":"chevron-right"},null,-1)),Mxt=[Ixt],Dxt=At(()=>c("i",{"data-feather":"chevron-left"},null,-1)),kxt=[Dxt],Lxt=gu('<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-10 h-10 text-blue-500 transition-colors duration-300 group-hover:text-yellow-400" data-v-c538ea16><rect x="3" y="11" width="18" height="11" rx="2" ry="2" data-v-c538ea16></rect><circle cx="12" cy="5" r="2" data-v-c538ea16></circle><path d="M12 7v4" data-v-c538ea16></path><line x1="8" y1="16" x2="8" y2="16" data-v-c538ea16></line><line x1="16" y1="16" x2="16" y2="16" data-v-c538ea16></line></svg>',1),Pxt=[Lxt],Uxt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},Fxt={class:"text-light-text-panel dark:text-dark-text-panel bg-bg-light-panel sticky z-10 top-0 dark:bg-bg-dark-tone shadow-md"},Bxt={class:"flex-row p-4 flex items-center gap-3 flex-0"},Gxt=At(()=>c("i",{"data-feather":"plus"},null,-1)),Vxt=[Gxt],zxt=At(()=>c("i",{"data-feather":"check-square"},null,-1)),Hxt=[zxt],qxt={class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},Yxt=At(()=>c("i",{"data-feather":"database"},null,-1)),$xt=[Yxt],Wxt=At(()=>c("i",{"data-feather":"log-in"},null,-1)),Kxt=[Wxt],jxt=At(()=>c("i",{"data-feather":"folder"},null,-1)),Qxt=[jxt],Xxt={key:1,class:"dropdown"},Zxt=At(()=>c("i",{"data-feather":"search"},null,-1)),Jxt=[Zxt],eCt={key:2,class:"flex gap-3 flex-1 items-center duration-75"},tCt=At(()=>c("i",{"data-feather":"x"},null,-1)),nCt=[tCt],sCt=At(()=>c("i",{"data-feather":"check"},null,-1)),iCt=[sCt],rCt=At(()=>c("i",{"data-feather":"hard-drive"},null,-1)),oCt=[rCt],aCt=At(()=>c("i",{"data-feather":"check-circle"},null,-1)),lCt=[aCt],cCt=At(()=>c("i",{"data-feather":"x-octagon"},null,-1)),dCt=[cCt],uCt=At(()=>c("i",{"data-feather":"book"},null,-1)),pCt=[uCt],_Ct={key:7,title:"Loading..",class:"flex flex-row flex-grow justify-end"},hCt=At(()=>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)),fCt=[hCt],mCt={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},gCt={class:"p-4 pt-2"},bCt={class:"relative"},ECt=At(()=>c("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[c("div",{class:"scale-75"},[c("i",{"data-feather":"search"})])],-1)),yCt={class:"absolute inset-y-0 right-0 flex items-center pr-3"},vCt=At(()=>c("i",{"data-feather":"x"},null,-1)),SCt=[vCt],TCt={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},xCt={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},CCt={class:"flex flex-row flex-grow"},wCt={key:0},RCt={class:"flex flex-row"},ACt={key:0,class:"flex gap-3"},NCt=At(()=>c("i",{"data-feather":"trash"},null,-1)),OCt=[NCt],ICt={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},MCt=At(()=>c("i",{"data-feather":"check"},null,-1)),DCt=[MCt],kCt=At(()=>c("i",{"data-feather":"x"},null,-1)),LCt=[kCt],PCt={class:"flex gap-3"},UCt=At(()=>c("i",{"data-feather":"codepen"},null,-1)),FCt=[UCt],BCt=At(()=>c("i",{"data-feather":"folder"},null,-1)),GCt=[BCt],VCt=At(()=>c("i",{"data-feather":"bookmark"},null,-1)),zCt=[VCt],HCt=At(()=>c("i",{"data-feather":"list"},null,-1)),qCt=[HCt],YCt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},$Ct={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"},WCt=At(()=>c("p",{class:"px-3"},"No discussions are found",-1)),KCt=[WCt],jCt=At(()=>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)),QCt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},XCt={key:2,class:"relative flex flex-col flex-grow"},ZCt={class:"container pt-4 pb-50 mb-50 w-full"},JCt={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 h-[600px]"},e1t=At(()=>c("h2",{class:"text-2xl font-bold mb-4"},"Prompt examples",-1)),t1t={key:0,class:"overflow-y-auto flex-grow pr-2 custom-scrollbar"},n1t={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-2"},s1t=["onClick"],i1t=["title"],r1t={class:"absolute inset-0 overflow-hidden"},o1t=At(()=>c("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white dark:to-gray-800 group-hover:opacity-0 transition-opacity duration-300"},null,-1)),a1t=At(()=>c("div",{class:"mt-2 text-sm text-gray-500 dark:text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1)),l1t=At(()=>c("div",null,[c("br"),c("br"),c("br"),c("br"),c("br"),c("br"),c("br")],-1)),c1t=At(()=>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)),d1t={key:0,class:"flex flex-row items-center justify-center h-10"},u1t={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"},p1t={ref:"isolatedContent",class:"h-full"},_1t={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"},h1t={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},f1t={setup(){},data(){return{lastMessageHtml:"",defaultMessageHtml:`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Default Render Panel</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
padding: 20px;
box-sizing: border-box;
}
.message {
text-align: center;
padding: 30px;
background-color: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
max-width: 600px;
width: 100%;
}
h1 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 28px;
}
p {
color: #34495e;
margin: 0 0 15px;
line-height: 1.6;
}
.highlight {
color: #e74c3c;
font-weight: bold;
}
</style>
</head>
<body>
<div class="container">
<div class="message">
<h1>Welcome to the Interactive Render Panel</h1>
<p>This space is designed to bring your ideas to life! Currently, it's empty because no HTML has been generated yet.</p>
<p>To see something amazing here, try asking the AI to <span class="highlight">create a specific web component or application</span>. For example:</p>
<p>"Create a responsive image gallery" or "Build a simple todo list app"</p>
<p>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!</p>
</div>
</div>
</body>
</html>
`,memory_icon:_xt,active_skills:hxt,inactive_skills:fxt,skillsRegistry:mxt,robot:gxt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14,MSG_TYPE_NEW_MESSAGE:15,MSG_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,leftPanelCollapsed:!1,rightPanelCollapsed:!0,isOpen:!1,discussion_id:0}},methods:{selectPrompt(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 i=n.indexOf(t,s);i===-1?this.lastMessageHtml=n.slice(s).trim():this.lastMessageHtml=n.slice(s,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.leftPanelCollapsed=!0,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=>{this.isLoading=!1,n&&(n.data&&Object.keys(n.data).length>0?this.$store.state.universalForm.showForm(n.data,"Binding settings - "+bindingEntry.binding.name,"Save changes","Cancel").then(e=>{try{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)}},showDatabaseSelector(){this.database_selectorDialogVisible=!0},async ondatabase_selectorDialogSelected(n){console.log("Selected:",n)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(n){if(this.database_selectorDialogVisible=!1,(await de.post("/select_database",{client_id:this.client_id,name:n},{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 t=await de.get("/list_databases").data;console.log("New list of database: ",t),this.$store.state.databases=t,console.log("New list of database: ",this.$store.state.databases),location.reload()}},async addDiscussion2SkillsLibrary(){(await 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),Ue(()=>{Ge.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)},togglePanel(){this.leftPanelCollapsed=!this.leftPanelCollapsed,this.leftPanelCollapsed||(this.rightPanelCollapsed=!0)},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),He.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_CHUNK||s.message_type==this.msgTypes.MSG_TYPE_FULL||s.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI||s.message_type==this.msgTypes.MSG_TYPE_CODE||s.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS||s.message_type==this.msgTypes.MSG_TYPE_UI),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),He.off("discussion"),this.extractHtml()}),He.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,He.on("discussion_created",e=>{He.off("discussion_created"),this.list_discussions().then(()=>{const t=this.list.findIndex(i=>i.id==e.id),s=this.list[t];this.selectDiscussion(s),this.load_discussion(e.id,()=>{this.loading=!1,this.recoverFiles(),Ue(()=>{const i=document.getElementById("dis-"+e.id);this.scrollToElement(i),console.log("Scrolling tp "+i)})})})}),console.log("new_discussion ",n),He.emit("new_discussion",{title:n})}catch(e){return console.log("Error: Could not create new discussion",e.message),{}}},async delete_discussion(n){try{n&&(this.loading=!0,this.setDiscussionLoading(n,this.loading),await 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 s=this.list.findIndex(r=>r.id==n),i=this.list[s];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),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 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(He.emit("cancel_generation"),res)return res.data}catch(n){return console.log("Error: Could not stop generating",n.message),{}}},async message_rank_up(n){try{const e=await 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 s=await de.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 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}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.filterTitle?this.list=this.tempList.filter(n=>n.title&&n.title.includes(this.filterTitle)):this.list=this.tempList,this.filterInProgress=!1},100))},async selectDiscussion(n){if(this.isGenerating){this.$store.state.toast.showToast("You are currently generating a text. Please wait for text generation to finish or stop it before trying to select another discussion",4,!1);return}n&&(this.currentDiscussion===void 0?(this.currentDiscussion=n,this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(n.id,()=>{this.discussionArr.length>1&&((this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content),this.recoverFiles())})):this.currentDiscussion.id!=n.id&&(console.log("item",n),console.log("this.currentDiscussion",this.currentDiscussion),this.currentDiscussion=n,console.log("this.currentDiscussion",this.currentDiscussion),this.setPageTitle(n),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(n.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content),this.recoverFiles()})),Ue(()=>{const e=document.getElementById("dis-"+this.currentDiscussion.id);this.scrollToElementInContainer(e,"leftPanel");const t=document.getElementById("messages-list");this.scrollBottom(t)}))},scrollToElement(n){n?n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollToElementInContainer(n,e){try{const t=n.offsetTop;document.getElementById(e).scrollTo({top:t,behavior:"smooth"})}catch{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),Ue(()=>{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 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),s={client_id:this.$store.state.client_id,id:t};e=await de.post("/select_personality",s),console.log("Generating message from ",e.data.status),He.emit("generate_msg_from",{id:-1})}},createEmptyUserMessage(n){He.emit("create_empty_message",{type:0,message:n})},createEmptyAIMessage(){He.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"?He.emit("generate_msg_with_internet",{prompt:n}):He.emit("generate_msg",{prompt:n});let s=0;this.discussionArr.length>0&&(s=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let i={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.msgTypes.MSG_TYPE_FULL,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(i)}}).catch(t=>{console.log("Error: Could not get generation status",t)})},sendCmd(n){this.isGenerating=!0,He.emit("execute_command",{command:n,parameters:[]})},notify(n){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Ue(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),n.display_type==0?this.$store.state.toast.showToast(n.content,n.duration,n.notification_type):n.display_type==1?this.$store.state.messageBox.showMessage(n.content):n.display_type==2?(this.$store.state.messageBox.hideMessage(),this.$store.state.yesNoDialog.askQuestion(n.content,"Yes","No").then(e=>{He.emit("yesNoRes",{yesRes:e})})):n.display_type==3?this.$store.state.messageBox.showBlockingMessage(n.content):n.display_type==4&&this.$store.state.messageBox.hideMessage(),this.chime.play()},streamMessageContent(n){if(this.discussion_id=n.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(s=>s.id==n.id),t=this.discussionArr[e];if(t&&(n.message_type==this.msgTypes.MSG_TYPE_FULL||n.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))this.isGenerating=!0,t.content=n.content,t.created_at=n.created_at,t.started_generating_at=n.started_generating_at,t.nb_tokens=n.nb_tokens,t.finished_generating_at=n.finished_generating_at,this.extractHtml();else if(t&&n.message_type==this.msgTypes.MSG_TYPE_CHUNK)this.isGenerating=!0,t.content+=n.content,t.created_at=n.created_at,t.started_generating_at=n.started_generating_at,t.nb_tokens=n.nb_tokens,t.finished_generating_at=n.finished_generating_at,this.extractHtml();else if(n.message_type==this.msgTypes.MSG_TYPE_STEP)t.status_message=n.content,t.steps.push({message:n.content,done:!0,status:!0,type:"instantanious"});else if(n.message_type==this.msgTypes.MSG_TYPE_STEP_START)t.status_message=n.content,t.steps.push({message:n.content,done:!1,status:!0,type:"start_end"});else if(n.message_type==this.msgTypes.MSG_TYPE_STEP_END){console.log("received step end",n);try{t.steps.forEach(s=>{if(s.message===n.content){s.done=!0;try{console.log(n.parameters);const i=n.parameters;i!==void 0&&(s.status=i.status,console.log(i))}catch(i){console.error("Error parsing JSON:",i.message)}}})}catch{console.log("error")}}else n.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(n.metadata),t.metadata=n.metadata):n.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),t.ui=n.ui):n.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$store.state.toast.showToast(n.content,5,!1)}this.$nextTick(()=>{Ge.replace()})},async changeTitleUsingUserMSG(n,e){const t=this.list.findIndex(i=>i.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;e<n.length;e++){const t=n[e];await this.delete_discussion(t.id),this.currentDiscussion.id==t.id&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(s=>s.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(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(i=>i.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<this.tempList.length;n++)this.tempList[n].checkBoxValue=!this.isSelectAll;this.tempList=this.list,this.isSelectAll=!this.isSelectAll},createDiscussionList(n){if(n){const e=n.map(t=>({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(i=>i.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="LoLLMS WebUI - "+e}else{const e=n||"Welcome";document.title="LoLLMS WebUI - "+e}else{const e=n||"Welcome";document.title="LoLLMS WebUI - "+e}},async rankUpMessage(n){await this.message_rank_up(n).then(e=>{const t=this.discussionArr[this.discussionArr.findIndex(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(i=>i.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){Ue(()=>{Ge.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),de.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")):He.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){Ue(()=>{Ge.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"):He.emit("continue_generate_msg_from",{prompt:e,id:n}))}).catch(t=>{console.log("Error: Could not get generation status",t)})},stopGenerating(){this.stop_gen(),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),console.log("Stopped generating"),Ue(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},finalMsgEvent(n){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),Ue(()=>{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(i=>i.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 i="";n.created_at_parsed&&(i=`
Created: ${n.created_at_parsed}`);let r="";n.message.model&&(r=`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} ${r} ${o} ${a}`.trim();const u=`${n.message.sender}${s}${i}
${e}
${l}`;navigator.clipboard.writeText(u)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),Ue(()=>{Ge.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=i=>e(this.parseJsonObj(i.target.result)),s.onerror=i=>t(i),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"),i=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),u="discussions_export_"+(t+"."+s+"."+i+"."+r+o+a)+".md";this.loading=!0;const d=await this.export_multiple_discussions(n,"markdown");d?(this.saveMarkdowntoFile(d,u),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async exportDiscussions(){},async exportDiscussionsAsJson(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),u="discussions_export_"+(t+"."+s+"."+i+"."+r+o+a)+".json";this.loading=!0;const d=await this.export_multiple_discussions(n,"json");d?(this.saveJSONtoFile(d,u),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussionsBundle(n){},async importDiscussions(n){const e=await this.parseJsonFile(n.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let n=this.$store.state.personalities;this.personalityAvatars=n.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(n){if(n.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(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(){console.log("Created discussions view");const e=(await de.get("/get_versionID")).data.versionId;He.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ge.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";He.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=He.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=He.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,He.on("connected",this.socketIOConnected),He.on("disconnected",this.socketIODisconnected),console.log("Added events"),He.on("show_progress",this.show_progress),He.on("hide_progress",this.hide_progress),He.on("update_progress",this.update_progress),He.on("notification",this.notify),He.on("new_message",this.new_message),He.on("update_message",this.streamMessageContent),He.on("close_message",this.finalMsgEvent),He.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const s=this.list.findIndex(r=>r.id==t.discussion_id),i=this.list[s];i.title=t.title}),He.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},He.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}),He.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),He.disconnect()}},async mounted(){He.on("refresh_files",()=>{this.recoverFiles()}),this.$nextTick(()=>{Ge.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Ue(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:tE,Message:ON,ChatBox:IN,WelcomeComponent:MN,ChoiceDialog:eE,ProgressBar:Ll,InputBox:RN,SkillsLibraryViewer:AN},watch:{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){Ue(()=>{Ge.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Ue(()=>{Ge.replace()})},isSearch(){Ue(()=>{Ge.replace()})}},computed:{...DD({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?" v"+this.$store.state.version:""}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},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 He.id},showLeftPanel(){return this.$store.state.ready&&!this.leftPanelCollapsed},showRightPanel(){return this.$store.state.ready&&!this.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 Ue(()=>{Ge.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},m1t=Object.assign(f1t,{__name:"DiscussionsView",setup(n){return Mi(()=>{ZN()}),de.defaults.baseURL="/",(e,t)=>(C(),R(ze,null,[_e(Ms,{name:"fade-and-fly"},{default:qe(()=>[e.isReady?G("",!0):(C(),R("div",bxt,[c("div",Ext,[c("div",yxt,[c("div",vxt,[Sxt,c("div",Txt,[c("p",xxt,"LoLLMS "+se(e.version_info),1),Cxt,wxt])]),Rxt,Axt,c("div",Nxt,[_e(Ll,{ref:"loading_progress",progress:e.loading_progress},null,8,["progress"]),c("p",Oxt,se(e.loading_infos)+" ...",1)])])])]))]),_:1}),e.isReady?(C(),R("button",{key:0,onClick:t[0]||(t[0]=(...s)=>e.togglePanel&&e.togglePanel(...s)),class:"absolute top-2 left-2 p-3 bg-white bg-opacity-0 cursor-pointer transition-all duration-300 hover:scale-110 hover:bg-opacity-20 hover:shadow-xl group"},[B(c("div",null,Mxt,512),[[Ot,e.leftPanelCollapsed]]),B(c("div",null,kxt,512),[[Ot,!e.leftPanelCollapsed]])])):G("",!0),e.isReady?(C(),R("button",{key:1,onClick:t[1]||(t[1]=ae(s=>e.triggerRobotAction(),["stop"])),class:"absolute top-2 right-2 p-3 bg-white bg-opacity-10 rounded-full cursor-pointer transition-all duration-300 hover:scale-110 hover:bg-opacity-20 animate-pulse shadow-lg hover:shadow-xl group"},Pxt)):G("",!0),_e(Ms,{name:"slide-right"},{default:qe(()=>[e.showLeftPanel?(C(),R("div",Uxt,[c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:t[29]||(t[29]=ae(s=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",Fxt,[c("div",Bxt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:t[2]||(t[2]=s=>e.createNewDiscussion())},Vxt),c("button",{class:Fe(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:t[3]||(t[3]=s=>e.isCheckbox=!e.isCheckbox)},Hxt,2),c("button",qxt,[c("i",{"data-feather":"trash-2",onClick:t[4]||(t[4]=ae(()=>{},["stop"]))})]),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:t[5]||(t[5]=ae(s=>e.database_selectorDialogVisible=!0,["stop"]))},$xt),c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:t[6]||(t[6]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},null,544),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:t[7]||(t[7]=ae(s=>e.$refs.fileDialog.click(),["stop"]))},Kxt),c("input",{type:"file",ref:"bundleLoadingDialog",style:{display:"none"},onChange:t[8]||(t[8]=(...s)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...s))},null,544),e.showSaveConfirmation?G("",!0):(C(),R("button",{key:0,title:"Import discussion bundle",onClick:t[9]||(t[9]=ae(s=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-2xl hover:text-secondary duration-75 active:scale-90"},Qxt)),e.isOpen?(C(),R("div",Xxt,[c("button",{onClick:t[10]||(t[10]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},"LOLLMS"),c("button",{onClick:t[11]||(t[11]=(...s)=>e.importChatGPT&&e.importChatGPT(...s))},"ChatGPT")])):G("",!0),c("button",{class:Fe(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:t[12]||(t[12]=s=>e.isSearch=!e.isSearch)},Jxt,2),e.showSaveConfirmation?(C(),R("div",eCt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:t[13]||(t[13]=ae(s=>e.showSaveConfirmation=!1,["stop"]))},nCt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:t[14]||(t[14]=ae(s=>e.save_configuration(),["stop"]))},iCt)])):G("",!0),e.loading?G("",!0):(C(),R("button",{key:3,type:"button",onClick:t[15]||(t[15]=ae((...s)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...s),["stop"])),title:"Add this discussion content to skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},oCt)),!e.loading&&e.$store.state.config.activate_skills_lib?(C(),R("button",{key:4,type:"button",onClick:t[16]||(t[16]=ae((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is activated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},lCt)):G("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(C(),R("button",{key:5,type:"button",onClick:t[17]||(t[17]=ae((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is deactivated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},dCt)):G("",!0),e.loading?G("",!0):(C(),R("button",{key:6,type:"button",onClick:t[18]||(t[18]=ae((...s)=>e.showSkillsLib&&e.showSkillsLib(...s),["stop"])),title:"Show Skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},pCt)),e.loading?(C(),R("div",_Ct,fCt)):G("",!0)]),e.isSearch?(C(),R("div",mCt,[c("div",gCt,[c("div",bCt,[ECt,c("div",yCt,[c("div",{class:Fe(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:t[19]||(t[19]=s=>e.filterTitle="")},SCt,2)]),B(c("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":t[20]||(t[20]=s=>e.filterTitle=s),onInput:t[21]||(t[21]=s=>e.filterDiscussions())},null,544),[[he,e.filterTitle]])])])])):G("",!0),e.isCheckbox?(C(),R("hr",TCt)):G("",!0),e.isCheckbox?(C(),R("div",xCt,[c("div",CCt,[e.selectedDiscussions.length>0?(C(),R("p",wCt,"Selected: "+se(e.selectedDiscussions.length),1)):G("",!0)]),c("div",RCt,[e.selectedDiscussions.length>0?(C(),R("div",ACt,[e.showConfirmation?G("",!0):(C(),R("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[22]||(t[22]=ae(s=>e.showConfirmation=!0,["stop"]))},OCt)),e.showConfirmation?(C(),R("div",ICt,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[23]||(t[23]=ae((...s)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...s),["stop"]))},DCt),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[24]||(t[24]=ae(s=>e.showConfirmation=!1,["stop"]))},LCt)])):G("",!0)])):G("",!0),c("div",PCt,[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[25]||(t[25]=ae((...s)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...s),["stop"]))},FCt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:t[26]||(t[26]=ae((...s)=>e.exportDiscussions&&e.exportDiscussions(...s),["stop"]))},GCt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:t[27]||(t[27]=ae((...s)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...s),["stop"]))},zCt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[28]||(t[28]=ae((...s)=>e.selectAllDiscussions&&e.selectAllDiscussions(...s),["stop"]))},qCt)])])])):G("",!0)]),c("div",YCt,[c("div",{class:Fe(["mx-4 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:Fe([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full"])},[e.list.length>0?(C(),St(Qs,{key:0,name:"list"},{default:qe(()=>[(C(!0),R(ze,null,st(e.list,(s,i)=>(C(),St(tE,{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:r=>e.selectDiscussion(s),onDelete:r=>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})):G("",!0),e.list.length<1?(C(),R("div",$Ct,KCt)):G("",!0),jCt],2)],2)])],32),c("div",{class:"absolute h-15 bottom-0 left-0 w-full bg-bg-light-panel dark:bg-bg-dark-tone light-text-panel py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[30]||(t[30]=(...s)=>e.showDatabaseSelector&&e.showDatabaseSelector(...s))},[c("p",QCt,se(e.formatted_database_name.replace("_"," ")),1)])])):G("",!0)]),_:1}),e.isReady?(C(),R("div",XCt,[c("div",{id:"messages-list",class:Fe(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",e.isDragOverChat?"pointer-events-none":""])},[c("div",ZCt,[e.discussionArr.length>0?(C(),St(Qs,{key:0,name:"list"},{default:qe(()=>[(C(!0),R(ze,null,st(e.discussionArr,(s,i)=>(C(),St(ON,{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?(C(),R("div",JCt,[e1t,e.discussionArr.length<2&&e.personality.prompts_list.length>0?(C(),R("div",t1t,[c("div",n1t,[(C(!0),R(ze,null,st(e.personality.prompts_list,(s,i)=>(C(),R("div",{key:i,onClick:r=>e.selectPrompt(s),class:"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-4 cursor-pointer hover:shadow-lg transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between h-[220px] overflow-hidden group"},[c("div",{title:s,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden relative h-full"},[c("div",r1t,se(s),1),o1t],8,i1t),a1t],8,s1t))),128))])])):G("",!0)])):G("",!0)]),_:1})):G("",!0),e.currentDiscussion.id?G("",!0):(C(),St(MN,{key:1})),l1t]),c1t],2),e.currentDiscussion.id?(C(),R("div",d1t,[_e(IN,{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"])])):G("",!0)])):G("",!0),_e(Ms,{name:"slide-left"},{default:qe(()=>[e.showRightPanel?(C(),R("div",u1t,[c("div",p1t,null,512)])):G("",!0)]),_:1}),_e(eE,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"]),B(c("div",_1t,[_e(Ll,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),c("p",h1t,se(e.loading_infos)+" ...",1)],512),[[Ot,e.progress_visibility]]),_e(RN,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),_e(AN,{ref:"skills_lib"},null,512)],64))}}),g1t=pt(m1t,[["__scopeId","data-v-c538ea16"]]);/**
* @license
* Copyright 2010-2023 Three.js Authors
* SPDX-License-Identifier: MIT
*/const SE="159",b1t=0,sC=1,E1t=2,JN=1,y1t=2,gi=3,Oi=0,Yn=1,qs=2,ar=0,Yo=1,iC=2,rC=3,oC=4,v1t=5,kr=100,S1t=101,T1t=102,aC=103,lC=104,x1t=200,C1t=201,w1t=202,R1t=203,kg=204,Lg=205,A1t=206,N1t=207,O1t=208,I1t=209,M1t=210,D1t=211,k1t=212,L1t=213,P1t=214,U1t=0,F1t=1,B1t=2,$d=3,G1t=4,V1t=5,z1t=6,H1t=7,TE=0,q1t=1,Y1t=2,lr=0,$1t=1,W1t=2,K1t=3,j1t=4,Q1t=5,cC="attached",X1t="detached",eO=300,aa=301,la=302,Pg=303,Ug=304,zu=306,ca=1e3,as=1001,Wd=1002,mn=1003,Fg=1004,bd=1005,zn=1006,tO=1007,Xr=1008,cr=1009,Z1t=1010,J1t=1011,xE=1012,nO=1013,sr=1014,vi=1015,Fl=1016,sO=1017,iO=1018,Hr=1020,ewt=1021,ls=1023,twt=1024,nwt=1025,qr=1026,da=1027,swt=1028,rO=1029,iwt=1030,oO=1031,aO=1033,hm=33776,fm=33777,mm=33778,gm=33779,dC=35840,uC=35841,pC=35842,_C=35843,lO=36196,hC=37492,fC=37496,mC=37808,gC=37809,bC=37810,EC=37811,yC=37812,vC=37813,SC=37814,TC=37815,xC=37816,CC=37817,wC=37818,RC=37819,AC=37820,NC=37821,bm=36492,OC=36494,IC=36495,rwt=36283,MC=36284,DC=36285,kC=36286,Bl=2300,ua=2301,Em=2302,LC=2400,PC=2401,UC=2402,owt=2500,awt=0,cO=1,Bg=2,dO=3e3,Yr=3001,lwt=3200,cwt=3201,CE=0,dwt=1,cs="",en="srgb",Cn="srgb-linear",wE="display-p3",Hu="display-p3-linear",Kd="linear",Wt="srgb",jd="rec709",Qd="p3",ho=7680,FC=519,uwt=512,pwt=513,_wt=514,uO=515,hwt=516,fwt=517,mwt=518,gwt=519,Gg=35044,BC="300 es",Vg=1035,Si=2e3,Xd=2001;class Ma{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 i=this._listeners[e];if(i!==void 0){const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const s=this._listeners[e.type];if(s!==void 0){e.target=this;const i=s.slice(0);for(let r=0,o=i.length;r<o;r++)i[r].call(this,e);e.target=null}}}const wn=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let GC=1234567;const ml=Math.PI/180,pa=180/Math.PI;function Ds(){const n=Math.random()*4294967295|0,e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,s=Math.random()*4294967295|0;return(wn[n&255]+wn[n>>8&255]+wn[n>>16&255]+wn[n>>24&255]+"-"+wn[e&255]+wn[e>>8&255]+"-"+wn[e>>16&15|64]+wn[e>>24&255]+"-"+wn[t&63|128]+wn[t>>8&255]+"-"+wn[t>>16&255]+wn[t>>24&255]+wn[s&255]+wn[s>>8&255]+wn[s>>16&255]+wn[s>>24&255]).toLowerCase()}function Nn(n,e,t){return Math.max(e,Math.min(t,n))}function RE(n,e){return(n%e+e)%e}function bwt(n,e,t,s,i){return s+(n-e)*(i-s)/(t-e)}function Ewt(n,e,t){return n!==e?(t-n)/(e-n):0}function gl(n,e,t){return(1-t)*n+t*e}function ywt(n,e,t,s){return gl(n,e,1-Math.exp(-t*s))}function vwt(n,e=1){return e-Math.abs(RE(n,e*2)-e)}function Swt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function Twt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function xwt(n,e){return n+Math.floor(Math.random()*(e-n+1))}function Cwt(n,e){return n+Math.random()*(e-n)}function wwt(n){return n*(.5-Math.random())}function Rwt(n){n!==void 0&&(GC=n);let e=GC+=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 Awt(n){return n*ml}function Nwt(n){return n*pa}function zg(n){return(n&n-1)===0&&n!==0}function Owt(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Zd(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function Iwt(n,e,t,s,i){const r=Math.cos,o=Math.sin,a=r(t/2),l=o(t/2),u=r((e+s)/2),d=o((e+s)/2),h=r((e-s)/2),f=o((e-s)/2),_=r((s-e)/2),m=o((s-e)/2);switch(i){case"XYX":n.set(a*d,l*h,l*f,a*u);break;case"YZY":n.set(l*f,a*d,l*h,a*u);break;case"ZXZ":n.set(l*h,l*f,a*d,a*u);break;case"XZX":n.set(a*d,l*m,l*_,a*u);break;case"YXY":n.set(l*_,a*d,l*m,a*u);break;case"ZYZ":n.set(l*m,l*_,a*d,a*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function Ys(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 Vt(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 Mwt={DEG2RAD:ml,RAD2DEG:pa,generateUUID:Ds,clamp:Nn,euclideanModulo:RE,mapLinear:bwt,inverseLerp:Ewt,lerp:gl,damp:ywt,pingpong:vwt,smoothstep:Swt,smootherstep:Twt,randInt:xwt,randFloat:Cwt,randFloatSpread:wwt,seededRandom:Rwt,degToRad:Awt,radToDeg:Nwt,isPowerOfTwo:zg,ceilPowerOfTwo:Owt,floorPowerOfTwo:Zd,setQuaternionFromProperEuler:Iwt,normalize:Vt,denormalize:Ys};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,i=e.elements;return this.x=i[0]*t+i[3]*s+i[6],this.y=i[1]*t+i[4]*s+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 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(Nn(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),i=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*s-o*i+e.x,this.y=r*i+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,i,r,o,a,l,u){Tt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,s,i,r,o,a,l,u)}set(e,t,s,i,r,o,a,l,u){const d=this.elements;return d[0]=e,d[1]=i,d[2]=a,d[3]=t,d[4]=r,d[5]=l,d[6]=s,d[7]=o,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,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,i=t.elements,r=this.elements,o=s[0],a=s[3],l=s[6],u=s[1],d=s[4],h=s[7],f=s[2],_=s[5],m=s[8],E=i[0],b=i[3],g=i[6],y=i[1],v=i[4],S=i[7],w=i[2],x=i[5],A=i[8];return r[0]=o*E+a*y+l*w,r[3]=o*b+a*v+l*x,r[6]=o*g+a*S+l*A,r[1]=u*E+d*y+h*w,r[4]=u*b+d*v+h*x,r[7]=u*g+d*S+h*A,r[2]=f*E+_*y+m*w,r[5]=f*b+_*v+m*x,r[8]=f*g+_*S+m*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],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8];return t*o*d-t*a*u-s*r*d+s*a*l+i*r*u-i*o*l}invert(){const e=this.elements,t=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8],h=d*o-a*u,f=a*l-d*r,_=u*r-o*l,m=t*h+s*f+i*_;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const E=1/m;return e[0]=h*E,e[1]=(i*u-d*s)*E,e[2]=(a*s-i*o)*E,e[3]=f*E,e[4]=(d*t-i*l)*E,e[5]=(i*r-a*t)*E,e[6]=_*E,e[7]=(s*l-u*t)*E,e[8]=(o*t-s*r)*E,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,s,i,r,o,a){const l=Math.cos(r),u=Math.sin(r);return this.set(s*l,s*u,-s*(l*o+u*a)+o+e,-i*u,i*l,-i*(-u*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(ym.makeScale(e,t)),this}rotate(e){return this.premultiply(ym.makeRotation(-e)),this}translate(e,t){return this.premultiply(ym.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 i=0;i<9;i++)if(t[i]!==s[i])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 ym=new Tt;function pO(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function Gl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function Dwt(){const n=Gl("canvas");return n.style.display="block",n}const VC={};function bl(n){n in VC||(VC[n]=!0,console.warn(n))}const zC=new Tt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),HC=new Tt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Oc={[Cn]:{transfer:Kd,primaries:jd,toReference:n=>n,fromReference:n=>n},[en]:{transfer:Wt,primaries:jd,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[Hu]:{transfer:Kd,primaries:Qd,toReference:n=>n.applyMatrix3(HC),fromReference:n=>n.applyMatrix3(zC)},[wE]:{transfer:Wt,primaries:Qd,toReference:n=>n.convertSRGBToLinear().applyMatrix3(HC),fromReference:n=>n.applyMatrix3(zC).convertLinearToSRGB()}},kwt=new Set([Cn,Hu]),Ut={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(!kwt.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=Oc[e].toReference,i=Oc[t].fromReference;return i(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 Oc[n].primaries},getTransfer:function(n){return n===cs?Kd:Oc[n].transfer}};function $o(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function vm(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let fo;class _O{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{fo===void 0&&(fo=Gl("canvas")),fo.width=e.width,fo.height=e.height;const s=fo.getContext("2d");e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0,e.width,e.height),t=fo}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=Gl("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");s.drawImage(e,0,0,e.width,e.height);const i=s.getImageData(0,0,e.width,e.height),r=i.data;for(let o=0;o<r.length;o++)r[o]=$o(r[o]/255)*255;return s.putImageData(i,0,0),t}else if(e.data){const t=e.data.slice(0);for(let s=0;s<t.length;s++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[s]=Math.floor($o(t[s]/255)*255):t[s]=$o(t[s]);return{data:t,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let Lwt=0;class hO{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:Lwt++}),this.uuid=Ds(),this.data=e,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const s={uuid:this.uuid,url:""},i=this.data;if(i!==null){let r;if(Array.isArray(i)){r=[];for(let o=0,a=i.length;o<a;o++)i[o].isDataTexture?r.push(Sm(i[o].image)):r.push(Sm(i[o]))}else r=Sm(i);s.url=r}return t||(e.images[this.uuid]=s),s}}function Sm(n){return typeof HTMLImageElement<"u"&&n instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&n instanceof ImageBitmap?_O.getDataURL(n):n.data?{data:Array.from(n.data),width:n.width,height:n.height,type:n.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let Pwt=0;class xn extends Ma{constructor(e=xn.DEFAULT_IMAGE,t=xn.DEFAULT_MAPPING,s=as,i=as,r=zn,o=Xr,a=ls,l=cr,u=xn.DEFAULT_ANISOTROPY,d=cs){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Pwt++}),this.uuid=Ds(),this.name="",this.source=new hO(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=s,this.wrapT=i,this.magFilter=r,this.minFilter=o,this.anisotropy=u,this.format=a,this.internalFormat=null,this.type=l,this.offset=new Rt(0,0),this.repeat=new Rt(1,1),this.center=new Rt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Tt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,typeof d=="string"?this.colorSpace=d:(bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=d===Yr?en:cs),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const s={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(s.userData=this.userData),t||(e.textures[this.uuid]=s),s}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==eO)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ca:e.x=e.x-Math.floor(e.x);break;case as:e.x=e.x<0?0:1;break;case Wd:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case ca:e.y=e.y-Math.floor(e.y);break;case as:e.y=e.y<0?0:1;break;case Wd:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===en?Yr:dO}set encoding(e){bl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Yr?en:cs}}xn.DEFAULT_IMAGE=null;xn.DEFAULT_MAPPING=eO;xn.DEFAULT_ANISOTROPY=1;class Yt{constructor(e=0,t=0,s=0,i=1){Yt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=s,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,s,i){return this.x=e,this.y=t,this.z=s,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,s=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*s+o[8]*i+o[12]*r,this.y=o[1]*t+o[5]*s+o[9]*i+o[13]*r,this.z=o[2]*t+o[6]*s+o[10]*i+o[14]*r,this.w=o[3]*t+o[7]*s+o[11]*i+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,s,i,r;const l=e.elements,u=l[0],d=l[4],h=l[8],f=l[1],_=l[5],m=l[9],E=l[2],b=l[6],g=l[10];if(Math.abs(d-f)<.01&&Math.abs(h-E)<.01&&Math.abs(m-b)<.01){if(Math.abs(d+f)<.1&&Math.abs(h+E)<.1&&Math.abs(m+b)<.1&&Math.abs(u+_+g-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const v=(u+1)/2,S=(_+1)/2,w=(g+1)/2,x=(d+f)/4,A=(h+E)/4,D=(m+b)/4;return v>S&&v>w?v<.01?(s=0,i=.707106781,r=.707106781):(s=Math.sqrt(v),i=x/s,r=A/s):S>w?S<.01?(s=.707106781,i=0,r=.707106781):(i=Math.sqrt(S),s=x/i,r=D/i):w<.01?(s=.707106781,i=.707106781,r=0):(r=Math.sqrt(w),s=A/r,i=D/r),this.set(s,i,r,t),this}let y=Math.sqrt((b-m)*(b-m)+(h-E)*(h-E)+(f-d)*(f-d));return Math.abs(y)<.001&&(y=1),this.x=(b-m)/y,this.y=(h-E)/y,this.z=(f-d)/y,this.w=Math.acos((u+_+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const 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 Uwt extends Ma{constructor(e=1,t=1,s={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Yt(0,0,e,t),this.scissorTest=!1,this.viewport=new Yt(0,0,e,t);const i={width:e,height:t,depth:1};s.encoding!==void 0&&(bl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),s.colorSpace=s.encoding===Yr?en:cs),s=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:zn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},s),this.texture=new xn(i,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 hO(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 Zr extends Uwt{constructor(e=1,t=1,s={}){super(e,t,s),this.isWebGLRenderTarget=!0}}class fO extends xn{constructor(e=null,t=1,s=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:s,depth:i},this.magFilter=mn,this.minFilter=mn,this.wrapR=as,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Fwt extends xn{constructor(e=null,t=1,s=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:s,depth:i},this.magFilter=mn,this.minFilter=mn,this.wrapR=as,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class mr{constructor(e=0,t=0,s=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=s,this._w=i}static slerpFlat(e,t,s,i,r,o,a){let l=s[i+0],u=s[i+1],d=s[i+2],h=s[i+3];const f=r[o+0],_=r[o+1],m=r[o+2],E=r[o+3];if(a===0){e[t+0]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h;return}if(a===1){e[t+0]=f,e[t+1]=_,e[t+2]=m,e[t+3]=E;return}if(h!==E||l!==f||u!==_||d!==m){let b=1-a;const g=l*f+u*_+d*m+h*E,y=g>=0?1:-1,v=1-g*g;if(v>Number.EPSILON){const w=Math.sqrt(v),x=Math.atan2(w,g*y);b=Math.sin(b*x)/w,a=Math.sin(a*x)/w}const S=a*y;if(l=l*b+f*S,u=u*b+_*S,d=d*b+m*S,h=h*b+E*S,b===1-a){const w=1/Math.sqrt(l*l+u*u+d*d+h*h);l*=w,u*=w,d*=w,h*=w}}e[t]=l,e[t+1]=u,e[t+2]=d,e[t+3]=h}static multiplyQuaternionsFlat(e,t,s,i,r,o){const a=s[i],l=s[i+1],u=s[i+2],d=s[i+3],h=r[o],f=r[o+1],_=r[o+2],m=r[o+3];return e[t]=a*m+d*h+l*_-u*f,e[t+1]=l*m+d*f+u*h-a*_,e[t+2]=u*m+d*_+a*f-l*h,e[t+3]=d*m-a*h-l*f-u*_,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,s,i){return this._x=e,this._y=t,this._z=s,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 s=e._x,i=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,u=a(s/2),d=a(i/2),h=a(r/2),f=l(s/2),_=l(i/2),m=l(r/2);switch(o){case"XYZ":this._x=f*d*h+u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h-f*_*m;break;case"YXZ":this._x=f*d*h+u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h+f*_*m;break;case"ZXY":this._x=f*d*h-u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h-f*_*m;break;case"ZYX":this._x=f*d*h-u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h+f*_*m;break;case"YZX":this._x=f*d*h+u*_*m,this._y=u*_*h+f*d*m,this._z=u*d*m-f*_*h,this._w=u*d*h-f*_*m;break;case"XZY":this._x=f*d*h-u*_*m,this._y=u*_*h-f*d*m,this._z=u*d*m+f*_*h,this._w=u*d*h+f*_*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const s=t/2,i=Math.sin(s);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,s=t[0],i=t[4],r=t[8],o=t[1],a=t[5],l=t[9],u=t[2],d=t[6],h=t[10],f=s+a+h;if(f>0){const _=.5/Math.sqrt(f+1);this._w=.25/_,this._x=(d-l)*_,this._y=(r-u)*_,this._z=(o-i)*_}else if(s>a&&s>h){const _=2*Math.sqrt(1+s-a-h);this._w=(d-l)/_,this._x=.25*_,this._y=(i+o)/_,this._z=(r+u)/_}else if(a>h){const _=2*Math.sqrt(1+a-s-h);this._w=(r-u)/_,this._x=(i+o)/_,this._y=.25*_,this._z=(l+d)/_}else{const _=2*Math.sqrt(1+h-s-a);this._w=(o-i)/_,this._x=(r+u)/_,this._y=(l+d)/_,this._z=.25*_}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let s=e.dot(t)+1;return s<Number.EPSILON?(s=0,Math.abs(e.x)>Math.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(Nn(this.dot(e),-1,1)))}rotateTowards(e,t){const s=this.angleTo(e);if(s===0)return this;const i=Math.min(1,t/s);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 s=e._x,i=e._y,r=e._z,o=e._w,a=t._x,l=t._y,u=t._z,d=t._w;return this._x=s*d+o*a+i*u-r*l,this._y=i*d+o*l+r*a-s*u,this._z=r*d+o*u+s*l-i*a,this._w=o*d-s*a-i*l-r*u,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const s=this._x,i=this._y,r=this._z,o=this._w;let a=o*e._w+s*e._x+i*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=s,this._y=i,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const _=1-t;return this._w=_*o+t*this._w,this._x=_*s+t*this._x,this._y=_*i+t*this._y,this._z=_*r+t*this._z,this.normalize(),this._onChangeCallback(),this}const u=Math.sqrt(l),d=Math.atan2(u,a),h=Math.sin((1-t)*d)/u,f=Math.sin(t*d)/u;return this._w=o*h+this._w*f,this._x=s*h+this._x*f,this._y=i*h+this._y*f,this._z=r*h+this._z*f,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),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(t*Math.cos(i),s*Math.sin(r),s*Math.cos(r),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 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(qC.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(qC.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,s=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*s+r[6]*i,this.y=r[1]*t+r[4]*s+r[7]*i,this.z=r[2]*t+r[5]*s+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,s=this.y,i=this.z,r=e.elements,o=1/(r[3]*t+r[7]*s+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*s+r[8]*i+r[12])*o,this.y=(r[1]*t+r[5]*s+r[9]*i+r[13])*o,this.z=(r[2]*t+r[6]*s+r[10]*i+r[14])*o,this}applyQuaternion(e){const t=this.x,s=this.y,i=this.z,r=e.x,o=e.y,a=e.z,l=e.w,u=2*(o*i-a*s),d=2*(a*t-r*i),h=2*(r*s-o*t);return this.x=t+l*u+o*h-a*d,this.y=s+l*d+a*u-r*h,this.z=i+l*h+r*d-o*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,s=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*s+r[8]*i,this.y=r[1]*t+r[5]*s+r[9]*i,this.z=r[2]*t+r[6]*s+r[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 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,i=e.y,r=e.z,o=t.x,a=t.y,l=t.z;return this.x=i*l-r*a,this.y=r*o-s*l,this.z=s*a-i*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 Tm.copy(this).projectOnVector(e),this.sub(Tm)}reflect(e){return this.sub(Tm.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(Nn(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,s=this.y-e.y,i=this.z-e.z;return t*t+s*s+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,s){const i=Math.sin(t)*e;return this.x=i*Math.sin(s),this.y=Math.cos(t)*e,this.z=i*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(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=s,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,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 Tm=new ie,qC=new mr;class ki{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;t<s;t+=3)this.expandByPoint(Ss.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,s=e.count;t<s;t++)this.expandByPoint(Ss.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,s=e.length;t<s;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const s=Ss.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(s),this.max.copy(e).add(s),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const s=e.geometry;if(s!==void 0){const r=s.getAttribute("position");if(t===!0&&r!==void 0&&e.isInstancedMesh!==!0)for(let o=0,a=r.count;o<a;o++)e.isMesh===!0?e.getVertexPosition(o,Ss):Ss.fromBufferAttribute(r,o),Ss.applyMatrix4(e.matrixWorld),this.expandByPoint(Ss);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),Ic.copy(e.boundingBox)):(s.boundingBox===null&&s.computeBoundingBox(),Ic.copy(s.boundingBox)),Ic.applyMatrix4(e.matrixWorld),this.union(Ic)}const i=e.children;for(let r=0,o=i.length;r<o;r++)this.expandByObject(i[r],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.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.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ss),Ss.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(Ka),Mc.subVectors(this.max,Ka),mo.subVectors(e.a,Ka),go.subVectors(e.b,Ka),bo.subVectors(e.c,Ka),Gi.subVectors(go,mo),Vi.subVectors(bo,go),Sr.subVectors(mo,bo);let t=[0,-Gi.z,Gi.y,0,-Vi.z,Vi.y,0,-Sr.z,Sr.y,Gi.z,0,-Gi.x,Vi.z,0,-Vi.x,Sr.z,0,-Sr.x,-Gi.y,Gi.x,0,-Vi.y,Vi.x,0,-Sr.y,Sr.x,0];return!xm(t,mo,go,bo,Mc)||(t=[1,0,0,0,1,0,0,0,1],!xm(t,mo,go,bo,Mc))?!1:(Dc.crossVectors(Gi,Vi),t=[Dc.x,Dc.y,Dc.z],xm(t,mo,go,bo,Mc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ss).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ss).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:(di[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),di[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),di[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),di[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),di[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),di[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),di[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),di[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(di),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 di=[new ie,new ie,new ie,new ie,new ie,new ie,new ie,new ie],Ss=new ie,Ic=new ki,mo=new ie,go=new ie,bo=new ie,Gi=new ie,Vi=new ie,Sr=new ie,Ka=new ie,Mc=new ie,Dc=new ie,Tr=new ie;function xm(n,e,t,s,i){for(let r=0,o=n.length-3;r<=o;r+=3){Tr.fromArray(n,r);const a=i.x*Math.abs(Tr.x)+i.y*Math.abs(Tr.y)+i.z*Math.abs(Tr.z),l=e.dot(Tr),u=t.dot(Tr),d=s.dot(Tr);if(Math.max(-Math.max(l,u,d),Math.min(l,u,d))>a)return!1}return!0}const Bwt=new ki,ja=new ie,Cm=new ie;class ii{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):Bwt.setFromPoints(e).getCenter(s);let i=0;for(let r=0,o=e.length;r<o;r++)i=Math.max(i,s.distanceToSquared(e[r]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const s=this.center.distanceToSquared(e);return t.copy(e),s>this.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;ja.subVectors(e,this.center);const t=ja.lengthSq();if(t>this.radius*this.radius){const s=Math.sqrt(t),i=(s-this.radius)*.5;this.center.addScaledVector(ja,i/s),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):(Cm.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ja.copy(e.center).add(Cm)),this.expandByPoint(ja.copy(e.center).sub(Cm))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const ui=new ie,wm=new ie,kc=new ie,zi=new ie,Rm=new ie,Lc=new ie,Am=new ie;class qu{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,ui)),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=ui.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ui.copy(this.origin).addScaledVector(this.direction,t),ui.distanceToSquared(e))}distanceSqToSegment(e,t,s,i){wm.copy(e).add(t).multiplyScalar(.5),kc.copy(t).sub(e).normalize(),zi.copy(this.origin).sub(wm);const r=e.distanceTo(t)*.5,o=-this.direction.dot(kc),a=zi.dot(this.direction),l=-zi.dot(kc),u=zi.lengthSq(),d=Math.abs(1-o*o);let h,f,_,m;if(d>0)if(h=o*l-a,f=o*a-l,m=r*d,h>=0)if(f>=-m)if(f<=m){const E=1/d;h*=E,f*=E,_=h*(h+o*f+2*a)+f*(o*h+f+2*l)+u}else f=r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;else f=-r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;else f<=-m?(h=Math.max(0,-(-o*r+a)),f=h>0?-r:Math.min(Math.max(-r,-l),r),_=-h*h+f*(f+2*l)+u):f<=m?(h=0,f=Math.min(Math.max(-r,-l),r),_=f*(f+2*l)+u):(h=Math.max(0,-(o*r+a)),f=h>0?r:Math.min(Math.max(-r,-l),r),_=-h*h+f*(f+2*l)+u);else f=o>0?-r:r,h=Math.max(0,-(o*f+a)),_=-h*h+f*(f+2*l)+u;return s&&s.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(wm).addScaledVector(kc,f),_}intersectSphere(e,t){ui.subVectors(e.center,this.origin);const s=ui.dot(this.direction),i=ui.dot(ui)-s*s,r=e.radius*e.radius;if(i>r)return null;const o=Math.sqrt(r-i),a=s-o,l=s+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 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,i,r,o,a,l;const u=1/this.direction.x,d=1/this.direction.y,h=1/this.direction.z,f=this.origin;return u>=0?(s=(e.min.x-f.x)*u,i=(e.max.x-f.x)*u):(s=(e.max.x-f.x)*u,i=(e.min.x-f.x)*u),d>=0?(r=(e.min.y-f.y)*d,o=(e.max.y-f.y)*d):(r=(e.max.y-f.y)*d,o=(e.min.y-f.y)*d),s>o||r>i||((r>s||isNaN(s))&&(s=r),(o<i||isNaN(i))&&(i=o),h>=0?(a=(e.min.z-f.z)*h,l=(e.max.z-f.z)*h):(a=(e.max.z-f.z)*h,l=(e.min.z-f.z)*h),s>l||a>i)||((a>s||s!==s)&&(s=a),(l<i||i!==i)&&(i=l),i<0)?null:this.at(s>=0?s:i,t)}intersectsBox(e){return this.intersectBox(e,ui)!==null}intersectTriangle(e,t,s,i,r){Rm.subVectors(t,e),Lc.subVectors(s,e),Am.crossVectors(Rm,Lc);let o=this.direction.dot(Am),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;zi.subVectors(this.origin,e);const l=a*this.direction.dot(Lc.crossVectors(zi,Lc));if(l<0)return null;const u=a*this.direction.dot(Rm.cross(zi));if(u<0||l+u>o)return null;const d=-a*zi.dot(Am);return d<0?null:this.at(d/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class xt{constructor(e,t,s,i,r,o,a,l,u,d,h,f,_,m,E,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,i,r,o,a,l,u,d,h,f,_,m,E,b)}set(e,t,s,i,r,o,a,l,u,d,h,f,_,m,E,b){const g=this.elements;return g[0]=e,g[4]=t,g[8]=s,g[12]=i,g[1]=r,g[5]=o,g[9]=a,g[13]=l,g[2]=u,g[6]=d,g[10]=h,g[14]=f,g[3]=_,g[7]=m,g[11]=E,g[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new 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,i=1/Eo.setFromMatrixColumn(e,0).length(),r=1/Eo.setFromMatrixColumn(e,1).length(),o=1/Eo.setFromMatrixColumn(e,2).length();return t[0]=s[0]*i,t[1]=s[1]*i,t[2]=s[2]*i,t[3]=0,t[4]=s[4]*r,t[5]=s[5]*r,t[6]=s[6]*r,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,i=e.y,r=e.z,o=Math.cos(s),a=Math.sin(s),l=Math.cos(i),u=Math.sin(i),d=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const f=o*d,_=o*h,m=a*d,E=a*h;t[0]=l*d,t[4]=-l*h,t[8]=u,t[1]=_+m*u,t[5]=f-E*u,t[9]=-a*l,t[2]=E-f*u,t[6]=m+_*u,t[10]=o*l}else if(e.order==="YXZ"){const f=l*d,_=l*h,m=u*d,E=u*h;t[0]=f+E*a,t[4]=m*a-_,t[8]=o*u,t[1]=o*h,t[5]=o*d,t[9]=-a,t[2]=_*a-m,t[6]=E+f*a,t[10]=o*l}else if(e.order==="ZXY"){const f=l*d,_=l*h,m=u*d,E=u*h;t[0]=f-E*a,t[4]=-o*h,t[8]=m+_*a,t[1]=_+m*a,t[5]=o*d,t[9]=E-f*a,t[2]=-o*u,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const f=o*d,_=o*h,m=a*d,E=a*h;t[0]=l*d,t[4]=m*u-_,t[8]=f*u+E,t[1]=l*h,t[5]=E*u+f,t[9]=_*u-m,t[2]=-u,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,_=o*u,m=a*l,E=a*u;t[0]=l*d,t[4]=E-f*h,t[8]=m*h+_,t[1]=h,t[5]=o*d,t[9]=-a*d,t[2]=-u*d,t[6]=_*h+m,t[10]=f-E*h}else if(e.order==="XZY"){const f=o*l,_=o*u,m=a*l,E=a*u;t[0]=l*d,t[4]=-h,t[8]=u*d,t[1]=f*h+E,t[5]=o*d,t[9]=_*h-m,t[2]=m*h-_,t[6]=a*d,t[10]=E*h+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Gwt,e,Vwt)}lookAt(e,t,s){const i=this.elements;return jn.subVectors(e,t),jn.lengthSq()===0&&(jn.z=1),jn.normalize(),Hi.crossVectors(s,jn),Hi.lengthSq()===0&&(Math.abs(s.z)===1?jn.x+=1e-4:jn.z+=1e-4,jn.normalize(),Hi.crossVectors(s,jn)),Hi.normalize(),Pc.crossVectors(jn,Hi),i[0]=Hi.x,i[4]=Pc.x,i[8]=jn.x,i[1]=Hi.y,i[5]=Pc.y,i[9]=jn.y,i[2]=Hi.z,i[6]=Pc.z,i[10]=jn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const s=e.elements,i=t.elements,r=this.elements,o=s[0],a=s[4],l=s[8],u=s[12],d=s[1],h=s[5],f=s[9],_=s[13],m=s[2],E=s[6],b=s[10],g=s[14],y=s[3],v=s[7],S=s[11],w=s[15],x=i[0],A=i[4],D=i[8],T=i[12],O=i[1],F=i[5],z=i[9],Z=i[13],M=i[2],q=i[6],H=i[10],P=i[14],$=i[3],J=i[7],re=i[11],me=i[15];return r[0]=o*x+a*O+l*M+u*$,r[4]=o*A+a*F+l*q+u*J,r[8]=o*D+a*z+l*H+u*re,r[12]=o*T+a*Z+l*P+u*me,r[1]=d*x+h*O+f*M+_*$,r[5]=d*A+h*F+f*q+_*J,r[9]=d*D+h*z+f*H+_*re,r[13]=d*T+h*Z+f*P+_*me,r[2]=m*x+E*O+b*M+g*$,r[6]=m*A+E*F+b*q+g*J,r[10]=m*D+E*z+b*H+g*re,r[14]=m*T+E*Z+b*P+g*me,r[3]=y*x+v*O+S*M+w*$,r[7]=y*A+v*F+S*q+w*J,r[11]=y*D+v*z+S*H+w*re,r[15]=y*T+v*Z+S*P+w*me,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],i=e[8],r=e[12],o=e[1],a=e[5],l=e[9],u=e[13],d=e[2],h=e[6],f=e[10],_=e[14],m=e[3],E=e[7],b=e[11],g=e[15];return m*(+r*l*h-i*u*h-r*a*f+s*u*f+i*a*_-s*l*_)+E*(+t*l*_-t*u*f+r*o*f-i*o*_+i*u*d-r*l*d)+b*(+t*u*h-t*a*_-r*o*h+s*o*_+r*a*d-s*u*d)+g*(-i*a*d-t*l*h+t*a*f+i*o*h-s*o*f+s*l*d)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,s){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]=s),this}invert(){const e=this.elements,t=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],u=e[7],d=e[8],h=e[9],f=e[10],_=e[11],m=e[12],E=e[13],b=e[14],g=e[15],y=h*b*u-E*f*u+E*l*_-a*b*_-h*l*g+a*f*g,v=m*f*u-d*b*u-m*l*_+o*b*_+d*l*g-o*f*g,S=d*E*u-m*h*u+m*a*_-o*E*_-d*a*g+o*h*g,w=m*h*l-d*E*l-m*a*f+o*E*f+d*a*b-o*h*b,x=t*y+s*v+i*S+r*w;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/x;return e[0]=y*A,e[1]=(E*f*r-h*b*r-E*i*_+s*b*_+h*i*g-s*f*g)*A,e[2]=(a*b*r-E*l*r+E*i*u-s*b*u-a*i*g+s*l*g)*A,e[3]=(h*l*r-a*f*r-h*i*u+s*f*u+a*i*_-s*l*_)*A,e[4]=v*A,e[5]=(d*b*r-m*f*r+m*i*_-t*b*_-d*i*g+t*f*g)*A,e[6]=(m*l*r-o*b*r-m*i*u+t*b*u+o*i*g-t*l*g)*A,e[7]=(o*f*r-d*l*r+d*i*u-t*f*u-o*i*_+t*l*_)*A,e[8]=S*A,e[9]=(m*h*r-d*E*r-m*s*_+t*E*_+d*s*g-t*h*g)*A,e[10]=(o*E*r-m*a*r+m*s*u-t*E*u-o*s*g+t*a*g)*A,e[11]=(d*a*r-o*h*r-d*s*u+t*h*u+o*s*_-t*a*_)*A,e[12]=w*A,e[13]=(d*E*i-m*h*i+m*s*f-t*E*f-d*s*b+t*h*b)*A,e[14]=(m*a*i-o*E*i-m*s*l+t*E*l+o*s*b-t*a*b)*A,e[15]=(o*h*i-d*a*i+d*s*l-t*h*l-o*s*f+t*a*f)*A,this}scale(e){const t=this.elements,s=e.x,i=e.y,r=e.z;return t[0]*=s,t[4]*=i,t[8]*=r,t[1]*=s,t[5]*=i,t[9]*=r,t[2]*=s,t[6]*=i,t[10]*=r,t[3]*=s,t[7]*=i,t[11]*=r,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],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,s,i))}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),i=Math.sin(t),r=1-s,o=e.x,a=e.y,l=e.z,u=r*o,d=r*a;return this.set(u*o+s,u*a-i*l,u*l+i*a,0,u*a+i*l,d*a+s,d*l-i*o,0,u*l-i*a,d*l+i*o,r*l*l+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,i,r,o){return this.set(1,s,r,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,s){const i=this.elements,r=t._x,o=t._y,a=t._z,l=t._w,u=r+r,d=o+o,h=a+a,f=r*u,_=r*d,m=r*h,E=o*d,b=o*h,g=a*h,y=l*u,v=l*d,S=l*h,w=s.x,x=s.y,A=s.z;return i[0]=(1-(E+g))*w,i[1]=(_+S)*w,i[2]=(m-v)*w,i[3]=0,i[4]=(_-S)*x,i[5]=(1-(f+g))*x,i[6]=(b+y)*x,i[7]=0,i[8]=(m+v)*A,i[9]=(b-y)*A,i[10]=(1-(f+E))*A,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,s){const i=this.elements;let r=Eo.set(i[0],i[1],i[2]).length();const o=Eo.set(i[4],i[5],i[6]).length(),a=Eo.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],Ts.copy(this);const u=1/r,d=1/o,h=1/a;return Ts.elements[0]*=u,Ts.elements[1]*=u,Ts.elements[2]*=u,Ts.elements[4]*=d,Ts.elements[5]*=d,Ts.elements[6]*=d,Ts.elements[8]*=h,Ts.elements[9]*=h,Ts.elements[10]*=h,t.setFromRotationMatrix(Ts),s.x=r,s.y=o,s.z=a,this}makePerspective(e,t,s,i,r,o,a=Si){const l=this.elements,u=2*r/(t-e),d=2*r/(s-i),h=(t+e)/(t-e),f=(s+i)/(s-i);let _,m;if(a===Si)_=-(o+r)/(o-r),m=-2*o*r/(o-r);else if(a===Xd)_=-o/(o-r),m=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=u,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=d,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=_,l[14]=m,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,s,i,r,o,a=Si){const l=this.elements,u=1/(t-e),d=1/(s-i),h=1/(o-r),f=(t+e)*u,_=(s+i)*d;let m,E;if(a===Si)m=(o+r)*h,E=-2*h;else if(a===Xd)m=r*h,E=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-_,l[2]=0,l[6]=0,l[10]=E,l[14]=-m,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,s=e.elements;for(let i=0;i<16;i++)if(t[i]!==s[i])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 Eo=new ie,Ts=new xt,Gwt=new ie(0,0,0),Vwt=new ie(1,1,1),Hi=new ie,Pc=new ie,jn=new ie,YC=new xt,$C=new mr;class Yu{constructor(e=0,t=0,s=0,i=Yu.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=s,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,s,i=this._order){return this._x=e,this._y=t,this._z=s,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,s=!0){const i=e.elements,r=i[0],o=i[4],a=i[8],l=i[1],u=i[5],d=i[9],h=i[2],f=i[6],_=i[10];switch(t){case"XYZ":this._y=Math.asin(Nn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-d,_),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-Nn(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(a,_),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Nn(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,_),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-Nn(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,_),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(Nn(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,_));break;case"XZY":this._z=Math.asin(-Nn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-d,_),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,s===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,s){return YC.makeRotationFromQuaternion(e),this.setFromRotationMatrix(YC,t,s)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return $C.setFromEuler(this),this.setFromQuaternion($C,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}}Yu.DEFAULT_ORDER="XYZ";class mO{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let zwt=0;const WC=new ie,yo=new mr,pi=new xt,Uc=new ie,Qa=new ie,Hwt=new ie,qwt=new mr,KC=new ie(1,0,0),jC=new ie(0,1,0),QC=new ie(0,0,1),Ywt={type:"added"},$wt={type:"removed"};class Jt extends Ma{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:zwt++}),this.uuid=Ds(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Jt.DEFAULT_UP.clone();const e=new ie,t=new Yu,s=new mr,i=new ie(1,1,1);function r(){s.setFromEuler(t,!1)}function o(){t.setFromQuaternion(s,void 0,!1)}t._onChange(r),s._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:s},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new xt},normalMatrix:{value:new Tt}}),this.matrix=new xt,this.matrixWorld=new xt,this.matrixAutoUpdate=Jt.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=Jt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new mO,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return yo.setFromAxisAngle(e,t),this.quaternion.multiply(yo),this}rotateOnWorldAxis(e,t){return yo.setFromAxisAngle(e,t),this.quaternion.premultiply(yo),this}rotateX(e){return this.rotateOnAxis(KC,e)}rotateY(e){return this.rotateOnAxis(jC,e)}rotateZ(e){return this.rotateOnAxis(QC,e)}translateOnAxis(e,t){return WC.copy(e).applyQuaternion(this.quaternion),this.position.add(WC.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(KC,e)}translateY(e){return this.translateOnAxis(jC,e)}translateZ(e){return this.translateOnAxis(QC,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(pi.copy(this.matrixWorld).invert())}lookAt(e,t,s){e.isVector3?Uc.copy(e):Uc.set(e,t,s);const i=this.parent;this.updateWorldMatrix(!0,!1),Qa.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?pi.lookAt(Qa,Uc,this.up):pi.lookAt(Uc,Qa,this.up),this.quaternion.setFromRotationMatrix(pi),i&&(pi.extractRotation(i.matrixWorld),yo.setFromRotationMatrix(pi),this.quaternion.premultiply(yo.invert()))}add(e){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.parent!==null&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(Ywt)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let s=0;s<arguments.length;s++)this.remove(arguments[s]);return this}const t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent($wt)),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),pi.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),pi.multiply(e.parent.matrixWorld)),e.applyMatrix4(pi),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let s=0,i=this.children.length;s<i;s++){const o=this.children[s].getObjectByProperty(e,t);if(o!==void 0)return o}}getObjectsByProperty(e,t,s=[]){this[e]===t&&s.push(this);const i=this.children;for(let r=0,o=i.length;r<o;r++)i[r].getObjectsByProperty(e,t,s);return s}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Qa,e,Hwt),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Qa,qwt,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let s=0,i=t.length;s<i;s++)t[s].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const t=this.children;for(let s=0,i=t.length;s<i;s++)t[s].traverseVisible(e)}traverseAncestors(e){const t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let s=0,i=t.length;s<i;s++){const r=t[s];(r.matrixWorldAutoUpdate===!0||e===!0)&&r.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const s=this.parent;if(e===!0&&s!==null&&s.matrixWorldAutoUpdate===!0&&s.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),t===!0){const i=this.children;for(let r=0,o=i.length;r<o;r++){const a=i[r];a.matrixWorldAutoUpdate===!0&&a.updateWorldMatrix(!1,!0)}}}toJSON(e){const t=e===void 0||typeof e=="string",s={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},s.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const i={};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.castShadow===!0&&(i.castShadow=!0),this.receiveShadow===!0&&(i.receiveShadow=!0),this.visible===!1&&(i.visible=!1),this.frustumCulled===!1&&(i.frustumCulled=!1),this.renderOrder!==0&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(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 r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?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=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let u=0,d=l.length;u<d;u++){const h=l[u];r(e.shapes,h)}else r(e.shapes,l)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(r(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const a=[];for(let l=0,u=this.material.length;l<u;l++)a.push(r(e.materials,this.material[l]));i.material=a}else i.material=r(e.materials,this.material);if(this.children.length>0){i.children=[];for(let a=0;a<this.children.length;a++)i.children.push(this.children[a].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let a=0;a<this.animations.length;a++){const l=this.animations[a];i.animations.push(r(e.animations,l))}}if(t){const a=o(e.geometries),l=o(e.materials),u=o(e.textures),d=o(e.images),h=o(e.shapes),f=o(e.skeletons),_=o(e.animations),m=o(e.nodes);a.length>0&&(s.geometries=a),l.length>0&&(s.materials=l),u.length>0&&(s.textures=u),d.length>0&&(s.images=d),h.length>0&&(s.shapes=h),f.length>0&&(s.skeletons=f),_.length>0&&(s.animations=_),m.length>0&&(s.nodes=m)}return s.object=i,s;function o(a){const l=[];for(const u in a){const d=a[u];delete d.metadata,l.push(d)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let s=0;s<e.children.length;s++){const i=e.children[s];this.add(i.clone())}return this}}Jt.DEFAULT_UP=new ie(0,1,0);Jt.DEFAULT_MATRIX_AUTO_UPDATE=!0;Jt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const xs=new ie,_i=new ie,Nm=new ie,hi=new ie,vo=new ie,So=new ie,XC=new ie,Om=new ie,Im=new ie,Mm=new ie;let Fc=!1;class Rs{constructor(e=new ie,t=new ie,s=new ie){this.a=e,this.b=t,this.c=s}static getNormal(e,t,s,i){i.subVectors(s,t),xs.subVectors(e,t),i.cross(xs);const r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,t,s,i,r){xs.subVectors(i,t),_i.subVectors(s,t),Nm.subVectors(e,t);const o=xs.dot(xs),a=xs.dot(_i),l=xs.dot(Nm),u=_i.dot(_i),d=_i.dot(Nm),h=o*u-a*a;if(h===0)return r.set(-2,-1,-1);const f=1/h,_=(u*l-a*d)*f,m=(o*d-a*l)*f;return r.set(1-_-m,m,_)}static containsPoint(e,t,s,i){return this.getBarycoord(e,t,s,i,hi),hi.x>=0&&hi.y>=0&&hi.x+hi.y<=1}static getUV(e,t,s,i,r,o,a,l){return Fc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Fc=!0),this.getInterpolation(e,t,s,i,r,o,a,l)}static getInterpolation(e,t,s,i,r,o,a,l){return this.getBarycoord(e,t,s,i,hi),l.setScalar(0),l.addScaledVector(r,hi.x),l.addScaledVector(o,hi.y),l.addScaledVector(a,hi.z),l}static isFrontFacing(e,t,s,i){return xs.subVectors(s,t),_i.subVectors(e,t),xs.cross(_i).dot(i)<0}set(e,t,s){return this.a.copy(e),this.b.copy(t),this.c.copy(s),this}setFromPointsAndIndices(e,t,s,i){return this.a.copy(e[t]),this.b.copy(e[s]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,s,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,s),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 xs.subVectors(this.c,this.b),_i.subVectors(this.a,this.b),xs.cross(_i).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Rs.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Rs.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,s,i,r){return Fc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Fc=!0),Rs.getInterpolation(e,this.a,this.b,this.c,t,s,i,r)}getInterpolation(e,t,s,i,r){return Rs.getInterpolation(e,this.a,this.b,this.c,t,s,i,r)}containsPoint(e){return Rs.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Rs.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const s=this.a,i=this.b,r=this.c;let o,a;vo.subVectors(i,s),So.subVectors(r,s),Om.subVectors(e,s);const l=vo.dot(Om),u=So.dot(Om);if(l<=0&&u<=0)return t.copy(s);Im.subVectors(e,i);const d=vo.dot(Im),h=So.dot(Im);if(d>=0&&h<=d)return t.copy(i);const f=l*h-d*u;if(f<=0&&l>=0&&d<=0)return o=l/(l-d),t.copy(s).addScaledVector(vo,o);Mm.subVectors(e,r);const _=vo.dot(Mm),m=So.dot(Mm);if(m>=0&&_<=m)return t.copy(r);const E=_*u-l*m;if(E<=0&&u>=0&&m<=0)return a=u/(u-m),t.copy(s).addScaledVector(So,a);const b=d*m-_*h;if(b<=0&&h-d>=0&&_-m>=0)return XC.subVectors(r,i),a=(h-d)/(h-d+(_-m)),t.copy(i).addScaledVector(XC,a);const g=1/(b+E+f);return o=E*g,a=f*g,t.copy(s).addScaledVector(vo,o).addScaledVector(So,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const gO={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},qi={h:0,s:0,l:0},Bc={h:0,s:0,l:0};function Dm(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 ut{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 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,s);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=en){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Ut.toWorkingColorSpace(this,t),this}setRGB(e,t,s,i=Ut.workingColorSpace){return this.r=e,this.g=t,this.b=s,Ut.toWorkingColorSpace(this,i),this}setHSL(e,t,s,i=Ut.workingColorSpace){if(e=RE(e,1),t=Nn(t,0,1),s=Nn(s,0,1),t===0)this.r=this.g=this.b=s;else{const r=s<=.5?s*(1+t):s+t-s*t,o=2*s-r;this.r=Dm(o,r,e+1/3),this.g=Dm(o,r,e),this.b=Dm(o,r,e-1/3)}return Ut.toWorkingColorSpace(this,i),this}setStyle(e,t=en){function s(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=i[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=en){const s=gO[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=$o(e.r),this.g=$o(e.g),this.b=$o(e.b),this}copyLinearToSRGB(e){return this.r=vm(e.r),this.g=vm(e.g),this.b=vm(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=en){return Ut.fromWorkingColorSpace(Rn.copy(this),e),Math.round(Nn(Rn.r*255,0,255))*65536+Math.round(Nn(Rn.g*255,0,255))*256+Math.round(Nn(Rn.b*255,0,255))}getHexString(e=en){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Ut.workingColorSpace){Ut.fromWorkingColorSpace(Rn.copy(this),t);const s=Rn.r,i=Rn.g,r=Rn.b,o=Math.max(s,i,r),a=Math.min(s,i,r);let l,u;const d=(a+o)/2;if(a===o)l=0,u=0;else{const h=o-a;switch(u=d<=.5?h/(o+a):h/(2-o-a),o){case s:l=(i-r)/h+(i<r?6:0);break;case i:l=(r-s)/h+2;break;case r:l=(s-i)/h+4;break}l/=6}return e.h=l,e.s=u,e.l=d,e}getRGB(e,t=Ut.workingColorSpace){return Ut.fromWorkingColorSpace(Rn.copy(this),t),e.r=Rn.r,e.g=Rn.g,e.b=Rn.b,e}getStyle(e=en){Ut.fromWorkingColorSpace(Rn.copy(this),e);const t=Rn.r,s=Rn.g,i=Rn.b;return e!==en?`color(${e} ${t.toFixed(3)} ${s.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(t*255)},${Math.round(s*255)},${Math.round(i*255)})`}offsetHSL(e,t,s){return this.getHSL(qi),this.setHSL(qi.h+e,qi.s+t,qi.l+s)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,s){return this.r=e.r+(t.r-e.r)*s,this.g=e.g+(t.g-e.g)*s,this.b=e.b+(t.b-e.b)*s,this}lerpHSL(e,t){this.getHSL(qi),e.getHSL(Bc);const s=gl(qi.h,Bc.h,t),i=gl(qi.s,Bc.s,t),r=gl(qi.l,Bc.l,t);return this.setHSL(s,i,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,s=this.g,i=this.b,r=e.elements;return this.r=r[0]*t+r[3]*s+r[6]*i,this.g=r[1]*t+r[4]*s+r[7]*i,this.b=r[2]*t+r[5]*s+r[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Rn=new ut;ut.NAMES=gO;let Wwt=0;class ks extends Ma{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Wwt++}),this.uuid=Ds(),this.name="",this.type="Material",this.blending=Yo,this.side=Oi,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=kg,this.blendDst=Lg,this.blendEquation=kr,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new ut(0,0,0),this.blendAlpha=0,this.depthFunc=$d,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=FC,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=ho,this.stencilZFail=ho,this.stencilZPass=ho,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=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 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(s):i&&i.isVector3&&s&&s.isVector3?i.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!==Yo&&(s.blending=this.blending),this.side!==Oi&&(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!==kg&&(s.blendSrc=this.blendSrc),this.blendDst!==Lg&&(s.blendDst=this.blendDst),this.blendEquation!==kr&&(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!==$d&&(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!==FC&&(s.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(s.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(s.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ho&&(s.stencilFail=this.stencilFail),this.stencilZFail!==ho&&(s.stencilZFail=this.stencilZFail),this.stencilZPass!==ho&&(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 i(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(t){const r=i(e.textures),o=i(e.images);r.length>0&&(s.textures=r),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 i=t.length;s=new Array(i);for(let r=0;r!==i;++r)s[r]=t[r].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 ir extends ks{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new ut(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=TE,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 on=new ie,Gc=new Rt;class Bn{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=Gg,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=vi,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 i=0,r=this.itemSize;i<r;i++)this.array[e+i]=t.array[s+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,s=this.count;t<s;t++)Gc.fromBufferAttribute(this,t),Gc.applyMatrix3(e),this.setXY(t,Gc.x,Gc.y);else if(this.itemSize===3)for(let t=0,s=this.count;t<s;t++)on.fromBufferAttribute(this,t),on.applyMatrix3(e),this.setXYZ(t,on.x,on.y,on.z);return this}applyMatrix4(e){for(let t=0,s=this.count;t<s;t++)on.fromBufferAttribute(this,t),on.applyMatrix4(e),this.setXYZ(t,on.x,on.y,on.z);return this}applyNormalMatrix(e){for(let t=0,s=this.count;t<s;t++)on.fromBufferAttribute(this,t),on.applyNormalMatrix(e),this.setXYZ(t,on.x,on.y,on.z);return this}transformDirection(e){for(let t=0,s=this.count;t<s;t++)on.fromBufferAttribute(this,t),on.transformDirection(e),this.setXYZ(t,on.x,on.y,on.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let s=this.array[e*this.itemSize+t];return this.normalized&&(s=Ys(s,this.array)),s}setComponent(e,t,s){return this.normalized&&(s=Vt(s,this.array)),this.array[e*this.itemSize+t]=s,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Ys(t,this.array)),t}setX(e,t){return this.normalized&&(t=Vt(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Ys(t,this.array)),t}setY(e,t){return this.normalized&&(t=Vt(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Ys(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Vt(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Ys(t,this.array)),t}setW(e,t){return this.normalized&&(t=Vt(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,s){return e*=this.itemSize,this.normalized&&(t=Vt(t,this.array),s=Vt(s,this.array)),this.array[e+0]=t,this.array[e+1]=s,this}setXYZ(e,t,s,i){return e*=this.itemSize,this.normalized&&(t=Vt(t,this.array),s=Vt(s,this.array),i=Vt(i,this.array)),this.array[e+0]=t,this.array[e+1]=s,this.array[e+2]=i,this}setXYZW(e,t,s,i,r){return e*=this.itemSize,this.normalized&&(t=Vt(t,this.array),s=Vt(s,this.array),i=Vt(i,this.array),r=Vt(r,this.array)),this.array[e+0]=t,this.array[e+1]=s,this.array[e+2]=i,this.array[e+3]=r,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==Gg&&(e.usage=this.usage),e}}class bO extends Bn{constructor(e,t,s){super(new Uint16Array(e),t,s)}}class EO extends Bn{constructor(e,t,s){super(new Uint32Array(e),t,s)}}class xi extends Bn{constructor(e,t,s){super(new Float32Array(e),t,s)}}let Kwt=0;const ss=new xt,km=new Jt,To=new ie,Qn=new ki,Xa=new ki,fn=new ie;class ri extends Ma{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Kwt++}),this.uuid=Ds(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(pO(e)?EO:bO)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,s=0){this.groups.push({start:e,count:t,materialIndex:s})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);const s=this.attributes.normal;if(s!==void 0){const r=new Tt().getNormalMatrix(e);s.applyNormalMatrix(r),s.needsUpdate=!0}const i=this.attributes.tangent;return i!==void 0&&(i.transformDirection(e),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return ss.makeRotationFromQuaternion(e),this.applyMatrix4(ss),this}rotateX(e){return ss.makeRotationX(e),this.applyMatrix4(ss),this}rotateY(e){return ss.makeRotationY(e),this.applyMatrix4(ss),this}rotateZ(e){return ss.makeRotationZ(e),this.applyMatrix4(ss),this}translate(e,t,s){return ss.makeTranslation(e,t,s),this.applyMatrix4(ss),this}scale(e,t,s){return ss.makeScale(e,t,s),this.applyMatrix4(ss),this}lookAt(e){return km.lookAt(e),km.updateMatrix(),this.applyMatrix4(km.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(To).negate(),this.translate(To.x,To.y,To.z),this}setFromPoints(e){const t=[];for(let s=0,i=e.length;s<i;s++){const r=e[s];t.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new xi(t,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new ki);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingBox.set(new ie(-1/0,-1/0,-1/0),new ie(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let s=0,i=t.length;s<i;s++){const r=t[s];Qn.setFromBufferAttribute(r),this.morphTargetsRelative?(fn.addVectors(this.boundingBox.min,Qn.min),this.boundingBox.expandByPoint(fn),fn.addVectors(this.boundingBox.max,Qn.max),this.boundingBox.expandByPoint(fn)):(this.boundingBox.expandByPoint(Qn.min),this.boundingBox.expandByPoint(Qn.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new ii);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingSphere.set(new ie,1/0);return}if(e){const s=this.boundingSphere.center;if(Qn.setFromBufferAttribute(e),t)for(let r=0,o=t.length;r<o;r++){const a=t[r];Xa.setFromBufferAttribute(a),this.morphTargetsRelative?(fn.addVectors(Qn.min,Xa.min),Qn.expandByPoint(fn),fn.addVectors(Qn.max,Xa.max),Qn.expandByPoint(fn)):(Qn.expandByPoint(Xa.min),Qn.expandByPoint(Xa.max))}Qn.getCenter(s);let i=0;for(let r=0,o=e.count;r<o;r++)fn.fromBufferAttribute(e,r),i=Math.max(i,s.distanceToSquared(fn));if(t)for(let r=0,o=t.length;r<o;r++){const a=t[r],l=this.morphTargetsRelative;for(let u=0,d=a.count;u<d;u++)fn.fromBufferAttribute(a,u),l&&(To.fromBufferAttribute(e,u),fn.add(To)),i=Math.max(i,s.distanceToSquared(fn))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const s=e.array,i=t.position.array,r=t.normal.array,o=t.uv.array,a=i.length/3;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new Bn(new Float32Array(4*a),4));const l=this.getAttribute("tangent").array,u=[],d=[];for(let O=0;O<a;O++)u[O]=new ie,d[O]=new ie;const h=new ie,f=new ie,_=new ie,m=new Rt,E=new Rt,b=new Rt,g=new ie,y=new ie;function v(O,F,z){h.fromArray(i,O*3),f.fromArray(i,F*3),_.fromArray(i,z*3),m.fromArray(o,O*2),E.fromArray(o,F*2),b.fromArray(o,z*2),f.sub(h),_.sub(h),E.sub(m),b.sub(m);const Z=1/(E.x*b.y-b.x*E.y);isFinite(Z)&&(g.copy(f).multiplyScalar(b.y).addScaledVector(_,-E.y).multiplyScalar(Z),y.copy(_).multiplyScalar(E.x).addScaledVector(f,-b.x).multiplyScalar(Z),u[O].add(g),u[F].add(g),u[z].add(g),d[O].add(y),d[F].add(y),d[z].add(y))}let S=this.groups;S.length===0&&(S=[{start:0,count:s.length}]);for(let O=0,F=S.length;O<F;++O){const z=S[O],Z=z.start,M=z.count;for(let q=Z,H=Z+M;q<H;q+=3)v(s[q+0],s[q+1],s[q+2])}const w=new ie,x=new ie,A=new ie,D=new ie;function T(O){A.fromArray(r,O*3),D.copy(A);const F=u[O];w.copy(F),w.sub(A.multiplyScalar(A.dot(F))).normalize(),x.crossVectors(D,F);const Z=x.dot(d[O])<0?-1:1;l[O*4]=w.x,l[O*4+1]=w.y,l[O*4+2]=w.z,l[O*4+3]=Z}for(let O=0,F=S.length;O<F;++O){const z=S[O],Z=z.start,M=z.count;for(let q=Z,H=Z+M;q<H;q+=3)T(s[q+0]),T(s[q+1]),T(s[q+2])}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(t!==void 0){let s=this.getAttribute("normal");if(s===void 0)s=new Bn(new Float32Array(t.count*3),3),this.setAttribute("normal",s);else for(let f=0,_=s.count;f<_;f++)s.setXYZ(f,0,0,0);const i=new ie,r=new ie,o=new ie,a=new ie,l=new ie,u=new ie,d=new ie,h=new ie;if(e)for(let f=0,_=e.count;f<_;f+=3){const m=e.getX(f+0),E=e.getX(f+1),b=e.getX(f+2);i.fromBufferAttribute(t,m),r.fromBufferAttribute(t,E),o.fromBufferAttribute(t,b),d.subVectors(o,r),h.subVectors(i,r),d.cross(h),a.fromBufferAttribute(s,m),l.fromBufferAttribute(s,E),u.fromBufferAttribute(s,b),a.add(d),l.add(d),u.add(d),s.setXYZ(m,a.x,a.y,a.z),s.setXYZ(E,l.x,l.y,l.z),s.setXYZ(b,u.x,u.y,u.z)}else for(let f=0,_=t.count;f<_;f+=3)i.fromBufferAttribute(t,f+0),r.fromBufferAttribute(t,f+1),o.fromBufferAttribute(t,f+2),d.subVectors(o,r),h.subVectors(i,r),d.cross(h),s.setXYZ(f+0,d.x,d.y,d.z),s.setXYZ(f+1,d.x,d.y,d.z),s.setXYZ(f+2,d.x,d.y,d.z);this.normalizeNormals(),s.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,s=e.count;t<s;t++)fn.fromBufferAttribute(e,t),fn.normalize(),e.setXYZ(t,fn.x,fn.y,fn.z)}toNonIndexed(){function e(a,l){const u=a.array,d=a.itemSize,h=a.normalized,f=new u.constructor(l.length*d);let _=0,m=0;for(let E=0,b=l.length;E<b;E++){a.isInterleavedBufferAttribute?_=l[E]*a.data.stride+a.offset:_=l[E]*d;for(let g=0;g<d;g++)f[m++]=u[_++]}return new Bn(f,d,h)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new ri,s=this.index.array,i=this.attributes;for(const a in i){const l=i[a],u=e(l,s);t.setAttribute(a,u)}const r=this.morphAttributes;for(const a in r){const l=[],u=r[a];for(let d=0,h=u.length;d<h;d++){const f=u[d],_=e(f,s);l.push(_)}t.morphAttributes[a]=l}t.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,l=o.length;a<l;a++){const u=o[a];t.addGroup(u.start,u.count,u.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(e[u]=l[u]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const s=this.attributes;for(const l in s){const u=s[l];e.data.attributes[l]=u.toJSON(e.data)}const i={};let r=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],d=[];for(let h=0,f=u.length;h<f;h++){const _=u[h];d.push(_.toJSON(e.data))}d.length>0&&(i[l]=d,r=!0)}r&&(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 s=e.index;s!==null&&this.setIndex(s.clone(t));const i=e.attributes;for(const u in i){const d=i[u];this.setAttribute(u,d.clone(t))}const r=e.morphAttributes;for(const u in r){const d=[],h=r[u];for(let f=0,_=h.length;f<_;f++)d.push(h[f].clone(t));this.morphAttributes[u]=d}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let u=0,d=o.length;u<d;u++){const h=o[u];this.addGroup(h.start,h.count,h.materialIndex)}const a=e.boundingBox;a!==null&&(this.boundingBox=a.clone());const l=e.boundingSphere;return l!==null&&(this.boundingSphere=l.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const ZC=new xt,xr=new qu,Vc=new ii,JC=new ie,xo=new ie,Co=new ie,wo=new ie,Lm=new ie,zc=new ie,Hc=new Rt,qc=new Rt,Yc=new Rt,e1=new ie,t1=new ie,n1=new ie,$c=new ie,Wc=new ie;class Un extends Jt{constructor(e=new ri,t=new ir){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const t=this.geometry.morphAttributes,s=Object.keys(t);if(s.length>0){const i=t[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r<o;r++){const a=i[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}getVertexPosition(e,t){const s=this.geometry,i=s.attributes.position,r=s.morphAttributes.position,o=s.morphTargetsRelative;t.fromBufferAttribute(i,e);const a=this.morphTargetInfluences;if(r&&a){zc.set(0,0,0);for(let l=0,u=r.length;l<u;l++){const d=a[l],h=r[l];d!==0&&(Lm.fromBufferAttribute(h,e),o?zc.addScaledVector(Lm,d):zc.addScaledVector(Lm.sub(t),d))}t.add(zc)}return t}raycast(e,t){const s=this.geometry,i=this.material,r=this.matrixWorld;i!==void 0&&(s.boundingSphere===null&&s.computeBoundingSphere(),Vc.copy(s.boundingSphere),Vc.applyMatrix4(r),xr.copy(e.ray).recast(e.near),!(Vc.containsPoint(xr.origin)===!1&&(xr.intersectSphere(Vc,JC)===null||xr.origin.distanceToSquared(JC)>(e.far-e.near)**2))&&(ZC.copy(r).invert(),xr.copy(e.ray).applyMatrix4(ZC),!(s.boundingBox!==null&&xr.intersectsBox(s.boundingBox)===!1)&&this._computeIntersections(e,t,xr)))}_computeIntersections(e,t,s){let i;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,u=r.attributes.uv,d=r.attributes.uv1,h=r.attributes.normal,f=r.groups,_=r.drawRange;if(a!==null)if(Array.isArray(o))for(let m=0,E=f.length;m<E;m++){const b=f[m],g=o[b.materialIndex],y=Math.max(b.start,_.start),v=Math.min(a.count,Math.min(b.start+b.count,_.start+_.count));for(let S=y,w=v;S<w;S+=3){const x=a.getX(S),A=a.getX(S+1),D=a.getX(S+2);i=Kc(this,g,e,s,u,d,h,x,A,D),i&&(i.faceIndex=Math.floor(S/3),i.face.materialIndex=b.materialIndex,t.push(i))}}else{const m=Math.max(0,_.start),E=Math.min(a.count,_.start+_.count);for(let b=m,g=E;b<g;b+=3){const y=a.getX(b),v=a.getX(b+1),S=a.getX(b+2);i=Kc(this,o,e,s,u,d,h,y,v,S),i&&(i.faceIndex=Math.floor(b/3),t.push(i))}}else if(l!==void 0)if(Array.isArray(o))for(let m=0,E=f.length;m<E;m++){const b=f[m],g=o[b.materialIndex],y=Math.max(b.start,_.start),v=Math.min(l.count,Math.min(b.start+b.count,_.start+_.count));for(let S=y,w=v;S<w;S+=3){const x=S,A=S+1,D=S+2;i=Kc(this,g,e,s,u,d,h,x,A,D),i&&(i.faceIndex=Math.floor(S/3),i.face.materialIndex=b.materialIndex,t.push(i))}}else{const m=Math.max(0,_.start),E=Math.min(l.count,_.start+_.count);for(let b=m,g=E;b<g;b+=3){const y=b,v=b+1,S=b+2;i=Kc(this,o,e,s,u,d,h,y,v,S),i&&(i.faceIndex=Math.floor(b/3),t.push(i))}}}}function jwt(n,e,t,s,i,r,o,a){let l;if(e.side===Yn?l=s.intersectTriangle(o,r,i,!0,a):l=s.intersectTriangle(i,r,o,e.side===Oi,a),l===null)return null;Wc.copy(a),Wc.applyMatrix4(n.matrixWorld);const u=t.ray.origin.distanceTo(Wc);return u<t.near||u>t.far?null:{distance:u,point:Wc.clone(),object:n}}function Kc(n,e,t,s,i,r,o,a,l,u){n.getVertexPosition(a,xo),n.getVertexPosition(l,Co),n.getVertexPosition(u,wo);const d=jwt(n,e,t,s,xo,Co,wo,$c);if(d){i&&(Hc.fromBufferAttribute(i,a),qc.fromBufferAttribute(i,l),Yc.fromBufferAttribute(i,u),d.uv=Rs.getInterpolation($c,xo,Co,wo,Hc,qc,Yc,new Rt)),r&&(Hc.fromBufferAttribute(r,a),qc.fromBufferAttribute(r,l),Yc.fromBufferAttribute(r,u),d.uv1=Rs.getInterpolation($c,xo,Co,wo,Hc,qc,Yc,new Rt),d.uv2=d.uv1),o&&(e1.fromBufferAttribute(o,a),t1.fromBufferAttribute(o,l),n1.fromBufferAttribute(o,u),d.normal=Rs.getInterpolation($c,xo,Co,wo,e1,t1,n1,new ie),d.normal.dot(s.direction)>0&&d.normal.multiplyScalar(-1));const h={a,b:l,c:u,normal:new ie,materialIndex:0};Rs.getNormal(xo,Co,wo,h.normal),d.face=h}return d}class dr extends ri{constructor(e=1,t=1,s=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:s,widthSegments:i,heightSegments:r,depthSegments:o};const a=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const l=[],u=[],d=[],h=[];let f=0,_=0;m("z","y","x",-1,-1,s,t,e,o,r,0),m("z","y","x",1,-1,s,t,-e,o,r,1),m("x","z","y",1,1,e,s,t,i,o,2),m("x","z","y",1,-1,e,s,-t,i,o,3),m("x","y","z",1,-1,e,t,s,i,r,4),m("x","y","z",-1,-1,e,t,-s,i,r,5),this.setIndex(l),this.setAttribute("position",new xi(u,3)),this.setAttribute("normal",new xi(d,3)),this.setAttribute("uv",new xi(h,2));function m(E,b,g,y,v,S,w,x,A,D,T){const O=S/A,F=w/D,z=S/2,Z=w/2,M=x/2,q=A+1,H=D+1;let P=0,$=0;const J=new ie;for(let re=0;re<H;re++){const me=re*F-Z;for(let Se=0;Se<q;Se++){const le=Se*O-z;J[E]=le*y,J[b]=me*v,J[g]=M,u.push(J.x,J.y,J.z),J[E]=0,J[b]=0,J[g]=x>0?1:-1,d.push(J.x,J.y,J.z),h.push(Se/A),h.push(1-re/D),P+=1}}for(let re=0;re<D;re++)for(let me=0;me<A;me++){const Se=f+me+q*re,le=f+me+q*(re+1),Ee=f+(me+1)+q*(re+1),Oe=f+(me+1)+q*re;l.push(Se,le,Oe),l.push(le,Ee,Oe),$+=6}a.addGroup(_,$,T),_+=$,f+=P}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new dr(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function _a(n){const e={};for(const t in n){e[t]={};for(const s in n[t]){const i=n[t][s];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?i.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[t][s]=null):e[t][s]=i.clone():Array.isArray(i)?e[t][s]=i.slice():e[t][s]=i}}return e}function Ln(n){const e={};for(let t=0;t<n.length;t++){const s=_a(n[t]);for(const i in s)e[i]=s[i]}return e}function Qwt(n){const e=[];for(let t=0;t<n.length;t++)e.push(n[t].clone());return e}function yO(n){return n.getRenderTarget()===null?n.outputColorSpace:Ut.workingColorSpace}const Xwt={clone:_a,merge:Ln};var Zwt=`void main() {
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}`,Jwt=`void main() {
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
}`;class Jr extends ks{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=Zwt,this.fragmentShader=Jwt,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=_a(e.uniforms),this.uniformsGroups=Qwt(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const i in this.uniforms){const o=this.uniforms[i].value;o&&o.isTexture?t.uniforms[i]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?t.uniforms[i]={type:"c",value:o.getHex()}:o&&o.isVector2?t.uniforms[i]={type:"v2",value:o.toArray()}:o&&o.isVector3?t.uniforms[i]={type:"v3",value:o.toArray()}:o&&o.isVector4?t.uniforms[i]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?t.uniforms[i]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?t.uniforms[i]={type:"m4",value:o.toArray()}:t.uniforms[i]={value:o}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const s={};for(const i in this.extensions)this.extensions[i]===!0&&(s[i]=!0);return Object.keys(s).length>0&&(t.extensions=s),t}}class vO extends Jt{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new xt,this.projectionMatrix=new xt,this.projectionMatrixInverse=new xt,this.coordinateSystem=Si}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 Pn extends vO{constructor(e=50,t=1,s=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=s,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=pa*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(ml*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return pa*2*Math.atan(Math.tan(ml*.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,i,r,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=s,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(ml*.5*this.fov)/this.zoom,s=2*t,i=this.aspect*s,r=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,u=o.fullHeight;r+=o.offsetX*i/l,t-=o.offsetY*s/u,i*=o.width/l,s*=o.height/u}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,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 Ro=-90,Ao=1;class eRt extends Jt{constructor(e,t,s){super(),this.type="CubeCamera",this.renderTarget=s,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Pn(Ro,Ao,e,t);i.layers=this.layers,this.add(i);const r=new Pn(Ro,Ao,e,t);r.layers=this.layers,this.add(r);const o=new Pn(Ro,Ao,e,t);o.layers=this.layers,this.add(o);const a=new Pn(Ro,Ao,e,t);a.layers=this.layers,this.add(a);const l=new Pn(Ro,Ao,e,t);l.layers=this.layers,this.add(l);const u=new Pn(Ro,Ao,e,t);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[s,i,r,o,a,l]=t;for(const u of t)this.remove(u);if(e===Si)s.up.set(0,1,0),s.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===Xd)s.up.set(0,-1,0),s.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const u of t)this.add(u),u.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:s,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,l,u,d]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),_=e.getActiveMipmapLevel(),m=e.xr.enabled;e.xr.enabled=!1;const E=s.texture.generateMipmaps;s.texture.generateMipmaps=!1,e.setRenderTarget(s,0,i),e.render(t,r),e.setRenderTarget(s,1,i),e.render(t,o),e.setRenderTarget(s,2,i),e.render(t,a),e.setRenderTarget(s,3,i),e.render(t,l),e.setRenderTarget(s,4,i),e.render(t,u),s.texture.generateMipmaps=E,e.setRenderTarget(s,5,i),e.render(t,d),e.setRenderTarget(h,f,_),e.xr.enabled=m,s.texture.needsPMREMUpdate=!0}}class SO extends xn{constructor(e,t,s,i,r,o,a,l,u,d){e=e!==void 0?e:[],t=t!==void 0?t:aa,super(e,t,s,i,r,o,a,l,u,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class tRt extends Zr{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const s={width:e,height:e,depth:1},i=[s,s,s,s,s,s];t.encoding!==void 0&&(bl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===Yr?en:cs),this.texture=new SO(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:zn}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 <begin_vertex>
#include <project_vertex>
}
`,fragmentShader:`
uniform sampler2D tEquirect;
varying vec3 vWorldDirection;
#include <common>
void main() {
vec3 direction = normalize( vWorldDirection );
vec2 sampleUV = equirectUv( direction );
gl_FragColor = texture2D( tEquirect, sampleUV );
}
`},i=new dr(5,5,5),r=new Jr({name:"CubemapFromEquirect",uniforms:_a(s.uniforms),vertexShader:s.vertexShader,fragmentShader:s.fragmentShader,side:Yn,blending:ar});r.uniforms.tEquirect.value=t;const o=new Un(i,r),a=t.minFilter;return t.minFilter===Xr&&(t.minFilter=zn),new eRt(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,s,i){const r=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,s,i);e.setRenderTarget(r)}}const Pm=new ie,nRt=new ie,sRt=new Tt;class Ar{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,i){return this.normal.set(e,t,s),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,s){const i=Pm.subVectors(s,t).cross(nRt.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 s=e.delta(Pm),i=this.normal.dot(s);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:t.copy(e.start).addScaledVector(s,r)}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||sRt.getNormalMatrix(e),i=this.coplanarPoint(Pm).applyMatrix4(e),r=this.normal.applyMatrix3(s).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Cr=new ii,jc=new ie;class AE{constructor(e=new Ar,t=new Ar,s=new Ar,i=new Ar,r=new Ar,o=new Ar){this.planes=[e,t,s,i,r,o]}set(e,t,s,i,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(s),a[3].copy(i),a[4].copy(r),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=Si){const s=this.planes,i=e.elements,r=i[0],o=i[1],a=i[2],l=i[3],u=i[4],d=i[5],h=i[6],f=i[7],_=i[8],m=i[9],E=i[10],b=i[11],g=i[12],y=i[13],v=i[14],S=i[15];if(s[0].setComponents(l-r,f-u,b-_,S-g).normalize(),s[1].setComponents(l+r,f+u,b+_,S+g).normalize(),s[2].setComponents(l+o,f+d,b+m,S+y).normalize(),s[3].setComponents(l-o,f-d,b-m,S-y).normalize(),s[4].setComponents(l-a,f-h,b-E,S-v).normalize(),t===Si)s[5].setComponents(l+a,f+h,b+E,S+v).normalize();else if(t===Xd)s[5].setComponents(a,h,E,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Cr.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Cr.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Cr)}intersectsSprite(e){return Cr.center.set(0,0,0),Cr.radius=.7071067811865476,Cr.applyMatrix4(e.matrixWorld),this.intersectsSphere(Cr)}intersectsSphere(e){const t=this.planes,s=e.center,i=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(s)<i)return!1;return!0}intersectsBox(e){const t=this.planes;for(let s=0;s<6;s++){const i=t[s];if(jc.x=i.normal.x>0?e.max.x:e.min.x,jc.y=i.normal.y>0?e.max.y:e.min.y,jc.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(jc)<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 TO(){let n=null,e=!1,t=null,s=null;function i(r,o){t(r,o),s=n.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(s=n.requestAnimationFrame(i),e=!0)},stop:function(){n.cancelAnimationFrame(s),e=!1},setAnimationLoop:function(r){t=r},setContext:function(r){n=r}}}function iRt(n,e){const t=e.isWebGL2,s=new WeakMap;function i(u,d){const h=u.array,f=u.usage,_=h.byteLength,m=n.createBuffer();n.bindBuffer(d,m),n.bufferData(d,h,f),u.onUploadCallback();let E;if(h instanceof Float32Array)E=n.FLOAT;else if(h instanceof Uint16Array)if(u.isFloat16BufferAttribute)if(t)E=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else E=n.UNSIGNED_SHORT;else if(h instanceof Int16Array)E=n.SHORT;else if(h instanceof Uint32Array)E=n.UNSIGNED_INT;else if(h instanceof Int32Array)E=n.INT;else if(h instanceof Int8Array)E=n.BYTE;else if(h instanceof Uint8Array)E=n.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)E=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:m,type:E,bytesPerElement:h.BYTES_PER_ELEMENT,version:u.version,size:_}}function r(u,d,h){const f=d.array,_=d._updateRange,m=d.updateRanges;if(n.bindBuffer(h,u),_.count===-1&&m.length===0&&n.bufferSubData(h,0,f),m.length!==0){for(let E=0,b=m.length;E<b;E++){const g=m[E];t?n.bufferSubData(h,g.start*f.BYTES_PER_ELEMENT,f,g.start,g.count):n.bufferSubData(h,g.start*f.BYTES_PER_ELEMENT,f.subarray(g.start,g.start+g.count))}d.clearUpdateRanges()}_.count!==-1&&(t?n.bufferSubData(h,_.offset*f.BYTES_PER_ELEMENT,f,_.offset,_.count):n.bufferSubData(h,_.offset*f.BYTES_PER_ELEMENT,f.subarray(_.offset,_.offset+_.count)),_.count=-1),d.onUploadCallback()}function o(u){return u.isInterleavedBufferAttribute&&(u=u.data),s.get(u)}function a(u){u.isInterleavedBufferAttribute&&(u=u.data);const d=s.get(u);d&&(n.deleteBuffer(d.buffer),s.delete(u))}function l(u,d){if(u.isGLBufferAttribute){const f=s.get(u);(!f||f.version<u.version)&&s.set(u,{buffer:u.buffer,type:u.type,bytesPerElement:u.elementSize,version:u.version});return}u.isInterleavedBufferAttribute&&(u=u.data);const h=s.get(u);if(h===void 0)s.set(u,i(u,d));else if(h.version<u.version){if(h.size!==u.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");r(h.buffer,u,d),h.version=u.version}}return{get:o,remove:a,update:l}}class NE extends ri{constructor(e=1,t=1,s=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:s,heightSegments:i};const r=e/2,o=t/2,a=Math.floor(s),l=Math.floor(i),u=a+1,d=l+1,h=e/a,f=t/l,_=[],m=[],E=[],b=[];for(let g=0;g<d;g++){const y=g*f-o;for(let v=0;v<u;v++){const S=v*h-r;m.push(S,-y,0),E.push(0,0,1),b.push(v/a),b.push(1-g/l)}}for(let g=0;g<l;g++)for(let y=0;y<a;y++){const v=y+u*g,S=y+u*(g+1),w=y+1+u*(g+1),x=y+1+u*g;_.push(v,S,x),_.push(S,w,x)}this.setIndex(_),this.setAttribute("position",new xi(m,3)),this.setAttribute("normal",new xi(E,3)),this.setAttribute("uv",new xi(b,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new NE(e.width,e.height,e.widthSegments,e.heightSegments)}}var rRt=`#ifdef USE_ALPHAHASH
if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
#endif`,oRt=`#ifdef USE_ALPHAHASH
const float ALPHA_HASH_SCALE = 0.05;
float hash2D( vec2 value ) {
return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
}
float hash3D( vec3 value ) {
return hash2D( vec2( hash2D( value.xy ), value.z ) );
}
float getAlphaHashThreshold( vec3 position ) {
float maxDeriv = max(
length( dFdx( position.xyz ) ),
length( dFdy( position.xyz ) )
);
float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
vec2 pixScales = vec2(
exp2( floor( log2( pixScale ) ) ),
exp2( ceil( log2( pixScale ) ) )
);
vec2 alpha = vec2(
hash3D( floor( pixScales.x * position.xyz ) ),
hash3D( floor( pixScales.y * position.xyz ) )
);
float lerpFactor = fract( log2( pixScale ) );
float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
float a = min( lerpFactor, 1.0 - lerpFactor );
vec3 cases = vec3(
x * x / ( 2.0 * a * ( 1.0 - a ) ),
( x - 0.5 * a ) / ( 1.0 - a ),
1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
);
float threshold = ( x < ( 1.0 - a ) )
? ( ( x < a ) ? cases.x : cases.y )
: cases.z;
return clamp( threshold , 1.0e-6, 1.0 );
}
#endif`,aRt=`#ifdef USE_ALPHAMAP
diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
#endif`,lRt=`#ifdef USE_ALPHAMAP
uniform sampler2D alphaMap;
#endif`,cRt=`#ifdef USE_ALPHATEST
if ( diffuseColor.a < alphaTest ) discard;
#endif`,dRt=`#ifdef USE_ALPHATEST
uniform float alphaTest;
#endif`,uRt=`#ifdef USE_AOMAP
float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
reflectedLight.indirectDiffuse *= ambientOcclusion;
#if defined( USE_CLEARCOAT )
clearcoatSpecularIndirect *= ambientOcclusion;
#endif
#if defined( USE_SHEEN )
sheenSpecularIndirect *= ambientOcclusion;
#endif
#if defined( USE_ENVMAP ) && defined( STANDARD )
float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
#endif
#endif`,pRt=`#ifdef USE_AOMAP
uniform sampler2D aoMap;
uniform float aoMapIntensity;
#endif`,_Rt=`#ifdef USE_BATCHING
attribute float batchId;
uniform highp sampler2D batchingTexture;
mat4 getBatchingMatrix( const in float i ) {
int size = textureSize( batchingTexture, 0 ).x;
int j = int( i ) * 4;
int x = j % size;
int y = j / size;
vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );
vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );
vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );
vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
return mat4( v1, v2, v3, v4 );
}
#endif`,hRt=`#ifdef USE_BATCHING
mat4 batchingMatrix = getBatchingMatrix( batchId );
#endif`,fRt=`vec3 transformed = vec3( position );
#ifdef USE_ALPHAHASH
vPosition = vec3( position );
#endif`,mRt=`vec3 objectNormal = vec3( normal );
#ifdef USE_TANGENT
vec3 objectTangent = vec3( tangent.xyz );
#endif`,gRt=`float G_BlinnPhong_Implicit( ) {
return 0.25;
}
float D_BlinnPhong( const in float shininess, const in float dotNH ) {
return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
}
vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
vec3 halfDir = normalize( lightDir + viewDir );
float dotNH = saturate( dot( normal, halfDir ) );
float dotVH = saturate( dot( viewDir, halfDir ) );
vec3 F = F_Schlick( specularColor, 1.0, dotVH );
float G = G_BlinnPhong_Implicit( );
float D = D_BlinnPhong( shininess, dotNH );
return F * ( G * D );
} // validated`,bRt=`#ifdef USE_IRIDESCENCE
const mat3 XYZ_TO_REC709 = mat3(
3.2404542, -0.9692660, 0.0556434,
-1.5371385, 1.8760108, -0.2040259,
-0.4985314, 0.0415560, 1.0572252
);
vec3 Fresnel0ToIor( vec3 fresnel0 ) {
vec3 sqrtF0 = sqrt( fresnel0 );
return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
}
vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
}
float IorToFresnel0( float transmittedIor, float incidentIor ) {
return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
}
vec3 evalSensitivity( float OPD, vec3 shift ) {
float phase = 2.0 * PI * OPD * 1.0e-9;
vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );
xyz /= 1.0685e-7;
vec3 rgb = XYZ_TO_REC709 * xyz;
return rgb;
}
vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
vec3 I;
float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
float cosTheta2Sq = 1.0 - sinTheta2Sq;
if ( cosTheta2Sq < 0.0 ) {
return vec3( 1.0 );
}
float cosTheta2 = sqrt( cosTheta2Sq );
float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
float R12 = F_Schlick( R0, 1.0, cosTheta1 );
float T121 = 1.0 - R12;
float phi12 = 0.0;
if ( iridescenceIOR < outsideIOR ) phi12 = PI;
float phi21 = PI - phi12;
vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
vec3 phi23 = vec3( 0.0 );
if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
vec3 phi = vec3( phi21 ) + phi23;
vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
vec3 r123 = sqrt( R123 );
vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
vec3 C0 = R12 + Rs;
I = C0;
vec3 Cm = Rs - T121;
for ( int m = 1; m <= 2; ++ m ) {
Cm *= r123;
vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );
I += Cm * Sm;
}
return max( I, vec3( 0.0 ) );
}
#endif`,ERt=`#ifdef USE_BUMPMAP
uniform sampler2D bumpMap;
uniform float bumpScale;
vec2 dHdxy_fwd() {
vec2 dSTdx = dFdx( vBumpMapUv );
vec2 dSTdy = dFdy( vBumpMapUv );
float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;
float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;
float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;
return vec2( dBx, dBy );
}
vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );
vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );
vec3 vN = surf_norm;
vec3 R1 = cross( vSigmaY, vN );
vec3 R2 = cross( vN, vSigmaX );
float fDet = dot( vSigmaX, R1 ) * faceDirection;
vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
return normalize( abs( fDet ) * surf_norm - vGrad );
}
#endif`,yRt=`#if NUM_CLIPPING_PLANES > 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`,vRt=`#if NUM_CLIPPING_PLANES > 0
varying vec3 vClipPosition;
uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
#endif`,SRt=`#if NUM_CLIPPING_PLANES > 0
varying vec3 vClipPosition;
#endif`,TRt=`#if NUM_CLIPPING_PLANES > 0
vClipPosition = - mvPosition.xyz;
#endif`,xRt=`#if defined( USE_COLOR_ALPHA )
diffuseColor *= vColor;
#elif defined( USE_COLOR )
diffuseColor.rgb *= vColor;
#endif`,CRt=`#if defined( USE_COLOR_ALPHA )
varying vec4 vColor;
#elif defined( USE_COLOR )
varying vec3 vColor;
#endif`,wRt=`#if defined( USE_COLOR_ALPHA )
varying vec4 vColor;
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
varying vec3 vColor;
#endif`,RRt=`#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`,ARt=`#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`,NRt=`#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`,ORt=`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`,IRt=`#ifdef USE_DISPLACEMENTMAP
uniform sampler2D displacementMap;
uniform float displacementScale;
uniform float displacementBias;
#endif`,MRt=`#ifdef USE_DISPLACEMENTMAP
transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
#endif`,DRt=`#ifdef USE_EMISSIVEMAP
vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
totalEmissiveRadiance *= emissiveColor.rgb;
#endif`,kRt=`#ifdef USE_EMISSIVEMAP
uniform sampler2D emissiveMap;
#endif`,LRt="gl_FragColor = linearToOutputTexel( gl_FragColor );",PRt=`
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 );
}`,URt=`#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`,FRt=`#ifdef USE_ENVMAP
uniform float envMapIntensity;
uniform float flipEnvMap;
#ifdef ENVMAP_TYPE_CUBE
uniform samplerCube envMap;
#else
uniform sampler2D envMap;
#endif
#endif`,BRt=`#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`,GRt=`#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`,VRt=`#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`,zRt=`#ifdef USE_FOG
vFogDepth = - mvPosition.z;
#endif`,HRt=`#ifdef USE_FOG
varying float vFogDepth;
#endif`,qRt=`#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`,YRt=`#ifdef USE_FOG
uniform vec3 fogColor;
varying float vFogDepth;
#ifdef FOG_EXP2
uniform float fogDensity;
#else
uniform float fogNear;
uniform float fogFar;
#endif
#endif`,$Rt=`#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
}`,WRt=`#ifdef USE_LIGHTMAP
vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
reflectedLight.indirectDiffuse += lightMapIrradiance;
#endif`,KRt=`#ifdef USE_LIGHTMAP
uniform sampler2D lightMap;
uniform float lightMapIntensity;
#endif`,jRt=`LambertMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularStrength = specularStrength;`,QRt=`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`,XRt=`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`,ZRt=`#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`,JRt=`ToonMaterial material;
material.diffuseColor = diffuseColor.rgb;`,eAt=`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`,tAt=`BlinnPhongMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularColor = specular;
material.specularShininess = shininess;
material.specularStrength = specularStrength;`,nAt=`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`,sAt=`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`,iAt=`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 );
}`,rAt=`
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`,oAt=`#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`,aAt=`#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`,lAt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
#endif`,cAt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
uniform float logDepthBufFC;
varying float vFragDepth;
varying float vIsPerspective;
#endif`,dAt=`#ifdef USE_LOGDEPTHBUF
#ifdef USE_LOGDEPTHBUF_EXT
varying float vFragDepth;
varying float vIsPerspective;
#else
uniform float logDepthBufFC;
#endif
#endif`,uAt=`#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`,pAt=`#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`,_At=`#ifdef USE_MAP
uniform sampler2D map;
#endif`,hAt=`#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`,fAt=`#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`,mAt=`float metalnessFactor = metalness;
#ifdef USE_METALNESSMAP
vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
metalnessFactor *= texelMetalness.b;
#endif`,gAt=`#ifdef USE_METALNESSMAP
uniform sampler2D metalnessMap;
#endif`,bAt=`#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`,EAt=`#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`,yAt=`#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`,vAt=`#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`,SAt=`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;`,TAt=`#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`,xAt=`#ifndef FLAT_SHADED
varying vec3 vNormal;
#ifdef USE_TANGENT
varying vec3 vTangent;
varying vec3 vBitangent;
#endif
#endif`,CAt=`#ifndef FLAT_SHADED
varying vec3 vNormal;
#ifdef USE_TANGENT
varying vec3 vTangent;
varying vec3 vBitangent;
#endif
#endif`,wAt=`#ifndef FLAT_SHADED
vNormal = normalize( transformedNormal );
#ifdef USE_TANGENT
vTangent = normalize( transformedTangent );
vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
#endif
#endif`,RAt=`#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`,AAt=`#ifdef USE_CLEARCOAT
vec3 clearcoatNormal = nonPerturbedNormal;
#endif`,NAt=`#ifdef USE_CLEARCOAT_NORMALMAP
vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
clearcoatMapN.xy *= clearcoatNormalScale;
clearcoatNormal = normalize( tbn2 * clearcoatMapN );
#endif`,OAt=`#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`,IAt=`#ifdef USE_IRIDESCENCEMAP
uniform sampler2D iridescenceMap;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
uniform sampler2D iridescenceThicknessMap;
#endif`,MAt=`#ifdef OPAQUE
diffuseColor.a = 1.0;
#endif
#ifdef USE_TRANSMISSION
diffuseColor.a *= material.transmissionAlpha;
#endif
gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,DAt=`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 );
}`,kAt=`#ifdef PREMULTIPLIED_ALPHA
gl_FragColor.rgb *= gl_FragColor.a;
#endif`,LAt=`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;`,PAt=`#ifdef DITHERING
gl_FragColor.rgb = dithering( gl_FragColor.rgb );
#endif`,UAt=`#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`,FAt=`float roughnessFactor = roughness;
#ifdef USE_ROUGHNESSMAP
vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
roughnessFactor *= texelRoughness.g;
#endif`,BAt=`#ifdef USE_ROUGHNESSMAP
uniform sampler2D roughnessMap;
#endif`,GAt=`#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`,VAt=`#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`,zAt=`#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`,HAt=`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;
}`,qAt=`#ifdef USE_SKINNING
mat4 boneMatX = getBoneMatrix( skinIndex.x );
mat4 boneMatY = getBoneMatrix( skinIndex.y );
mat4 boneMatZ = getBoneMatrix( skinIndex.z );
mat4 boneMatW = getBoneMatrix( skinIndex.w );
#endif`,YAt=`#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`,$At=`#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`,WAt=`#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`,KAt=`float specularStrength;
#ifdef USE_SPECULARMAP
vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
specularStrength = texelSpecular.r;
#else
specularStrength = 1.0;
#endif`,jAt=`#ifdef USE_SPECULARMAP
uniform sampler2D specularMap;
#endif`,QAt=`#if defined( TONE_MAPPING )
gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
#endif`,XAt=`#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; }`,ZAt=`#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`,JAt=`#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`,eNt=`#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`,tNt=`#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`,nNt=`#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`,sNt=`#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 iNt=`varying vec2 vUv;
uniform mat3 uvTransform;
void main() {
vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
gl_Position = vec4( position.xy, 1.0, 1.0 );
}`,rNt=`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 <tonemapping_fragment>
#include <colorspace_fragment>
}`,oNt=`varying vec3 vWorldDirection;
#include <common>
void main() {
vWorldDirection = transformDirection( position, modelMatrix );
#include <begin_vertex>
#include <project_vertex>
gl_Position.z = gl_Position.w;
}`,aNt=`#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 <cube_uv_reflection_fragment>
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 <tonemapping_fragment>
#include <colorspace_fragment>
}`,lNt=`varying vec3 vWorldDirection;
#include <common>
void main() {
vWorldDirection = transformDirection( position, modelMatrix );
#include <begin_vertex>
#include <project_vertex>
gl_Position.z = gl_Position.w;
}`,cNt=`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 <tonemapping_fragment>
#include <colorspace_fragment>
}`,dNt=`#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
varying vec2 vHighPrecisionZW;
void main() {
#include <uv_vertex>
#include <batching_vertex>
#include <skinbase_vertex>
#ifdef USE_DISPLACEMENTMAP
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinnormal_vertex>
#endif
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <displacementmap_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
vHighPrecisionZW = gl_Position.zw;
}`,uNt=`#if DEPTH_PACKING == 3200
uniform float opacity;
#endif
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
varying vec2 vHighPrecisionZW;
void main() {
#include <clipping_planes_fragment>
vec4 diffuseColor = vec4( 1.0 );
#if DEPTH_PACKING == 3200
diffuseColor.a = opacity;
#endif
#include <map_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
#include <logdepthbuf_fragment>
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
}`,pNt=`#define DISTANCE
varying vec3 vWorldPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
#include <batching_vertex>
#include <skinbase_vertex>
#ifdef USE_DISPLACEMENTMAP
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinnormal_vertex>
#endif
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <displacementmap_vertex>
#include <project_vertex>
#include <worldpos_vertex>
#include <clipping_planes_vertex>
vWorldPosition = worldPosition.xyz;
}`,_Nt=`#define DISTANCE
uniform vec3 referencePosition;
uniform float nearDistance;
uniform float farDistance;
varying vec3 vWorldPosition;
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <clipping_planes_pars_fragment>
void main () {
#include <clipping_planes_fragment>
vec4 diffuseColor = vec4( 1.0 );
#include <map_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
float dist = length( vWorldPosition - referencePosition );
dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
dist = saturate( dist );
gl_FragColor = packDepthToRGBA( dist );
}`,hNt=`varying vec3 vWorldDirection;
#include <common>
void main() {
vWorldDirection = transformDirection( position, modelMatrix );
#include <begin_vertex>
#include <project_vertex>
}`,fNt=`uniform sampler2D tEquirect;
varying vec3 vWorldDirection;
#include <common>
void main() {
vec3 direction = normalize( vWorldDirection );
vec2 sampleUV = equirectUv( direction );
gl_FragColor = texture2D( tEquirect, sampleUV );
#include <tonemapping_fragment>
#include <colorspace_fragment>
}`,mNt=`uniform float scale;
attribute float lineDistance;
varying float vLineDistance;
#include <common>
#include <uv_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
vLineDistance = scale * lineDistance;
#include <uv_vertex>
#include <color_vertex>
#include <morphcolor_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
#include <fog_vertex>
}`,gNt=`uniform vec3 diffuse;
uniform float opacity;
uniform float dashSize;
uniform float totalSize;
varying float vLineDistance;
#include <common>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
if ( mod( vLineDistance, totalSize ) > dashSize ) {
discard;
}
vec3 outgoingLight = vec3( 0.0 );
vec4 diffuseColor = vec4( diffuse, opacity );
#include <logdepthbuf_fragment>
#include <map_fragment>
#include <color_fragment>
outgoingLight = diffuseColor.rgb;
#include <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
#include <premultiplied_alpha_fragment>
}`,bNt=`#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
#include <color_vertex>
#include <morphcolor_vertex>
#include <batching_vertex>
#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinbase_vertex>
#include <skinnormal_vertex>
#include <defaultnormal_vertex>
#endif
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
#include <worldpos_vertex>
#include <envmap_vertex>
#include <fog_vertex>
}`,ENt=`uniform vec3 diffuse;
uniform float opacity;
#ifndef FLAT_SHADED
varying vec3 vNormal;
#endif
#include <common>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
vec4 diffuseColor = vec4( diffuse, opacity );
#include <logdepthbuf_fragment>
#include <map_fragment>
#include <color_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
#include <specularmap_fragment>
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 <aomap_fragment>
reflectedLight.indirectDiffuse *= diffuseColor.rgb;
vec3 outgoingLight = reflectedLight.indirectDiffuse;
#include <envmap_fragment>
#include <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
#include <premultiplied_alpha_fragment>
#include <dithering_fragment>
}`,yNt=`#define LAMBERT
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
#include <color_vertex>
#include <morphcolor_vertex>
#include <batching_vertex>
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinbase_vertex>
#include <skinnormal_vertex>
#include <defaultnormal_vertex>
#include <normal_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <displacementmap_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
vViewPosition = - mvPosition.xyz;
#include <worldpos_vertex>
#include <envmap_vertex>
#include <shadowmap_vertex>
#include <fog_vertex>
}`,vNt=`#define LAMBERT
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_lambert_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
vec4 diffuseColor = vec4( diffuse, opacity );
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
vec3 totalEmissiveRadiance = emissive;
#include <logdepthbuf_fragment>
#include <map_fragment>
#include <color_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
#include <specularmap_fragment>
#include <normal_fragment_begin>
#include <normal_fragment_maps>
#include <emissivemap_fragment>
#include <lights_lambert_fragment>
#include <lights_fragment_begin>
#include <lights_fragment_maps>
#include <lights_fragment_end>
#include <aomap_fragment>
vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
#include <envmap_fragment>
#include <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
#include <premultiplied_alpha_fragment>
#include <dithering_fragment>
}`,SNt=`#define MATCAP
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <color_pars_vertex>
#include <displacementmap_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
#include <color_vertex>
#include <morphcolor_vertex>
#include <batching_vertex>
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinbase_vertex>
#include <skinnormal_vertex>
#include <defaultnormal_vertex>
#include <normal_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <displacementmap_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
#include <fog_vertex>
vViewPosition = - mvPosition.xyz;
}`,TNt=`#define MATCAP
uniform vec3 diffuse;
uniform float opacity;
uniform sampler2D matcap;
varying vec3 vViewPosition;
#include <common>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <normal_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
vec4 diffuseColor = vec4( diffuse, opacity );
#include <logdepthbuf_fragment>
#include <map_fragment>
#include <color_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
#include <normal_fragment_begin>
#include <normal_fragment_maps>
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 <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
#include <premultiplied_alpha_fragment>
#include <dithering_fragment>
}`,xNt=`#define NORMAL
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
varying vec3 vViewPosition;
#endif
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
#include <batching_vertex>
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinbase_vertex>
#include <skinnormal_vertex>
#include <defaultnormal_vertex>
#include <normal_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <displacementmap_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
vViewPosition = - mvPosition.xyz;
#endif
}`,CNt=`#define NORMAL
uniform float opacity;
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
varying vec3 vViewPosition;
#endif
#include <packing>
#include <uv_pars_fragment>
#include <normal_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
#include <logdepthbuf_fragment>
#include <normal_fragment_begin>
#include <normal_fragment_maps>
gl_FragColor = vec4( packNormalToRGB( normal ), opacity );
#ifdef OPAQUE
gl_FragColor.a = 1.0;
#endif
}`,wNt=`#define PHONG
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
#include <color_vertex>
#include <morphcolor_vertex>
#include <batching_vertex>
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinbase_vertex>
#include <skinnormal_vertex>
#include <defaultnormal_vertex>
#include <normal_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <displacementmap_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
vViewPosition = - mvPosition.xyz;
#include <worldpos_vertex>
#include <envmap_vertex>
#include <shadowmap_vertex>
#include <fog_vertex>
}`,RNt=`#define PHONG
uniform vec3 diffuse;
uniform vec3 emissive;
uniform vec3 specular;
uniform float shininess;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_phong_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
vec4 diffuseColor = vec4( diffuse, opacity );
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
vec3 totalEmissiveRadiance = emissive;
#include <logdepthbuf_fragment>
#include <map_fragment>
#include <color_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
#include <specularmap_fragment>
#include <normal_fragment_begin>
#include <normal_fragment_maps>
#include <emissivemap_fragment>
#include <lights_phong_fragment>
#include <lights_fragment_begin>
#include <lights_fragment_maps>
#include <lights_fragment_end>
#include <aomap_fragment>
vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
#include <envmap_fragment>
#include <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
#include <premultiplied_alpha_fragment>
#include <dithering_fragment>
}`,ANt=`#define STANDARD
varying vec3 vViewPosition;
#ifdef USE_TRANSMISSION
varying vec3 vWorldPosition;
#endif
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
#include <color_vertex>
#include <morphcolor_vertex>
#include <batching_vertex>
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinbase_vertex>
#include <skinnormal_vertex>
#include <defaultnormal_vertex>
#include <normal_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <displacementmap_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
vViewPosition = - mvPosition.xyz;
#include <worldpos_vertex>
#include <shadowmap_vertex>
#include <fog_vertex>
#ifdef USE_TRANSMISSION
vWorldPosition = worldPosition.xyz;
#endif
}`,NNt=`#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 <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <iridescence_fragment>
#include <cube_uv_reflection_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_physical_pars_fragment>
#include <fog_pars_fragment>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_physical_pars_fragment>
#include <transmission_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <clearcoat_pars_fragment>
#include <iridescence_pars_fragment>
#include <roughnessmap_pars_fragment>
#include <metalnessmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
vec4 diffuseColor = vec4( diffuse, opacity );
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
vec3 totalEmissiveRadiance = emissive;
#include <logdepthbuf_fragment>
#include <map_fragment>
#include <color_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
#include <roughnessmap_fragment>
#include <metalnessmap_fragment>
#include <normal_fragment_begin>
#include <normal_fragment_maps>
#include <clearcoat_normal_fragment_begin>
#include <clearcoat_normal_fragment_maps>
#include <emissivemap_fragment>
#include <lights_physical_fragment>
#include <lights_fragment_begin>
#include <lights_fragment_maps>
#include <lights_fragment_end>
#include <aomap_fragment>
vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
#include <transmission_fragment>
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 <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
#include <premultiplied_alpha_fragment>
#include <dithering_fragment>
}`,ONt=`#define TOON
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
#include <color_vertex>
#include <morphcolor_vertex>
#include <batching_vertex>
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinbase_vertex>
#include <skinnormal_vertex>
#include <defaultnormal_vertex>
#include <normal_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <displacementmap_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
vViewPosition = - mvPosition.xyz;
#include <worldpos_vertex>
#include <shadowmap_vertex>
#include <fog_vertex>
}`,INt=`#define TOON
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <gradientmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_toon_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
vec4 diffuseColor = vec4( diffuse, opacity );
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
vec3 totalEmissiveRadiance = emissive;
#include <logdepthbuf_fragment>
#include <map_fragment>
#include <color_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
#include <normal_fragment_begin>
#include <normal_fragment_maps>
#include <emissivemap_fragment>
#include <lights_toon_fragment>
#include <lights_fragment_begin>
#include <lights_fragment_maps>
#include <lights_fragment_end>
#include <aomap_fragment>
vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
#include <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
#include <premultiplied_alpha_fragment>
#include <dithering_fragment>
}`,MNt=`uniform float size;
uniform float scale;
#include <common>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
#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 <color_vertex>
#include <morphcolor_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <project_vertex>
gl_PointSize = size;
#ifdef USE_SIZEATTENUATION
bool isPerspective = isPerspectiveMatrix( projectionMatrix );
if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
#endif
#include <logdepthbuf_vertex>
#include <clipping_planes_vertex>
#include <worldpos_vertex>
#include <fog_vertex>
}`,DNt=`uniform vec3 diffuse;
uniform float opacity;
#include <common>
#include <color_pars_fragment>
#include <map_particle_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
vec3 outgoingLight = vec3( 0.0 );
vec4 diffuseColor = vec4( diffuse, opacity );
#include <logdepthbuf_fragment>
#include <map_particle_fragment>
#include <color_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
outgoingLight = diffuseColor.rgb;
#include <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
#include <premultiplied_alpha_fragment>
}`,kNt=`#include <common>
#include <batching_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <shadowmap_pars_vertex>
void main() {
#include <batching_vertex>
#include <beginnormal_vertex>
#include <morphnormal_vertex>
#include <skinbase_vertex>
#include <skinnormal_vertex>
#include <defaultnormal_vertex>
#include <begin_vertex>
#include <morphtarget_vertex>
#include <skinning_vertex>
#include <project_vertex>
#include <logdepthbuf_vertex>
#include <worldpos_vertex>
#include <shadowmap_vertex>
#include <fog_vertex>
}`,LNt=`uniform vec3 color;
uniform float opacity;
#include <common>
#include <packing>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <logdepthbuf_pars_fragment>
#include <shadowmap_pars_fragment>
#include <shadowmask_pars_fragment>
void main() {
#include <logdepthbuf_fragment>
gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
}`,PNt=`uniform float rotation;
uniform vec2 center;
#include <common>
#include <uv_pars_vertex>
#include <fog_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
#include <uv_vertex>
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 <logdepthbuf_vertex>
#include <clipping_planes_vertex>
#include <fog_vertex>
}`,UNt=`uniform vec3 diffuse;
uniform float opacity;
#include <common>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
#include <clipping_planes_fragment>
vec3 outgoingLight = vec3( 0.0 );
vec4 diffuseColor = vec4( diffuse, opacity );
#include <logdepthbuf_fragment>
#include <map_fragment>
#include <alphamap_fragment>
#include <alphatest_fragment>
#include <alphahash_fragment>
outgoingLight = diffuseColor.rgb;
#include <opaque_fragment>
#include <tonemapping_fragment>
#include <colorspace_fragment>
#include <fog_fragment>
}`,vt={alphahash_fragment:rRt,alphahash_pars_fragment:oRt,alphamap_fragment:aRt,alphamap_pars_fragment:lRt,alphatest_fragment:cRt,alphatest_pars_fragment:dRt,aomap_fragment:uRt,aomap_pars_fragment:pRt,batching_pars_vertex:_Rt,batching_vertex:hRt,begin_vertex:fRt,beginnormal_vertex:mRt,bsdfs:gRt,iridescence_fragment:bRt,bumpmap_pars_fragment:ERt,clipping_planes_fragment:yRt,clipping_planes_pars_fragment:vRt,clipping_planes_pars_vertex:SRt,clipping_planes_vertex:TRt,color_fragment:xRt,color_pars_fragment:CRt,color_pars_vertex:wRt,color_vertex:RRt,common:ARt,cube_uv_reflection_fragment:NRt,defaultnormal_vertex:ORt,displacementmap_pars_vertex:IRt,displacementmap_vertex:MRt,emissivemap_fragment:DRt,emissivemap_pars_fragment:kRt,colorspace_fragment:LRt,colorspace_pars_fragment:PRt,envmap_fragment:URt,envmap_common_pars_fragment:FRt,envmap_pars_fragment:BRt,envmap_pars_vertex:GRt,envmap_physical_pars_fragment:ZRt,envmap_vertex:VRt,fog_vertex:zRt,fog_pars_vertex:HRt,fog_fragment:qRt,fog_pars_fragment:YRt,gradientmap_pars_fragment:$Rt,lightmap_fragment:WRt,lightmap_pars_fragment:KRt,lights_lambert_fragment:jRt,lights_lambert_pars_fragment:QRt,lights_pars_begin:XRt,lights_toon_fragment:JRt,lights_toon_pars_fragment:eAt,lights_phong_fragment:tAt,lights_phong_pars_fragment:nAt,lights_physical_fragment:sAt,lights_physical_pars_fragment:iAt,lights_fragment_begin:rAt,lights_fragment_maps:oAt,lights_fragment_end:aAt,logdepthbuf_fragment:lAt,logdepthbuf_pars_fragment:cAt,logdepthbuf_pars_vertex:dAt,logdepthbuf_vertex:uAt,map_fragment:pAt,map_pars_fragment:_At,map_particle_fragment:hAt,map_particle_pars_fragment:fAt,metalnessmap_fragment:mAt,metalnessmap_pars_fragment:gAt,morphcolor_vertex:bAt,morphnormal_vertex:EAt,morphtarget_pars_vertex:yAt,morphtarget_vertex:vAt,normal_fragment_begin:SAt,normal_fragment_maps:TAt,normal_pars_fragment:xAt,normal_pars_vertex:CAt,normal_vertex:wAt,normalmap_pars_fragment:RAt,clearcoat_normal_fragment_begin:AAt,clearcoat_normal_fragment_maps:NAt,clearcoat_pars_fragment:OAt,iridescence_pars_fragment:IAt,opaque_fragment:MAt,packing:DAt,premultiplied_alpha_fragment:kAt,project_vertex:LAt,dithering_fragment:PAt,dithering_pars_fragment:UAt,roughnessmap_fragment:FAt,roughnessmap_pars_fragment:BAt,shadowmap_pars_fragment:GAt,shadowmap_pars_vertex:VAt,shadowmap_vertex:zAt,shadowmask_pars_fragment:HAt,skinbase_vertex:qAt,skinning_pars_vertex:YAt,skinning_vertex:$At,skinnormal_vertex:WAt,specularmap_fragment:KAt,specularmap_pars_fragment:jAt,tonemapping_fragment:QAt,tonemapping_pars_fragment:XAt,transmission_fragment:ZAt,transmission_pars_fragment:JAt,uv_pars_fragment:eNt,uv_pars_vertex:tNt,uv_vertex:nNt,worldpos_vertex:sNt,background_vert:iNt,background_frag:rNt,backgroundCube_vert:oNt,backgroundCube_frag:aNt,cube_vert:lNt,cube_frag:cNt,depth_vert:dNt,depth_frag:uNt,distanceRGBA_vert:pNt,distanceRGBA_frag:_Nt,equirect_vert:hNt,equirect_frag:fNt,linedashed_vert:mNt,linedashed_frag:gNt,meshbasic_vert:bNt,meshbasic_frag:ENt,meshlambert_vert:yNt,meshlambert_frag:vNt,meshmatcap_vert:SNt,meshmatcap_frag:TNt,meshnormal_vert:xNt,meshnormal_frag:CNt,meshphong_vert:wNt,meshphong_frag:RNt,meshphysical_vert:ANt,meshphysical_frag:NNt,meshtoon_vert:ONt,meshtoon_frag:INt,points_vert:MNt,points_frag:DNt,shadow_vert:kNt,shadow_frag:LNt,sprite_vert:PNt,sprite_frag:UNt},$e={common:{diffuse:{value:new ut(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 ut(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 ut(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 ut(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:Ln([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.fog]),vertexShader:vt.meshbasic_vert,fragmentShader:vt.meshbasic_frag},lambert:{uniforms:Ln([$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 ut(0)}}]),vertexShader:vt.meshlambert_vert,fragmentShader:vt.meshlambert_frag},phong:{uniforms:Ln([$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 ut(0)},specular:{value:new ut(1118481)},shininess:{value:30}}]),vertexShader:vt.meshphong_vert,fragmentShader:vt.meshphong_frag},standard:{uniforms:Ln([$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 ut(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:vt.meshphysical_vert,fragmentShader:vt.meshphysical_frag},toon:{uniforms:Ln([$e.common,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.gradientmap,$e.fog,$e.lights,{emissive:{value:new ut(0)}}]),vertexShader:vt.meshtoon_vert,fragmentShader:vt.meshtoon_frag},matcap:{uniforms:Ln([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,{matcap:{value:null}}]),vertexShader:vt.meshmatcap_vert,fragmentShader:vt.meshmatcap_frag},points:{uniforms:Ln([$e.points,$e.fog]),vertexShader:vt.points_vert,fragmentShader:vt.points_frag},dashed:{uniforms:Ln([$e.common,$e.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:vt.linedashed_vert,fragmentShader:vt.linedashed_frag},depth:{uniforms:Ln([$e.common,$e.displacementmap]),vertexShader:vt.depth_vert,fragmentShader:vt.depth_frag},normal:{uniforms:Ln([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,{opacity:{value:1}}]),vertexShader:vt.meshnormal_vert,fragmentShader:vt.meshnormal_frag},sprite:{uniforms:Ln([$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:Ln([$e.common,$e.displacementmap,{referencePosition:{value:new ie},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:vt.distanceRGBA_vert,fragmentShader:vt.distanceRGBA_frag},shadow:{uniforms:Ln([$e.lights,$e.fog,{color:{value:new ut(0)},opacity:{value:1}}]),vertexShader:vt.shadow_vert,fragmentShader:vt.shadow_frag}};zs.physical={uniforms:Ln([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 ut(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 ut(0)},specularColor:{value:new ut(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 Qc={r:0,b:0,g:0};function FNt(n,e,t,s,i,r,o){const a=new ut(0);let l=r===!0?0:1,u,d,h=null,f=0,_=null;function m(b,g){let y=!1,v=g.isScene===!0?g.background:null;v&&v.isTexture&&(v=(g.backgroundBlurriness>0?t:e).get(v)),v===null?E(a,l):v&&v.isColor&&(E(v,1),y=!0);const S=n.xr.getEnvironmentBlendMode();S==="additive"?s.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&s.buffers.color.setClear(0,0,0,0,o),(n.autoClear||y)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),v&&(v.isCubeTexture||v.mapping===zu)?(d===void 0&&(d=new Un(new dr(1,1,1),new Jr({name:"BackgroundCubeMaterial",uniforms:_a(zs.backgroundCube.uniforms),vertexShader:zs.backgroundCube.vertexShader,fragmentShader:zs.backgroundCube.fragmentShader,side:Yn,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(w,x,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(d)),d.material.uniforms.envMap.value=v,d.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,d.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Ut.getTransfer(v.colorSpace)!==Wt,(h!==v||f!==v.version||_!==n.toneMapping)&&(d.material.needsUpdate=!0,h=v,f=v.version,_=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null)):v&&v.isTexture&&(u===void 0&&(u=new Un(new NE(2,2),new Jr({name:"BackgroundMaterial",uniforms:_a(zs.background.uniforms),vertexShader:zs.background.vertexShader,fragmentShader:zs.background.fragmentShader,side:Oi,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(u)),u.material.uniforms.t2D.value=v,u.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,u.material.toneMapped=Ut.getTransfer(v.colorSpace)!==Wt,v.matrixAutoUpdate===!0&&v.updateMatrix(),u.material.uniforms.uvTransform.value.copy(v.matrix),(h!==v||f!==v.version||_!==n.toneMapping)&&(u.material.needsUpdate=!0,h=v,f=v.version,_=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null))}function E(b,g){b.getRGB(Qc,yO(n)),s.buffers.color.setClear(Qc.r,Qc.g,Qc.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),l=g,E(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,E(a,l)},render:m}}function BNt(n,e,t,s){const i=n.getParameter(n.MAX_VERTEX_ATTRIBS),r=s.isWebGL2?null:e.get("OES_vertex_array_object"),o=s.isWebGL2||r!==null,a={},l=b(null);let u=l,d=!1;function h(M,q,H,P,$){let J=!1;if(o){const re=E(P,H,q);u!==re&&(u=re,_(u.object)),J=g(M,P,H,$),J&&y(M,P,H,$)}else{const re=q.wireframe===!0;(u.geometry!==P.id||u.program!==H.id||u.wireframe!==re)&&(u.geometry=P.id,u.program=H.id,u.wireframe=re,J=!0)}$!==null&&t.update($,n.ELEMENT_ARRAY_BUFFER),(J||d)&&(d=!1,D(M,q,H,P),$!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get($).buffer))}function f(){return s.isWebGL2?n.createVertexArray():r.createVertexArrayOES()}function _(M){return s.isWebGL2?n.bindVertexArray(M):r.bindVertexArrayOES(M)}function m(M){return s.isWebGL2?n.deleteVertexArray(M):r.deleteVertexArrayOES(M)}function E(M,q,H){const P=H.wireframe===!0;let $=a[M.id];$===void 0&&($={},a[M.id]=$);let J=$[q.id];J===void 0&&(J={},$[q.id]=J);let re=J[P];return re===void 0&&(re=b(f()),J[P]=re),re}function b(M){const q=[],H=[],P=[];for(let $=0;$<i;$++)q[$]=0,H[$]=0,P[$]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:q,enabledAttributes:H,attributeDivisors:P,object:M,attributes:{},index:null}}function g(M,q,H,P){const $=u.attributes,J=q.attributes;let re=0;const me=H.getAttributes();for(const Se in me)if(me[Se].location>=0){const Ee=$[Se];let Oe=J[Se];if(Oe===void 0&&(Se==="instanceMatrix"&&M.instanceMatrix&&(Oe=M.instanceMatrix),Se==="instanceColor"&&M.instanceColor&&(Oe=M.instanceColor)),Ee===void 0||Ee.attribute!==Oe||Oe&&Ee.data!==Oe.data)return!0;re++}return u.attributesNum!==re||u.index!==P}function y(M,q,H,P){const $={},J=q.attributes;let re=0;const me=H.getAttributes();for(const Se in me)if(me[Se].location>=0){let Ee=J[Se];Ee===void 0&&(Se==="instanceMatrix"&&M.instanceMatrix&&(Ee=M.instanceMatrix),Se==="instanceColor"&&M.instanceColor&&(Ee=M.instanceColor));const Oe={};Oe.attribute=Ee,Ee&&Ee.data&&(Oe.data=Ee.data),$[Se]=Oe,re++}u.attributes=$,u.attributesNum=re,u.index=P}function v(){const M=u.newAttributes;for(let q=0,H=M.length;q<H;q++)M[q]=0}function S(M){w(M,0)}function w(M,q){const H=u.newAttributes,P=u.enabledAttributes,$=u.attributeDivisors;H[M]=1,P[M]===0&&(n.enableVertexAttribArray(M),P[M]=1),$[M]!==q&&((s.isWebGL2?n:e.get("ANGLE_instanced_arrays"))[s.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](M,q),$[M]=q)}function x(){const M=u.newAttributes,q=u.enabledAttributes;for(let H=0,P=q.length;H<P;H++)q[H]!==M[H]&&(n.disableVertexAttribArray(H),q[H]=0)}function A(M,q,H,P,$,J,re){re===!0?n.vertexAttribIPointer(M,q,H,$,J):n.vertexAttribPointer(M,q,H,P,$,J)}function D(M,q,H,P){if(s.isWebGL2===!1&&(M.isInstancedMesh||P.isInstancedBufferGeometry)&&e.get("ANGLE_instanced_arrays")===null)return;v();const $=P.attributes,J=H.getAttributes(),re=q.defaultAttributeValues;for(const me in J){const Se=J[me];if(Se.location>=0){let le=$[me];if(le===void 0&&(me==="instanceMatrix"&&M.instanceMatrix&&(le=M.instanceMatrix),me==="instanceColor"&&M.instanceColor&&(le=M.instanceColor)),le!==void 0){const Ee=le.normalized,Oe=le.itemSize,Me=t.get(le);if(Me===void 0)continue;const j=Me.buffer,pe=Me.type,ue=Me.bytesPerElement,Ce=s.isWebGL2===!0&&(pe===n.INT||pe===n.UNSIGNED_INT||le.gpuType===nO);if(le.isInterleavedBufferAttribute){const ke=le.data,N=ke.stride,V=le.offset;if(ke.isInstancedInterleavedBuffer){for(let Y=0;Y<Se.locationSize;Y++)w(Se.location+Y,ke.meshPerAttribute);M.isInstancedMesh!==!0&&P._maxInstanceCount===void 0&&(P._maxInstanceCount=ke.meshPerAttribute*ke.count)}else for(let Y=0;Y<Se.locationSize;Y++)S(Se.location+Y);n.bindBuffer(n.ARRAY_BUFFER,j);for(let Y=0;Y<Se.locationSize;Y++)A(Se.location+Y,Oe/Se.locationSize,pe,Ee,N*ue,(V+Oe/Se.locationSize*Y)*ue,Ce)}else{if(le.isInstancedBufferAttribute){for(let ke=0;ke<Se.locationSize;ke++)w(Se.location+ke,le.meshPerAttribute);M.isInstancedMesh!==!0&&P._maxInstanceCount===void 0&&(P._maxInstanceCount=le.meshPerAttribute*le.count)}else for(let ke=0;ke<Se.locationSize;ke++)S(Se.location+ke);n.bindBuffer(n.ARRAY_BUFFER,j);for(let ke=0;ke<Se.locationSize;ke++)A(Se.location+ke,Oe/Se.locationSize,pe,Ee,Oe*ue,Oe/Se.locationSize*ke*ue,Ce)}}else if(re!==void 0){const Ee=re[me];if(Ee!==void 0)switch(Ee.length){case 2:n.vertexAttrib2fv(Se.location,Ee);break;case 3:n.vertexAttrib3fv(Se.location,Ee);break;case 4:n.vertexAttrib4fv(Se.location,Ee);break;default:n.vertexAttrib1fv(Se.location,Ee)}}}}x()}function T(){z();for(const M in a){const q=a[M];for(const H in q){const P=q[H];for(const $ in P)m(P[$].object),delete P[$];delete q[H]}delete a[M]}}function O(M){if(a[M.id]===void 0)return;const q=a[M.id];for(const H in q){const P=q[H];for(const $ in P)m(P[$].object),delete P[$];delete q[H]}delete a[M.id]}function F(M){for(const q in a){const H=a[q];if(H[M.id]===void 0)continue;const P=H[M.id];for(const $ in P)m(P[$].object),delete P[$];delete H[M.id]}}function z(){Z(),d=!0,u!==l&&(u=l,_(u.object))}function Z(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:h,reset:z,resetDefaultState:Z,dispose:T,releaseStatesOfGeometry:O,releaseStatesOfProgram:F,initAttributes:v,enableAttribute:S,disableUnusedAttributes:x}}function GNt(n,e,t,s){const i=s.isWebGL2;let r;function o(d){r=d}function a(d,h){n.drawArrays(r,d,h),t.update(h,r,1)}function l(d,h,f){if(f===0)return;let _,m;if(i)_=n,m="drawArraysInstanced";else if(_=e.get("ANGLE_instanced_arrays"),m="drawArraysInstancedANGLE",_===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}_[m](r,d,h,f),t.update(h,r,f)}function u(d,h,f){if(f===0)return;const _=e.get("WEBGL_multi_draw");if(_===null)for(let m=0;m<f;m++)this.render(d[m],h[m]);else{_.multiDrawArraysWEBGL(r,d,0,h,0,f);let m=0;for(let E=0;E<f;E++)m+=h[E];t.update(m,r,1)}}this.setMode=o,this.render=a,this.renderInstances=l,this.renderMultiDraw=u}function VNt(n,e,t){let s;function i(){if(s!==void 0)return s;if(e.has("EXT_texture_filter_anisotropic")===!0){const A=e.get("EXT_texture_filter_anisotropic");s=n.getParameter(A.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else s=0;return s}function r(A){if(A==="highp"){if(n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).precision>0&&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 l=r(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const u=o||e.has("WEBGL_draw_buffers"),d=t.logarithmicDepthBuffer===!0,h=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),f=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),_=n.getParameter(n.MAX_TEXTURE_SIZE),m=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),E=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),g=n.getParameter(n.MAX_VARYING_VECTORS),y=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),v=f>0,S=o||e.has("OES_texture_float"),w=v&&S,x=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:u,getMaxAnisotropy:i,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:d,maxTextures:h,maxVertexTextures:f,maxTextureSize:_,maxCubemapSize:m,maxAttributes:E,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:y,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:w,maxSamples:x}}function zNt(n){const e=this;let t=null,s=0,i=!1,r=!1;const o=new Ar,a=new Tt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const _=h.length!==0||f||s!==0||i;return i=f,s=h.length,_},this.beginShadows=function(){r=!0,d(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,f){t=d(h,f,0)},this.setState=function(h,f,_){const m=h.clippingPlanes,E=h.clipIntersection,b=h.clipShadows,g=n.get(h);if(!i||m===null||m.length===0||r&&!b)r?d(null):u();else{const y=r?0:s,v=y*4;let S=g.clippingState||null;l.value=S,S=d(m,f,v,_);for(let w=0;w!==v;++w)S[w]=t[w];g.clippingState=S,this.numIntersection=E?this.numPlanes:0,this.numPlanes+=y}};function u(){l.value!==t&&(l.value=t,l.needsUpdate=s>0),e.numPlanes=s,e.numIntersection=0}function d(h,f,_,m){const E=h!==null?h.length:0;let b=null;if(E!==0){if(b=l.value,m!==!0||b===null){const g=_+E*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length<g)&&(b=new Float32Array(g));for(let v=0,S=_;v!==E;++v,S+=4)o.copy(h[v]).applyMatrix4(y,a),o.normal.toArray(b,S),b[S+3]=o.constant}l.value=b,l.needsUpdate=!0}return e.numPlanes=E,e.numIntersection=0,b}}function HNt(n){let e=new WeakMap;function t(o,a){return a===Pg?o.mapping=aa:a===Ug&&(o.mapping=la),o}function s(o){if(o&&o.isTexture){const a=o.mapping;if(a===Pg||a===Ug)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 u=new tRt(l.height/2);return u.fromEquirectangularTexture(n,o),e.set(o,u),o.addEventListener("dispose",i),t(u.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 r(){e=new WeakMap}return{get:s,dispose:r}}class OE extends vO{constructor(e=-1,t=1,s=1,i=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=s,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,s,i,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=s,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),s=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=s-e,o=s+e,a=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=u*this.view.offsetX,o=r+u*this.view.width,a-=d*this.view.offsetY,l=a-d*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const Lo=4,s1=[.125,.215,.35,.446,.526,.582],Lr=20,Um=new OE,i1=new ut;let Fm=null,Bm=0,Gm=0;const Nr=(1+Math.sqrt(5))/2,No=1/Nr,r1=[new ie(1,1,1),new ie(-1,1,1),new ie(1,1,-1),new ie(-1,1,-1),new ie(0,Nr,No),new ie(0,Nr,-No),new ie(No,0,Nr),new ie(-No,0,Nr),new ie(Nr,No,0),new ie(-Nr,No,0)];class o1{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,i=100){Fm=this._renderer.getRenderTarget(),Bm=this._renderer.getActiveCubeFace(),Gm=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,s,i,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=c1(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=l1(),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;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(Fm,Bm,Gm),e.scissorTest=!1,Xc(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===aa||e.mapping===la?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Fm=this._renderer.getRenderTarget(),Bm=this._renderer.getActiveCubeFace(),Gm=this._renderer.getActiveMipmapLevel();const s=t||this._allocateTargets();return this._textureToCubeUV(e,s),this._applyPMREM(s),this._cleanup(s),s}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,s={magFilter:zn,minFilter:zn,generateMipmaps:!1,type:Fl,format:ls,colorSpace:Cn,depthBuffer:!1},i=a1(e,t,s);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=a1(e,t,s);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=qNt(r)),this._blurMaterial=YNt(r,e,t)}return i}_compileMaterial(e){const t=new Un(this._lodPlanes[0],e);this._renderer.compile(t,Um)}_sceneToCubeUV(e,t,s,i){const a=new Pn(90,1,t,s),l=[1,-1,1,1,1,1],u=[1,1,1,-1,-1,-1],d=this._renderer,h=d.autoClear,f=d.toneMapping;d.getClearColor(i1),d.toneMapping=lr,d.autoClear=!1;const _=new ir({name:"PMREM.Background",side:Yn,depthWrite:!1,depthTest:!1}),m=new Un(new dr,_);let E=!1;const b=e.background;b?b.isColor&&(_.color.copy(b),e.background=null,E=!0):(_.color.copy(i1),E=!0);for(let g=0;g<6;g++){const y=g%3;y===0?(a.up.set(0,l[g],0),a.lookAt(u[g],0,0)):y===1?(a.up.set(0,0,l[g]),a.lookAt(0,u[g],0)):(a.up.set(0,l[g],0),a.lookAt(0,0,u[g]));const v=this._cubeSize;Xc(i,y*v,g>2?v:0,v,v),d.setRenderTarget(i),E&&d.render(m,a),d.render(e,a)}m.geometry.dispose(),m.material.dispose(),d.toneMapping=f,d.autoClear=h,e.background=b}_textureToCubeUV(e,t){const s=this._renderer,i=e.mapping===aa||e.mapping===la;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=c1()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=l1());const r=i?this._cubemapMaterial:this._equirectMaterial,o=new Un(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;Xc(t,0,0,3*l,2*l),s.setRenderTarget(t),s.render(o,Um)}_applyPMREM(e){const t=this._renderer,s=t.autoClear;t.autoClear=!1;for(let i=1;i<this._lodPlanes.length;i++){const r=Math.sqrt(this._sigmas[i]*this._sigmas[i]-this._sigmas[i-1]*this._sigmas[i-1]),o=r1[(i-1)%r1.length];this._blur(e,i-1,i,r,o)}t.autoClear=s}_blur(e,t,s,i,r){const o=this._pingPongRenderTarget;this._halfBlur(e,o,t,s,i,"latitudinal",r),this._halfBlur(o,e,s,s,i,"longitudinal",r)}_halfBlur(e,t,s,i,r,o,a){const l=this._renderer,u=this._blurMaterial;o!=="latitudinal"&&o!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const d=3,h=new Un(this._lodPlanes[i],u),f=u.uniforms,_=this._sizeLods[s]-1,m=isFinite(r)?Math.PI/(2*_):2*Math.PI/(2*Lr-1),E=r/m,b=isFinite(r)?1+Math.floor(d*E):Lr;b>Lr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Lr}`);const g=[];let y=0;for(let A=0;A<Lr;++A){const D=A/E,T=Math.exp(-D*D/2);g.push(T),A===0?y+=T:A<b&&(y+=2*T)}for(let A=0;A<g.length;A++)g[A]=g[A]/y;f.envMap.value=e.texture,f.samples.value=b,f.weights.value=g,f.latitudinal.value=o==="latitudinal",a&&(f.poleAxis.value=a);const{_lodMax:v}=this;f.dTheta.value=m,f.mipInt.value=v-s;const S=this._sizeLods[i],w=3*S*(i>v-Lo?i-v+Lo:0),x=4*(this._cubeSize-S);Xc(t,w,x,3*S,2*S),l.setRenderTarget(t),l.render(h,Um)}}function qNt(n){const e=[],t=[],s=[];let i=n;const r=n-Lo+1+s1.length;for(let o=0;o<r;o++){const a=Math.pow(2,i);t.push(a);let l=1/a;o>n-Lo?l=s1[o-n+Lo-1]:o===0&&(l=0),s.push(l);const u=1/(a-2),d=-u,h=1+u,f=[d,d,h,d,h,h,d,d,h,h,d,h],_=6,m=6,E=3,b=2,g=1,y=new Float32Array(E*m*_),v=new Float32Array(b*m*_),S=new Float32Array(g*m*_);for(let x=0;x<_;x++){const A=x%3*2/3-1,D=x>2?0:-1,T=[A,D,0,A+2/3,D,0,A+2/3,D+1,0,A,D,0,A+2/3,D+1,0,A,D+1,0];y.set(T,E*m*x),v.set(f,b*m*x);const O=[x,x,x,x,x,x];S.set(O,g*m*x)}const w=new ri;w.setAttribute("position",new Bn(y,E)),w.setAttribute("uv",new Bn(v,b)),w.setAttribute("faceIndex",new Bn(S,g)),e.push(w),i>Lo&&i--}return{lodPlanes:e,sizeLods:t,sigmas:s}}function a1(n,e,t){const s=new Zr(n,e,t);return s.texture.mapping=zu,s.texture.name="PMREM.cubeUv",s.scissorTest=!0,s}function Xc(n,e,t,s,i){n.viewport.set(e,t,s,i),n.scissor.set(e,t,s,i)}function YNt(n,e,t){const s=new Float32Array(Lr),i=new ie(0,1,0);return new Jr({name:"SphericalGaussianBlur",defines:{n:Lr,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:i}},vertexShader:IE(),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 <cube_uv_reflection_fragment>
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:ar,depthTest:!1,depthWrite:!1})}function l1(){return new Jr({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:IE(),fragmentShader:`
precision mediump float;
precision mediump int;
varying vec3 vOutputDirection;
uniform sampler2D envMap;
#include <common>
void main() {
vec3 outputDirection = normalize( vOutputDirection );
vec2 uv = equirectUv( outputDirection );
gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );
}
`,blending:ar,depthTest:!1,depthWrite:!1})}function c1(){return new Jr({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:IE(),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:ar,depthTest:!1,depthWrite:!1})}function IE(){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 $Nt(n){let e=new WeakMap,t=null;function s(a){if(a&&a.isTexture){const l=a.mapping,u=l===Pg||l===Ug,d=l===aa||l===la;if(u||d)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let h=e.get(a);return t===null&&(t=new o1(n)),h=u?t.fromEquirectangular(a,h):t.fromCubemap(a,h),e.set(a,h),h.texture}else{if(e.has(a))return e.get(a).texture;{const h=a.image;if(u&&h&&h.height>0||d&&h&&i(h)){t===null&&(t=new o1(n));const f=u?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",r),f.texture}else return null}}}return a}function i(a){let l=0;const u=6;for(let d=0;d<u;d++)a[d]!==void 0&&l++;return l===u}function r(a){const l=a.target;l.removeEventListener("dispose",r);const u=e.get(l);u!==void 0&&(e.delete(l),u.dispose())}function o(){e=new WeakMap,t!==null&&(t.dispose(),t=null)}return{get:s,dispose:o}}function WNt(n){const e={};function t(s){if(e[s]!==void 0)return e[s];let i;switch(s){case"WEBGL_depth_texture":i=n.getExtension("WEBGL_depth_texture")||n.getExtension("MOZ_WEBGL_depth_texture")||n.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=n.getExtension("WEBGL_compressed_texture_s3tc")||n.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=n.getExtension("WEBGL_compressed_texture_pvrtc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=n.getExtension(s)}return e[s]=i,i}return{has:function(s){return t(s)!==null},init:function(s){s.isWebGL2?t("EXT_color_buffer_float"):(t("WEBGL_depth_texture"),t("OES_texture_float"),t("OES_texture_half_float"),t("OES_texture_half_float_linear"),t("OES_standard_derivatives"),t("OES_element_index_uint"),t("OES_vertex_array_object"),t("ANGLE_instanced_arrays")),t("OES_texture_float_linear"),t("EXT_color_buffer_half_float"),t("WEBGL_multisampled_render_to_texture")},get:function(s){const i=t(s);return i===null&&console.warn("THREE.WebGLRenderer: "+s+" extension not supported."),i}}}function KNt(n,e,t,s){const i={},r=new WeakMap;function o(h){const f=h.target;f.index!==null&&e.remove(f.index);for(const m in f.attributes)e.remove(f.attributes[m]);for(const m in f.morphAttributes){const E=f.morphAttributes[m];for(let b=0,g=E.length;b<g;b++)e.remove(E[b])}f.removeEventListener("dispose",o),delete i[f.id];const _=r.get(f);_&&(e.remove(_),r.delete(f)),s.releaseStatesOfGeometry(f),f.isInstancedBufferGeometry===!0&&delete f._maxInstanceCount,t.memory.geometries--}function a(h,f){return i[f.id]===!0||(f.addEventListener("dispose",o),i[f.id]=!0,t.memory.geometries++),f}function l(h){const f=h.attributes;for(const m in f)e.update(f[m],n.ARRAY_BUFFER);const _=h.morphAttributes;for(const m in _){const E=_[m];for(let b=0,g=E.length;b<g;b++)e.update(E[b],n.ARRAY_BUFFER)}}function u(h){const f=[],_=h.index,m=h.attributes.position;let E=0;if(_!==null){const y=_.array;E=_.version;for(let v=0,S=y.length;v<S;v+=3){const w=y[v+0],x=y[v+1],A=y[v+2];f.push(w,x,x,A,A,w)}}else if(m!==void 0){const y=m.array;E=m.version;for(let v=0,S=y.length/3-1;v<S;v+=3){const w=v+0,x=v+1,A=v+2;f.push(w,x,x,A,A,w)}}else return;const b=new(pO(f)?EO:bO)(f,1);b.version=E;const g=r.get(h);g&&e.remove(g),r.set(h,b)}function d(h){const f=r.get(h);if(f){const _=h.index;_!==null&&f.version<_.version&&u(h)}else u(h);return r.get(h)}return{get:a,update:l,getWireframeAttribute:d}}function jNt(n,e,t,s){const i=s.isWebGL2;let r;function o(_){r=_}let a,l;function u(_){a=_.type,l=_.bytesPerElement}function d(_,m){n.drawElements(r,m,a,_*l),t.update(m,r,1)}function h(_,m,E){if(E===0)return;let b,g;if(i)b=n,g="drawElementsInstanced";else if(b=e.get("ANGLE_instanced_arrays"),g="drawElementsInstancedANGLE",b===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}b[g](r,m,a,_*l,E),t.update(m,r,E)}function f(_,m,E){if(E===0)return;const b=e.get("WEBGL_multi_draw");if(b===null)for(let g=0;g<E;g++)this.render(_[g]/l,m[g]);else{b.multiDrawElementsWEBGL(r,m,0,a,_,0,E);let g=0;for(let y=0;y<E;y++)g+=m[y];t.update(g,r,1)}}this.setMode=o,this.setIndex=u,this.render=d,this.renderInstances=h,this.renderMultiDraw=f}function QNt(n){const e={geometries:0,textures:0},t={frame:0,calls:0,triangles:0,points:0,lines:0};function s(r,o,a){switch(t.calls++,o){case n.TRIANGLES:t.triangles+=a*(r/3);break;case n.LINES:t.lines+=a*(r/2);break;case n.LINE_STRIP:t.lines+=a*(r-1);break;case n.LINE_LOOP:t.lines+=a*r;break;case n.POINTS:t.points+=a*r;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",o);break}}function i(){t.calls=0,t.triangles=0,t.points=0,t.lines=0}return{memory:e,render:t,programs:null,autoReset:!0,reset:i,update:s}}function XNt(n,e){return n[0]-e[0]}function ZNt(n,e){return Math.abs(e[1])-Math.abs(n[1])}function JNt(n,e,t){const s={},i=new Float32Array(8),r=new WeakMap,o=new Yt,a=[];for(let u=0;u<8;u++)a[u]=[u,0];function l(u,d,h){const f=u.morphTargetInfluences;if(e.isWebGL2===!0){const m=d.morphAttributes.position||d.morphAttributes.normal||d.morphAttributes.color,E=m!==void 0?m.length:0;let b=r.get(d);if(b===void 0||b.count!==E){let q=function(){Z.dispose(),r.delete(d),d.removeEventListener("dispose",q)};var _=q;b!==void 0&&b.texture.dispose();const v=d.morphAttributes.position!==void 0,S=d.morphAttributes.normal!==void 0,w=d.morphAttributes.color!==void 0,x=d.morphAttributes.position||[],A=d.morphAttributes.normal||[],D=d.morphAttributes.color||[];let T=0;v===!0&&(T=1),S===!0&&(T=2),w===!0&&(T=3);let O=d.attributes.position.count*T,F=1;O>e.maxTextureSize&&(F=Math.ceil(O/e.maxTextureSize),O=e.maxTextureSize);const z=new Float32Array(O*F*4*E),Z=new fO(z,O,F,E);Z.type=vi,Z.needsUpdate=!0;const M=T*4;for(let H=0;H<E;H++){const P=x[H],$=A[H],J=D[H],re=O*F*4*H;for(let me=0;me<P.count;me++){const Se=me*M;v===!0&&(o.fromBufferAttribute(P,me),z[re+Se+0]=o.x,z[re+Se+1]=o.y,z[re+Se+2]=o.z,z[re+Se+3]=0),S===!0&&(o.fromBufferAttribute($,me),z[re+Se+4]=o.x,z[re+Se+5]=o.y,z[re+Se+6]=o.z,z[re+Se+7]=0),w===!0&&(o.fromBufferAttribute(J,me),z[re+Se+8]=o.x,z[re+Se+9]=o.y,z[re+Se+10]=o.z,z[re+Se+11]=J.itemSize===4?o.w:1)}}b={count:E,texture:Z,size:new Rt(O,F)},r.set(d,b),d.addEventListener("dispose",q)}let g=0;for(let v=0;v<f.length;v++)g+=f[v];const y=d.morphTargetsRelative?1:1-g;h.getUniforms().setValue(n,"morphTargetBaseInfluence",y),h.getUniforms().setValue(n,"morphTargetInfluences",f),h.getUniforms().setValue(n,"morphTargetsTexture",b.texture,t),h.getUniforms().setValue(n,"morphTargetsTextureSize",b.size)}else{const m=f===void 0?0:f.length;let E=s[d.id];if(E===void 0||E.length!==m){E=[];for(let S=0;S<m;S++)E[S]=[S,0];s[d.id]=E}for(let S=0;S<m;S++){const w=E[S];w[0]=S,w[1]=f[S]}E.sort(ZNt);for(let S=0;S<8;S++)S<m&&E[S][1]?(a[S][0]=E[S][0],a[S][1]=E[S][1]):(a[S][0]=Number.MAX_SAFE_INTEGER,a[S][1]=0);a.sort(XNt);const b=d.morphAttributes.position,g=d.morphAttributes.normal;let y=0;for(let S=0;S<8;S++){const w=a[S],x=w[0],A=w[1];x!==Number.MAX_SAFE_INTEGER&&A?(b&&d.getAttribute("morphTarget"+S)!==b[x]&&d.setAttribute("morphTarget"+S,b[x]),g&&d.getAttribute("morphNormal"+S)!==g[x]&&d.setAttribute("morphNormal"+S,g[x]),i[S]=A,y+=A):(b&&d.hasAttribute("morphTarget"+S)===!0&&d.deleteAttribute("morphTarget"+S),g&&d.hasAttribute("morphNormal"+S)===!0&&d.deleteAttribute("morphNormal"+S),i[S]=0)}const v=d.morphTargetsRelative?1:1-y;h.getUniforms().setValue(n,"morphTargetBaseInfluence",v),h.getUniforms().setValue(n,"morphTargetInfluences",i)}}return{update:l}}function eOt(n,e,t,s){let i=new WeakMap;function r(l){const u=s.render.frame,d=l.geometry,h=e.get(l,d);if(i.get(h)!==u&&(e.update(h),i.set(h,u)),l.isInstancedMesh&&(l.hasEventListener("dispose",a)===!1&&l.addEventListener("dispose",a),i.get(l)!==u&&(t.update(l.instanceMatrix,n.ARRAY_BUFFER),l.instanceColor!==null&&t.update(l.instanceColor,n.ARRAY_BUFFER),i.set(l,u))),l.isSkinnedMesh){const f=l.skeleton;i.get(f)!==u&&(f.update(),i.set(f,u))}return h}function o(){i=new WeakMap}function a(l){const u=l.target;u.removeEventListener("dispose",a),t.remove(u.instanceMatrix),u.instanceColor!==null&&t.remove(u.instanceColor)}return{update:r,dispose:o}}class xO extends xn{constructor(e,t,s,i,r,o,a,l,u,d){if(d=d!==void 0?d:qr,d!==qr&&d!==da)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");s===void 0&&d===qr&&(s=sr),s===void 0&&d===da&&(s=Hr),super(null,i,r,o,a,l,d,s,u),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=a!==void 0?a:mn,this.minFilter=l!==void 0?l:mn,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}}const CO=new xn,wO=new xO(1,1);wO.compareFunction=uO;const RO=new fO,AO=new Fwt,NO=new SO,d1=[],u1=[],p1=new Float32Array(16),_1=new Float32Array(9),h1=new Float32Array(4);function Da(n,e,t){const s=n[0];if(s<=0||s>0)return n;const i=e*t;let r=d1[i];if(r===void 0&&(r=new Float32Array(i),d1[i]=r),e!==0){s.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(r,a)}return r}function pn(n,e){if(n.length!==e.length)return!1;for(let t=0,s=n.length;t<s;t++)if(n[t]!==e[t])return!1;return!0}function _n(n,e){for(let t=0,s=e.length;t<s;t++)n[t]=e[t]}function $u(n,e){let t=u1[e];t===void 0&&(t=new Int32Array(e),u1[e]=t);for(let s=0;s!==e;++s)t[s]=n.allocateTextureUnit();return t}function tOt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1f(this.addr,e),t[0]=e)}function nOt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2f(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(pn(t,e))return;n.uniform2fv(this.addr,e),_n(t,e)}}function sOt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3f(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else if(e.r!==void 0)(t[0]!==e.r||t[1]!==e.g||t[2]!==e.b)&&(n.uniform3f(this.addr,e.r,e.g,e.b),t[0]=e.r,t[1]=e.g,t[2]=e.b);else{if(pn(t,e))return;n.uniform3fv(this.addr,e),_n(t,e)}}function iOt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4f(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(pn(t,e))return;n.uniform4fv(this.addr,e),_n(t,e)}}function rOt(n,e){const t=this.cache,s=e.elements;if(s===void 0){if(pn(t,e))return;n.uniformMatrix2fv(this.addr,!1,e),_n(t,e)}else{if(pn(t,s))return;h1.set(s),n.uniformMatrix2fv(this.addr,!1,h1),_n(t,s)}}function oOt(n,e){const t=this.cache,s=e.elements;if(s===void 0){if(pn(t,e))return;n.uniformMatrix3fv(this.addr,!1,e),_n(t,e)}else{if(pn(t,s))return;_1.set(s),n.uniformMatrix3fv(this.addr,!1,_1),_n(t,s)}}function aOt(n,e){const t=this.cache,s=e.elements;if(s===void 0){if(pn(t,e))return;n.uniformMatrix4fv(this.addr,!1,e),_n(t,e)}else{if(pn(t,s))return;p1.set(s),n.uniformMatrix4fv(this.addr,!1,p1),_n(t,s)}}function lOt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1i(this.addr,e),t[0]=e)}function cOt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2i(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(pn(t,e))return;n.uniform2iv(this.addr,e),_n(t,e)}}function dOt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3i(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(pn(t,e))return;n.uniform3iv(this.addr,e),_n(t,e)}}function uOt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4i(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(pn(t,e))return;n.uniform4iv(this.addr,e),_n(t,e)}}function pOt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1ui(this.addr,e),t[0]=e)}function _Ot(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2ui(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(pn(t,e))return;n.uniform2uiv(this.addr,e),_n(t,e)}}function hOt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3ui(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(pn(t,e))return;n.uniform3uiv(this.addr,e),_n(t,e)}}function fOt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4ui(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(pn(t,e))return;n.uniform4uiv(this.addr,e),_n(t,e)}}function mOt(n,e,t){const s=this.cache,i=t.allocateTextureUnit();s[0]!==i&&(n.uniform1i(this.addr,i),s[0]=i);const r=this.type===n.SAMPLER_2D_SHADOW?wO:CO;t.setTexture2D(e||r,i)}function gOt(n,e,t){const s=this.cache,i=t.allocateTextureUnit();s[0]!==i&&(n.uniform1i(this.addr,i),s[0]=i),t.setTexture3D(e||AO,i)}function bOt(n,e,t){const s=this.cache,i=t.allocateTextureUnit();s[0]!==i&&(n.uniform1i(this.addr,i),s[0]=i),t.setTextureCube(e||NO,i)}function EOt(n,e,t){const s=this.cache,i=t.allocateTextureUnit();s[0]!==i&&(n.uniform1i(this.addr,i),s[0]=i),t.setTexture2DArray(e||RO,i)}function yOt(n){switch(n){case 5126:return tOt;case 35664:return nOt;case 35665:return sOt;case 35666:return iOt;case 35674:return rOt;case 35675:return oOt;case 35676:return aOt;case 5124:case 35670:return lOt;case 35667:case 35671:return cOt;case 35668:case 35672:return dOt;case 35669:case 35673:return uOt;case 5125:return pOt;case 36294:return _Ot;case 36295:return hOt;case 36296:return fOt;case 35678:case 36198:case 36298:case 36306:case 35682:return mOt;case 35679:case 36299:case 36307:return gOt;case 35680:case 36300:case 36308:case 36293:return bOt;case 36289:case 36303:case 36311:case 36292:return EOt}}function vOt(n,e){n.uniform1fv(this.addr,e)}function SOt(n,e){const t=Da(e,this.size,2);n.uniform2fv(this.addr,t)}function TOt(n,e){const t=Da(e,this.size,3);n.uniform3fv(this.addr,t)}function xOt(n,e){const t=Da(e,this.size,4);n.uniform4fv(this.addr,t)}function COt(n,e){const t=Da(e,this.size,4);n.uniformMatrix2fv(this.addr,!1,t)}function wOt(n,e){const t=Da(e,this.size,9);n.uniformMatrix3fv(this.addr,!1,t)}function ROt(n,e){const t=Da(e,this.size,16);n.uniformMatrix4fv(this.addr,!1,t)}function AOt(n,e){n.uniform1iv(this.addr,e)}function NOt(n,e){n.uniform2iv(this.addr,e)}function OOt(n,e){n.uniform3iv(this.addr,e)}function IOt(n,e){n.uniform4iv(this.addr,e)}function MOt(n,e){n.uniform1uiv(this.addr,e)}function DOt(n,e){n.uniform2uiv(this.addr,e)}function kOt(n,e){n.uniform3uiv(this.addr,e)}function LOt(n,e){n.uniform4uiv(this.addr,e)}function POt(n,e,t){const s=this.cache,i=e.length,r=$u(t,i);pn(s,r)||(n.uniform1iv(this.addr,r),_n(s,r));for(let o=0;o!==i;++o)t.setTexture2D(e[o]||CO,r[o])}function UOt(n,e,t){const s=this.cache,i=e.length,r=$u(t,i);pn(s,r)||(n.uniform1iv(this.addr,r),_n(s,r));for(let o=0;o!==i;++o)t.setTexture3D(e[o]||AO,r[o])}function FOt(n,e,t){const s=this.cache,i=e.length,r=$u(t,i);pn(s,r)||(n.uniform1iv(this.addr,r),_n(s,r));for(let o=0;o!==i;++o)t.setTextureCube(e[o]||NO,r[o])}function BOt(n,e,t){const s=this.cache,i=e.length,r=$u(t,i);pn(s,r)||(n.uniform1iv(this.addr,r),_n(s,r));for(let o=0;o!==i;++o)t.setTexture2DArray(e[o]||RO,r[o])}function GOt(n){switch(n){case 5126:return vOt;case 35664:return SOt;case 35665:return TOt;case 35666:return xOt;case 35674:return COt;case 35675:return wOt;case 35676:return ROt;case 5124:case 35670:return AOt;case 35667:case 35671:return NOt;case 35668:case 35672:return OOt;case 35669:case 35673:return IOt;case 5125:return MOt;case 36294:return DOt;case 36295:return kOt;case 36296:return LOt;case 35678:case 36198:case 36298:case 36306:case 35682:return POt;case 35679:case 36299:case 36307:return UOt;case 35680:case 36300:case 36308:case 36293:return FOt;case 36289:case 36303:case 36311:case 36292:return BOt}}class VOt{constructor(e,t,s){this.id=e,this.addr=s,this.cache=[],this.type=t.type,this.setValue=yOt(t.type)}}class zOt{constructor(e,t,s){this.id=e,this.addr=s,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=GOt(t.type)}}class HOt{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,s){const i=this.seq;for(let r=0,o=i.length;r!==o;++r){const a=i[r];a.setValue(e,t[a.id],s)}}}const Vm=/(\w+)(\])?(\[|\.)?/g;function f1(n,e){n.seq.push(e),n.map[e.id]=e}function qOt(n,e,t){const s=n.name,i=s.length;for(Vm.lastIndex=0;;){const r=Vm.exec(s),o=Vm.lastIndex;let a=r[1];const l=r[2]==="]",u=r[3];if(l&&(a=a|0),u===void 0||u==="["&&o+2===i){f1(t,u===void 0?new VOt(a,n,e):new zOt(a,n,e));break}else{let h=t.map[a];h===void 0&&(h=new HOt(a),f1(t,h)),t=h}}}class Ed{constructor(e,t){this.seq=[],this.map={};const s=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<s;++i){const r=e.getActiveUniform(t,i),o=e.getUniformLocation(t,r.name);qOt(r,o,this)}}setValue(e,t,s,i){const r=this.map[t];r!==void 0&&r.setValue(e,s,i)}setOptional(e,t,s){const i=t[s];i!==void 0&&this.setValue(e,s,i)}static upload(e,t,s,i){for(let r=0,o=t.length;r!==o;++r){const a=t[r],l=s[a.id];l.needsUpdate!==!1&&a.setValue(e,l.value,i)}}static seqWithValue(e,t){const s=[];for(let i=0,r=e.length;i!==r;++i){const o=e[i];o.id in t&&s.push(o)}return s}}function m1(n,e,t){const s=n.createShader(e);return n.shaderSource(s,t),n.compileShader(s),s}const YOt=37297;let $Ot=0;function WOt(n,e){const t=n.split(`
`),s=[],i=Math.max(e-6,0),r=Math.min(e+6,t.length);for(let o=i;o<r;o++){const a=o+1;s.push(`${a===e?">":" "} ${a}: ${t[o]}`)}return s.join(`
`)}function KOt(n){const e=Ut.getPrimaries(Ut.workingColorSpace),t=Ut.getPrimaries(n);let s;switch(e===t?s="":e===Qd&&t===jd?s="LinearDisplayP3ToLinearSRGB":e===jd&&t===Qd&&(s="LinearSRGBToLinearDisplayP3"),n){case Cn:case Hu:return[s,"LinearTransferOETF"];case en:case wE:return[s,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[s,"LinearTransferOETF"]}}function g1(n,e,t){const s=n.getShaderParameter(e,n.COMPILE_STATUS),i=n.getShaderInfoLog(e).trim();if(s&&i==="")return"";const r=/ERROR: 0:(\d+)/.exec(i);if(r){const o=parseInt(r[1]);return t.toUpperCase()+`
`+i+`
`+WOt(n.getShaderSource(e),o)}else return i}function jOt(n,e){const t=KOt(e);return`vec4 ${n}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function QOt(n,e){let t;switch(e){case $1t:t="Linear";break;case W1t:t="Reinhard";break;case K1t:t="OptimizedCineon";break;case j1t:t="ACESFilmic";break;case Q1t:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function XOt(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(ol).join(`
`)}function ZOt(n){const e=[];for(const t in n){const s=n[t];s!==!1&&e.push("#define "+t+" "+s)}return e.join(`
`)}function JOt(n,e){const t={},s=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let i=0;i<s;i++){const r=n.getActiveAttrib(e,i),o=r.name;let a=1;r.type===n.FLOAT_MAT2&&(a=2),r.type===n.FLOAT_MAT3&&(a=3),r.type===n.FLOAT_MAT4&&(a=4),t[o]={type:r.type,location:n.getAttribLocation(e,o),locationSize:a}}return t}function ol(n){return n!==""}function b1(n,e){const t=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return n.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,t).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function E1(n,e){return n.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const eIt=/^[ \t]*#include +<([\w\d./]+)>/gm;function Hg(n){return n.replace(eIt,nIt)}const tIt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function nIt(n,e){let t=vt[e];if(t===void 0){const s=tIt.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 Hg(t)}const sIt=/#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 y1(n){return n.replace(sIt,iIt)}function iIt(n,e,t,s){let i="";for(let r=parseInt(e);r<parseInt(t);r++)i+=s.replace(/\[\s*i\s*\]/g,"[ "+r+" ]").replace(/UNROLLED_LOOP_INDEX/g,r);return i}function v1(n){let e="precision "+n.precision+` float;
precision `+n.precision+" int;";return n.precision==="highp"?e+=`
#define HIGH_PRECISION`:n.precision==="mediump"?e+=`
#define MEDIUM_PRECISION`:n.precision==="lowp"&&(e+=`
#define LOW_PRECISION`),e}function rIt(n){let e="SHADOWMAP_TYPE_BASIC";return n.shadowMapType===JN?e="SHADOWMAP_TYPE_PCF":n.shadowMapType===y1t?e="SHADOWMAP_TYPE_PCF_SOFT":n.shadowMapType===gi&&(e="SHADOWMAP_TYPE_VSM"),e}function oIt(n){let e="ENVMAP_TYPE_CUBE";if(n.envMap)switch(n.envMapMode){case aa:case la:e="ENVMAP_TYPE_CUBE";break;case zu:e="ENVMAP_TYPE_CUBE_UV";break}return e}function aIt(n){let e="ENVMAP_MODE_REFLECTION";if(n.envMap)switch(n.envMapMode){case la:e="ENVMAP_MODE_REFRACTION";break}return e}function lIt(n){let e="ENVMAP_BLENDING_NONE";if(n.envMap)switch(n.combine){case TE:e="ENVMAP_BLENDING_MULTIPLY";break;case q1t:e="ENVMAP_BLENDING_MIX";break;case Y1t:e="ENVMAP_BLENDING_ADD";break}return e}function cIt(n){const e=n.envMapCubeUVHeight;if(e===null)return null;const t=Math.log2(e)-2,s=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,t),7*16)),texelHeight:s,maxMip:t}}function dIt(n,e,t,s){const i=n.getContext(),r=t.defines;let o=t.vertexShader,a=t.fragmentShader;const l=rIt(t),u=oIt(t),d=aIt(t),h=lIt(t),f=cIt(t),_=t.isWebGL2?"":XOt(t),m=ZOt(r),E=i.createProgram();let b,g,y=t.glslVersion?"#version "+t.glslVersion+`
`:"";t.isRawShaderMaterial?(b=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,m].filter(ol).join(`
`),b.length>0&&(b+=`
`),g=[_,"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,m].filter(ol).join(`
`),g.length>0&&(g+=`
`)):(b=[v1(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,m,t.batching?"#define USE_BATCHING":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+d:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors&&t.isWebGL2?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",`
`].filter(ol).join(`
`),g=[_,v1(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,m,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.envMap?"#define "+d:"",t.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==lr?"#define TONE_MAPPING":"",t.toneMapping!==lr?vt.tonemapping_pars_fragment:"",t.toneMapping!==lr?QOt("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",vt.colorspace_pars_fragment,jOt("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",`
`].filter(ol).join(`
`)),o=Hg(o),o=b1(o,t),o=E1(o,t),a=Hg(a),a=b1(a,t),a=E1(a,t),o=y1(o),a=y1(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,g=["precision mediump sampler2DArray;","#define varying in",t.glslVersion===BC?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===BC?"":"#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=y+b+o,S=y+g+a,w=m1(i,i.VERTEX_SHADER,v),x=m1(i,i.FRAGMENT_SHADER,S);i.attachShader(E,w),i.attachShader(E,x),t.index0AttributeName!==void 0?i.bindAttribLocation(E,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(E,0,"position"),i.linkProgram(E);function A(F){if(n.debug.checkShaderErrors){const z=i.getProgramInfoLog(E).trim(),Z=i.getShaderInfoLog(w).trim(),M=i.getShaderInfoLog(x).trim();let q=!0,H=!0;if(i.getProgramParameter(E,i.LINK_STATUS)===!1)if(q=!1,typeof n.debug.onShaderError=="function")n.debug.onShaderError(i,E,w,x);else{const P=g1(i,w,"vertex"),$=g1(i,x,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(E,i.VALIDATE_STATUS)+`
Program Info Log: `+z+`
`+P+`
`+$)}else z!==""?console.warn("THREE.WebGLProgram: Program Info Log:",z):(Z===""||M==="")&&(H=!1);H&&(F.diagnostics={runnable:q,programLog:z,vertexShader:{log:Z,prefix:b},fragmentShader:{log:M,prefix:g}})}i.deleteShader(w),i.deleteShader(x),D=new Ed(i,E),T=JOt(i,E)}let D;this.getUniforms=function(){return D===void 0&&A(this),D};let T;this.getAttributes=function(){return T===void 0&&A(this),T};let O=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return O===!1&&(O=i.getProgramParameter(E,YOt)),O},this.destroy=function(){s.releaseStatesOfProgram(this),i.deleteProgram(E),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=$Ot++,this.cacheKey=e,this.usedTimes=1,this.program=E,this.vertexShader=w,this.fragmentShader=x,this}let uIt=0;class pIt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,s=e.fragmentShader,i=this._getShaderStage(t),r=this._getShaderStage(s),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(r)===!1&&(o.add(r),r.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 _It(e),t.set(e,s)),s}}class _It{constructor(e){this.id=uIt++,this.code=e,this.usedTimes=0}}function hIt(n,e,t,s,i,r,o){const a=new mO,l=new pIt,u=[],d=i.isWebGL2,h=i.logarithmicDepthBuffer,f=i.vertexTextures;let _=i.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function E(T){return T===0?"uv":`uv${T}`}function b(T,O,F,z,Z){const M=z.fog,q=Z.geometry,H=T.isMeshStandardMaterial?z.environment:null,P=(T.isMeshStandardMaterial?t:e).get(T.envMap||H),$=P&&P.mapping===zu?P.image.height:null,J=m[T.type];T.precision!==null&&(_=i.getMaxPrecision(T.precision),_!==T.precision&&console.warn("THREE.WebGLProgram.getParameters:",T.precision,"not supported, using",_,"instead."));const re=q.morphAttributes.position||q.morphAttributes.normal||q.morphAttributes.color,me=re!==void 0?re.length:0;let Se=0;q.morphAttributes.position!==void 0&&(Se=1),q.morphAttributes.normal!==void 0&&(Se=2),q.morphAttributes.color!==void 0&&(Se=3);let le,Ee,Oe,Me;if(J){const bn=zs[J];le=bn.vertexShader,Ee=bn.fragmentShader}else le=T.vertexShader,Ee=T.fragmentShader,l.update(T),Oe=l.getVertexShaderID(T),Me=l.getFragmentShaderID(T);const j=n.getRenderTarget(),pe=Z.isInstancedMesh===!0,ue=Z.isBatchedMesh===!0,Ce=!!T.map,ke=!!T.matcap,N=!!P,V=!!T.aoMap,Y=!!T.lightMap,oe=!!T.bumpMap,ne=!!T.normalMap,Te=!!T.displacementMap,Ae=!!T.emissiveMap,te=!!T.metalnessMap,we=!!T.roughnessMap,ge=T.anisotropy>0,De=T.clearcoat>0,k=T.iridescence>0,I=T.sheen>0,W=T.transmission>0,ye=ge&&!!T.anisotropyMap,K=De&&!!T.clearcoatMap,ee=De&&!!T.clearcoatNormalMap,Re=De&&!!T.clearcoatRoughnessMap,xe=k&&!!T.iridescenceMap,Le=k&&!!T.iridescenceThicknessMap,Ze=I&&!!T.sheenColorMap,ht=I&&!!T.sheenRoughnessMap,Pe=!!T.specularMap,ct=!!T.specularColorMap,tt=!!T.specularIntensityMap,Ye=W&&!!T.transmissionMap,et=W&&!!T.thicknessMap,We=!!T.gradientMap,Et=!!T.alphaMap,X=T.alphaTest>0,je=!!T.alphaHash,Be=!!T.extensions,Ne=!!q.attributes.uv1,Ve=!!q.attributes.uv2,ot=!!q.attributes.uv3;let Nt=lr;return T.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(Nt=n.toneMapping),{isWebGL2:d,shaderID:J,shaderType:T.type,shaderName:T.name,vertexShader:le,fragmentShader:Ee,defines:T.defines,customVertexShaderID:Oe,customFragmentShaderID:Me,isRawShaderMaterial:T.isRawShaderMaterial===!0,glslVersion:T.glslVersion,precision:_,batching:ue,instancing:pe,instancingColor:pe&&Z.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:j===null?n.outputColorSpace:j.isXRRenderTarget===!0?j.texture.colorSpace:Cn,map:Ce,matcap:ke,envMap:N,envMapMode:N&&P.mapping,envMapCubeUVHeight:$,aoMap:V,lightMap:Y,bumpMap:oe,normalMap:ne,displacementMap:f&&Te,emissiveMap:Ae,normalMapObjectSpace:ne&&T.normalMapType===dwt,normalMapTangentSpace:ne&&T.normalMapType===CE,metalnessMap:te,roughnessMap:we,anisotropy:ge,anisotropyMap:ye,clearcoat:De,clearcoatMap:K,clearcoatNormalMap:ee,clearcoatRoughnessMap:Re,iridescence:k,iridescenceMap:xe,iridescenceThicknessMap:Le,sheen:I,sheenColorMap:Ze,sheenRoughnessMap:ht,specularMap:Pe,specularColorMap:ct,specularIntensityMap:tt,transmission:W,transmissionMap:Ye,thicknessMap:et,gradientMap:We,opaque:T.transparent===!1&&T.blending===Yo,alphaMap:Et,alphaTest:X,alphaHash:je,combine:T.combine,mapUv:Ce&&E(T.map.channel),aoMapUv:V&&E(T.aoMap.channel),lightMapUv:Y&&E(T.lightMap.channel),bumpMapUv:oe&&E(T.bumpMap.channel),normalMapUv:ne&&E(T.normalMap.channel),displacementMapUv:Te&&E(T.displacementMap.channel),emissiveMapUv:Ae&&E(T.emissiveMap.channel),metalnessMapUv:te&&E(T.metalnessMap.channel),roughnessMapUv:we&&E(T.roughnessMap.channel),anisotropyMapUv:ye&&E(T.anisotropyMap.channel),clearcoatMapUv:K&&E(T.clearcoatMap.channel),clearcoatNormalMapUv:ee&&E(T.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Re&&E(T.clearcoatRoughnessMap.channel),iridescenceMapUv:xe&&E(T.iridescenceMap.channel),iridescenceThicknessMapUv:Le&&E(T.iridescenceThicknessMap.channel),sheenColorMapUv:Ze&&E(T.sheenColorMap.channel),sheenRoughnessMapUv:ht&&E(T.sheenRoughnessMap.channel),specularMapUv:Pe&&E(T.specularMap.channel),specularColorMapUv:ct&&E(T.specularColorMap.channel),specularIntensityMapUv:tt&&E(T.specularIntensityMap.channel),transmissionMapUv:Ye&&E(T.transmissionMap.channel),thicknessMapUv:et&&E(T.thicknessMap.channel),alphaMapUv:Et&&E(T.alphaMap.channel),vertexTangents:!!q.attributes.tangent&&(ne||ge),vertexColors:T.vertexColors,vertexAlphas:T.vertexColors===!0&&!!q.attributes.color&&q.attributes.color.itemSize===4,vertexUv1s:Ne,vertexUv2s:Ve,vertexUv3s:ot,pointsUvs:Z.isPoints===!0&&!!q.attributes.uv&&(Ce||Et),fog:!!M,useFog:T.fog===!0,fogExp2:M&&M.isFogExp2,flatShading:T.flatShading===!0,sizeAttenuation:T.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:Z.isSkinnedMesh===!0,morphTargets:q.morphAttributes.position!==void 0,morphNormals:q.morphAttributes.normal!==void 0,morphColors:q.morphAttributes.color!==void 0,morphTargetsCount:me,morphTextureStride:Se,numDirLights:O.directional.length,numPointLights:O.point.length,numSpotLights:O.spot.length,numSpotLightMaps:O.spotLightMap.length,numRectAreaLights:O.rectArea.length,numHemiLights:O.hemi.length,numDirLightShadows:O.directionalShadowMap.length,numPointLightShadows:O.pointShadowMap.length,numSpotLightShadows:O.spotShadowMap.length,numSpotLightShadowsWithMaps:O.numSpotLightShadowsWithMaps,numLightProbes:O.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:T.dithering,shadowMapEnabled:n.shadowMap.enabled&&F.length>0,shadowMapType:n.shadowMap.type,toneMapping:Nt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ce&&T.map.isVideoTexture===!0&&Ut.getTransfer(T.map.colorSpace)===Wt,premultipliedAlpha:T.premultipliedAlpha,doubleSided:T.side===qs,flipSided:T.side===Yn,useDepthPacking:T.depthPacking>=0,depthPacking:T.depthPacking||0,index0AttributeName:T.index0AttributeName,extensionDerivatives:Be&&T.extensions.derivatives===!0,extensionFragDepth:Be&&T.extensions.fragDepth===!0,extensionDrawBuffers:Be&&T.extensions.drawBuffers===!0,extensionShaderTextureLOD:Be&&T.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:d||s.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||s.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||s.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:s.has("KHR_parallel_shader_compile"),customProgramCacheKey:T.customProgramCacheKey()}}function g(T){const O=[];if(T.shaderID?O.push(T.shaderID):(O.push(T.customVertexShaderID),O.push(T.customFragmentShaderID)),T.defines!==void 0)for(const F in T.defines)O.push(F),O.push(T.defines[F]);return T.isRawShaderMaterial===!1&&(y(O,T),v(O,T),O.push(n.outputColorSpace)),O.push(T.customProgramCacheKey),O.join()}function y(T,O){T.push(O.precision),T.push(O.outputColorSpace),T.push(O.envMapMode),T.push(O.envMapCubeUVHeight),T.push(O.mapUv),T.push(O.alphaMapUv),T.push(O.lightMapUv),T.push(O.aoMapUv),T.push(O.bumpMapUv),T.push(O.normalMapUv),T.push(O.displacementMapUv),T.push(O.emissiveMapUv),T.push(O.metalnessMapUv),T.push(O.roughnessMapUv),T.push(O.anisotropyMapUv),T.push(O.clearcoatMapUv),T.push(O.clearcoatNormalMapUv),T.push(O.clearcoatRoughnessMapUv),T.push(O.iridescenceMapUv),T.push(O.iridescenceThicknessMapUv),T.push(O.sheenColorMapUv),T.push(O.sheenRoughnessMapUv),T.push(O.specularMapUv),T.push(O.specularColorMapUv),T.push(O.specularIntensityMapUv),T.push(O.transmissionMapUv),T.push(O.thicknessMapUv),T.push(O.combine),T.push(O.fogExp2),T.push(O.sizeAttenuation),T.push(O.morphTargetsCount),T.push(O.morphAttributeCount),T.push(O.numDirLights),T.push(O.numPointLights),T.push(O.numSpotLights),T.push(O.numSpotLightMaps),T.push(O.numHemiLights),T.push(O.numRectAreaLights),T.push(O.numDirLightShadows),T.push(O.numPointLightShadows),T.push(O.numSpotLightShadows),T.push(O.numSpotLightShadowsWithMaps),T.push(O.numLightProbes),T.push(O.shadowMapType),T.push(O.toneMapping),T.push(O.numClippingPlanes),T.push(O.numClipIntersection),T.push(O.depthPacking)}function v(T,O){a.disableAll(),O.isWebGL2&&a.enable(0),O.supportsVertexTextures&&a.enable(1),O.instancing&&a.enable(2),O.instancingColor&&a.enable(3),O.matcap&&a.enable(4),O.envMap&&a.enable(5),O.normalMapObjectSpace&&a.enable(6),O.normalMapTangentSpace&&a.enable(7),O.clearcoat&&a.enable(8),O.iridescence&&a.enable(9),O.alphaTest&&a.enable(10),O.vertexColors&&a.enable(11),O.vertexAlphas&&a.enable(12),O.vertexUv1s&&a.enable(13),O.vertexUv2s&&a.enable(14),O.vertexUv3s&&a.enable(15),O.vertexTangents&&a.enable(16),O.anisotropy&&a.enable(17),O.alphaHash&&a.enable(18),O.batching&&a.enable(19),T.push(a.mask),a.disableAll(),O.fog&&a.enable(0),O.useFog&&a.enable(1),O.flatShading&&a.enable(2),O.logarithmicDepthBuffer&&a.enable(3),O.skinning&&a.enable(4),O.morphTargets&&a.enable(5),O.morphNormals&&a.enable(6),O.morphColors&&a.enable(7),O.premultipliedAlpha&&a.enable(8),O.shadowMapEnabled&&a.enable(9),O.useLegacyLights&&a.enable(10),O.doubleSided&&a.enable(11),O.flipSided&&a.enable(12),O.useDepthPacking&&a.enable(13),O.dithering&&a.enable(14),O.transmission&&a.enable(15),O.sheen&&a.enable(16),O.opaque&&a.enable(17),O.pointsUvs&&a.enable(18),O.decodeVideoTexture&&a.enable(19),T.push(a.mask)}function S(T){const O=m[T.type];let F;if(O){const z=zs[O];F=Xwt.clone(z.uniforms)}else F=T.uniforms;return F}function w(T,O){let F;for(let z=0,Z=u.length;z<Z;z++){const M=u[z];if(M.cacheKey===O){F=M,++F.usedTimes;break}}return F===void 0&&(F=new dIt(n,O,T,r),u.push(F)),F}function x(T){if(--T.usedTimes===0){const O=u.indexOf(T);u[O]=u[u.length-1],u.pop(),T.destroy()}}function A(T){l.remove(T)}function D(){l.dispose()}return{getParameters:b,getProgramCacheKey:g,getUniforms:S,acquireProgram:w,releaseProgram:x,releaseShaderCache:A,programs:u,dispose:D}}function fIt(){let n=new WeakMap;function e(r){let o=n.get(r);return o===void 0&&(o={},n.set(r,o)),o}function t(r){n.delete(r)}function s(r,o,a){n.get(r)[o]=a}function i(){n=new WeakMap}return{get:e,remove:t,update:s,dispose:i}}function mIt(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.material.id!==e.material.id?n.material.id-e.material.id:n.z!==e.z?n.z-e.z:n.id-e.id}function S1(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.z!==e.z?e.z-n.z:n.id-e.id}function T1(){const n=[];let e=0;const t=[],s=[],i=[];function r(){e=0,t.length=0,s.length=0,i.length=0}function o(h,f,_,m,E,b){let g=n[e];return g===void 0?(g={id:h.id,object:h,geometry:f,material:_,groupOrder:m,renderOrder:h.renderOrder,z:E,group:b},n[e]=g):(g.id=h.id,g.object=h,g.geometry=f,g.material=_,g.groupOrder=m,g.renderOrder=h.renderOrder,g.z=E,g.group=b),e++,g}function a(h,f,_,m,E,b){const g=o(h,f,_,m,E,b);_.transmission>0?s.push(g):_.transparent===!0?i.push(g):t.push(g)}function l(h,f,_,m,E,b){const g=o(h,f,_,m,E,b);_.transmission>0?s.unshift(g):_.transparent===!0?i.unshift(g):t.unshift(g)}function u(h,f){t.length>1&&t.sort(h||mIt),s.length>1&&s.sort(f||S1),i.length>1&&i.sort(f||S1)}function d(){for(let h=e,f=n.length;h<f;h++){const _=n[h];if(_.id===null)break;_.id=null,_.object=null,_.geometry=null,_.material=null,_.group=null}}return{opaque:t,transmissive:s,transparent:i,init:r,push:a,unshift:l,finish:d,sort:u}}function gIt(){let n=new WeakMap;function e(s,i){const r=n.get(s);let o;return r===void 0?(o=new T1,n.set(s,[o])):i>=r.length?(o=new T1,r.push(o)):o=r[i],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function bIt(){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 ut};break;case"SpotLight":t={position:new ie,direction:new ie,color:new ut,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new ie,color:new ut,distance:0,decay:0};break;case"HemisphereLight":t={direction:new ie,skyColor:new ut,groundColor:new ut};break;case"RectAreaLight":t={color:new ut,position:new ie,halfWidth:new ie,halfHeight:new ie};break}return n[e.id]=t,t}}}function EIt(){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 yIt=0;function vIt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function SIt(n,e){const t=new bIt,s=EIt(),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 d=0;d<9;d++)i.probe.push(new ie);const r=new ie,o=new xt,a=new xt;function l(d,h){let f=0,_=0,m=0;for(let z=0;z<9;z++)i.probe[z].set(0,0,0);let E=0,b=0,g=0,y=0,v=0,S=0,w=0,x=0,A=0,D=0,T=0;d.sort(vIt);const O=h===!0?Math.PI:1;for(let z=0,Z=d.length;z<Z;z++){const M=d[z],q=M.color,H=M.intensity,P=M.distance,$=M.shadow&&M.shadow.map?M.shadow.map.texture:null;if(M.isAmbientLight)f+=q.r*H*O,_+=q.g*H*O,m+=q.b*H*O;else if(M.isLightProbe){for(let J=0;J<9;J++)i.probe[J].addScaledVector(M.sh.coefficients[J],H);T++}else if(M.isDirectionalLight){const J=t.get(M);if(J.color.copy(M.color).multiplyScalar(M.intensity*O),M.castShadow){const re=M.shadow,me=s.get(M);me.shadowBias=re.bias,me.shadowNormalBias=re.normalBias,me.shadowRadius=re.radius,me.shadowMapSize=re.mapSize,i.directionalShadow[E]=me,i.directionalShadowMap[E]=$,i.directionalShadowMatrix[E]=M.shadow.matrix,S++}i.directional[E]=J,E++}else if(M.isSpotLight){const J=t.get(M);J.position.setFromMatrixPosition(M.matrixWorld),J.color.copy(q).multiplyScalar(H*O),J.distance=P,J.coneCos=Math.cos(M.angle),J.penumbraCos=Math.cos(M.angle*(1-M.penumbra)),J.decay=M.decay,i.spot[g]=J;const re=M.shadow;if(M.map&&(i.spotLightMap[A]=M.map,A++,re.updateMatrices(M),M.castShadow&&D++),i.spotLightMatrix[g]=re.matrix,M.castShadow){const me=s.get(M);me.shadowBias=re.bias,me.shadowNormalBias=re.normalBias,me.shadowRadius=re.radius,me.shadowMapSize=re.mapSize,i.spotShadow[g]=me,i.spotShadowMap[g]=$,x++}g++}else if(M.isRectAreaLight){const J=t.get(M);J.color.copy(q).multiplyScalar(H),J.halfWidth.set(M.width*.5,0,0),J.halfHeight.set(0,M.height*.5,0),i.rectArea[y]=J,y++}else if(M.isPointLight){const J=t.get(M);if(J.color.copy(M.color).multiplyScalar(M.intensity*O),J.distance=M.distance,J.decay=M.decay,M.castShadow){const re=M.shadow,me=s.get(M);me.shadowBias=re.bias,me.shadowNormalBias=re.normalBias,me.shadowRadius=re.radius,me.shadowMapSize=re.mapSize,me.shadowCameraNear=re.camera.near,me.shadowCameraFar=re.camera.far,i.pointShadow[b]=me,i.pointShadowMap[b]=$,i.pointShadowMatrix[b]=M.shadow.matrix,w++}i.point[b]=J,b++}else if(M.isHemisphereLight){const J=t.get(M);J.skyColor.copy(M.color).multiplyScalar(H*O),J.groundColor.copy(M.groundColor).multiplyScalar(H*O),i.hemi[v]=J,v++}}y>0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=$e.LTC_FLOAT_1,i.rectAreaLTC2=$e.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=$e.LTC_HALF_1,i.rectAreaLTC2=$e.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=f,i.ambient[1]=_,i.ambient[2]=m;const F=i.hash;(F.directionalLength!==E||F.pointLength!==b||F.spotLength!==g||F.rectAreaLength!==y||F.hemiLength!==v||F.numDirectionalShadows!==S||F.numPointShadows!==w||F.numSpotShadows!==x||F.numSpotMaps!==A||F.numLightProbes!==T)&&(i.directional.length=E,i.spot.length=g,i.rectArea.length=y,i.point.length=b,i.hemi.length=v,i.directionalShadow.length=S,i.directionalShadowMap.length=S,i.pointShadow.length=w,i.pointShadowMap.length=w,i.spotShadow.length=x,i.spotShadowMap.length=x,i.directionalShadowMatrix.length=S,i.pointShadowMatrix.length=w,i.spotLightMatrix.length=x+A-D,i.spotLightMap.length=A,i.numSpotLightShadowsWithMaps=D,i.numLightProbes=T,F.directionalLength=E,F.pointLength=b,F.spotLength=g,F.rectAreaLength=y,F.hemiLength=v,F.numDirectionalShadows=S,F.numPointShadows=w,F.numSpotShadows=x,F.numSpotMaps=A,F.numLightProbes=T,i.version=yIt++)}function u(d,h){let f=0,_=0,m=0,E=0,b=0;const g=h.matrixWorldInverse;for(let y=0,v=d.length;y<v;y++){const S=d[y];if(S.isDirectionalLight){const w=i.directional[f];w.direction.setFromMatrixPosition(S.matrixWorld),r.setFromMatrixPosition(S.target.matrixWorld),w.direction.sub(r),w.direction.transformDirection(g),f++}else if(S.isSpotLight){const w=i.spot[m];w.position.setFromMatrixPosition(S.matrixWorld),w.position.applyMatrix4(g),w.direction.setFromMatrixPosition(S.matrixWorld),r.setFromMatrixPosition(S.target.matrixWorld),w.direction.sub(r),w.direction.transformDirection(g),m++}else if(S.isRectAreaLight){const w=i.rectArea[E];w.position.setFromMatrixPosition(S.matrixWorld),w.position.applyMatrix4(g),a.identity(),o.copy(S.matrixWorld),o.premultiply(g),a.extractRotation(o),w.halfWidth.set(S.width*.5,0,0),w.halfHeight.set(0,S.height*.5,0),w.halfWidth.applyMatrix4(a),w.halfHeight.applyMatrix4(a),E++}else if(S.isPointLight){const w=i.point[_];w.position.setFromMatrixPosition(S.matrixWorld),w.position.applyMatrix4(g),_++}else if(S.isHemisphereLight){const w=i.hemi[b];w.direction.setFromMatrixPosition(S.matrixWorld),w.direction.transformDirection(g),b++}}}return{setup:l,setupView:u,state:i}}function x1(n,e){const t=new SIt(n,e),s=[],i=[];function r(){s.length=0,i.length=0}function o(h){s.push(h)}function a(h){i.push(h)}function l(h){t.setup(s,h)}function u(h){t.setupView(s,h)}return{init:r,state:{lightsArray:s,shadowsArray:i,lights:t},setupLights:l,setupLightsView:u,pushLight:o,pushShadow:a}}function TIt(n,e){let t=new WeakMap;function s(r,o=0){const a=t.get(r);let l;return a===void 0?(l=new x1(n,e),t.set(r,[l])):o>=a.length?(l=new x1(n,e),a.push(l)):l=a[o],l}function i(){t=new WeakMap}return{get:s,dispose:i}}class xIt extends ks{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=lwt,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 CIt extends ks{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 wIt=`void main() {
gl_Position = vec4( position, 1.0 );
}`,RIt=`uniform sampler2D shadow_pass;
uniform vec2 resolution;
uniform float radius;
#include <packing>
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 AIt(n,e,t){let s=new AE;const i=new Rt,r=new Rt,o=new Yt,a=new xIt({depthPacking:cwt}),l=new CIt,u={},d=t.maxTextureSize,h={[Oi]:Yn,[Yn]:Oi,[qs]:qs},f=new Jr({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Rt},radius:{value:4}},vertexShader:wIt,fragmentShader:RIt}),_=f.clone();_.defines.HORIZONTAL_PASS=1;const m=new ri;m.setAttribute("position",new Bn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const E=new Un(m,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=JN;let g=this.type;this.render=function(w,x,A){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||w.length===0)return;const D=n.getRenderTarget(),T=n.getActiveCubeFace(),O=n.getActiveMipmapLevel(),F=n.state;F.setBlending(ar),F.buffers.color.setClear(1,1,1,1),F.buffers.depth.setTest(!0),F.setScissorTest(!1);const z=g!==gi&&this.type===gi,Z=g===gi&&this.type!==gi;for(let M=0,q=w.length;M<q;M++){const H=w[M],P=H.shadow;if(P===void 0){console.warn("THREE.WebGLShadowMap:",H,"has no shadow.");continue}if(P.autoUpdate===!1&&P.needsUpdate===!1)continue;i.copy(P.mapSize);const $=P.getFrameExtents();if(i.multiply($),r.copy(P.mapSize),(i.x>d||i.y>d)&&(i.x>d&&(r.x=Math.floor(d/$.x),i.x=r.x*$.x,P.mapSize.x=r.x),i.y>d&&(r.y=Math.floor(d/$.y),i.y=r.y*$.y,P.mapSize.y=r.y)),P.map===null||z===!0||Z===!0){const re=this.type!==gi?{minFilter:mn,magFilter:mn}:{};P.map!==null&&P.map.dispose(),P.map=new Zr(i.x,i.y,re),P.map.texture.name=H.name+".shadowMap",P.camera.updateProjectionMatrix()}n.setRenderTarget(P.map),n.clear();const J=P.getViewportCount();for(let re=0;re<J;re++){const me=P.getViewport(re);o.set(r.x*me.x,r.y*me.y,r.x*me.z,r.y*me.w),F.viewport(o),P.updateMatrices(H,re),s=P.getFrustum(),S(x,A,P.camera,H,this.type)}P.isPointLightShadow!==!0&&this.type===gi&&y(P,A),P.needsUpdate=!1}g=this.type,b.needsUpdate=!1,n.setRenderTarget(D,T,O)};function y(w,x){const A=e.update(E);f.defines.VSM_SAMPLES!==w.blurSamples&&(f.defines.VSM_SAMPLES=w.blurSamples,_.defines.VSM_SAMPLES=w.blurSamples,f.needsUpdate=!0,_.needsUpdate=!0),w.mapPass===null&&(w.mapPass=new Zr(i.x,i.y)),f.uniforms.shadow_pass.value=w.map.texture,f.uniforms.resolution.value=w.mapSize,f.uniforms.radius.value=w.radius,n.setRenderTarget(w.mapPass),n.clear(),n.renderBufferDirect(x,null,A,f,E,null),_.uniforms.shadow_pass.value=w.mapPass.texture,_.uniforms.resolution.value=w.mapSize,_.uniforms.radius.value=w.radius,n.setRenderTarget(w.map),n.clear(),n.renderBufferDirect(x,null,A,_,E,null)}function v(w,x,A,D){let T=null;const O=A.isPointLight===!0?w.customDistanceMaterial:w.customDepthMaterial;if(O!==void 0)T=O;else if(T=A.isPointLight===!0?l:a,n.localClippingEnabled&&x.clipShadows===!0&&Array.isArray(x.clippingPlanes)&&x.clippingPlanes.length!==0||x.displacementMap&&x.displacementScale!==0||x.alphaMap&&x.alphaTest>0||x.map&&x.alphaTest>0){const F=T.uuid,z=x.uuid;let Z=u[F];Z===void 0&&(Z={},u[F]=Z);let M=Z[z];M===void 0&&(M=T.clone(),Z[z]=M),T=M}if(T.visible=x.visible,T.wireframe=x.wireframe,D===gi?T.side=x.shadowSide!==null?x.shadowSide:x.side:T.side=x.shadowSide!==null?x.shadowSide:h[x.side],T.alphaMap=x.alphaMap,T.alphaTest=x.alphaTest,T.map=x.map,T.clipShadows=x.clipShadows,T.clippingPlanes=x.clippingPlanes,T.clipIntersection=x.clipIntersection,T.displacementMap=x.displacementMap,T.displacementScale=x.displacementScale,T.displacementBias=x.displacementBias,T.wireframeLinewidth=x.wireframeLinewidth,T.linewidth=x.linewidth,A.isPointLight===!0&&T.isMeshDistanceMaterial===!0){const F=n.properties.get(T);F.light=A}return T}function S(w,x,A,D,T){if(w.visible===!1)return;if(w.layers.test(x.layers)&&(w.isMesh||w.isLine||w.isPoints)&&(w.castShadow||w.receiveShadow&&T===gi)&&(!w.frustumCulled||s.intersectsObject(w))){w.modelViewMatrix.multiplyMatrices(A.matrixWorldInverse,w.matrixWorld);const z=e.update(w),Z=w.material;if(Array.isArray(Z)){const M=z.groups;for(let q=0,H=M.length;q<H;q++){const P=M[q],$=Z[P.materialIndex];if($&&$.visible){const J=v(w,$,D,T);w.onBeforeShadow(n,w,x,A,z,J,P),n.renderBufferDirect(A,null,z,J,w,P),w.onAfterShadow(n,w,x,A,z,J,P)}}}else if(Z.visible){const M=v(w,Z,D,T);w.onBeforeShadow(n,w,x,A,z,M,null),n.renderBufferDirect(A,null,z,M,w,null),w.onAfterShadow(n,w,x,A,z,M,null)}}const F=w.children;for(let z=0,Z=F.length;z<Z;z++)S(F[z],x,A,D,T)}}function NIt(n,e,t){const s=t.isWebGL2;function i(){let X=!1;const je=new Yt;let Be=null;const Ne=new Yt(0,0,0,0);return{setMask:function(Ve){Be!==Ve&&!X&&(n.colorMask(Ve,Ve,Ve,Ve),Be=Ve)},setLocked:function(Ve){X=Ve},setClear:function(Ve,ot,Nt,sn,bn){bn===!0&&(Ve*=sn,ot*=sn,Nt*=sn),je.set(Ve,ot,Nt,sn),Ne.equals(je)===!1&&(n.clearColor(Ve,ot,Nt,sn),Ne.copy(je))},reset:function(){X=!1,Be=null,Ne.set(-1,0,0,0)}}}function r(){let X=!1,je=null,Be=null,Ne=null;return{setTest:function(Ve){Ve?ue(n.DEPTH_TEST):Ce(n.DEPTH_TEST)},setMask:function(Ve){je!==Ve&&!X&&(n.depthMask(Ve),je=Ve)},setFunc:function(Ve){if(Be!==Ve){switch(Ve){case U1t:n.depthFunc(n.NEVER);break;case F1t:n.depthFunc(n.ALWAYS);break;case B1t:n.depthFunc(n.LESS);break;case $d:n.depthFunc(n.LEQUAL);break;case G1t:n.depthFunc(n.EQUAL);break;case V1t:n.depthFunc(n.GEQUAL);break;case z1t:n.depthFunc(n.GREATER);break;case H1t:n.depthFunc(n.NOTEQUAL);break;default:n.depthFunc(n.LEQUAL)}Be=Ve}},setLocked:function(Ve){X=Ve},setClear:function(Ve){Ne!==Ve&&(n.clearDepth(Ve),Ne=Ve)},reset:function(){X=!1,je=null,Be=null,Ne=null}}}function o(){let X=!1,je=null,Be=null,Ne=null,Ve=null,ot=null,Nt=null,sn=null,bn=null;return{setTest:function(Gt){X||(Gt?ue(n.STENCIL_TEST):Ce(n.STENCIL_TEST))},setMask:function(Gt){je!==Gt&&!X&&(n.stencilMask(Gt),je=Gt)},setFunc:function(Gt,En,ts){(Be!==Gt||Ne!==En||Ve!==ts)&&(n.stencilFunc(Gt,En,ts),Be=Gt,Ne=En,Ve=ts)},setOp:function(Gt,En,ts){(ot!==Gt||Nt!==En||sn!==ts)&&(n.stencilOp(Gt,En,ts),ot=Gt,Nt=En,sn=ts)},setLocked:function(Gt){X=Gt},setClear:function(Gt){bn!==Gt&&(n.clearStencil(Gt),bn=Gt)},reset:function(){X=!1,je=null,Be=null,Ne=null,Ve=null,ot=null,Nt=null,sn=null,bn=null}}}const a=new i,l=new r,u=new o,d=new WeakMap,h=new WeakMap;let f={},_={},m=new WeakMap,E=[],b=null,g=!1,y=null,v=null,S=null,w=null,x=null,A=null,D=null,T=new ut(0,0,0),O=0,F=!1,z=null,Z=null,M=null,q=null,H=null;const P=n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let $=!1,J=0;const re=n.getParameter(n.VERSION);re.indexOf("WebGL")!==-1?(J=parseFloat(/^WebGL (\d)/.exec(re)[1]),$=J>=1):re.indexOf("OpenGL ES")!==-1&&(J=parseFloat(/^OpenGL ES (\d)/.exec(re)[1]),$=J>=2);let me=null,Se={};const le=n.getParameter(n.SCISSOR_BOX),Ee=n.getParameter(n.VIEWPORT),Oe=new Yt().fromArray(le),Me=new Yt().fromArray(Ee);function j(X,je,Be,Ne){const Ve=new Uint8Array(4),ot=n.createTexture();n.bindTexture(X,ot),n.texParameteri(X,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(X,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Nt=0;Nt<Be;Nt++)s&&(X===n.TEXTURE_3D||X===n.TEXTURE_2D_ARRAY)?n.texImage3D(je,0,n.RGBA,1,1,Ne,0,n.RGBA,n.UNSIGNED_BYTE,Ve):n.texImage2D(je+Nt,0,n.RGBA,1,1,0,n.RGBA,n.UNSIGNED_BYTE,Ve);return ot}const pe={};pe[n.TEXTURE_2D]=j(n.TEXTURE_2D,n.TEXTURE_2D,1),pe[n.TEXTURE_CUBE_MAP]=j(n.TEXTURE_CUBE_MAP,n.TEXTURE_CUBE_MAP_POSITIVE_X,6),s&&(pe[n.TEXTURE_2D_ARRAY]=j(n.TEXTURE_2D_ARRAY,n.TEXTURE_2D_ARRAY,1,1),pe[n.TEXTURE_3D]=j(n.TEXTURE_3D,n.TEXTURE_3D,1,1)),a.setClear(0,0,0,1),l.setClear(1),u.setClear(0),ue(n.DEPTH_TEST),l.setFunc($d),Ae(!1),te(sC),ue(n.CULL_FACE),ne(ar);function ue(X){f[X]!==!0&&(n.enable(X),f[X]=!0)}function Ce(X){f[X]!==!1&&(n.disable(X),f[X]=!1)}function ke(X,je){return _[X]!==je?(n.bindFramebuffer(X,je),_[X]=je,s&&(X===n.DRAW_FRAMEBUFFER&&(_[n.FRAMEBUFFER]=je),X===n.FRAMEBUFFER&&(_[n.DRAW_FRAMEBUFFER]=je)),!0):!1}function N(X,je){let Be=E,Ne=!1;if(X)if(Be=m.get(je),Be===void 0&&(Be=[],m.set(je,Be)),X.isWebGLMultipleRenderTargets){const Ve=X.texture;if(Be.length!==Ve.length||Be[0]!==n.COLOR_ATTACHMENT0){for(let ot=0,Nt=Ve.length;ot<Nt;ot++)Be[ot]=n.COLOR_ATTACHMENT0+ot;Be.length=Ve.length,Ne=!0}}else Be[0]!==n.COLOR_ATTACHMENT0&&(Be[0]=n.COLOR_ATTACHMENT0,Ne=!0);else Be[0]!==n.BACK&&(Be[0]=n.BACK,Ne=!0);Ne&&(t.isWebGL2?n.drawBuffers(Be):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Be))}function V(X){return b!==X?(n.useProgram(X),b=X,!0):!1}const Y={[kr]:n.FUNC_ADD,[S1t]:n.FUNC_SUBTRACT,[T1t]:n.FUNC_REVERSE_SUBTRACT};if(s)Y[aC]=n.MIN,Y[lC]=n.MAX;else{const X=e.get("EXT_blend_minmax");X!==null&&(Y[aC]=X.MIN_EXT,Y[lC]=X.MAX_EXT)}const oe={[x1t]:n.ZERO,[C1t]:n.ONE,[w1t]:n.SRC_COLOR,[kg]:n.SRC_ALPHA,[M1t]:n.SRC_ALPHA_SATURATE,[O1t]:n.DST_COLOR,[A1t]:n.DST_ALPHA,[R1t]:n.ONE_MINUS_SRC_COLOR,[Lg]:n.ONE_MINUS_SRC_ALPHA,[I1t]:n.ONE_MINUS_DST_COLOR,[N1t]:n.ONE_MINUS_DST_ALPHA,[D1t]:n.CONSTANT_COLOR,[k1t]:n.ONE_MINUS_CONSTANT_COLOR,[L1t]:n.CONSTANT_ALPHA,[P1t]:n.ONE_MINUS_CONSTANT_ALPHA};function ne(X,je,Be,Ne,Ve,ot,Nt,sn,bn,Gt){if(X===ar){g===!0&&(Ce(n.BLEND),g=!1);return}if(g===!1&&(ue(n.BLEND),g=!0),X!==v1t){if(X!==y||Gt!==F){if((v!==kr||x!==kr)&&(n.blendEquation(n.FUNC_ADD),v=kr,x=kr),Gt)switch(X){case Yo:n.blendFuncSeparate(n.ONE,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case iC:n.blendFunc(n.ONE,n.ONE);break;case rC:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case oC:n.blendFuncSeparate(n.ZERO,n.SRC_COLOR,n.ZERO,n.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",X);break}else switch(X){case Yo:n.blendFuncSeparate(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case iC:n.blendFunc(n.SRC_ALPHA,n.ONE);break;case rC:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case oC:n.blendFunc(n.ZERO,n.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",X);break}S=null,w=null,A=null,D=null,T.set(0,0,0),O=0,y=X,F=Gt}return}Ve=Ve||je,ot=ot||Be,Nt=Nt||Ne,(je!==v||Ve!==x)&&(n.blendEquationSeparate(Y[je],Y[Ve]),v=je,x=Ve),(Be!==S||Ne!==w||ot!==A||Nt!==D)&&(n.blendFuncSeparate(oe[Be],oe[Ne],oe[ot],oe[Nt]),S=Be,w=Ne,A=ot,D=Nt),(sn.equals(T)===!1||bn!==O)&&(n.blendColor(sn.r,sn.g,sn.b,bn),T.copy(sn),O=bn),y=X,F=!1}function Te(X,je){X.side===qs?Ce(n.CULL_FACE):ue(n.CULL_FACE);let Be=X.side===Yn;je&&(Be=!Be),Ae(Be),X.blending===Yo&&X.transparent===!1?ne(ar):ne(X.blending,X.blendEquation,X.blendSrc,X.blendDst,X.blendEquationAlpha,X.blendSrcAlpha,X.blendDstAlpha,X.blendColor,X.blendAlpha,X.premultipliedAlpha),l.setFunc(X.depthFunc),l.setTest(X.depthTest),l.setMask(X.depthWrite),a.setMask(X.colorWrite);const Ne=X.stencilWrite;u.setTest(Ne),Ne&&(u.setMask(X.stencilWriteMask),u.setFunc(X.stencilFunc,X.stencilRef,X.stencilFuncMask),u.setOp(X.stencilFail,X.stencilZFail,X.stencilZPass)),ge(X.polygonOffset,X.polygonOffsetFactor,X.polygonOffsetUnits),X.alphaToCoverage===!0?ue(n.SAMPLE_ALPHA_TO_COVERAGE):Ce(n.SAMPLE_ALPHA_TO_COVERAGE)}function Ae(X){z!==X&&(X?n.frontFace(n.CW):n.frontFace(n.CCW),z=X)}function te(X){X!==b1t?(ue(n.CULL_FACE),X!==Z&&(X===sC?n.cullFace(n.BACK):X===E1t?n.cullFace(n.FRONT):n.cullFace(n.FRONT_AND_BACK))):Ce(n.CULL_FACE),Z=X}function we(X){X!==M&&($&&n.lineWidth(X),M=X)}function ge(X,je,Be){X?(ue(n.POLYGON_OFFSET_FILL),(q!==je||H!==Be)&&(n.polygonOffset(je,Be),q=je,H=Be)):Ce(n.POLYGON_OFFSET_FILL)}function De(X){X?ue(n.SCISSOR_TEST):Ce(n.SCISSOR_TEST)}function k(X){X===void 0&&(X=n.TEXTURE0+P-1),me!==X&&(n.activeTexture(X),me=X)}function I(X,je,Be){Be===void 0&&(me===null?Be=n.TEXTURE0+P-1:Be=me);let Ne=Se[Be];Ne===void 0&&(Ne={type:void 0,texture:void 0},Se[Be]=Ne),(Ne.type!==X||Ne.texture!==je)&&(me!==Be&&(n.activeTexture(Be),me=Be),n.bindTexture(X,je||pe[X]),Ne.type=X,Ne.texture=je)}function W(){const X=Se[me];X!==void 0&&X.type!==void 0&&(n.bindTexture(X.type,null),X.type=void 0,X.texture=void 0)}function ye(){try{n.compressedTexImage2D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function K(){try{n.compressedTexImage3D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function ee(){try{n.texSubImage2D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function Re(){try{n.texSubImage3D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function xe(){try{n.compressedTexSubImage2D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function Le(){try{n.compressedTexSubImage3D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function Ze(){try{n.texStorage2D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function ht(){try{n.texStorage3D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function Pe(){try{n.texImage2D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function ct(){try{n.texImage3D.apply(n,arguments)}catch(X){console.error("THREE.WebGLState:",X)}}function tt(X){Oe.equals(X)===!1&&(n.scissor(X.x,X.y,X.z,X.w),Oe.copy(X))}function Ye(X){Me.equals(X)===!1&&(n.viewport(X.x,X.y,X.z,X.w),Me.copy(X))}function et(X,je){let Be=h.get(je);Be===void 0&&(Be=new WeakMap,h.set(je,Be));let Ne=Be.get(X);Ne===void 0&&(Ne=n.getUniformBlockIndex(je,X.name),Be.set(X,Ne))}function We(X,je){const Ne=h.get(je).get(X);d.get(je)!==Ne&&(n.uniformBlockBinding(je,Ne,X.__bindingPointIndex),d.set(je,Ne))}function Et(){n.disable(n.BLEND),n.disable(n.CULL_FACE),n.disable(n.DEPTH_TEST),n.disable(n.POLYGON_OFFSET_FILL),n.disable(n.SCISSOR_TEST),n.disable(n.STENCIL_TEST),n.disable(n.SAMPLE_ALPHA_TO_COVERAGE),n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ZERO),n.blendFuncSeparate(n.ONE,n.ZERO,n.ONE,n.ZERO),n.blendColor(0,0,0,0),n.colorMask(!0,!0,!0,!0),n.clearColor(0,0,0,0),n.depthMask(!0),n.depthFunc(n.LESS),n.clearDepth(1),n.stencilMask(4294967295),n.stencilFunc(n.ALWAYS,0,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP),n.clearStencil(0),n.cullFace(n.BACK),n.frontFace(n.CCW),n.polygonOffset(0,0),n.activeTexture(n.TEXTURE0),n.bindFramebuffer(n.FRAMEBUFFER,null),s===!0&&(n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),n.bindFramebuffer(n.READ_FRAMEBUFFER,null)),n.useProgram(null),n.lineWidth(1),n.scissor(0,0,n.canvas.width,n.canvas.height),n.viewport(0,0,n.canvas.width,n.canvas.height),f={},me=null,Se={},_={},m=new WeakMap,E=[],b=null,g=!1,y=null,v=null,S=null,w=null,x=null,A=null,D=null,T=new ut(0,0,0),O=0,F=!1,z=null,Z=null,M=null,q=null,H=null,Oe.set(0,0,n.canvas.width,n.canvas.height),Me.set(0,0,n.canvas.width,n.canvas.height),a.reset(),l.reset(),u.reset()}return{buffers:{color:a,depth:l,stencil:u},enable:ue,disable:Ce,bindFramebuffer:ke,drawBuffers:N,useProgram:V,setBlending:ne,setMaterial:Te,setFlipSided:Ae,setCullFace:te,setLineWidth:we,setPolygonOffset:ge,setScissorTest:De,activeTexture:k,bindTexture:I,unbindTexture:W,compressedTexImage2D:ye,compressedTexImage3D:K,texImage2D:Pe,texImage3D:ct,updateUBOMapping:et,uniformBlockBinding:We,texStorage2D:Ze,texStorage3D:ht,texSubImage2D:ee,texSubImage3D:Re,compressedTexSubImage2D:xe,compressedTexSubImage3D:Le,scissor:tt,viewport:Ye,reset:Et}}function OIt(n,e,t,s,i,r,o){const a=i.isWebGL2,l=i.maxTextures,u=i.maxCubemapSize,d=i.maxTextureSize,h=i.maxSamples,f=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,_=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),m=new WeakMap;let E;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(k,I){return g?new OffscreenCanvas(k,I):Gl("canvas")}function v(k,I,W,ye){let K=1;if((k.width>ye||k.height>ye)&&(K=ye/Math.max(k.width,k.height)),K<1||I===!0)if(typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&k instanceof ImageBitmap){const ee=I?Zd:Math.floor,Re=ee(K*k.width),xe=ee(K*k.height);E===void 0&&(E=y(Re,xe));const Le=W?y(Re,xe):E;return Le.width=Re,Le.height=xe,Le.getContext("2d").drawImage(k,0,0,Re,xe),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+k.width+"x"+k.height+") to ("+Re+"x"+xe+")."),Le}else return"data"in k&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+k.width+"x"+k.height+")."),k;return k}function S(k){return zg(k.width)&&zg(k.height)}function w(k){return a?!1:k.wrapS!==as||k.wrapT!==as||k.minFilter!==mn&&k.minFilter!==zn}function x(k,I){return k.generateMipmaps&&I&&k.minFilter!==mn&&k.minFilter!==zn}function A(k){n.generateMipmap(k)}function D(k,I,W,ye,K=!1){if(a===!1)return I;if(k!==null){if(n[k]!==void 0)return n[k];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+k+"'")}let ee=I;if(I===n.RED&&(W===n.FLOAT&&(ee=n.R32F),W===n.HALF_FLOAT&&(ee=n.R16F),W===n.UNSIGNED_BYTE&&(ee=n.R8)),I===n.RED_INTEGER&&(W===n.UNSIGNED_BYTE&&(ee=n.R8UI),W===n.UNSIGNED_SHORT&&(ee=n.R16UI),W===n.UNSIGNED_INT&&(ee=n.R32UI),W===n.BYTE&&(ee=n.R8I),W===n.SHORT&&(ee=n.R16I),W===n.INT&&(ee=n.R32I)),I===n.RG&&(W===n.FLOAT&&(ee=n.RG32F),W===n.HALF_FLOAT&&(ee=n.RG16F),W===n.UNSIGNED_BYTE&&(ee=n.RG8)),I===n.RGBA){const Re=K?Kd:Ut.getTransfer(ye);W===n.FLOAT&&(ee=n.RGBA32F),W===n.HALF_FLOAT&&(ee=n.RGBA16F),W===n.UNSIGNED_BYTE&&(ee=Re===Wt?n.SRGB8_ALPHA8:n.RGBA8),W===n.UNSIGNED_SHORT_4_4_4_4&&(ee=n.RGBA4),W===n.UNSIGNED_SHORT_5_5_5_1&&(ee=n.RGB5_A1)}return(ee===n.R16F||ee===n.R32F||ee===n.RG16F||ee===n.RG32F||ee===n.RGBA16F||ee===n.RGBA32F)&&e.get("EXT_color_buffer_float"),ee}function T(k,I,W){return x(k,W)===!0||k.isFramebufferTexture&&k.minFilter!==mn&&k.minFilter!==zn?Math.log2(Math.max(I.width,I.height))+1:k.mipmaps!==void 0&&k.mipmaps.length>0?k.mipmaps.length:k.isCompressedTexture&&Array.isArray(k.image)?I.mipmaps.length:1}function O(k){return k===mn||k===Fg||k===bd?n.NEAREST:n.LINEAR}function F(k){const I=k.target;I.removeEventListener("dispose",F),Z(I),I.isVideoTexture&&m.delete(I)}function z(k){const I=k.target;I.removeEventListener("dispose",z),q(I)}function Z(k){const I=s.get(k);if(I.__webglInit===void 0)return;const W=k.source,ye=b.get(W);if(ye){const K=ye[I.__cacheKey];K.usedTimes--,K.usedTimes===0&&M(k),Object.keys(ye).length===0&&b.delete(W)}s.remove(k)}function M(k){const I=s.get(k);n.deleteTexture(I.__webglTexture);const W=k.source,ye=b.get(W);delete ye[I.__cacheKey],o.memory.textures--}function q(k){const I=k.texture,W=s.get(k),ye=s.get(I);if(ye.__webglTexture!==void 0&&(n.deleteTexture(ye.__webglTexture),o.memory.textures--),k.depthTexture&&k.depthTexture.dispose(),k.isWebGLCubeRenderTarget)for(let K=0;K<6;K++){if(Array.isArray(W.__webglFramebuffer[K]))for(let ee=0;ee<W.__webglFramebuffer[K].length;ee++)n.deleteFramebuffer(W.__webglFramebuffer[K][ee]);else n.deleteFramebuffer(W.__webglFramebuffer[K]);W.__webglDepthbuffer&&n.deleteRenderbuffer(W.__webglDepthbuffer[K])}else{if(Array.isArray(W.__webglFramebuffer))for(let K=0;K<W.__webglFramebuffer.length;K++)n.deleteFramebuffer(W.__webglFramebuffer[K]);else n.deleteFramebuffer(W.__webglFramebuffer);if(W.__webglDepthbuffer&&n.deleteRenderbuffer(W.__webglDepthbuffer),W.__webglMultisampledFramebuffer&&n.deleteFramebuffer(W.__webglMultisampledFramebuffer),W.__webglColorRenderbuffer)for(let K=0;K<W.__webglColorRenderbuffer.length;K++)W.__webglColorRenderbuffer[K]&&n.deleteRenderbuffer(W.__webglColorRenderbuffer[K]);W.__webglDepthRenderbuffer&&n.deleteRenderbuffer(W.__webglDepthRenderbuffer)}if(k.isWebGLMultipleRenderTargets)for(let K=0,ee=I.length;K<ee;K++){const Re=s.get(I[K]);Re.__webglTexture&&(n.deleteTexture(Re.__webglTexture),o.memory.textures--),s.remove(I[K])}s.remove(I),s.remove(k)}let H=0;function P(){H=0}function $(){const k=H;return k>=l&&console.warn("THREE.WebGLTextures: Trying to use "+k+" texture units while this GPU supports only "+l),H+=1,k}function J(k){const I=[];return I.push(k.wrapS),I.push(k.wrapT),I.push(k.wrapR||0),I.push(k.magFilter),I.push(k.minFilter),I.push(k.anisotropy),I.push(k.internalFormat),I.push(k.format),I.push(k.type),I.push(k.generateMipmaps),I.push(k.premultiplyAlpha),I.push(k.flipY),I.push(k.unpackAlignment),I.push(k.colorSpace),I.join()}function re(k,I){const W=s.get(k);if(k.isVideoTexture&&ge(k),k.isRenderTargetTexture===!1&&k.version>0&&W.__version!==k.version){const ye=k.image;if(ye===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(ye.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{ue(W,k,I);return}}t.bindTexture(n.TEXTURE_2D,W.__webglTexture,n.TEXTURE0+I)}function me(k,I){const W=s.get(k);if(k.version>0&&W.__version!==k.version){ue(W,k,I);return}t.bindTexture(n.TEXTURE_2D_ARRAY,W.__webglTexture,n.TEXTURE0+I)}function Se(k,I){const W=s.get(k);if(k.version>0&&W.__version!==k.version){ue(W,k,I);return}t.bindTexture(n.TEXTURE_3D,W.__webglTexture,n.TEXTURE0+I)}function le(k,I){const W=s.get(k);if(k.version>0&&W.__version!==k.version){Ce(W,k,I);return}t.bindTexture(n.TEXTURE_CUBE_MAP,W.__webglTexture,n.TEXTURE0+I)}const Ee={[ca]:n.REPEAT,[as]:n.CLAMP_TO_EDGE,[Wd]:n.MIRRORED_REPEAT},Oe={[mn]:n.NEAREST,[Fg]:n.NEAREST_MIPMAP_NEAREST,[bd]:n.NEAREST_MIPMAP_LINEAR,[zn]:n.LINEAR,[tO]:n.LINEAR_MIPMAP_NEAREST,[Xr]:n.LINEAR_MIPMAP_LINEAR},Me={[uwt]:n.NEVER,[gwt]:n.ALWAYS,[pwt]:n.LESS,[uO]:n.LEQUAL,[_wt]:n.EQUAL,[mwt]:n.GEQUAL,[hwt]:n.GREATER,[fwt]:n.NOTEQUAL};function j(k,I,W){if(W?(n.texParameteri(k,n.TEXTURE_WRAP_S,Ee[I.wrapS]),n.texParameteri(k,n.TEXTURE_WRAP_T,Ee[I.wrapT]),(k===n.TEXTURE_3D||k===n.TEXTURE_2D_ARRAY)&&n.texParameteri(k,n.TEXTURE_WRAP_R,Ee[I.wrapR]),n.texParameteri(k,n.TEXTURE_MAG_FILTER,Oe[I.magFilter]),n.texParameteri(k,n.TEXTURE_MIN_FILTER,Oe[I.minFilter])):(n.texParameteri(k,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(k,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(k===n.TEXTURE_3D||k===n.TEXTURE_2D_ARRAY)&&n.texParameteri(k,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(I.wrapS!==as||I.wrapT!==as)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(k,n.TEXTURE_MAG_FILTER,O(I.magFilter)),n.texParameteri(k,n.TEXTURE_MIN_FILTER,O(I.minFilter)),I.minFilter!==mn&&I.minFilter!==zn&&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(k,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(k,n.TEXTURE_COMPARE_FUNC,Me[I.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const ye=e.get("EXT_texture_filter_anisotropic");if(I.magFilter===mn||I.minFilter!==bd&&I.minFilter!==Xr||I.type===vi&&e.has("OES_texture_float_linear")===!1||a===!1&&I.type===Fl&&e.has("OES_texture_half_float_linear")===!1)return;(I.anisotropy>1||s.get(I).__currentAnisotropy)&&(n.texParameterf(k,ye.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(I.anisotropy,i.getMaxAnisotropy())),s.get(I).__currentAnisotropy=I.anisotropy)}}function pe(k,I){let W=!1;k.__webglInit===void 0&&(k.__webglInit=!0,I.addEventListener("dispose",F));const ye=I.source;let K=b.get(ye);K===void 0&&(K={},b.set(ye,K));const ee=J(I);if(ee!==k.__cacheKey){K[ee]===void 0&&(K[ee]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,W=!0),K[ee].usedTimes++;const Re=K[k.__cacheKey];Re!==void 0&&(K[k.__cacheKey].usedTimes--,Re.usedTimes===0&&M(I)),k.__cacheKey=ee,k.__webglTexture=K[ee].texture}return W}function ue(k,I,W){let ye=n.TEXTURE_2D;(I.isDataArrayTexture||I.isCompressedArrayTexture)&&(ye=n.TEXTURE_2D_ARRAY),I.isData3DTexture&&(ye=n.TEXTURE_3D);const K=pe(k,I),ee=I.source;t.bindTexture(ye,k.__webglTexture,n.TEXTURE0+W);const Re=s.get(ee);if(ee.version!==Re.__version||K===!0){t.activeTexture(n.TEXTURE0+W);const xe=Ut.getPrimaries(Ut.workingColorSpace),Le=I.colorSpace===cs?null:Ut.getPrimaries(I.colorSpace),Ze=I.colorSpace===cs||xe===Le?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,Ze);const ht=w(I)&&S(I.image)===!1;let Pe=v(I.image,ht,!1,d);Pe=De(I,Pe);const ct=S(Pe)||a,tt=r.convert(I.format,I.colorSpace);let Ye=r.convert(I.type),et=D(I.internalFormat,tt,Ye,I.colorSpace,I.isVideoTexture);j(ye,I,ct);let We;const Et=I.mipmaps,X=a&&I.isVideoTexture!==!0&&et!==lO,je=Re.__version===void 0||K===!0,Be=T(I,Pe,ct);if(I.isDepthTexture)et=n.DEPTH_COMPONENT,a?I.type===vi?et=n.DEPTH_COMPONENT32F:I.type===sr?et=n.DEPTH_COMPONENT24:I.type===Hr?et=n.DEPTH24_STENCIL8:et=n.DEPTH_COMPONENT16:I.type===vi&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),I.format===qr&&et===n.DEPTH_COMPONENT&&I.type!==xE&&I.type!==sr&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),I.type=sr,Ye=r.convert(I.type)),I.format===da&&et===n.DEPTH_COMPONENT&&(et=n.DEPTH_STENCIL,I.type!==Hr&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),I.type=Hr,Ye=r.convert(I.type))),je&&(X?t.texStorage2D(n.TEXTURE_2D,1,et,Pe.width,Pe.height):t.texImage2D(n.TEXTURE_2D,0,et,Pe.width,Pe.height,0,tt,Ye,null));else if(I.isDataTexture)if(Et.length>0&&ct){X&&je&&t.texStorage2D(n.TEXTURE_2D,Be,et,Et[0].width,Et[0].height);for(let Ne=0,Ve=Et.length;Ne<Ve;Ne++)We=Et[Ne],X?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,We.width,We.height,tt,Ye,We.data):t.texImage2D(n.TEXTURE_2D,Ne,et,We.width,We.height,0,tt,Ye,We.data);I.generateMipmaps=!1}else X?(je&&t.texStorage2D(n.TEXTURE_2D,Be,et,Pe.width,Pe.height),t.texSubImage2D(n.TEXTURE_2D,0,0,0,Pe.width,Pe.height,tt,Ye,Pe.data)):t.texImage2D(n.TEXTURE_2D,0,et,Pe.width,Pe.height,0,tt,Ye,Pe.data);else if(I.isCompressedTexture)if(I.isCompressedArrayTexture){X&&je&&t.texStorage3D(n.TEXTURE_2D_ARRAY,Be,et,Et[0].width,Et[0].height,Pe.depth);for(let Ne=0,Ve=Et.length;Ne<Ve;Ne++)We=Et[Ne],I.format!==ls?tt!==null?X?t.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Ne,0,0,0,We.width,We.height,Pe.depth,tt,We.data,0,0):t.compressedTexImage3D(n.TEXTURE_2D_ARRAY,Ne,et,We.width,We.height,Pe.depth,0,We.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):X?t.texSubImage3D(n.TEXTURE_2D_ARRAY,Ne,0,0,0,We.width,We.height,Pe.depth,tt,Ye,We.data):t.texImage3D(n.TEXTURE_2D_ARRAY,Ne,et,We.width,We.height,Pe.depth,0,tt,Ye,We.data)}else{X&&je&&t.texStorage2D(n.TEXTURE_2D,Be,et,Et[0].width,Et[0].height);for(let Ne=0,Ve=Et.length;Ne<Ve;Ne++)We=Et[Ne],I.format!==ls?tt!==null?X?t.compressedTexSubImage2D(n.TEXTURE_2D,Ne,0,0,We.width,We.height,tt,We.data):t.compressedTexImage2D(n.TEXTURE_2D,Ne,et,We.width,We.height,0,We.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):X?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,We.width,We.height,tt,Ye,We.data):t.texImage2D(n.TEXTURE_2D,Ne,et,We.width,We.height,0,tt,Ye,We.data)}else if(I.isDataArrayTexture)X?(je&&t.texStorage3D(n.TEXTURE_2D_ARRAY,Be,et,Pe.width,Pe.height,Pe.depth),t.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,0,Pe.width,Pe.height,Pe.depth,tt,Ye,Pe.data)):t.texImage3D(n.TEXTURE_2D_ARRAY,0,et,Pe.width,Pe.height,Pe.depth,0,tt,Ye,Pe.data);else if(I.isData3DTexture)X?(je&&t.texStorage3D(n.TEXTURE_3D,Be,et,Pe.width,Pe.height,Pe.depth),t.texSubImage3D(n.TEXTURE_3D,0,0,0,0,Pe.width,Pe.height,Pe.depth,tt,Ye,Pe.data)):t.texImage3D(n.TEXTURE_3D,0,et,Pe.width,Pe.height,Pe.depth,0,tt,Ye,Pe.data);else if(I.isFramebufferTexture){if(je)if(X)t.texStorage2D(n.TEXTURE_2D,Be,et,Pe.width,Pe.height);else{let Ne=Pe.width,Ve=Pe.height;for(let ot=0;ot<Be;ot++)t.texImage2D(n.TEXTURE_2D,ot,et,Ne,Ve,0,tt,Ye,null),Ne>>=1,Ve>>=1}}else if(Et.length>0&&ct){X&&je&&t.texStorage2D(n.TEXTURE_2D,Be,et,Et[0].width,Et[0].height);for(let Ne=0,Ve=Et.length;Ne<Ve;Ne++)We=Et[Ne],X?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,tt,Ye,We):t.texImage2D(n.TEXTURE_2D,Ne,et,tt,Ye,We);I.generateMipmaps=!1}else X?(je&&t.texStorage2D(n.TEXTURE_2D,Be,et,Pe.width,Pe.height),t.texSubImage2D(n.TEXTURE_2D,0,0,0,tt,Ye,Pe)):t.texImage2D(n.TEXTURE_2D,0,et,tt,Ye,Pe);x(I,ct)&&A(ye),Re.__version=ee.version,I.onUpdate&&I.onUpdate(I)}k.__version=I.version}function Ce(k,I,W){if(I.image.length!==6)return;const ye=pe(k,I),K=I.source;t.bindTexture(n.TEXTURE_CUBE_MAP,k.__webglTexture,n.TEXTURE0+W);const ee=s.get(K);if(K.version!==ee.__version||ye===!0){t.activeTexture(n.TEXTURE0+W);const Re=Ut.getPrimaries(Ut.workingColorSpace),xe=I.colorSpace===cs?null:Ut.getPrimaries(I.colorSpace),Le=I.colorSpace===cs||Re===xe?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,Le);const Ze=I.isCompressedTexture||I.image[0].isCompressedTexture,ht=I.image[0]&&I.image[0].isDataTexture,Pe=[];for(let Ne=0;Ne<6;Ne++)!Ze&&!ht?Pe[Ne]=v(I.image[Ne],!1,!0,u):Pe[Ne]=ht?I.image[Ne].image:I.image[Ne],Pe[Ne]=De(I,Pe[Ne]);const ct=Pe[0],tt=S(ct)||a,Ye=r.convert(I.format,I.colorSpace),et=r.convert(I.type),We=D(I.internalFormat,Ye,et,I.colorSpace),Et=a&&I.isVideoTexture!==!0,X=ee.__version===void 0||ye===!0;let je=T(I,ct,tt);j(n.TEXTURE_CUBE_MAP,I,tt);let Be;if(Ze){Et&&X&&t.texStorage2D(n.TEXTURE_CUBE_MAP,je,We,ct.width,ct.height);for(let Ne=0;Ne<6;Ne++){Be=Pe[Ne].mipmaps;for(let Ve=0;Ve<Be.length;Ve++){const ot=Be[Ve];I.format!==ls?Ye!==null?Et?t.compressedTexSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,Ve,0,0,ot.width,ot.height,Ye,ot.data):t.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,Ve,We,ot.width,ot.height,0,ot.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):Et?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,Ve,0,0,ot.width,ot.height,Ye,et,ot.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,Ve,We,ot.width,ot.height,0,Ye,et,ot.data)}}}else{Be=I.mipmaps,Et&&X&&(Be.length>0&&je++,t.texStorage2D(n.TEXTURE_CUBE_MAP,je,We,Pe[0].width,Pe[0].height));for(let Ne=0;Ne<6;Ne++)if(ht){Et?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,Pe[Ne].width,Pe[Ne].height,Ye,et,Pe[Ne].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,We,Pe[Ne].width,Pe[Ne].height,0,Ye,et,Pe[Ne].data);for(let Ve=0;Ve<Be.length;Ve++){const Nt=Be[Ve].image[Ne].image;Et?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,Ve+1,0,0,Nt.width,Nt.height,Ye,et,Nt.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,Ve+1,We,Nt.width,Nt.height,0,Ye,et,Nt.data)}}else{Et?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,Ye,et,Pe[Ne]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,We,Ye,et,Pe[Ne]);for(let Ve=0;Ve<Be.length;Ve++){const ot=Be[Ve];Et?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,Ve+1,0,0,Ye,et,ot.image[Ne]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,Ve+1,We,Ye,et,ot.image[Ne])}}}x(I,tt)&&A(n.TEXTURE_CUBE_MAP),ee.__version=K.version,I.onUpdate&&I.onUpdate(I)}k.__version=I.version}function ke(k,I,W,ye,K,ee){const Re=r.convert(W.format,W.colorSpace),xe=r.convert(W.type),Le=D(W.internalFormat,Re,xe,W.colorSpace);if(!s.get(I).__hasExternalTextures){const ht=Math.max(1,I.width>>ee),Pe=Math.max(1,I.height>>ee);K===n.TEXTURE_3D||K===n.TEXTURE_2D_ARRAY?t.texImage3D(K,ee,Le,ht,Pe,I.depth,0,Re,xe,null):t.texImage2D(K,ee,Le,ht,Pe,0,Re,xe,null)}t.bindFramebuffer(n.FRAMEBUFFER,k),we(I)?f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,ye,K,s.get(W).__webglTexture,0,te(I)):(K===n.TEXTURE_2D||K>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&K<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,ye,K,s.get(W).__webglTexture,ee),t.bindFramebuffer(n.FRAMEBUFFER,null)}function N(k,I,W){if(n.bindRenderbuffer(n.RENDERBUFFER,k),I.depthBuffer&&!I.stencilBuffer){let ye=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(W||we(I)){const K=I.depthTexture;K&&K.isDepthTexture&&(K.type===vi?ye=n.DEPTH_COMPONENT32F:K.type===sr&&(ye=n.DEPTH_COMPONENT24));const ee=te(I);we(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,ee,ye,I.width,I.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,ee,ye,I.width,I.height)}else n.renderbufferStorage(n.RENDERBUFFER,ye,I.width,I.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,k)}else if(I.depthBuffer&&I.stencilBuffer){const ye=te(I);W&&we(I)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,ye,n.DEPTH24_STENCIL8,I.width,I.height):we(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,ye,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,k)}else{const ye=I.isWebGLMultipleRenderTargets===!0?I.texture:[I.texture];for(let K=0;K<ye.length;K++){const ee=ye[K],Re=r.convert(ee.format,ee.colorSpace),xe=r.convert(ee.type),Le=D(ee.internalFormat,Re,xe,ee.colorSpace),Ze=te(I);W&&we(I)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,Ze,Le,I.width,I.height):we(I)?f.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,Ze,Le,I.width,I.height):n.renderbufferStorage(n.RENDERBUFFER,Le,I.width,I.height)}}n.bindRenderbuffer(n.RENDERBUFFER,null)}function V(k,I){if(I&&I.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(n.FRAMEBUFFER,k),!(I.depthTexture&&I.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!s.get(I.depthTexture).__webglTexture||I.depthTexture.image.width!==I.width||I.depthTexture.image.height!==I.height)&&(I.depthTexture.image.width=I.width,I.depthTexture.image.height=I.height,I.depthTexture.needsUpdate=!0),re(I.depthTexture,0);const ye=s.get(I.depthTexture).__webglTexture,K=te(I);if(I.depthTexture.format===qr)we(I)?f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,ye,0,K):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,ye,0);else if(I.depthTexture.format===da)we(I)?f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,ye,0,K):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,ye,0);else throw new Error("Unknown depthTexture format")}function Y(k){const I=s.get(k),W=k.isWebGLCubeRenderTarget===!0;if(k.depthTexture&&!I.__autoAllocateDepthBuffer){if(W)throw new Error("target.depthTexture not supported in Cube render targets");V(I.__webglFramebuffer,k)}else if(W){I.__webglDepthbuffer=[];for(let ye=0;ye<6;ye++)t.bindFramebuffer(n.FRAMEBUFFER,I.__webglFramebuffer[ye]),I.__webglDepthbuffer[ye]=n.createRenderbuffer(),N(I.__webglDepthbuffer[ye],k,!1)}else t.bindFramebuffer(n.FRAMEBUFFER,I.__webglFramebuffer),I.__webglDepthbuffer=n.createRenderbuffer(),N(I.__webglDepthbuffer,k,!1);t.bindFramebuffer(n.FRAMEBUFFER,null)}function oe(k,I,W){const ye=s.get(k);I!==void 0&&ke(ye.__webglFramebuffer,k,k.texture,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,0),W!==void 0&&Y(k)}function ne(k){const I=k.texture,W=s.get(k),ye=s.get(I);k.addEventListener("dispose",z),k.isWebGLMultipleRenderTargets!==!0&&(ye.__webglTexture===void 0&&(ye.__webglTexture=n.createTexture()),ye.__version=I.version,o.memory.textures++);const K=k.isWebGLCubeRenderTarget===!0,ee=k.isWebGLMultipleRenderTargets===!0,Re=S(k)||a;if(K){W.__webglFramebuffer=[];for(let xe=0;xe<6;xe++)if(a&&I.mipmaps&&I.mipmaps.length>0){W.__webglFramebuffer[xe]=[];for(let Le=0;Le<I.mipmaps.length;Le++)W.__webglFramebuffer[xe][Le]=n.createFramebuffer()}else W.__webglFramebuffer[xe]=n.createFramebuffer()}else{if(a&&I.mipmaps&&I.mipmaps.length>0){W.__webglFramebuffer=[];for(let xe=0;xe<I.mipmaps.length;xe++)W.__webglFramebuffer[xe]=n.createFramebuffer()}else W.__webglFramebuffer=n.createFramebuffer();if(ee)if(i.drawBuffers){const xe=k.texture;for(let Le=0,Ze=xe.length;Le<Ze;Le++){const ht=s.get(xe[Le]);ht.__webglTexture===void 0&&(ht.__webglTexture=n.createTexture(),o.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(a&&k.samples>0&&we(k)===!1){const xe=ee?I:[I];W.__webglMultisampledFramebuffer=n.createFramebuffer(),W.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,W.__webglMultisampledFramebuffer);for(let Le=0;Le<xe.length;Le++){const Ze=xe[Le];W.__webglColorRenderbuffer[Le]=n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,W.__webglColorRenderbuffer[Le]);const ht=r.convert(Ze.format,Ze.colorSpace),Pe=r.convert(Ze.type),ct=D(Ze.internalFormat,ht,Pe,Ze.colorSpace,k.isXRRenderTarget===!0),tt=te(k);n.renderbufferStorageMultisample(n.RENDERBUFFER,tt,ct,k.width,k.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+Le,n.RENDERBUFFER,W.__webglColorRenderbuffer[Le])}n.bindRenderbuffer(n.RENDERBUFFER,null),k.depthBuffer&&(W.__webglDepthRenderbuffer=n.createRenderbuffer(),N(W.__webglDepthRenderbuffer,k,!0)),t.bindFramebuffer(n.FRAMEBUFFER,null)}}if(K){t.bindTexture(n.TEXTURE_CUBE_MAP,ye.__webglTexture),j(n.TEXTURE_CUBE_MAP,I,Re);for(let xe=0;xe<6;xe++)if(a&&I.mipmaps&&I.mipmaps.length>0)for(let Le=0;Le<I.mipmaps.length;Le++)ke(W.__webglFramebuffer[xe][Le],k,I,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+xe,Le);else ke(W.__webglFramebuffer[xe],k,I,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+xe,0);x(I,Re)&&A(n.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(ee){const xe=k.texture;for(let Le=0,Ze=xe.length;Le<Ze;Le++){const ht=xe[Le],Pe=s.get(ht);t.bindTexture(n.TEXTURE_2D,Pe.__webglTexture),j(n.TEXTURE_2D,ht,Re),ke(W.__webglFramebuffer,k,ht,n.COLOR_ATTACHMENT0+Le,n.TEXTURE_2D,0),x(ht,Re)&&A(n.TEXTURE_2D)}t.unbindTexture()}else{let xe=n.TEXTURE_2D;if((k.isWebGL3DRenderTarget||k.isWebGLArrayRenderTarget)&&(a?xe=k.isWebGL3DRenderTarget?n.TEXTURE_3D:n.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),t.bindTexture(xe,ye.__webglTexture),j(xe,I,Re),a&&I.mipmaps&&I.mipmaps.length>0)for(let Le=0;Le<I.mipmaps.length;Le++)ke(W.__webglFramebuffer[Le],k,I,n.COLOR_ATTACHMENT0,xe,Le);else ke(W.__webglFramebuffer,k,I,n.COLOR_ATTACHMENT0,xe,0);x(I,Re)&&A(xe),t.unbindTexture()}k.depthBuffer&&Y(k)}function Te(k){const I=S(k)||a,W=k.isWebGLMultipleRenderTargets===!0?k.texture:[k.texture];for(let ye=0,K=W.length;ye<K;ye++){const ee=W[ye];if(x(ee,I)){const Re=k.isWebGLCubeRenderTarget?n.TEXTURE_CUBE_MAP:n.TEXTURE_2D,xe=s.get(ee).__webglTexture;t.bindTexture(Re,xe),A(Re),t.unbindTexture()}}}function Ae(k){if(a&&k.samples>0&&we(k)===!1){const I=k.isWebGLMultipleRenderTargets?k.texture:[k.texture],W=k.width,ye=k.height;let K=n.COLOR_BUFFER_BIT;const ee=[],Re=k.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,xe=s.get(k),Le=k.isWebGLMultipleRenderTargets===!0;if(Le)for(let Ze=0;Ze<I.length;Ze++)t.bindFramebuffer(n.FRAMEBUFFER,xe.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+Ze,n.RENDERBUFFER,null),t.bindFramebuffer(n.FRAMEBUFFER,xe.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+Ze,n.TEXTURE_2D,null,0);t.bindFramebuffer(n.READ_FRAMEBUFFER,xe.__webglMultisampledFramebuffer),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,xe.__webglFramebuffer);for(let Ze=0;Ze<I.length;Ze++){ee.push(n.COLOR_ATTACHMENT0+Ze),k.depthBuffer&&ee.push(Re);const ht=xe.__ignoreDepthValues!==void 0?xe.__ignoreDepthValues:!1;if(ht===!1&&(k.depthBuffer&&(K|=n.DEPTH_BUFFER_BIT),k.stencilBuffer&&(K|=n.STENCIL_BUFFER_BIT)),Le&&n.framebufferRenderbuffer(n.READ_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,xe.__webglColorRenderbuffer[Ze]),ht===!0&&(n.invalidateFramebuffer(n.READ_FRAMEBUFFER,[Re]),n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER,[Re])),Le){const Pe=s.get(I[Ze]).__webglTexture;n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,Pe,0)}n.blitFramebuffer(0,0,W,ye,0,0,W,ye,K,n.NEAREST),_&&n.invalidateFramebuffer(n.READ_FRAMEBUFFER,ee)}if(t.bindFramebuffer(n.READ_FRAMEBUFFER,null),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),Le)for(let Ze=0;Ze<I.length;Ze++){t.bindFramebuffer(n.FRAMEBUFFER,xe.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+Ze,n.RENDERBUFFER,xe.__webglColorRenderbuffer[Ze]);const ht=s.get(I[Ze]).__webglTexture;t.bindFramebuffer(n.FRAMEBUFFER,xe.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+Ze,n.TEXTURE_2D,ht,0)}t.bindFramebuffer(n.DRAW_FRAMEBUFFER,xe.__webglMultisampledFramebuffer)}}function te(k){return Math.min(h,k.samples)}function we(k){const I=s.get(k);return a&&k.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&I.__useRenderToTexture!==!1}function ge(k){const I=o.render.frame;m.get(k)!==I&&(m.set(k,I),k.update())}function De(k,I){const W=k.colorSpace,ye=k.format,K=k.type;return k.isCompressedTexture===!0||k.isVideoTexture===!0||k.format===Vg||W!==Cn&&W!==cs&&(Ut.getTransfer(W)===Wt?a===!1?e.has("EXT_sRGB")===!0&&ye===ls?(k.format=Vg,k.minFilter=zn,k.generateMipmaps=!1):I=_O.sRGBToLinear(I):(ye!==ls||K!==cr)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",W)),I}this.allocateTextureUnit=$,this.resetTextureUnits=P,this.setTexture2D=re,this.setTexture2DArray=me,this.setTexture3D=Se,this.setTextureCube=le,this.rebindTextures=oe,this.setupRenderTarget=ne,this.updateRenderTargetMipmap=Te,this.updateMultisampleRenderTarget=Ae,this.setupDepthRenderbuffer=Y,this.setupFrameBufferTexture=ke,this.useMultisampledRTT=we}function IIt(n,e,t){const s=t.isWebGL2;function i(r,o=cs){let a;const l=Ut.getTransfer(o);if(r===cr)return n.UNSIGNED_BYTE;if(r===sO)return n.UNSIGNED_SHORT_4_4_4_4;if(r===iO)return n.UNSIGNED_SHORT_5_5_5_1;if(r===Z1t)return n.BYTE;if(r===J1t)return n.SHORT;if(r===xE)return n.UNSIGNED_SHORT;if(r===nO)return n.INT;if(r===sr)return n.UNSIGNED_INT;if(r===vi)return n.FLOAT;if(r===Fl)return s?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===ewt)return n.ALPHA;if(r===ls)return n.RGBA;if(r===twt)return n.LUMINANCE;if(r===nwt)return n.LUMINANCE_ALPHA;if(r===qr)return n.DEPTH_COMPONENT;if(r===da)return n.DEPTH_STENCIL;if(r===Vg)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===swt)return n.RED;if(r===rO)return n.RED_INTEGER;if(r===iwt)return n.RG;if(r===oO)return n.RG_INTEGER;if(r===aO)return n.RGBA_INTEGER;if(r===hm||r===fm||r===mm||r===gm)if(l===Wt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===hm)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===fm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===mm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===gm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===hm)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===fm)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===mm)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===gm)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===dC||r===uC||r===pC||r===_C)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===dC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===uC)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===pC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===_C)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===lO)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===hC||r===fC)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===hC)return l===Wt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===fC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===mC||r===gC||r===bC||r===EC||r===yC||r===vC||r===SC||r===TC||r===xC||r===CC||r===wC||r===RC||r===AC||r===NC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===mC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===gC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===bC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===EC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===yC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===vC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===SC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===TC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===xC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===CC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===wC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===RC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===AC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===NC)return l===Wt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===bm||r===OC||r===IC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===bm)return l===Wt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===OC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===IC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===rwt||r===MC||r===DC||r===kC)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===bm)return a.COMPRESSED_RED_RGTC1_EXT;if(r===MC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===DC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===kC)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===Hr?s?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[r]!==void 0?n[r]:null}return{convert:i}}class MIt extends Pn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Fr extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const DIt={type:"move"};class zm{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Fr,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 Fr,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 Fr,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 i=null,r=null,o=null;const a=this._targetRay,l=this._grip,u=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(u&&e.hand){o=!0;for(const E of e.hand.values()){const b=t.getJointPose(E,s),g=this._getHandJoint(u,E);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const d=u.joints["index-finger-tip"],h=u.joints["thumb-tip"],f=d.position.distanceTo(h.position),_=.02,m=.005;u.inputState.pinching&&f>_+m?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!u.inputState.pinching&&f<=_-m&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,s),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,s),i===null&&r!==null&&(i=r),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(DIt)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=r!==null),u!==null&&(u.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const s=new Fr;s.matrixAutoUpdate=!1,s.visible=!1,e.joints[t.jointName]=s,e.add(s)}return e.joints[t.jointName]}}class kIt extends Ma{constructor(e,t){super();const s=this;let i=null,r=1,o=null,a="local-floor",l=1,u=null,d=null,h=null,f=null,_=null,m=null;const E=t.getContextAttributes();let b=null,g=null;const y=[],v=[],S=new Rt;let w=null;const x=new Pn;x.layers.enable(1),x.viewport=new Yt;const A=new Pn;A.layers.enable(2),A.viewport=new Yt;const D=[x,A],T=new MIt;T.layers.enable(1),T.layers.enable(2);let O=null,F=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(le){let Ee=y[le];return Ee===void 0&&(Ee=new zm,y[le]=Ee),Ee.getTargetRaySpace()},this.getControllerGrip=function(le){let Ee=y[le];return Ee===void 0&&(Ee=new zm,y[le]=Ee),Ee.getGripSpace()},this.getHand=function(le){let Ee=y[le];return Ee===void 0&&(Ee=new zm,y[le]=Ee),Ee.getHandSpace()};function z(le){const Ee=v.indexOf(le.inputSource);if(Ee===-1)return;const Oe=y[Ee];Oe!==void 0&&(Oe.update(le.inputSource,le.frame,u||o),Oe.dispatchEvent({type:le.type,data:le.inputSource}))}function Z(){i.removeEventListener("select",z),i.removeEventListener("selectstart",z),i.removeEventListener("selectend",z),i.removeEventListener("squeeze",z),i.removeEventListener("squeezestart",z),i.removeEventListener("squeezeend",z),i.removeEventListener("end",Z),i.removeEventListener("inputsourceschange",M);for(let le=0;le<y.length;le++){const Ee=v[le];Ee!==null&&(v[le]=null,y[le].disconnect(Ee))}O=null,F=null,e.setRenderTarget(b),_=null,f=null,h=null,i=null,g=null,Se.stop(),s.isPresenting=!1,e.setPixelRatio(w),e.setSize(S.width,S.height,!1),s.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(le){r=le,s.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(le){a=le,s.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return u||o},this.setReferenceSpace=function(le){u=le},this.getBaseLayer=function(){return f!==null?f:_},this.getBinding=function(){return h},this.getFrame=function(){return m},this.getSession=function(){return i},this.setSession=async function(le){if(i=le,i!==null){if(b=e.getRenderTarget(),i.addEventListener("select",z),i.addEventListener("selectstart",z),i.addEventListener("selectend",z),i.addEventListener("squeeze",z),i.addEventListener("squeezestart",z),i.addEventListener("squeezeend",z),i.addEventListener("end",Z),i.addEventListener("inputsourceschange",M),E.xrCompatible!==!0&&await t.makeXRCompatible(),w=e.getPixelRatio(),e.getSize(S),i.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const Ee={antialias:i.renderState.layers===void 0?E.antialias:!0,alpha:!0,depth:E.depth,stencil:E.stencil,framebufferScaleFactor:r};_=new XRWebGLLayer(i,t,Ee),i.updateRenderState({baseLayer:_}),e.setPixelRatio(1),e.setSize(_.framebufferWidth,_.framebufferHeight,!1),g=new Zr(_.framebufferWidth,_.framebufferHeight,{format:ls,type:cr,colorSpace:e.outputColorSpace,stencilBuffer:E.stencil})}else{let Ee=null,Oe=null,Me=null;E.depth&&(Me=E.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,Ee=E.stencil?da:qr,Oe=E.stencil?Hr:sr);const j={colorFormat:t.RGBA8,depthFormat:Me,scaleFactor:r};h=new XRWebGLBinding(i,t),f=h.createProjectionLayer(j),i.updateRenderState({layers:[f]}),e.setPixelRatio(1),e.setSize(f.textureWidth,f.textureHeight,!1),g=new Zr(f.textureWidth,f.textureHeight,{format:ls,type:cr,depthTexture:new xO(f.textureWidth,f.textureHeight,Oe,void 0,void 0,void 0,void 0,void 0,void 0,Ee),stencilBuffer:E.stencil,colorSpace:e.outputColorSpace,samples:E.antialias?4:0});const pe=e.properties.get(g);pe.__ignoreDepthValues=f.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(l),u=null,o=await i.requestReferenceSpace(a),Se.setContext(i),Se.start(),s.isPresenting=!0,s.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(i!==null)return i.environmentBlendMode};function M(le){for(let Ee=0;Ee<le.removed.length;Ee++){const Oe=le.removed[Ee],Me=v.indexOf(Oe);Me>=0&&(v[Me]=null,y[Me].disconnect(Oe))}for(let Ee=0;Ee<le.added.length;Ee++){const Oe=le.added[Ee];let Me=v.indexOf(Oe);if(Me===-1){for(let pe=0;pe<y.length;pe++)if(pe>=v.length){v.push(Oe),Me=pe;break}else if(v[pe]===null){v[pe]=Oe,Me=pe;break}if(Me===-1)break}const j=y[Me];j&&j.connect(Oe)}}const q=new ie,H=new ie;function P(le,Ee,Oe){q.setFromMatrixPosition(Ee.matrixWorld),H.setFromMatrixPosition(Oe.matrixWorld);const Me=q.distanceTo(H),j=Ee.projectionMatrix.elements,pe=Oe.projectionMatrix.elements,ue=j[14]/(j[10]-1),Ce=j[14]/(j[10]+1),ke=(j[9]+1)/j[5],N=(j[9]-1)/j[5],V=(j[8]-1)/j[0],Y=(pe[8]+1)/pe[0],oe=ue*V,ne=ue*Y,Te=Me/(-V+Y),Ae=Te*-V;Ee.matrixWorld.decompose(le.position,le.quaternion,le.scale),le.translateX(Ae),le.translateZ(Te),le.matrixWorld.compose(le.position,le.quaternion,le.scale),le.matrixWorldInverse.copy(le.matrixWorld).invert();const te=ue+Te,we=Ce+Te,ge=oe-Ae,De=ne+(Me-Ae),k=ke*Ce/we*te,I=N*Ce/we*te;le.projectionMatrix.makePerspective(ge,De,k,I,te,we),le.projectionMatrixInverse.copy(le.projectionMatrix).invert()}function $(le,Ee){Ee===null?le.matrixWorld.copy(le.matrix):le.matrixWorld.multiplyMatrices(Ee.matrixWorld,le.matrix),le.matrixWorldInverse.copy(le.matrixWorld).invert()}this.updateCamera=function(le){if(i===null)return;T.near=A.near=x.near=le.near,T.far=A.far=x.far=le.far,(O!==T.near||F!==T.far)&&(i.updateRenderState({depthNear:T.near,depthFar:T.far}),O=T.near,F=T.far);const Ee=le.parent,Oe=T.cameras;$(T,Ee);for(let Me=0;Me<Oe.length;Me++)$(Oe[Me],Ee);Oe.length===2?P(T,x,A):T.projectionMatrix.copy(x.projectionMatrix),J(le,T,Ee)};function J(le,Ee,Oe){Oe===null?le.matrix.copy(Ee.matrixWorld):(le.matrix.copy(Oe.matrixWorld),le.matrix.invert(),le.matrix.multiply(Ee.matrixWorld)),le.matrix.decompose(le.position,le.quaternion,le.scale),le.updateMatrixWorld(!0),le.projectionMatrix.copy(Ee.projectionMatrix),le.projectionMatrixInverse.copy(Ee.projectionMatrixInverse),le.isPerspectiveCamera&&(le.fov=pa*2*Math.atan(1/le.projectionMatrix.elements[5]),le.zoom=1)}this.getCamera=function(){return T},this.getFoveation=function(){if(!(f===null&&_===null))return l},this.setFoveation=function(le){l=le,f!==null&&(f.fixedFoveation=le),_!==null&&_.fixedFoveation!==void 0&&(_.fixedFoveation=le)};let re=null;function me(le,Ee){if(d=Ee.getViewerPose(u||o),m=Ee,d!==null){const Oe=d.views;_!==null&&(e.setRenderTargetFramebuffer(g,_.framebuffer),e.setRenderTarget(g));let Me=!1;Oe.length!==T.cameras.length&&(T.cameras.length=0,Me=!0);for(let j=0;j<Oe.length;j++){const pe=Oe[j];let ue=null;if(_!==null)ue=_.getViewport(pe);else{const ke=h.getViewSubImage(f,pe);ue=ke.viewport,j===0&&(e.setRenderTargetTextures(g,ke.colorTexture,f.ignoreDepthValues?void 0:ke.depthStencilTexture),e.setRenderTarget(g))}let Ce=D[j];Ce===void 0&&(Ce=new Pn,Ce.layers.enable(j),Ce.viewport=new Yt,D[j]=Ce),Ce.matrix.fromArray(pe.transform.matrix),Ce.matrix.decompose(Ce.position,Ce.quaternion,Ce.scale),Ce.projectionMatrix.fromArray(pe.projectionMatrix),Ce.projectionMatrixInverse.copy(Ce.projectionMatrix).invert(),Ce.viewport.set(ue.x,ue.y,ue.width,ue.height),j===0&&(T.matrix.copy(Ce.matrix),T.matrix.decompose(T.position,T.quaternion,T.scale)),Me===!0&&T.cameras.push(Ce)}}for(let Oe=0;Oe<y.length;Oe++){const Me=v[Oe],j=y[Oe];Me!==null&&j!==void 0&&j.update(Me,Ee,u||o)}re&&re(le,Ee),Ee.detectedPlanes&&s.dispatchEvent({type:"planesdetected",data:Ee}),m=null}const Se=new TO;Se.setAnimationLoop(me),this.setAnimationLoop=function(le){re=le},this.dispose=function(){}}}function LIt(n,e){function t(b,g){b.matrixAutoUpdate===!0&&b.updateMatrix(),g.value.copy(b.matrix)}function s(b,g){g.color.getRGB(b.fogColor.value,yO(n)),g.isFog?(b.fogNear.value=g.near,b.fogFar.value=g.far):g.isFogExp2&&(b.fogDensity.value=g.density)}function i(b,g,y,v,S){g.isMeshBasicMaterial||g.isMeshLambertMaterial?r(b,g):g.isMeshToonMaterial?(r(b,g),h(b,g)):g.isMeshPhongMaterial?(r(b,g),d(b,g)):g.isMeshStandardMaterial?(r(b,g),f(b,g),g.isMeshPhysicalMaterial&&_(b,g,S)):g.isMeshMatcapMaterial?(r(b,g),m(b,g)):g.isMeshDepthMaterial?r(b,g):g.isMeshDistanceMaterial?(r(b,g),E(b,g)):g.isMeshNormalMaterial?r(b,g):g.isLineBasicMaterial?(o(b,g),g.isLineDashedMaterial&&a(b,g)):g.isPointsMaterial?l(b,g,y,v):g.isSpriteMaterial?u(b,g):g.isShadowMaterial?(b.color.value.copy(g.color),b.opacity.value=g.opacity):g.isShaderMaterial&&(g.uniformsNeedUpdate=!1)}function r(b,g){b.opacity.value=g.opacity,g.color&&b.diffuse.value.copy(g.color),g.emissive&&b.emissive.value.copy(g.emissive).multiplyScalar(g.emissiveIntensity),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.bumpMap&&(b.bumpMap.value=g.bumpMap,t(g.bumpMap,b.bumpMapTransform),b.bumpScale.value=g.bumpScale,g.side===Yn&&(b.bumpScale.value*=-1)),g.normalMap&&(b.normalMap.value=g.normalMap,t(g.normalMap,b.normalMapTransform),b.normalScale.value.copy(g.normalScale),g.side===Yn&&b.normalScale.value.negate()),g.displacementMap&&(b.displacementMap.value=g.displacementMap,t(g.displacementMap,b.displacementMapTransform),b.displacementScale.value=g.displacementScale,b.displacementBias.value=g.displacementBias),g.emissiveMap&&(b.emissiveMap.value=g.emissiveMap,t(g.emissiveMap,b.emissiveMapTransform)),g.specularMap&&(b.specularMap.value=g.specularMap,t(g.specularMap,b.specularMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest);const y=e.get(g).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap){b.lightMap.value=g.lightMap;const v=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=g.lightMapIntensity*v,t(g.lightMap,b.lightMapTransform)}g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,t(g.aoMap,b.aoMapTransform))}function o(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function l(b,g,y,v){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*y,b.scale.value=v*.5,g.map&&(b.map.value=g.map,t(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function u(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function h(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function f(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,t(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,t(g.roughnessMap,b.roughnessMapTransform)),e.get(g).envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function _(b,g,y){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,t(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,t(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,t(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,t(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,t(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Yn&&b.clearcoatNormalScale.value.negate())),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,t(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,t(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,t(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,t(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,t(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,t(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,t(g.specularIntensityMap,b.specularIntensityMapTransform))}function m(b,g){g.matcap&&(b.matcap.value=g.matcap)}function E(b,g){const y=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:s,refreshMaterialUniforms:i}}function PIt(n,e,t,s){let i={},r={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(y,v){const S=v.program;s.uniformBlockBinding(y,S)}function u(y,v){let S=i[y.id];S===void 0&&(m(y),S=d(y),i[y.id]=S,y.addEventListener("dispose",b));const w=v.program;s.updateUBOMapping(y,w);const x=e.render.frame;r[y.id]!==x&&(f(y),r[y.id]=x)}function d(y){const v=h();y.__bindingPointIndex=v;const S=n.createBuffer(),w=y.__size,x=y.usage;return n.bindBuffer(n.UNIFORM_BUFFER,S),n.bufferData(n.UNIFORM_BUFFER,w,x),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,v,S),S}function h(){for(let y=0;y<a;y++)if(o.indexOf(y)===-1)return o.push(y),y;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function f(y){const v=i[y.id],S=y.uniforms,w=y.__cache;n.bindBuffer(n.UNIFORM_BUFFER,v);for(let x=0,A=S.length;x<A;x++){const D=S[x];if(_(D,x,w)===!0){const T=D.__offset,O=Array.isArray(D.value)?D.value:[D.value];let F=0;for(let z=0;z<O.length;z++){const Z=O[z],M=E(Z);typeof Z=="number"?(D.__data[0]=Z,n.bufferSubData(n.UNIFORM_BUFFER,T+F,D.__data)):Z.isMatrix3?(D.__data[0]=Z.elements[0],D.__data[1]=Z.elements[1],D.__data[2]=Z.elements[2],D.__data[3]=Z.elements[0],D.__data[4]=Z.elements[3],D.__data[5]=Z.elements[4],D.__data[6]=Z.elements[5],D.__data[7]=Z.elements[0],D.__data[8]=Z.elements[6],D.__data[9]=Z.elements[7],D.__data[10]=Z.elements[8],D.__data[11]=Z.elements[0]):(Z.toArray(D.__data,F),F+=M.storage/Float32Array.BYTES_PER_ELEMENT)}n.bufferSubData(n.UNIFORM_BUFFER,T,D.__data)}}n.bindBuffer(n.UNIFORM_BUFFER,null)}function _(y,v,S){const w=y.value;if(S[v]===void 0){if(typeof w=="number")S[v]=w;else{const x=Array.isArray(w)?w:[w],A=[];for(let D=0;D<x.length;D++)A.push(x[D].clone());S[v]=A}return!0}else if(typeof w=="number"){if(S[v]!==w)return S[v]=w,!0}else{const x=Array.isArray(S[v])?S[v]:[S[v]],A=Array.isArray(w)?w:[w];for(let D=0;D<x.length;D++){const T=x[D];if(T.equals(A[D])===!1)return T.copy(A[D]),!0}}return!1}function m(y){const v=y.uniforms;let S=0;const w=16;let x=0;for(let A=0,D=v.length;A<D;A++){const T=v[A],O={boundary:0,storage:0},F=Array.isArray(T.value)?T.value:[T.value];for(let z=0,Z=F.length;z<Z;z++){const M=F[z],q=E(M);O.boundary+=q.boundary,O.storage+=q.storage}if(T.__data=new Float32Array(O.storage/Float32Array.BYTES_PER_ELEMENT),T.__offset=S,A>0){x=S%w;const z=w-x;x!==0&&z-O.boundary<0&&(S+=w-x,T.__offset=S)}S+=O.storage}return x=S%w,x>0&&(S+=w-x),y.__size=S,y.__cache={},this}function E(y){const v={boundary:0,storage:0};return typeof y=="number"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function b(y){const v=y.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),n.deleteBuffer(i[v.id]),delete i[v.id],delete r[v.id]}function g(){for(const y in i)n.deleteBuffer(i[y]);o=[],i={},r={}}return{bind:l,update:u,dispose:g}}class OO{constructor(e={}){const{canvas:t=Dwt(),context:s=null,depth:i=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;s!==null?f=s.getContextAttributes().alpha:f=o;const _=new Uint32Array(4),m=new Int32Array(4);let E=null,b=null;const g=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=en,this._useLegacyLights=!1,this.toneMapping=lr,this.toneMappingExposure=1;const v=this;let S=!1,w=0,x=0,A=null,D=-1,T=null;const O=new Yt,F=new Yt;let z=null;const Z=new ut(0);let M=0,q=t.width,H=t.height,P=1,$=null,J=null;const re=new Yt(0,0,q,H),me=new Yt(0,0,q,H);let Se=!1;const le=new AE;let Ee=!1,Oe=!1,Me=null;const j=new xt,pe=new Rt,ue=new ie,Ce={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function ke(){return A===null?P:1}let N=s;function V(U,ce){for(let be=0;be<U.length;be++){const ve=U[be],fe=t.getContext(ve,ce);if(fe!==null)return fe}return null}try{const U={alpha:!0,depth:i,stencil:r,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:u,powerPreference:d,failIfMajorPerformanceCaveat:h};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${SE}`),t.addEventListener("webglcontextlost",Et,!1),t.addEventListener("webglcontextrestored",X,!1),t.addEventListener("webglcontextcreationerror",je,!1),N===null){const ce=["webgl2","webgl","experimental-webgl"];if(v.isWebGL1Renderer===!0&&ce.shift(),N=V(ce,U),N===null)throw V(ce)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}typeof WebGLRenderingContext<"u"&&N instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163."),N.getShaderPrecisionFormat===void 0&&(N.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(U){throw console.error("THREE.WebGLRenderer: "+U.message),U}let Y,oe,ne,Te,Ae,te,we,ge,De,k,I,W,ye,K,ee,Re,xe,Le,Ze,ht,Pe,ct,tt,Ye;function et(){Y=new WNt(N),oe=new VNt(N,Y,e),Y.init(oe),ct=new IIt(N,Y,oe),ne=new NIt(N,Y,oe),Te=new QNt(N),Ae=new fIt,te=new OIt(N,Y,ne,Ae,oe,ct,Te),we=new HNt(v),ge=new $Nt(v),De=new iRt(N,oe),tt=new BNt(N,Y,De,oe),k=new KNt(N,De,Te,tt),I=new eOt(N,k,De,Te),Ze=new JNt(N,oe,te),Re=new zNt(Ae),W=new hIt(v,we,ge,Y,oe,tt,Re),ye=new LIt(v,Ae),K=new gIt,ee=new TIt(Y,oe),Le=new FNt(v,we,ge,ne,I,f,l),xe=new AIt(v,I,oe),Ye=new PIt(N,Te,oe,ne),ht=new GNt(N,Y,Te,oe),Pe=new jNt(N,Y,Te,oe),Te.programs=W.programs,v.capabilities=oe,v.extensions=Y,v.properties=Ae,v.renderLists=K,v.shadowMap=xe,v.state=ne,v.info=Te}et();const We=new kIt(v,N);this.xr=We,this.getContext=function(){return N},this.getContextAttributes=function(){return N.getContextAttributes()},this.forceContextLoss=function(){const U=Y.get("WEBGL_lose_context");U&&U.loseContext()},this.forceContextRestore=function(){const U=Y.get("WEBGL_lose_context");U&&U.restoreContext()},this.getPixelRatio=function(){return P},this.setPixelRatio=function(U){U!==void 0&&(P=U,this.setSize(q,H,!1))},this.getSize=function(U){return U.set(q,H)},this.setSize=function(U,ce,be=!0){if(We.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}q=U,H=ce,t.width=Math.floor(U*P),t.height=Math.floor(ce*P),be===!0&&(t.style.width=U+"px",t.style.height=ce+"px"),this.setViewport(0,0,U,ce)},this.getDrawingBufferSize=function(U){return U.set(q*P,H*P).floor()},this.setDrawingBufferSize=function(U,ce,be){q=U,H=ce,P=be,t.width=Math.floor(U*be),t.height=Math.floor(ce*be),this.setViewport(0,0,U,ce)},this.getCurrentViewport=function(U){return U.copy(O)},this.getViewport=function(U){return U.copy(re)},this.setViewport=function(U,ce,be,ve){U.isVector4?re.set(U.x,U.y,U.z,U.w):re.set(U,ce,be,ve),ne.viewport(O.copy(re).multiplyScalar(P).floor())},this.getScissor=function(U){return U.copy(me)},this.setScissor=function(U,ce,be,ve){U.isVector4?me.set(U.x,U.y,U.z,U.w):me.set(U,ce,be,ve),ne.scissor(F.copy(me).multiplyScalar(P).floor())},this.getScissorTest=function(){return Se},this.setScissorTest=function(U){ne.setScissorTest(Se=U)},this.setOpaqueSort=function(U){$=U},this.setTransparentSort=function(U){J=U},this.getClearColor=function(U){return U.copy(Le.getClearColor())},this.setClearColor=function(){Le.setClearColor.apply(Le,arguments)},this.getClearAlpha=function(){return Le.getClearAlpha()},this.setClearAlpha=function(){Le.setClearAlpha.apply(Le,arguments)},this.clear=function(U=!0,ce=!0,be=!0){let ve=0;if(U){let fe=!1;if(A!==null){const Qe=A.texture.format;fe=Qe===aO||Qe===oO||Qe===rO}if(fe){const Qe=A.texture.type,nt=Qe===cr||Qe===sr||Qe===xE||Qe===Hr||Qe===sO||Qe===iO,rt=Le.getClearColor(),at=Le.getClearAlpha(),bt=rt.r,_t=rt.g,ft=rt.b;nt?(_[0]=bt,_[1]=_t,_[2]=ft,_[3]=at,N.clearBufferuiv(N.COLOR,0,_)):(m[0]=bt,m[1]=_t,m[2]=ft,m[3]=at,N.clearBufferiv(N.COLOR,0,m))}else ve|=N.COLOR_BUFFER_BIT}ce&&(ve|=N.DEPTH_BUFFER_BIT),be&&(ve|=N.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),N.clear(ve)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",Et,!1),t.removeEventListener("webglcontextrestored",X,!1),t.removeEventListener("webglcontextcreationerror",je,!1),K.dispose(),ee.dispose(),Ae.dispose(),we.dispose(),ge.dispose(),I.dispose(),tt.dispose(),Ye.dispose(),W.dispose(),We.dispose(),We.removeEventListener("sessionstart",bn),We.removeEventListener("sessionend",Gt),Me&&(Me.dispose(),Me=null),En.stop()};function Et(U){U.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),S=!0}function X(){console.log("THREE.WebGLRenderer: Context Restored."),S=!1;const U=Te.autoReset,ce=xe.enabled,be=xe.autoUpdate,ve=xe.needsUpdate,fe=xe.type;et(),Te.autoReset=U,xe.enabled=ce,xe.autoUpdate=be,xe.needsUpdate=ve,xe.type=fe}function je(U){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",U.statusMessage)}function Be(U){const ce=U.target;ce.removeEventListener("dispose",Be),Ne(ce)}function Ne(U){Ve(U),Ae.remove(U)}function Ve(U){const ce=Ae.get(U).programs;ce!==void 0&&(ce.forEach(function(be){W.releaseProgram(be)}),U.isShaderMaterial&&W.releaseShaderCache(U))}this.renderBufferDirect=function(U,ce,be,ve,fe,Qe){ce===null&&(ce=Ce);const nt=fe.isMesh&&fe.matrixWorld.determinant()<0,rt=Xu(U,ce,be,ve,fe);ne.setMaterial(ve,nt);let at=be.index,bt=1;if(ve.wireframe===!0){if(at=k.getWireframeAttribute(be),at===void 0)return;bt=2}const _t=be.drawRange,ft=be.attributes.position;let Zt=_t.start*bt,Mn=(_t.start+_t.count)*bt;Qe!==null&&(Zt=Math.max(Zt,Qe.start*bt),Mn=Math.min(Mn,(Qe.start+Qe.count)*bt)),at!==null?(Zt=Math.max(Zt,0),Mn=Math.min(Mn,at.count)):ft!=null&&(Zt=Math.max(Zt,0),Mn=Math.min(Mn,ft.count));const rn=Mn-Zt;if(rn<0||rn===1/0)return;tt.setup(fe,ve,rt,be,at);let vs,$t=ht;if(at!==null&&(vs=De.get(at),$t=Pe,$t.setIndex(vs)),fe.isMesh)ve.wireframe===!0?(ne.setLineWidth(ve.wireframeLinewidth*ke()),$t.setMode(N.LINES)):$t.setMode(N.TRIANGLES);else if(fe.isLine){let yt=ve.linewidth;yt===void 0&&(yt=1),ne.setLineWidth(yt*ke()),fe.isLineSegments?$t.setMode(N.LINES):fe.isLineLoop?$t.setMode(N.LINE_LOOP):$t.setMode(N.LINE_STRIP)}else fe.isPoints?$t.setMode(N.POINTS):fe.isSprite&&$t.setMode(N.TRIANGLES);if(fe.isBatchedMesh)$t.renderMultiDraw(fe._multiDrawStarts,fe._multiDrawCounts,fe._multiDrawCount);else if(fe.isInstancedMesh)$t.renderInstances(Zt,rn,fe.count);else if(be.isInstancedBufferGeometry){const yt=be._maxInstanceCount!==void 0?be._maxInstanceCount:1/0,Fa=Math.min(be.instanceCount,yt);$t.renderInstances(Zt,rn,Fa)}else $t.render(Zt,rn)};function ot(U,ce,be){U.transparent===!0&&U.side===qs&&U.forceSinglePass===!1?(U.side=Yn,U.needsUpdate=!0,ao(U,ce,be),U.side=Oi,U.needsUpdate=!0,ao(U,ce,be),U.side=qs):ao(U,ce,be)}this.compile=function(U,ce,be=null){be===null&&(be=U),b=ee.get(be),b.init(),y.push(b),be.traverseVisible(function(fe){fe.isLight&&fe.layers.test(ce.layers)&&(b.pushLight(fe),fe.castShadow&&b.pushShadow(fe))}),U!==be&&U.traverseVisible(function(fe){fe.isLight&&fe.layers.test(ce.layers)&&(b.pushLight(fe),fe.castShadow&&b.pushShadow(fe))}),b.setupLights(v._useLegacyLights);const ve=new Set;return U.traverse(function(fe){const Qe=fe.material;if(Qe)if(Array.isArray(Qe))for(let nt=0;nt<Qe.length;nt++){const rt=Qe[nt];ot(rt,be,fe),ve.add(rt)}else ot(Qe,be,fe),ve.add(Qe)}),y.pop(),b=null,ve},this.compileAsync=function(U,ce,be=null){const ve=this.compile(U,ce,be);return new Promise(fe=>{function Qe(){if(ve.forEach(function(nt){Ae.get(nt).currentProgram.isReady()&&ve.delete(nt)}),ve.size===0){fe(U);return}setTimeout(Qe,10)}Y.get("KHR_parallel_shader_compile")!==null?Qe():setTimeout(Qe,10)})};let Nt=null;function sn(U){Nt&&Nt(U)}function bn(){En.stop()}function Gt(){En.start()}const En=new TO;En.setAnimationLoop(sn),typeof self<"u"&&En.setContext(self),this.setAnimationLoop=function(U){Nt=U,We.setAnimationLoop(U),U===null?En.stop():En.start()},We.addEventListener("sessionstart",bn),We.addEventListener("sessionend",Gt),this.render=function(U,ce){if(ce!==void 0&&ce.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;U.matrixWorldAutoUpdate===!0&&U.updateMatrixWorld(),ce.parent===null&&ce.matrixWorldAutoUpdate===!0&&ce.updateMatrixWorld(),We.enabled===!0&&We.isPresenting===!0&&(We.cameraAutoUpdate===!0&&We.updateCamera(ce),ce=We.getCamera()),U.isScene===!0&&U.onBeforeRender(v,U,ce,A),b=ee.get(U,y.length),b.init(),y.push(b),j.multiplyMatrices(ce.projectionMatrix,ce.matrixWorldInverse),le.setFromProjectionMatrix(j),Oe=this.localClippingEnabled,Ee=Re.init(this.clippingPlanes,Oe),E=K.get(U,g.length),E.init(),g.push(E),ts(U,ce,0,v.sortObjects),E.finish(),v.sortObjects===!0&&E.sort($,J),this.info.render.frame++,Ee===!0&&Re.beginShadows();const be=b.state.shadowsArray;if(xe.render(be,U,ce),Ee===!0&&Re.endShadows(),this.info.autoReset===!0&&this.info.reset(),Le.render(E,U),b.setupLights(v._useLegacyLights),ce.isArrayCamera){const ve=ce.cameras;for(let fe=0,Qe=ve.length;fe<Qe;fe++){const nt=ve[fe];sc(E,U,nt,nt.viewport)}}else sc(E,U,ce);A!==null&&(te.updateMultisampleRenderTarget(A),te.updateRenderTargetMipmap(A)),U.isScene===!0&&U.onAfterRender(v,U,ce),tt.resetDefaultState(),D=-1,T=null,y.pop(),y.length>0?b=y[y.length-1]:b=null,g.pop(),g.length>0?E=g[g.length-1]:E=null};function ts(U,ce,be,ve){if(U.visible===!1)return;if(U.layers.test(ce.layers)){if(U.isGroup)be=U.renderOrder;else if(U.isLOD)U.autoUpdate===!0&&U.update(ce);else if(U.isLight)b.pushLight(U),U.castShadow&&b.pushShadow(U);else if(U.isSprite){if(!U.frustumCulled||le.intersectsSprite(U)){ve&&ue.setFromMatrixPosition(U.matrixWorld).applyMatrix4(j);const nt=I.update(U),rt=U.material;rt.visible&&E.push(U,nt,rt,be,ue.z,null)}}else if((U.isMesh||U.isLine||U.isPoints)&&(!U.frustumCulled||le.intersectsObject(U))){const nt=I.update(U),rt=U.material;if(ve&&(U.boundingSphere!==void 0?(U.boundingSphere===null&&U.computeBoundingSphere(),ue.copy(U.boundingSphere.center)):(nt.boundingSphere===null&&nt.computeBoundingSphere(),ue.copy(nt.boundingSphere.center)),ue.applyMatrix4(U.matrixWorld).applyMatrix4(j)),Array.isArray(rt)){const at=nt.groups;for(let bt=0,_t=at.length;bt<_t;bt++){const ft=at[bt],Zt=rt[ft.materialIndex];Zt&&Zt.visible&&E.push(U,nt,Zt,be,ue.z,ft)}}else rt.visible&&E.push(U,nt,rt,be,ue.z,null)}}const Qe=U.children;for(let nt=0,rt=Qe.length;nt<rt;nt++)ts(Qe[nt],ce,be,ve)}function sc(U,ce,be,ve){const fe=U.opaque,Qe=U.transmissive,nt=U.transparent;b.setupLightsView(be),Ee===!0&&Re.setGlobalState(v.clippingPlanes,be),Qe.length>0&&Qu(fe,Qe,ce,be),ve&&ne.viewport(O.copy(ve)),fe.length>0&&oo(fe,ce,be),Qe.length>0&&oo(Qe,ce,be),nt.length>0&&oo(nt,ce,be),ne.buffers.depth.setTest(!0),ne.buffers.depth.setMask(!0),ne.buffers.color.setMask(!0),ne.setPolygonOffset(!1)}function Qu(U,ce,be,ve){if((be.isScene===!0?be.overrideMaterial:null)!==null)return;const Qe=oe.isWebGL2;Me===null&&(Me=new Zr(1,1,{generateMipmaps:!0,type:Y.has("EXT_color_buffer_half_float")?Fl:cr,minFilter:Xr,samples:Qe?4:0})),v.getDrawingBufferSize(pe),Qe?Me.setSize(pe.x,pe.y):Me.setSize(Zd(pe.x),Zd(pe.y));const nt=v.getRenderTarget();v.setRenderTarget(Me),v.getClearColor(Z),M=v.getClearAlpha(),M<1&&v.setClearColor(16777215,.5),v.clear();const rt=v.toneMapping;v.toneMapping=lr,oo(U,be,ve),te.updateMultisampleRenderTarget(Me),te.updateRenderTargetMipmap(Me);let at=!1;for(let bt=0,_t=ce.length;bt<_t;bt++){const ft=ce[bt],Zt=ft.object,Mn=ft.geometry,rn=ft.material,vs=ft.group;if(rn.side===qs&&Zt.layers.test(ve.layers)){const $t=rn.side;rn.side=Yn,rn.needsUpdate=!0,ic(Zt,be,ve,Mn,rn,vs),rn.side=$t,rn.needsUpdate=!0,at=!0}}at===!0&&(te.updateMultisampleRenderTarget(Me),te.updateRenderTargetMipmap(Me)),v.setRenderTarget(nt),v.setClearColor(Z,M),v.toneMapping=rt}function oo(U,ce,be){const ve=ce.isScene===!0?ce.overrideMaterial:null;for(let fe=0,Qe=U.length;fe<Qe;fe++){const nt=U[fe],rt=nt.object,at=nt.geometry,bt=ve===null?nt.material:ve,_t=nt.group;rt.layers.test(be.layers)&&ic(rt,ce,be,at,bt,_t)}}function ic(U,ce,be,ve,fe,Qe){U.onBeforeRender(v,ce,be,ve,fe,Qe),U.modelViewMatrix.multiplyMatrices(be.matrixWorldInverse,U.matrixWorld),U.normalMatrix.getNormalMatrix(U.modelViewMatrix),fe.onBeforeRender(v,ce,be,ve,U,Qe),fe.transparent===!0&&fe.side===qs&&fe.forceSinglePass===!1?(fe.side=Yn,fe.needsUpdate=!0,v.renderBufferDirect(be,ce,ve,fe,U,Qe),fe.side=Oi,fe.needsUpdate=!0,v.renderBufferDirect(be,ce,ve,fe,U,Qe),fe.side=qs):v.renderBufferDirect(be,ce,ve,fe,U,Qe),U.onAfterRender(v,ce,be,ve,fe,Qe)}function ao(U,ce,be){ce.isScene!==!0&&(ce=Ce);const ve=Ae.get(U),fe=b.state.lights,Qe=b.state.shadowsArray,nt=fe.state.version,rt=W.getParameters(U,fe.state,Qe,ce,be),at=W.getProgramCacheKey(rt);let bt=ve.programs;ve.environment=U.isMeshStandardMaterial?ce.environment:null,ve.fog=ce.fog,ve.envMap=(U.isMeshStandardMaterial?ge:we).get(U.envMap||ve.environment),bt===void 0&&(U.addEventListener("dispose",Be),bt=new Map,ve.programs=bt);let _t=bt.get(at);if(_t!==void 0){if(ve.currentProgram===_t&&ve.lightsStateVersion===nt)return oc(U,rt),_t}else rt.uniforms=W.getUniforms(U),U.onBuild(be,rt,v),U.onBeforeCompile(rt,v),_t=W.acquireProgram(rt,at),bt.set(at,_t),ve.uniforms=rt.uniforms;const ft=ve.uniforms;return(!U.isShaderMaterial&&!U.isRawShaderMaterial||U.clipping===!0)&&(ft.clippingPlanes=Re.uniform),oc(U,rt),ve.needsLights=Ju(U),ve.lightsStateVersion=nt,ve.needsLights&&(ft.ambientLightColor.value=fe.state.ambient,ft.lightProbe.value=fe.state.probe,ft.directionalLights.value=fe.state.directional,ft.directionalLightShadows.value=fe.state.directionalShadow,ft.spotLights.value=fe.state.spot,ft.spotLightShadows.value=fe.state.spotShadow,ft.rectAreaLights.value=fe.state.rectArea,ft.ltc_1.value=fe.state.rectAreaLTC1,ft.ltc_2.value=fe.state.rectAreaLTC2,ft.pointLights.value=fe.state.point,ft.pointLightShadows.value=fe.state.pointShadow,ft.hemisphereLights.value=fe.state.hemi,ft.directionalShadowMap.value=fe.state.directionalShadowMap,ft.directionalShadowMatrix.value=fe.state.directionalShadowMatrix,ft.spotShadowMap.value=fe.state.spotShadowMap,ft.spotLightMatrix.value=fe.state.spotLightMatrix,ft.spotLightMap.value=fe.state.spotLightMap,ft.pointShadowMap.value=fe.state.pointShadowMap,ft.pointShadowMatrix.value=fe.state.pointShadowMatrix),ve.currentProgram=_t,ve.uniformsList=null,_t}function rc(U){if(U.uniformsList===null){const ce=U.currentProgram.getUniforms();U.uniformsList=Ed.seqWithValue(ce.seq,U.uniforms)}return U.uniformsList}function oc(U,ce){const be=Ae.get(U);be.outputColorSpace=ce.outputColorSpace,be.batching=ce.batching,be.instancing=ce.instancing,be.instancingColor=ce.instancingColor,be.skinning=ce.skinning,be.morphTargets=ce.morphTargets,be.morphNormals=ce.morphNormals,be.morphColors=ce.morphColors,be.morphTargetsCount=ce.morphTargetsCount,be.numClippingPlanes=ce.numClippingPlanes,be.numIntersection=ce.numClipIntersection,be.vertexAlphas=ce.vertexAlphas,be.vertexTangents=ce.vertexTangents,be.toneMapping=ce.toneMapping}function Xu(U,ce,be,ve,fe){ce.isScene!==!0&&(ce=Ce),te.resetTextureUnits();const Qe=ce.fog,nt=ve.isMeshStandardMaterial?ce.environment:null,rt=A===null?v.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:Cn,at=(ve.isMeshStandardMaterial?ge:we).get(ve.envMap||nt),bt=ve.vertexColors===!0&&!!be.attributes.color&&be.attributes.color.itemSize===4,_t=!!be.attributes.tangent&&(!!ve.normalMap||ve.anisotropy>0),ft=!!be.morphAttributes.position,Zt=!!be.morphAttributes.normal,Mn=!!be.morphAttributes.color;let rn=lr;ve.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(rn=v.toneMapping);const vs=be.morphAttributes.position||be.morphAttributes.normal||be.morphAttributes.color,$t=vs!==void 0?vs.length:0,yt=Ae.get(ve),Fa=b.state.lights;if(Ee===!0&&(Oe===!0||U!==T)){const Gn=U===T&&ve.id===D;Re.setState(ve,U,Gn)}let Qt=!1;ve.version===yt.__version?(yt.needsLights&&yt.lightsStateVersion!==Fa.state.version||yt.outputColorSpace!==rt||fe.isBatchedMesh&&yt.batching===!1||!fe.isBatchedMesh&&yt.batching===!0||fe.isInstancedMesh&&yt.instancing===!1||!fe.isInstancedMesh&&yt.instancing===!0||fe.isSkinnedMesh&&yt.skinning===!1||!fe.isSkinnedMesh&&yt.skinning===!0||fe.isInstancedMesh&&yt.instancingColor===!0&&fe.instanceColor===null||fe.isInstancedMesh&&yt.instancingColor===!1&&fe.instanceColor!==null||yt.envMap!==at||ve.fog===!0&&yt.fog!==Qe||yt.numClippingPlanes!==void 0&&(yt.numClippingPlanes!==Re.numPlanes||yt.numIntersection!==Re.numIntersection)||yt.vertexAlphas!==bt||yt.vertexTangents!==_t||yt.morphTargets!==ft||yt.morphNormals!==Zt||yt.morphColors!==Mn||yt.toneMapping!==rn||oe.isWebGL2===!0&&yt.morphTargetsCount!==$t)&&(Qt=!0):(Qt=!0,yt.__version=ve.version);let ai=yt.currentProgram;Qt===!0&&(ai=ao(ve,ce,fe));let ac=!1,gr=!1,Ba=!1;const hn=ai.getUniforms(),li=yt.uniforms;if(ne.useProgram(ai.program)&&(ac=!0,gr=!0,Ba=!0),ve.id!==D&&(D=ve.id,gr=!0),ac||T!==U){hn.setValue(N,"projectionMatrix",U.projectionMatrix),hn.setValue(N,"viewMatrix",U.matrixWorldInverse);const Gn=hn.map.cameraPosition;Gn!==void 0&&Gn.setValue(N,ue.setFromMatrixPosition(U.matrixWorld)),oe.logarithmicDepthBuffer&&hn.setValue(N,"logDepthBufFC",2/(Math.log(U.far+1)/Math.LN2)),(ve.isMeshPhongMaterial||ve.isMeshToonMaterial||ve.isMeshLambertMaterial||ve.isMeshBasicMaterial||ve.isMeshStandardMaterial||ve.isShaderMaterial)&&hn.setValue(N,"isOrthographic",U.isOrthographicCamera===!0),T!==U&&(T=U,gr=!0,Ba=!0)}if(fe.isSkinnedMesh){hn.setOptional(N,fe,"bindMatrix"),hn.setOptional(N,fe,"bindMatrixInverse");const Gn=fe.skeleton;Gn&&(oe.floatVertexTextures?(Gn.boneTexture===null&&Gn.computeBoneTexture(),hn.setValue(N,"boneTexture",Gn.boneTexture,te)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}fe.isBatchedMesh&&(hn.setOptional(N,fe,"batchingTexture"),hn.setValue(N,"batchingTexture",fe._matricesTexture,te));const Ga=be.morphAttributes;if((Ga.position!==void 0||Ga.normal!==void 0||Ga.color!==void 0&&oe.isWebGL2===!0)&&Ze.update(fe,be,ai),(gr||yt.receiveShadow!==fe.receiveShadow)&&(yt.receiveShadow=fe.receiveShadow,hn.setValue(N,"receiveShadow",fe.receiveShadow)),ve.isMeshGouraudMaterial&&ve.envMap!==null&&(li.envMap.value=at,li.flipEnvMap.value=at.isCubeTexture&&at.isRenderTargetTexture===!1?-1:1),gr&&(hn.setValue(N,"toneMappingExposure",v.toneMappingExposure),yt.needsLights&&Zu(li,Ba),Qe&&ve.fog===!0&&ye.refreshFogUniforms(li,Qe),ye.refreshMaterialUniforms(li,ve,P,H,Me),Ed.upload(N,rc(yt),li,te)),ve.isShaderMaterial&&ve.uniformsNeedUpdate===!0&&(Ed.upload(N,rc(yt),li,te),ve.uniformsNeedUpdate=!1),ve.isSpriteMaterial&&hn.setValue(N,"center",fe.center),hn.setValue(N,"modelViewMatrix",fe.modelViewMatrix),hn.setValue(N,"normalMatrix",fe.normalMatrix),hn.setValue(N,"modelMatrix",fe.matrixWorld),ve.isShaderMaterial||ve.isRawShaderMaterial){const Gn=ve.uniformsGroups;for(let Va=0,ep=Gn.length;Va<ep;Va++)if(oe.isWebGL2){const lc=Gn[Va];Ye.update(lc,ai),Ye.bind(lc,ai)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return ai}function Zu(U,ce){U.ambientLightColor.needsUpdate=ce,U.lightProbe.needsUpdate=ce,U.directionalLights.needsUpdate=ce,U.directionalLightShadows.needsUpdate=ce,U.pointLights.needsUpdate=ce,U.pointLightShadows.needsUpdate=ce,U.spotLights.needsUpdate=ce,U.spotLightShadows.needsUpdate=ce,U.rectAreaLights.needsUpdate=ce,U.hemisphereLights.needsUpdate=ce}function Ju(U){return U.isMeshLambertMaterial||U.isMeshToonMaterial||U.isMeshPhongMaterial||U.isMeshStandardMaterial||U.isShadowMaterial||U.isShaderMaterial&&U.lights===!0}this.getActiveCubeFace=function(){return w},this.getActiveMipmapLevel=function(){return x},this.getRenderTarget=function(){return A},this.setRenderTargetTextures=function(U,ce,be){Ae.get(U.texture).__webglTexture=ce,Ae.get(U.depthTexture).__webglTexture=be;const ve=Ae.get(U);ve.__hasExternalTextures=!0,ve.__hasExternalTextures&&(ve.__autoAllocateDepthBuffer=be===void 0,ve.__autoAllocateDepthBuffer||Y.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),ve.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(U,ce){const be=Ae.get(U);be.__webglFramebuffer=ce,be.__useDefaultFramebuffer=ce===void 0},this.setRenderTarget=function(U,ce=0,be=0){A=U,w=ce,x=be;let ve=!0,fe=null,Qe=!1,nt=!1;if(U){const at=Ae.get(U);at.__useDefaultFramebuffer!==void 0?(ne.bindFramebuffer(N.FRAMEBUFFER,null),ve=!1):at.__webglFramebuffer===void 0?te.setupRenderTarget(U):at.__hasExternalTextures&&te.rebindTextures(U,Ae.get(U.texture).__webglTexture,Ae.get(U.depthTexture).__webglTexture);const bt=U.texture;(bt.isData3DTexture||bt.isDataArrayTexture||bt.isCompressedArrayTexture)&&(nt=!0);const _t=Ae.get(U).__webglFramebuffer;U.isWebGLCubeRenderTarget?(Array.isArray(_t[ce])?fe=_t[ce][be]:fe=_t[ce],Qe=!0):oe.isWebGL2&&U.samples>0&&te.useMultisampledRTT(U)===!1?fe=Ae.get(U).__webglMultisampledFramebuffer:Array.isArray(_t)?fe=_t[be]:fe=_t,O.copy(U.viewport),F.copy(U.scissor),z=U.scissorTest}else O.copy(re).multiplyScalar(P).floor(),F.copy(me).multiplyScalar(P).floor(),z=Se;if(ne.bindFramebuffer(N.FRAMEBUFFER,fe)&&oe.drawBuffers&&ve&&ne.drawBuffers(U,fe),ne.viewport(O),ne.scissor(F),ne.setScissorTest(z),Qe){const at=Ae.get(U.texture);N.framebufferTexture2D(N.FRAMEBUFFER,N.COLOR_ATTACHMENT0,N.TEXTURE_CUBE_MAP_POSITIVE_X+ce,at.__webglTexture,be)}else if(nt){const at=Ae.get(U.texture),bt=ce||0;N.framebufferTextureLayer(N.FRAMEBUFFER,N.COLOR_ATTACHMENT0,at.__webglTexture,be||0,bt)}D=-1},this.readRenderTargetPixels=function(U,ce,be,ve,fe,Qe,nt){if(!(U&&U.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let rt=Ae.get(U).__webglFramebuffer;if(U.isWebGLCubeRenderTarget&&nt!==void 0&&(rt=rt[nt]),rt){ne.bindFramebuffer(N.FRAMEBUFFER,rt);try{const at=U.texture,bt=at.format,_t=at.type;if(bt!==ls&&ct.convert(bt)!==N.getParameter(N.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const ft=_t===Fl&&(Y.has("EXT_color_buffer_half_float")||oe.isWebGL2&&Y.has("EXT_color_buffer_float"));if(_t!==cr&&ct.convert(_t)!==N.getParameter(N.IMPLEMENTATION_COLOR_READ_TYPE)&&!(_t===vi&&(oe.isWebGL2||Y.has("OES_texture_float")||Y.has("WEBGL_color_buffer_float")))&&!ft){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ce>=0&&ce<=U.width-ve&&be>=0&&be<=U.height-fe&&N.readPixels(ce,be,ve,fe,ct.convert(bt),ct.convert(_t),Qe)}finally{const at=A!==null?Ae.get(A).__webglFramebuffer:null;ne.bindFramebuffer(N.FRAMEBUFFER,at)}}},this.copyFramebufferToTexture=function(U,ce,be=0){const ve=Math.pow(2,-be),fe=Math.floor(ce.image.width*ve),Qe=Math.floor(ce.image.height*ve);te.setTexture2D(ce,0),N.copyTexSubImage2D(N.TEXTURE_2D,be,0,0,U.x,U.y,fe,Qe),ne.unbindTexture()},this.copyTextureToTexture=function(U,ce,be,ve=0){const fe=ce.image.width,Qe=ce.image.height,nt=ct.convert(be.format),rt=ct.convert(be.type);te.setTexture2D(be,0),N.pixelStorei(N.UNPACK_FLIP_Y_WEBGL,be.flipY),N.pixelStorei(N.UNPACK_PREMULTIPLY_ALPHA_WEBGL,be.premultiplyAlpha),N.pixelStorei(N.UNPACK_ALIGNMENT,be.unpackAlignment),ce.isDataTexture?N.texSubImage2D(N.TEXTURE_2D,ve,U.x,U.y,fe,Qe,nt,rt,ce.image.data):ce.isCompressedTexture?N.compressedTexSubImage2D(N.TEXTURE_2D,ve,U.x,U.y,ce.mipmaps[0].width,ce.mipmaps[0].height,nt,ce.mipmaps[0].data):N.texSubImage2D(N.TEXTURE_2D,ve,U.x,U.y,nt,rt,ce.image),ve===0&&be.generateMipmaps&&N.generateMipmap(N.TEXTURE_2D),ne.unbindTexture()},this.copyTextureToTexture3D=function(U,ce,be,ve,fe=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Qe=U.max.x-U.min.x+1,nt=U.max.y-U.min.y+1,rt=U.max.z-U.min.z+1,at=ct.convert(ve.format),bt=ct.convert(ve.type);let _t;if(ve.isData3DTexture)te.setTexture3D(ve,0),_t=N.TEXTURE_3D;else if(ve.isDataArrayTexture)te.setTexture2DArray(ve,0),_t=N.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}N.pixelStorei(N.UNPACK_FLIP_Y_WEBGL,ve.flipY),N.pixelStorei(N.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ve.premultiplyAlpha),N.pixelStorei(N.UNPACK_ALIGNMENT,ve.unpackAlignment);const ft=N.getParameter(N.UNPACK_ROW_LENGTH),Zt=N.getParameter(N.UNPACK_IMAGE_HEIGHT),Mn=N.getParameter(N.UNPACK_SKIP_PIXELS),rn=N.getParameter(N.UNPACK_SKIP_ROWS),vs=N.getParameter(N.UNPACK_SKIP_IMAGES),$t=be.isCompressedTexture?be.mipmaps[0]:be.image;N.pixelStorei(N.UNPACK_ROW_LENGTH,$t.width),N.pixelStorei(N.UNPACK_IMAGE_HEIGHT,$t.height),N.pixelStorei(N.UNPACK_SKIP_PIXELS,U.min.x),N.pixelStorei(N.UNPACK_SKIP_ROWS,U.min.y),N.pixelStorei(N.UNPACK_SKIP_IMAGES,U.min.z),be.isDataTexture||be.isData3DTexture?N.texSubImage3D(_t,fe,ce.x,ce.y,ce.z,Qe,nt,rt,at,bt,$t.data):be.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),N.compressedTexSubImage3D(_t,fe,ce.x,ce.y,ce.z,Qe,nt,rt,at,$t.data)):N.texSubImage3D(_t,fe,ce.x,ce.y,ce.z,Qe,nt,rt,at,bt,$t),N.pixelStorei(N.UNPACK_ROW_LENGTH,ft),N.pixelStorei(N.UNPACK_IMAGE_HEIGHT,Zt),N.pixelStorei(N.UNPACK_SKIP_PIXELS,Mn),N.pixelStorei(N.UNPACK_SKIP_ROWS,rn),N.pixelStorei(N.UNPACK_SKIP_IMAGES,vs),fe===0&&ve.generateMipmaps&&N.generateMipmap(_t),ne.unbindTexture()},this.initTexture=function(U){U.isCubeTexture?te.setTextureCube(U,0):U.isData3DTexture?te.setTexture3D(U,0):U.isDataArrayTexture||U.isCompressedArrayTexture?te.setTexture2DArray(U,0):te.setTexture2D(U,0),ne.unbindTexture()},this.resetState=function(){w=0,x=0,A=null,ne.reset(),tt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Si}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===wE?"display-p3":"srgb",t.unpackColorSpace=Ut.workingColorSpace===Hu?"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===en?Yr:dO}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===Yr?en: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 UIt extends OO{}UIt.prototype.isWebGL1Renderer=!0;class FIt 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 BIt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=Gg,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Ds()}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 i=0,r=this.stride;i<r;i++)this.array[e+i]=t.array[s+i];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Ds()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),s=new this.constructor(t,this.stride);return s.setUsage(this.usage),s}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Ds()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const Dn=new ie;class ME{constructor(e,t,s,i=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=s,this.normalized=i}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,s=this.data.count;t<s;t++)Dn.fromBufferAttribute(this,t),Dn.applyMatrix4(e),this.setXYZ(t,Dn.x,Dn.y,Dn.z);return this}applyNormalMatrix(e){for(let t=0,s=this.count;t<s;t++)Dn.fromBufferAttribute(this,t),Dn.applyNormalMatrix(e),this.setXYZ(t,Dn.x,Dn.y,Dn.z);return this}transformDirection(e){for(let t=0,s=this.count;t<s;t++)Dn.fromBufferAttribute(this,t),Dn.transformDirection(e),this.setXYZ(t,Dn.x,Dn.y,Dn.z);return this}setX(e,t){return this.normalized&&(t=Vt(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=Vt(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=Vt(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=Vt(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=Ys(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=Ys(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=Ys(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=Ys(t,this.array)),t}setXY(e,t,s){return e=e*this.data.stride+this.offset,this.normalized&&(t=Vt(t,this.array),s=Vt(s,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=s,this}setXYZ(e,t,s,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=Vt(t,this.array),s=Vt(s,this.array),i=Vt(i,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=s,this.data.array[e+2]=i,this}setXYZW(e,t,s,i,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=Vt(t,this.array),s=Vt(s,this.array),i=Vt(i,this.array),r=Vt(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=s,this.data.array[e+2]=i,this.data.array[e+3]=r,this}clone(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const t=[];for(let s=0;s<this.count;s++){const i=s*this.data.stride+this.offset;for(let r=0;r<this.itemSize;r++)t.push(this.data.array[i+r])}return new Bn(new this.array.constructor(t),this.itemSize,this.normalized)}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new ME(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const t=[];for(let s=0;s<this.count;s++){const i=s*this.data.stride+this.offset;for(let r=0;r<this.itemSize;r++)t.push(this.data.array[i+r])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}const C1=new ie,w1=new Yt,R1=new Yt,GIt=new ie,A1=new xt,Zc=new ie,Hm=new ii,N1=new xt,qm=new qu;class VIt extends Un{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=cC,this.bindMatrix=new xt,this.bindMatrixInverse=new xt,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;this.boundingBox===null&&(this.boundingBox=new ki),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let s=0;s<t.count;s++)this.getVertexPosition(s,Zc),this.boundingBox.expandByPoint(Zc)}computeBoundingSphere(){const e=this.geometry;this.boundingSphere===null&&(this.boundingSphere=new ii),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let s=0;s<t.count;s++)this.getVertexPosition(s,Zc),this.boundingSphere.expandByPoint(Zc)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){const s=this.material,i=this.matrixWorld;s!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),Hm.copy(this.boundingSphere),Hm.applyMatrix4(i),e.ray.intersectsSphere(Hm)!==!1&&(N1.copy(i).invert(),qm.copy(e.ray).applyMatrix4(N1),!(this.boundingBox!==null&&qm.intersectsBox(this.boundingBox)===!1)&&this._computeIntersections(e,t,qm)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,t===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new Yt,t=this.geometry.attributes.skinWeight;for(let s=0,i=t.count;s<i;s++){e.fromBufferAttribute(t,s);const r=1/e.manhattanLength();r!==1/0?e.multiplyScalar(r):e.set(1,0,0,0),t.setXYZW(s,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===cC?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===X1t?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}applyBoneTransform(e,t){const s=this.skeleton,i=this.geometry;w1.fromBufferAttribute(i.attributes.skinIndex,e),R1.fromBufferAttribute(i.attributes.skinWeight,e),C1.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let r=0;r<4;r++){const o=R1.getComponent(r);if(o!==0){const a=w1.getComponent(r);A1.multiplyMatrices(s.bones[a].matrixWorld,s.boneInverses[a]),t.addScaledVector(GIt.copy(C1).applyMatrix4(A1),o)}}return t.applyMatrix4(this.bindMatrixInverse)}boneTransform(e,t){return console.warn("THREE.SkinnedMesh: .boneTransform() was renamed to .applyBoneTransform() in r151."),this.applyBoneTransform(e,t)}}class IO extends Jt{constructor(){super(),this.isBone=!0,this.type="Bone"}}class zIt extends xn{constructor(e=null,t=1,s=1,i,r,o,a,l,u=mn,d=mn,h,f){super(null,o,a,l,u,d,i,r,h,f),this.isDataTexture=!0,this.image={data:e,width:t,height:s},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const O1=new xt,HIt=new xt;class DE{constructor(e=[],t=[]){this.uuid=Ds(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),t.length===0)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let s=0,i=this.bones.length;s<i;s++)this.boneInverses.push(new xt)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const s=new xt;this.bones[e]&&s.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(s)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){const s=this.bones[e];s&&s.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){const s=this.bones[e];s&&(s.parent&&s.parent.isBone?(s.matrix.copy(s.parent.matrixWorld).invert(),s.matrix.multiply(s.matrixWorld)):s.matrix.copy(s.matrixWorld),s.matrix.decompose(s.position,s.quaternion,s.scale))}}update(){const e=this.bones,t=this.boneInverses,s=this.boneMatrices,i=this.boneTexture;for(let r=0,o=e.length;r<o;r++){const a=e[r]?e[r].matrixWorld:HIt;O1.multiplyMatrices(a,t[r]),O1.toArray(s,r*16)}i!==null&&(i.needsUpdate=!0)}clone(){return new DE(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const s=new zIt(t,e,e,ls,vi);return s.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=s,this}getBoneByName(e){for(let t=0,s=this.bones.length;t<s;t++){const i=this.bones[t];if(i.name===e)return i}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let s=0,i=e.bones.length;s<i;s++){const r=e.bones[s];let o=t[r];o===void 0&&(console.warn("THREE.Skeleton: No bone found with UUID:",r),o=new IO),this.bones.push(o),this.boneInverses.push(new xt().fromArray(e.boneInverses[s]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,s=this.boneInverses;for(let i=0,r=t.length;i<r;i++){const o=t[i];e.bones.push(o.uuid);const a=s[i];e.boneInverses.push(a.toArray())}return e}}class qg extends Bn{constructor(e,t,s,i=1){super(e,t,s),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=i}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const Oo=new xt,I1=new xt,Jc=[],M1=new ki,qIt=new xt,Za=new Un,Ja=new ii;class YIt extends Un{constructor(e,t,s){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new qg(new Float32Array(s*16),16),this.instanceColor=null,this.count=s,this.boundingBox=null,this.boundingSphere=null;for(let i=0;i<s;i++)this.setMatrixAt(i,qIt)}computeBoundingBox(){const e=this.geometry,t=this.count;this.boundingBox===null&&(this.boundingBox=new ki),e.boundingBox===null&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let s=0;s<t;s++)this.getMatrixAt(s,Oo),M1.copy(e.boundingBox).applyMatrix4(Oo),this.boundingBox.union(M1)}computeBoundingSphere(){const e=this.geometry,t=this.count;this.boundingSphere===null&&(this.boundingSphere=new ii),e.boundingSphere===null&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let s=0;s<t;s++)this.getMatrixAt(s,Oo),Ja.copy(e.boundingSphere).applyMatrix4(Oo),this.boundingSphere.union(Ja)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),e.instanceColor!==null&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,t){t.fromArray(this.instanceColor.array,e*3)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,e*16)}raycast(e,t){const s=this.matrixWorld,i=this.count;if(Za.geometry=this.geometry,Za.material=this.material,Za.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),Ja.copy(this.boundingSphere),Ja.applyMatrix4(s),e.ray.intersectsSphere(Ja)!==!1))for(let r=0;r<i;r++){this.getMatrixAt(r,Oo),I1.multiplyMatrices(s,Oo),Za.matrixWorld=I1,Za.raycast(e,Jc);for(let o=0,a=Jc.length;o<a;o++){const l=Jc[o];l.instanceId=r,l.object=this,t.push(l)}Jc.length=0}}setColorAt(e,t){this.instanceColor===null&&(this.instanceColor=new qg(new Float32Array(this.instanceMatrix.count*3),3)),t.toArray(this.instanceColor.array,e*3)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,e*16)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class MO extends ks{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new ut(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const D1=new ie,k1=new ie,L1=new xt,Ym=new qu,ed=new ii;class kE extends Jt{constructor(e=new ri,t=new MO){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,s=[0];for(let i=1,r=t.count;i<r;i++)D1.fromBufferAttribute(t,i-1),k1.fromBufferAttribute(t,i),s[i]=s[i-1],s[i]+=D1.distanceTo(k1);e.setAttribute("lineDistance",new xi(s,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,t){const s=this.geometry,i=this.matrixWorld,r=e.params.Line.threshold,o=s.drawRange;if(s.boundingSphere===null&&s.computeBoundingSphere(),ed.copy(s.boundingSphere),ed.applyMatrix4(i),ed.radius+=r,e.ray.intersectsSphere(ed)===!1)return;L1.copy(i).invert(),Ym.copy(e.ray).applyMatrix4(L1);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),l=a*a,u=new ie,d=new ie,h=new ie,f=new ie,_=this.isLineSegments?2:1,m=s.index,b=s.attributes.position;if(m!==null){const g=Math.max(0,o.start),y=Math.min(m.count,o.start+o.count);for(let v=g,S=y-1;v<S;v+=_){const w=m.getX(v),x=m.getX(v+1);if(u.fromBufferAttribute(b,w),d.fromBufferAttribute(b,x),Ym.distanceSqToSegment(u,d,f,h)>l)continue;f.applyMatrix4(this.matrixWorld);const D=e.ray.origin.distanceTo(f);D<e.near||D>e.far||t.push({distance:D,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let v=g,S=y-1;v<S;v+=_){if(u.fromBufferAttribute(b,v),d.fromBufferAttribute(b,v+1),Ym.distanceSqToSegment(u,d,f,h)>l)continue;f.applyMatrix4(this.matrixWorld);const x=e.ray.origin.distanceTo(f);x<e.near||x>e.far||t.push({distance:x,point:h.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 i=t[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r<o;r++){const a=i[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}}const P1=new ie,U1=new ie;class $It extends kE{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,s=[];for(let i=0,r=t.count;i<r;i+=2)P1.fromBufferAttribute(t,i),U1.fromBufferAttribute(t,i+1),s[i]=i===0?0:s[i-1],s[i+1]=s[i]+P1.distanceTo(U1);e.setAttribute("lineDistance",new xi(s,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class WIt extends kE{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class DO extends ks{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new ut(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const F1=new xt,Yg=new qu,td=new ii,nd=new ie;class KIt extends Jt{constructor(e=new ri,t=new DO){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,t){const s=this.geometry,i=this.matrixWorld,r=e.params.Points.threshold,o=s.drawRange;if(s.boundingSphere===null&&s.computeBoundingSphere(),td.copy(s.boundingSphere),td.applyMatrix4(i),td.radius+=r,e.ray.intersectsSphere(td)===!1)return;F1.copy(i).invert(),Yg.copy(e.ray).applyMatrix4(F1);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),l=a*a,u=s.index,h=s.attributes.position;if(u!==null){const f=Math.max(0,o.start),_=Math.min(u.count,o.start+o.count);for(let m=f,E=_;m<E;m++){const b=u.getX(m);nd.fromBufferAttribute(h,b),B1(nd,b,l,i,e,t,this)}}else{const f=Math.max(0,o.start),_=Math.min(h.count,o.start+o.count);for(let m=f,E=_;m<E;m++)nd.fromBufferAttribute(h,m),B1(nd,m,l,i,e,t,this)}}updateMorphTargets(){const t=this.geometry.morphAttributes,s=Object.keys(t);if(s.length>0){const i=t[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r<o;r++){const a=i[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}}function B1(n,e,t,s,i,r,o){const a=Yg.distanceSqToPoint(n);if(a<t){const l=new ie;Yg.closestPointToPoint(n,l),l.applyMatrix4(s);const u=i.ray.origin.distanceTo(l);if(u<i.near||u>i.far)return;r.push({distance:u,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class LE extends ks{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new ut(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 ut(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=CE,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 Li extends LE{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 Nn(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 ut(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 ut(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new ut(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 G1 extends ks{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new ut(16777215),this.specular=new ut(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new ut(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=CE,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=TE,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 sd(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 jIt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function QIt(n){function e(i,r){return n[i]-n[r]}const t=n.length,s=new Array(t);for(let i=0;i!==t;++i)s[i]=i;return s.sort(e),s}function V1(n,e,t){const s=n.length,i=new n.constructor(s);for(let r=0,o=0;o!==s;++r){const a=t[r]*e;for(let l=0;l!==e;++l)i[o++]=n[a+l]}return i}function kO(n,e,t,s){let i=1,r=n[0];for(;r!==void 0&&r[s]===void 0;)r=n[i++];if(r===void 0)return;let o=r[s];if(o!==void 0)if(Array.isArray(o))do o=r[s],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=n[i++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[s],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=n[i++];while(r!==void 0);else do o=r[s],o!==void 0&&(e.push(r.time),t.push(o)),r=n[i++];while(r!==void 0)}class ec{constructor(e,t,s,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i: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,i=t[s],r=t[s-1];e:{t:{let o;n:{s:if(!(e<i)){for(let a=s+2;;){if(i===void 0){if(e<r)break s;return s=t.length,this._cachedIndex=s,this.copySampleValue_(s-1)}if(s===a)break;if(r=i,i=t[++s],e<i)break t}o=t.length;break n}if(!(e>=r)){const a=t[1];e<a&&(s=2,r=a);for(let l=s-2;;){if(r===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(s===l)break;if(i=r,r=t[--s-1],e>=r)break t}o=s,s=0;break n}break e}for(;s<o;){const a=s+o>>>1;e<t[a]?o=a:s=a+1}if(i=t[s],r=t[s-1],r===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(i===void 0)return s=t.length,this._cachedIndex=s,this.copySampleValue_(s-1)}this._cachedIndex=s,this.intervalChanged_(s,r,i)}return this.interpolate_(s,r,e,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,s=this.sampleValues,i=this.valueSize,r=e*i;for(let o=0;o!==i;++o)t[o]=s[r+o];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class XIt extends ec{constructor(e,t,s,i){super(e,t,s,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:LC,endingEnd:LC}}intervalChanged_(e,t,s){const i=this.parameterPositions;let r=e-2,o=e+1,a=i[r],l=i[o];if(a===void 0)switch(this.getSettings_().endingStart){case PC:r=e,a=2*t-s;break;case UC:r=i.length-2,a=t+i[r]-i[r+1];break;default:r=e,a=s}if(l===void 0)switch(this.getSettings_().endingEnd){case PC:o=e,l=2*s-t;break;case UC:o=1,l=s+i[1]-i[0];break;default:o=e-1,l=t}const u=(s-t)*.5,d=this.valueSize;this._weightPrev=u/(t-a),this._weightNext=u/(l-s),this._offsetPrev=r*d,this._offsetNext=o*d}interpolate_(e,t,s,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=e*a,u=l-a,d=this._offsetPrev,h=this._offsetNext,f=this._weightPrev,_=this._weightNext,m=(s-t)/(i-t),E=m*m,b=E*m,g=-f*b+2*f*E-f*m,y=(1+f)*b+(-1.5-2*f)*E+(-.5+f)*m+1,v=(-1-_)*b+(1.5+_)*E+.5*m,S=_*b-_*E;for(let w=0;w!==a;++w)r[w]=g*o[d+w]+y*o[u+w]+v*o[l+w]+S*o[h+w];return r}}class ZIt extends ec{constructor(e,t,s,i){super(e,t,s,i)}interpolate_(e,t,s,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=e*a,u=l-a,d=(s-t)/(i-t),h=1-d;for(let f=0;f!==a;++f)r[f]=o[u+f]*h+o[l+f]*d;return r}}class JIt extends ec{constructor(e,t,s,i){super(e,t,s,i)}interpolate_(e){return this.copySampleValue_(e-1)}}class oi{constructor(e,t,s,i){if(e===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(t===void 0||t.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=sd(t,this.TimeBufferType),this.values=sd(s,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let s;if(t.toJSON!==this.toJSON)s=t.toJSON(e);else{s={name:e.name,times:sd(e.times,Array),values:sd(e.values,Array)};const i=e.getInterpolation();i!==e.DefaultInterpolation&&(s.interpolation=i)}return s.type=e.ValueTypeName,s}InterpolantFactoryMethodDiscrete(e){return new JIt(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new ZIt(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new XIt(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case Bl:t=this.InterpolantFactoryMethodDiscrete;break;case ua:t=this.InterpolantFactoryMethodLinear;break;case Em:t=this.InterpolantFactoryMethodSmooth;break}if(t===void 0){const s="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(s);return console.warn("THREE.KeyframeTrack:",s),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Bl;case this.InterpolantFactoryMethodLinear:return ua;case this.InterpolantFactoryMethodSmooth:return Em}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){const t=this.times;for(let s=0,i=t.length;s!==i;++s)t[s]+=e}return this}scale(e){if(e!==1){const t=this.times;for(let s=0,i=t.length;s!==i;++s)t[s]*=e}return this}trim(e,t){const s=this.times,i=s.length;let r=0,o=i-1;for(;r!==i&&s[r]<e;)++r;for(;o!==-1&&s[o]>t;)--o;if(++o,r!==0||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=s.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const s=this.times,i=this.values,r=s.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=s[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&&jIt(i))for(let a=0,l=i.length;a!==l;++a){const u=i[a];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,u),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),s=this.getValueSize(),i=this.getInterpolation()===Em,r=e.length-1;let o=1;for(let a=1;a<r;++a){let l=!1;const u=e[a],d=e[a+1];if(u!==d&&(a!==1||u!==e[0]))if(i)l=!0;else{const h=a*s,f=h-s,_=h+s;for(let m=0;m!==s;++m){const E=t[h+m];if(E!==t[f+m]||E!==t[_+m]){l=!0;break}}}if(l){if(a!==o){e[o]=e[a];const h=a*s,f=o*s;for(let _=0;_!==s;++_)t[f+_]=t[h+_]}++o}}if(r>0){e[o]=e[r];for(let a=r*s,l=o*s,u=0;u!==s;++u)t[l+u]=t[a+u];++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,i=new s(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}oi.prototype.TimeBufferType=Float32Array;oi.prototype.ValueBufferType=Float32Array;oi.prototype.DefaultInterpolation=ua;class ka extends oi{}ka.prototype.ValueTypeName="bool";ka.prototype.ValueBufferType=Array;ka.prototype.DefaultInterpolation=Bl;ka.prototype.InterpolantFactoryMethodLinear=void 0;ka.prototype.InterpolantFactoryMethodSmooth=void 0;class LO extends oi{}LO.prototype.ValueTypeName="color";class ha extends oi{}ha.prototype.ValueTypeName="number";class eMt extends ec{constructor(e,t,s,i){super(e,t,s,i)}interpolate_(e,t,s,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(s-t)/(i-t);let u=e*a;for(let d=u+a;u!==d;u+=4)mr.slerpFlat(r,0,o,u-a,o,u,l);return r}}class eo extends oi{InterpolantFactoryMethodLinear(e){return new eMt(this.times,this.values,this.getValueSize(),e)}}eo.prototype.ValueTypeName="quaternion";eo.prototype.DefaultInterpolation=ua;eo.prototype.InterpolantFactoryMethodSmooth=void 0;class La extends oi{}La.prototype.ValueTypeName="string";La.prototype.ValueBufferType=Array;La.prototype.DefaultInterpolation=Bl;La.prototype.InterpolantFactoryMethodLinear=void 0;La.prototype.InterpolantFactoryMethodSmooth=void 0;class fa extends oi{}fa.prototype.ValueTypeName="vector";class tMt{constructor(e,t=-1,s,i=owt){this.name=e,this.tracks=s,this.duration=t,this.blendMode=i,this.uuid=Ds(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],s=e.tracks,i=1/(e.fps||1);for(let o=0,a=s.length;o!==a;++o)t.push(sMt(s[o]).scale(i));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],s=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=s.length;r!==o;++r)t.push(oi.toJSON(s[r]));return i}static CreateFromMorphTargetSequence(e,t,s,i){const r=t.length,o=[];for(let a=0;a<r;a++){let l=[],u=[];l.push((a+r-1)%r,a,(a+1)%r),u.push(0,1,0);const d=QIt(l);l=V1(l,1,d),u=V1(u,1,d),!i&&l[0]===0&&(l.push(r),u.push(u[0])),o.push(new ha(".morphTargetInfluences["+t[a].name+"]",l,u).scale(1/s))}return new this(e,-1,o)}static findByName(e,t){let s=e;if(!Array.isArray(e)){const i=e;s=i.geometry&&i.geometry.animations||i.animations}for(let i=0;i<s.length;i++)if(s[i].name===t)return s[i];return null}static CreateClipsFromMorphTargetSequences(e,t,s){const i={},r=/^([\w-]*?)([\d]+)$/;for(let a=0,l=e.length;a<l;a++){const u=e[a],d=u.name.match(r);if(d&&d.length>1){const h=d[1];let f=i[h];f||(i[h]=f=[]),f.push(u)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[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(h,f,_,m,E){if(_.length!==0){const b=[],g=[];kO(_,b,g,m),b.length!==0&&E.push(new h(f,b,g))}},i=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const u=e.hierarchy||[];for(let h=0;h<u.length;h++){const f=u[h].keys;if(!(!f||f.length===0))if(f[0].morphTargets){const _={};let m;for(m=0;m<f.length;m++)if(f[m].morphTargets)for(let E=0;E<f[m].morphTargets.length;E++)_[f[m].morphTargets[E]]=-1;for(const E in _){const b=[],g=[];for(let y=0;y!==f[m].morphTargets.length;++y){const v=f[m];b.push(v.time),g.push(v.morphTarget===E?1:0)}i.push(new ha(".morphTargetInfluence["+E+"]",b,g))}l=_.length*o}else{const _=".bones["+t[h].name+"]";s(fa,_+".position",f,"pos",i),s(eo,_+".quaternion",f,"rot",i),s(fa,_+".scale",f,"scl",i)}}return i.length===0?null:new this(r,l,i,a)}resetDuration(){const e=this.tracks;let t=0;for(let s=0,i=e.length;s!==i;++s){const r=this.tracks[s];t=Math.max(t,r.times[r.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function nMt(n){switch(n.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return ha;case"vector":case"vector2":case"vector3":case"vector4":return fa;case"color":return LO;case"quaternion":return eo;case"bool":case"boolean":return ka;case"string":return La}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+n)}function sMt(n){if(n.type===void 0)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=nMt(n.type);if(n.times===void 0){const t=[],s=[];kO(n.keys,t,s,"value"),n.times=t,n.values=s}return e.parse!==void 0?e.parse(n):new e(n.name,n.times,n.values,n.interpolation)}const ma={enabled:!1,files:{},add:function(n,e){this.enabled!==!1&&(this.files[n]=e)},get:function(n){if(this.enabled!==!1)return this.files[n]},remove:function(n){delete this.files[n]},clear:function(){this.files={}}};class iMt{constructor(e,t,s){const i=this;let r=!1,o=0,a=0,l;const u=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=s,this.itemStart=function(d){a++,r===!1&&i.onStart!==void 0&&i.onStart(d,o,a),r=!0},this.itemEnd=function(d){o++,i.onProgress!==void 0&&i.onProgress(d,o,a),o===a&&(r=!1,i.onLoad!==void 0&&i.onLoad())},this.itemError=function(d){i.onError!==void 0&&i.onError(d)},this.resolveURL=function(d){return l?l(d):d},this.setURLModifier=function(d){return l=d,this},this.addHandler=function(d,h){return u.push(d,h),this},this.removeHandler=function(d){const h=u.indexOf(d);return h!==-1&&u.splice(h,2),this},this.getHandler=function(d){for(let h=0,f=u.length;h<f;h+=2){const _=u[h],m=u[h+1];if(_.global&&(_.lastIndex=0),_.test(d))return m}return null}}}const rMt=new iMt;class Pa{constructor(e){this.manager=e!==void 0?e:rMt,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const s=this;return new Promise(function(i,r){s.load(e,i,t,r)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Pa.DEFAULT_MATERIAL_NAME="__DEFAULT";const fi={};class oMt extends Error{constructor(e,t){super(e),this.response=t}}class PO extends Pa{constructor(e){super(e)}load(e,t,s,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=ma.get(e);if(r!==void 0)return this.manager.itemStart(e),setTimeout(()=>{t&&t(r),this.manager.itemEnd(e)},0),r;if(fi[e]!==void 0){fi[e].push({onLoad:t,onProgress:s,onError:i});return}fi[e]=[],fi[e].push({onLoad:t,onProgress:s,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(u=>{if(u.status===200||u.status===0){if(u.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||u.body===void 0||u.body.getReader===void 0)return u;const d=fi[e],h=u.body.getReader(),f=u.headers.get("Content-Length")||u.headers.get("X-File-Size"),_=f?parseInt(f):0,m=_!==0;let E=0;const b=new ReadableStream({start(g){y();function y(){h.read().then(({done:v,value:S})=>{if(v)g.close();else{E+=S.byteLength;const w=new ProgressEvent("progress",{lengthComputable:m,loaded:E,total:_});for(let x=0,A=d.length;x<A;x++){const D=d[x];D.onProgress&&D.onProgress(w)}g.enqueue(S),y()}})}}});return new Response(b)}else throw new oMt(`fetch for "${u.url}" responded with ${u.status}: ${u.statusText}`,u)}).then(u=>{switch(l){case"arraybuffer":return u.arrayBuffer();case"blob":return u.blob();case"document":return u.text().then(d=>new DOMParser().parseFromString(d,a));case"json":return u.json();default:if(a===void 0)return u.text();{const h=/charset="?([^;"\s]*)"?/i.exec(a),f=h&&h[1]?h[1].toLowerCase():void 0,_=new TextDecoder(f);return u.arrayBuffer().then(m=>_.decode(m))}}}).then(u=>{ma.add(e,u);const d=fi[e];delete fi[e];for(let h=0,f=d.length;h<f;h++){const _=d[h];_.onLoad&&_.onLoad(u)}}).catch(u=>{const d=fi[e];if(d===void 0)throw this.manager.itemError(e),u;delete fi[e];for(let h=0,f=d.length;h<f;h++){const _=d[h];_.onError&&_.onError(u)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class aMt extends Pa{constructor(e){super(e)}load(e,t,s,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=ma.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a=Gl("img");function l(){d(),ma.add(e,this),t&&t(this),r.manager.itemEnd(e)}function u(h){d(),i&&i(h),r.manager.itemError(e),r.manager.itemEnd(e)}function d(){a.removeEventListener("load",l,!1),a.removeEventListener("error",u,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",u,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class UO extends Pa{constructor(e){super(e)}load(e,t,s,i){const r=new xn,o=new aMt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,t!==void 0&&t(r)},s,i),r}}class Wu extends Jt{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new ut(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 $m=new xt,z1=new ie,H1=new ie;class PE{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 AE,this._frameExtents=new Rt(1,1),this._viewportCount=1,this._viewports=[new Yt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,s=this.matrix;z1.setFromMatrixPosition(e.matrixWorld),t.position.copy(z1),H1.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(H1),t.updateMatrixWorld(),$m.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix($m),s.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),s.multiply($m)}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 lMt extends PE{constructor(){super(new Pn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,s=pa*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;(s!==t.fov||i!==t.aspect||r!==t.far)&&(t.fov=s,t.aspect=i,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class cMt extends Wu{constructor(e,t,s=0,i=Math.PI/3,r=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=i,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new lMt}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 q1=new xt,el=new ie,Wm=new ie;class dMt extends PE{constructor(){super(new Pn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Rt(4,2),this._viewportCount=6,this._viewports=[new Yt(2,1,1,1),new Yt(0,1,1,1),new Yt(3,1,1,1),new Yt(1,1,1,1),new Yt(3,0,1,1),new Yt(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,i=this.matrix,r=e.distance||s.far;r!==s.far&&(s.far=r,s.updateProjectionMatrix()),el.setFromMatrixPosition(e.matrixWorld),s.position.copy(el),Wm.copy(s.position),Wm.add(this._cubeDirections[t]),s.up.copy(this._cubeUps[t]),s.lookAt(Wm),s.updateMatrixWorld(),i.makeTranslation(-el.x,-el.y,-el.z),q1.multiplyMatrices(s.projectionMatrix,s.matrixWorldInverse),this._frustum.setFromProjectionMatrix(q1)}}class uMt extends Wu{constructor(e,t,s=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=s,this.decay=i,this.shadow=new dMt}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 pMt extends PE{constructor(){super(new OE(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class FO extends Wu{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 pMt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class _Mt extends Wu{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class El{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let s=0,i=e.length;s<i;s++)t+=String.fromCharCode(e[s]);try{return decodeURIComponent(escape(t))}catch{return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return t===-1?"./":e.slice(0,t+1)}static resolveURL(e,t){return typeof e!="string"||e===""?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class hMt extends Pa{constructor(e){super(e),this.isImageBitmapLoader=!0,typeof createImageBitmap>"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,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=ma.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(l){ma.add(e,l),t&&t(l),r.manager.itemEnd(e)}).catch(function(l){i&&i(l),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const UE="\\[\\]\\.:\\/",fMt=new RegExp("["+UE+"]","g"),FE="[^"+UE+"]",mMt="[^"+UE.replace("\\.","")+"]",gMt=/((?:WC+[\/:])*)/.source.replace("WC",FE),bMt=/(WCOD+)?/.source.replace("WCOD",mMt),EMt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",FE),yMt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",FE),vMt=new RegExp("^"+gMt+bMt+EMt+yMt+"$"),SMt=["material","materials","bones","map"];class TMt{constructor(e,t,s){const i=s||Bt.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const s=this._targetGroup.nCachedObjects_,i=this._bindings[s];i!==void 0&&i.getValue(e,t)}setValue(e,t){const s=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=s.length;i!==r;++i)s[i].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 Bt{constructor(e,t,s){this.path=t,this.parsedPath=s||Bt.parseTrackName(t),this.node=Bt.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 Bt.Composite(e,t,s):new Bt(e,t,s)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(fMt,"")}static parseTrackName(e){const t=vMt.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]},i=s.nodeName&&s.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const r=s.nodeName.substring(i+1);SMt.indexOf(r)!==-1&&(s.nodeName=s.nodeName.substring(0,i),s.objectName=r)}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(r){for(let o=0;o<r.length;o++){const a=r[o];if(a.name===t||a.uuid===t)return a;const l=s(a.children);if(l)return l}return null},i=s(e.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const s=this.resolvedProperty;for(let i=0,r=s.length;i!==r;++i)e[t++]=s[i]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const s=this.resolvedProperty;for(let i=0,r=s.length;i!==r;++i)s[i]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const s=this.resolvedProperty;for(let i=0,r=s.length;i!==r;++i)s[i]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const s=this.resolvedProperty;for(let i=0,r=s.length;i!==r;++i)s[i]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,s=t.objectName,i=t.propertyName;let r=t.propertyIndex;if(e||(e=Bt.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e){console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");return}if(s){let u=t.objectIndex;switch(s){case"materials":if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}e=e.material.materials;break;case"bones":if(!e.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}e=e.skeleton.bones;for(let d=0;d<e.length;d++)if(e[d].name===u){u=d;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.map){console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);return}e=e.material.map;break;default:if(e[s]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}e=e[s]}if(u!==void 0){if(e[u]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);return}e=e[u]}}const o=e[i];if(o===void 0){const u=t.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+u+"."+i+" but it wasn't found.",e);return}let a=this.Versioning.None;this.targetObject=e,e.needsUpdate!==void 0?a=this.Versioning.NeedsUpdate:e.matrixWorldNeedsUpdate!==void 0&&(a=this.Versioning.MatrixWorldNeedsUpdate);let l=this.BindingType.Direct;if(r!==void 0){if(i==="morphTargetInfluences"){if(!e.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(!e.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}e.morphTargetDictionary[r]!==void 0&&(r=e.morphTargetDictionary[r])}l=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=r}else o.fromArray!==void 0&&o.toArray!==void 0?(l=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(l=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=i;this.getValue=this.GetterByBindingType[l],this.setValue=this.SetterByBindingTypeAndVersioning[l][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}Bt.Composite=TMt;Bt.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3};Bt.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2};Bt.prototype.GetterByBindingType=[Bt.prototype._getValue_direct,Bt.prototype._getValue_array,Bt.prototype._getValue_arrayElement,Bt.prototype._getValue_toArray];Bt.prototype.SetterByBindingTypeAndVersioning=[[Bt.prototype._setValue_direct,Bt.prototype._setValue_direct_setNeedsUpdate,Bt.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[Bt.prototype._setValue_array,Bt.prototype._setValue_array_setNeedsUpdate,Bt.prototype._setValue_array_setMatrixWorldNeedsUpdate],[Bt.prototype._setValue_arrayElement,Bt.prototype._setValue_arrayElement_setNeedsUpdate,Bt.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[Bt.prototype._setValue_fromArray,Bt.prototype._setValue_fromArray_setNeedsUpdate,Bt.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:SE}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=SE);function Y1(n,e){if(e===awt)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),n;if(e===Bg||e===cO){let t=n.getIndex();if(t===null){const o=[],a=n.getAttribute("position");if(a!==void 0){for(let l=0;l<a.count;l++)o.push(l);n.setIndex(o),t=n.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),n}const s=t.count-2,i=[];if(e===Bg)for(let o=1;o<=s;o++)i.push(t.getX(0)),i.push(t.getX(o)),i.push(t.getX(o+1));else for(let o=0;o<s;o++)o%2===0?(i.push(t.getX(o)),i.push(t.getX(o+1)),i.push(t.getX(o+2))):(i.push(t.getX(o+2)),i.push(t.getX(o+1)),i.push(t.getX(o)));i.length/3!==s&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const r=n.clone();return r.setIndex(i),r.clearGroups(),r}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),n}class xMt extends Pa{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(t){return new NMt(t)}),this.register(function(t){return new FMt(t)}),this.register(function(t){return new BMt(t)}),this.register(function(t){return new GMt(t)}),this.register(function(t){return new IMt(t)}),this.register(function(t){return new MMt(t)}),this.register(function(t){return new DMt(t)}),this.register(function(t){return new kMt(t)}),this.register(function(t){return new AMt(t)}),this.register(function(t){return new LMt(t)}),this.register(function(t){return new OMt(t)}),this.register(function(t){return new UMt(t)}),this.register(function(t){return new PMt(t)}),this.register(function(t){return new wMt(t)}),this.register(function(t){return new VMt(t)}),this.register(function(t){return new zMt(t)})}load(e,t,s,i){const r=this;let o;if(this.resourcePath!=="")o=this.resourcePath;else if(this.path!==""){const u=El.extractUrlBase(e);o=El.resolveURL(u,this.path)}else o=El.extractUrlBase(e);this.manager.itemStart(e);const a=function(u){i?i(u):console.error(u),r.manager.itemError(e),r.manager.itemEnd(e)},l=new PO(this.manager);l.setPath(this.path),l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,function(u){try{r.parse(u,o,function(d){t(d),r.manager.itemEnd(e)},a)}catch(d){a(d)}},s,a)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return this.pluginCallbacks.indexOf(e)===-1&&this.pluginCallbacks.push(e),this}unregister(e){return this.pluginCallbacks.indexOf(e)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,s,i){let r;const o={},a={},l=new TextDecoder;if(typeof e=="string")r=JSON.parse(e);else if(e instanceof ArrayBuffer)if(l.decode(new Uint8Array(e,0,4))===BO){try{o[wt.KHR_BINARY_GLTF]=new HMt(e)}catch(h){i&&i(h);return}r=JSON.parse(o[wt.KHR_BINARY_GLTF].content)}else r=JSON.parse(l.decode(e));else r=e;if(r.asset===void 0||r.asset.version[0]<2){i&&i(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const u=new n2t(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});u.fileLoader.setRequestHeader(this.requestHeader);for(let d=0;d<this.pluginCallbacks.length;d++){const h=this.pluginCallbacks[d](u);h.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[h.name]=h,o[h.name]=!0}if(r.extensionsUsed)for(let d=0;d<r.extensionsUsed.length;++d){const h=r.extensionsUsed[d],f=r.extensionsRequired||[];switch(h){case wt.KHR_MATERIALS_UNLIT:o[h]=new RMt;break;case wt.KHR_DRACO_MESH_COMPRESSION:o[h]=new qMt(r,this.dracoLoader);break;case wt.KHR_TEXTURE_TRANSFORM:o[h]=new YMt;break;case wt.KHR_MESH_QUANTIZATION:o[h]=new $Mt;break;default:f.indexOf(h)>=0&&a[h]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}u.setExtensions(o),u.setPlugins(a),u.parse(s,i)}parseAsync(e,t){const s=this;return new Promise(function(i,r){s.parse(e,t,i,r)})}}function CMt(){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 wMt{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,i=t.length;s<i;s++){const r=t[s];r.extensions&&r.extensions[this.name]&&r.extensions[this.name].light!==void 0&&e._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(e){const t=this.parser,s="light:"+e;let i=t.cache.get(s);if(i)return i;const r=t.json,l=((r.extensions&&r.extensions[this.name]||{}).lights||[])[e];let u;const d=new ut(16777215);l.color!==void 0&&d.setRGB(l.color[0],l.color[1],l.color[2],Cn);const h=l.range!==void 0?l.range:0;switch(l.type){case"directional":u=new FO(d),u.target.position.set(0,0,-1),u.add(u.target);break;case"point":u=new uMt(d),u.distance=h;break;case"spot":u=new cMt(d),u.distance=h,l.spot=l.spot||{},l.spot.innerConeAngle=l.spot.innerConeAngle!==void 0?l.spot.innerConeAngle:0,l.spot.outerConeAngle=l.spot.outerConeAngle!==void 0?l.spot.outerConeAngle:Math.PI/4,u.angle=l.spot.outerConeAngle,u.penumbra=1-l.spot.innerConeAngle/l.spot.outerConeAngle,u.target.position.set(0,0,-1),u.add(u.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+l.type)}return u.position.set(0,0,0),u.decay=2,er(u,l),l.intensity!==void 0&&(u.intensity=l.intensity),u.name=t.createUniqueName(l.name||"light_"+e),i=Promise.resolve(u),t.cache.add(s,i),i}getDependency(e,t){if(e==="light")return this._loadLight(t)}createNodeAttachment(e){const t=this,s=this.parser,r=s.json.nodes[e],a=(r.extensions&&r.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(l){return s._getNodeRef(t.cache,a,l)})}}class RMt{constructor(){this.name=wt.KHR_MATERIALS_UNLIT}getMaterialType(){return ir}extendParams(e,t,s){const i=[];e.color=new ut(1,1,1),e.opacity=1;const r=t.pbrMetallicRoughness;if(r){if(Array.isArray(r.baseColorFactor)){const o=r.baseColorFactor;e.color.setRGB(o[0],o[1],o[2],Cn),e.opacity=o[3]}r.baseColorTexture!==void 0&&i.push(s.assignTexture(e,"map",r.baseColorTexture,en))}return Promise.all(i)}}class AMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){const i=this.parser.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=i.extensions[this.name].emissiveStrength;return r!==void 0&&(t.emissiveIntensity=r),Promise.resolve()}}class NMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const s=this.parser,i=s.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];if(o.clearcoatFactor!==void 0&&(t.clearcoat=o.clearcoatFactor),o.clearcoatTexture!==void 0&&r.push(s.assignTexture(t,"clearcoatMap",o.clearcoatTexture)),o.clearcoatRoughnessFactor!==void 0&&(t.clearcoatRoughness=o.clearcoatRoughnessFactor),o.clearcoatRoughnessTexture!==void 0&&r.push(s.assignTexture(t,"clearcoatRoughnessMap",o.clearcoatRoughnessTexture)),o.clearcoatNormalTexture!==void 0&&(r.push(s.assignTexture(t,"clearcoatNormalMap",o.clearcoatNormalTexture)),o.clearcoatNormalTexture.scale!==void 0)){const a=o.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new Rt(a,a)}return Promise.all(r)}}class OMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const s=this.parser,i=s.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];return o.iridescenceFactor!==void 0&&(t.iridescence=o.iridescenceFactor),o.iridescenceTexture!==void 0&&r.push(s.assignTexture(t,"iridescenceMap",o.iridescenceTexture)),o.iridescenceIor!==void 0&&(t.iridescenceIOR=o.iridescenceIor),t.iridescenceThicknessRange===void 0&&(t.iridescenceThicknessRange=[100,400]),o.iridescenceThicknessMinimum!==void 0&&(t.iridescenceThicknessRange[0]=o.iridescenceThicknessMinimum),o.iridescenceThicknessMaximum!==void 0&&(t.iridescenceThicknessRange[1]=o.iridescenceThicknessMaximum),o.iridescenceThicknessTexture!==void 0&&r.push(s.assignTexture(t,"iridescenceThicknessMap",o.iridescenceThicknessTexture)),Promise.all(r)}}class IMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_SHEEN}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const s=this.parser,i=s.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[];t.sheenColor=new ut(0,0,0),t.sheenRoughness=0,t.sheen=1;const o=i.extensions[this.name];if(o.sheenColorFactor!==void 0){const a=o.sheenColorFactor;t.sheenColor.setRGB(a[0],a[1],a[2],Cn)}return o.sheenRoughnessFactor!==void 0&&(t.sheenRoughness=o.sheenRoughnessFactor),o.sheenColorTexture!==void 0&&r.push(s.assignTexture(t,"sheenColorMap",o.sheenColorTexture,en)),o.sheenRoughnessTexture!==void 0&&r.push(s.assignTexture(t,"sheenRoughnessMap",o.sheenRoughnessTexture)),Promise.all(r)}}class MMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const s=this.parser,i=s.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];return o.transmissionFactor!==void 0&&(t.transmission=o.transmissionFactor),o.transmissionTexture!==void 0&&r.push(s.assignTexture(t,"transmissionMap",o.transmissionTexture)),Promise.all(r)}}class DMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_VOLUME}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const s=this.parser,i=s.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];t.thickness=o.thicknessFactor!==void 0?o.thicknessFactor:0,o.thicknessTexture!==void 0&&r.push(s.assignTexture(t,"thicknessMap",o.thicknessTexture)),t.attenuationDistance=o.attenuationDistance||1/0;const a=o.attenuationColor||[1,1,1];return t.attenuationColor=new ut().setRGB(a[0],a[1],a[2],Cn),Promise.all(r)}}class kMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_IOR}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const i=this.parser.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=i.extensions[this.name];return t.ior=r.ior!==void 0?r.ior:1.5,Promise.resolve()}}class LMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_SPECULAR}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const s=this.parser,i=s.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];t.specularIntensity=o.specularFactor!==void 0?o.specularFactor:1,o.specularTexture!==void 0&&r.push(s.assignTexture(t,"specularIntensityMap",o.specularTexture));const a=o.specularColorFactor||[1,1,1];return t.specularColor=new ut().setRGB(a[0],a[1],a[2],Cn),o.specularColorTexture!==void 0&&r.push(s.assignTexture(t,"specularColorMap",o.specularColorTexture,en)),Promise.all(r)}}class PMt{constructor(e){this.parser=e,this.name=wt.EXT_MATERIALS_BUMP}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const s=this.parser,i=s.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];return t.bumpScale=o.bumpFactor!==void 0?o.bumpFactor:1,o.bumpTexture!==void 0&&r.push(s.assignTexture(t,"bumpMap",o.bumpTexture)),Promise.all(r)}}class UMt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){const s=this.parser.json.materials[e];return!s.extensions||!s.extensions[this.name]?null:Li}extendMaterialParams(e,t){const s=this.parser,i=s.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];return o.anisotropyStrength!==void 0&&(t.anisotropy=o.anisotropyStrength),o.anisotropyRotation!==void 0&&(t.anisotropyRotation=o.anisotropyRotation),o.anisotropyTexture!==void 0&&r.push(s.assignTexture(t,"anisotropyMap",o.anisotropyTexture)),Promise.all(r)}}class FMt{constructor(e){this.parser=e,this.name=wt.KHR_TEXTURE_BASISU}loadTexture(e){const t=this.parser,s=t.json,i=s.textures[e];if(!i.extensions||!i.extensions[this.name])return null;const r=i.extensions[this.name],o=t.options.ktx2Loader;if(!o){if(s.extensionsRequired&&s.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class BMt{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,s=this.parser,i=s.json,r=i.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=i.images[o.source];let l=s.textureLoader;if(a.uri){const u=s.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return s.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 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 GMt{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,s=this.parser,i=s.json,r=i.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=i.images[o.source];let l=s.textureLoader;if(a.uri){const u=s.options.manager.getHandler(a.uri);u!==null&&(l=u)}return this.detectSupport().then(function(u){if(u)return s.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 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 VMt{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 i=s.extensions[this.name],r=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 r.then(function(a){const l=i.byteOffset||0,u=i.byteLength||0,d=i.count,h=i.byteStride,f=new Uint8Array(a,l,u);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(d,h,f,i.mode,i.filter).then(function(_){return _.buffer}):o.ready.then(function(){const _=new ArrayBuffer(d*h);return o.decodeGltfBuffer(new Uint8Array(_),d,h,f,i.mode,i.filter),_})})}else return null}}class zMt{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 i=t.meshes[s.mesh];for(const u of i.primitives)if(u.mode!==rs.TRIANGLES&&u.mode!==rs.TRIANGLE_STRIP&&u.mode!==rs.TRIANGLE_FAN&&u.mode!==void 0)return null;const o=s.extensions[this.name].attributes,a=[],l={};for(const u in o)a.push(this.parser.getDependency("accessor",o[u]).then(d=>(l[u]=d,l[u])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(u=>{const d=u.pop(),h=d.isGroup?d.children:[d],f=u[0].count,_=[];for(const m of h){const E=new xt,b=new ie,g=new mr,y=new ie(1,1,1),v=new YIt(m.geometry,m.material,f);for(let S=0;S<f;S++)l.TRANSLATION&&b.fromBufferAttribute(l.TRANSLATION,S),l.ROTATION&&g.fromBufferAttribute(l.ROTATION,S),l.SCALE&&y.fromBufferAttribute(l.SCALE,S),v.setMatrixAt(S,E.compose(b,g,y));for(const S in l)if(S==="_COLOR_0"){const w=l[S];v.instanceColor=new qg(w.array,w.itemSize,w.normalized)}else S!=="TRANSLATION"&&S!=="ROTATION"&&S!=="SCALE"&&m.geometry.setAttribute(S,l[S]);Jt.prototype.copy.call(v,m),this.parser.assignFinalMaterial(v),_.push(v)}return d.isGroup?(d.clear(),d.add(..._),d):_[0]}))}}const BO="glTF",tl=12,$1={JSON:1313821514,BIN:5130562};class HMt{constructor(e){this.name=wt.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,tl),s=new TextDecoder;if(this.header={magic:s.decode(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==BO)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const i=this.header.length-tl,r=new DataView(e,tl);let o=0;for(;o<i;){const a=r.getUint32(o,!0);o+=4;const l=r.getUint32(o,!0);if(o+=4,l===$1.JSON){const u=new Uint8Array(e,tl+o,a);this.content=s.decode(u)}else if(l===$1.BIN){const u=tl+o;this.body=e.slice(u,u+a)}o+=a}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class qMt{constructor(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=wt.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){const s=this.json,i=this.dracoLoader,r=e.extensions[this.name].bufferView,o=e.extensions[this.name].attributes,a={},l={},u={};for(const d in o){const h=$g[d]||d.toLowerCase();a[h]=o[d]}for(const d in e.attributes){const h=$g[d]||d.toLowerCase();if(o[d]!==void 0){const f=s.accessors[e.attributes[d]],_=Wo[f.componentType];u[h]=_.name,l[h]=f.normalized===!0}}return t.getDependency("bufferView",r).then(function(d){return new Promise(function(h){i.decodeDracoFile(d,function(f){for(const _ in f.attributes){const m=f.attributes[_],E=l[_];E!==void 0&&(m.normalized=E)}h(f)},a,u)})})}}class YMt{constructor(){this.name=wt.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return(t.texCoord===void 0||t.texCoord===e.channel)&&t.offset===void 0&&t.rotation===void 0&&t.scale===void 0||(e=e.clone(),t.texCoord!==void 0&&(e.channel=t.texCoord),t.offset!==void 0&&e.offset.fromArray(t.offset),t.rotation!==void 0&&(e.rotation=t.rotation),t.scale!==void 0&&e.repeat.fromArray(t.scale),e.needsUpdate=!0),e}}class $Mt{constructor(){this.name=wt.KHR_MESH_QUANTIZATION}}class GO extends ec{constructor(e,t,s,i){super(e,t,s,i)}copySampleValue_(e){const t=this.resultBuffer,s=this.sampleValues,i=this.valueSize,r=e*i*3+i;for(let o=0;o!==i;o++)t[o]=s[r+o];return t}interpolate_(e,t,s,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=a*2,u=a*3,d=i-t,h=(s-t)/d,f=h*h,_=f*h,m=e*u,E=m-u,b=-2*_+3*f,g=_-f,y=1-b,v=g-f+h;for(let S=0;S!==a;S++){const w=o[E+S+a],x=o[E+S+l]*d,A=o[m+S+a],D=o[m+S]*d;r[S]=y*w+v*x+b*A+g*D}return r}}const WMt=new mr;class KMt extends GO{interpolate_(e,t,s,i){const r=super.interpolate_(e,t,s,i);return WMt.fromArray(r).normalize().toArray(r),r}}const rs={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},Wo={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},W1={9728:mn,9729:zn,9984:Fg,9985:tO,9986:bd,9987:Xr},K1={33071:as,33648:Wd,10497:ca},Km={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},$g={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},Yi={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},jMt={CUBICSPLINE:void 0,LINEAR:ua,STEP:Bl},jm={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function QMt(n){return n.DefaultMaterial===void 0&&(n.DefaultMaterial=new LE({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:Oi})),n.DefaultMaterial}function wr(n,e,t){for(const s in t.extensions)n[s]===void 0&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[s]=t.extensions[s])}function er(n,e){e.extras!==void 0&&(typeof e.extras=="object"?Object.assign(n.userData,e.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+e.extras))}function XMt(n,e,t){let s=!1,i=!1,r=!1;for(let u=0,d=e.length;u<d;u++){const h=e[u];if(h.POSITION!==void 0&&(s=!0),h.NORMAL!==void 0&&(i=!0),h.COLOR_0!==void 0&&(r=!0),s&&i&&r)break}if(!s&&!i&&!r)return Promise.resolve(n);const o=[],a=[],l=[];for(let u=0,d=e.length;u<d;u++){const h=e[u];if(s){const f=h.POSITION!==void 0?t.getDependency("accessor",h.POSITION):n.attributes.position;o.push(f)}if(i){const f=h.NORMAL!==void 0?t.getDependency("accessor",h.NORMAL):n.attributes.normal;a.push(f)}if(r){const f=h.COLOR_0!==void 0?t.getDependency("accessor",h.COLOR_0):n.attributes.color;l.push(f)}}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(l)]).then(function(u){const d=u[0],h=u[1],f=u[2];return s&&(n.morphAttributes.position=d),i&&(n.morphAttributes.normal=h),r&&(n.morphAttributes.color=f),n.morphTargetsRelative=!0,n})}function ZMt(n,e){if(n.updateMorphTargets(),e.weights!==void 0)for(let t=0,s=e.weights.length;t<s;t++)n.morphTargetInfluences[t]=e.weights[t];if(e.extras&&Array.isArray(e.extras.targetNames)){const t=e.extras.targetNames;if(n.morphTargetInfluences.length===t.length){n.morphTargetDictionary={};for(let s=0,i=t.length;s<i;s++)n.morphTargetDictionary[t[s]]=s}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function JMt(n){let e;const t=n.extensions&&n.extensions[wt.KHR_DRACO_MESH_COMPRESSION];if(t?e="draco:"+t.bufferView+":"+t.indices+":"+Qm(t.attributes):e=n.indices+":"+Qm(n.attributes)+":"+n.mode,n.targets!==void 0)for(let s=0,i=n.targets.length;s<i;s++)e+=":"+Qm(n.targets[s]);return e}function Qm(n){let e="";const t=Object.keys(n).sort();for(let s=0,i=t.length;s<i;s++)e+=t[s]+":"+n[t[s]]+";";return e}function Wg(n){switch(n){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function e2t(n){return n.search(/\.jpe?g($|\?)/i)>0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const t2t=new xt;class n2t{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new CMt,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,i=!1,r=-1;typeof navigator<"u"&&(s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,r=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||s||i&&r<98?this.textureLoader=new UO(this.options.manager):this.textureLoader=new hMt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new PO(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,i=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([s.getDependencies("scene"),s.getDependencies("animation"),s.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:s,userData:{}};return wr(r,a,i),er(a,i),Promise.all(s._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||[],s=this.json.meshes||[];for(let i=0,r=t.length;i<r;i++){const o=t[i].joints;for(let a=0,l=o.length;a<l;a++)e[o[a]].isBone=!0}for(let i=0,r=e.length;i<r;i++){const o=e[i];o.mesh!==void 0&&(this._addNodeRef(this.meshCache,o.mesh),o.skin!==void 0&&(s[o.mesh].isSkinnedMesh=!0)),o.camera!==void 0&&this._addNodeRef(this.cameraCache,o.camera)}}_addNodeRef(e,t){t!==void 0&&(e.refs[t]===void 0&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,s){if(e.refs[t]<=1)return s;const i=s.clone(),r=(o,a)=>{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[u,d]of o.children.entries())r(d,a.children[u])};return r(s,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let s=0;s<t.length;s++){const i=e(t[s]);if(i)return i}return null}_invokeAll(e){const t=Object.values(this.plugins);t.unshift(this);const s=[];for(let i=0;i<t.length;i++){const r=e(t[i]);r&&s.push(r)}return s}getDependency(e,t){const s=e+":"+t;let i=this.cache.get(s);if(!i){switch(e){case"scene":i=this.loadScene(t);break;case"node":i=this._invokeOne(function(r){return r.loadNode&&r.loadNode(t)});break;case"mesh":i=this._invokeOne(function(r){return r.loadMesh&&r.loadMesh(t)});break;case"accessor":i=this.loadAccessor(t);break;case"bufferView":i=this._invokeOne(function(r){return r.loadBufferView&&r.loadBufferView(t)});break;case"buffer":i=this.loadBuffer(t);break;case"material":i=this._invokeOne(function(r){return r.loadMaterial&&r.loadMaterial(t)});break;case"texture":i=this._invokeOne(function(r){return r.loadTexture&&r.loadTexture(t)});break;case"skin":i=this.loadSkin(t);break;case"animation":i=this._invokeOne(function(r){return r.loadAnimation&&r.loadAnimation(t)});break;case"camera":i=this.loadCamera(t);break;default:if(i=this._invokeOne(function(r){return r!=this&&r.getDependency&&r.getDependency(e,t)}),!i)throw new Error("Unknown type: "+e);break}this.cache.add(s,i)}return i}getDependencies(e){let t=this.cache.get(e);if(!t){const s=this,i=this.json[e+(e==="mesh"?"es":"s")]||[];t=Promise.all(i.map(function(r,o){return s.getDependency(e,o)})),this.cache.add(e,t)}return t}loadBuffer(e){const t=this.json.buffers[e],s=this.fileLoader;if(t.type&&t.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(t.uri===void 0&&e===0)return Promise.resolve(this.extensions[wt.KHR_BINARY_GLTF].body);const i=this.options;return new Promise(function(r,o){s.load(El.resolveURL(t.uri,i.path),r,void 0,function(){o(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))})})}loadBufferView(e){const t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then(function(s){const i=t.byteLength||0,r=t.byteOffset||0;return s.slice(r,r+i)})}loadAccessor(e){const t=this,s=this.json,i=this.json.accessors[e];if(i.bufferView===void 0&&i.sparse===void 0){const o=Km[i.type],a=Wo[i.componentType],l=i.normalized===!0,u=new a(i.count*o);return Promise.resolve(new Bn(u,o,l))}const r=[];return i.bufferView!==void 0?r.push(this.getDependency("bufferView",i.bufferView)):r.push(null),i.sparse!==void 0&&(r.push(this.getDependency("bufferView",i.sparse.indices.bufferView)),r.push(this.getDependency("bufferView",i.sparse.values.bufferView))),Promise.all(r).then(function(o){const a=o[0],l=Km[i.type],u=Wo[i.componentType],d=u.BYTES_PER_ELEMENT,h=d*l,f=i.byteOffset||0,_=i.bufferView!==void 0?s.bufferViews[i.bufferView].byteStride:void 0,m=i.normalized===!0;let E,b;if(_&&_!==h){const g=Math.floor(f/_),y="InterleavedBuffer:"+i.bufferView+":"+i.componentType+":"+g+":"+i.count;let v=t.cache.get(y);v||(E=new u(a,g*_,i.count*_/d),v=new BIt(E,_/d),t.cache.add(y,v)),b=new ME(v,l,f%_/d,m)}else a===null?E=new u(i.count*l):E=new u(a,f,i.count*l),b=new Bn(E,l,m);if(i.sparse!==void 0){const g=Km.SCALAR,y=Wo[i.sparse.indices.componentType],v=i.sparse.indices.byteOffset||0,S=i.sparse.values.byteOffset||0,w=new y(o[1],v,i.sparse.count*g),x=new u(o[2],S,i.sparse.count*l);a!==null&&(b=new Bn(b.array.slice(),b.itemSize,b.normalized));for(let A=0,D=w.length;A<D;A++){const T=w[A];if(b.setX(T,x[A*l]),l>=2&&b.setY(T,x[A*l+1]),l>=3&&b.setZ(T,x[A*l+2]),l>=4&&b.setW(T,x[A*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,s=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=s.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,s){const i=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const u=this.loadImageSource(t,s).then(function(d){d.flipY=!1,d.name=o.name||a.name||"",d.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(d.name=a.uri);const f=(r.samplers||{})[o.sampler]||{};return d.magFilter=W1[f.magFilter]||zn,d.minFilter=W1[f.minFilter]||Xr,d.wrapS=K1[f.wrapS]||ca,d.wrapT=K1[f.wrapT]||ca,i.associations.set(d,{textures:e}),d}).catch(function(){return null});return this.textureCache[l]=u,u}loadImageSource(e,t){const s=this,i=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=i.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",u=!1;if(o.bufferView!==void 0)l=s.getDependency("bufferView",o.bufferView).then(function(h){u=!0;const f=new Blob([h],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const d=Promise.resolve(l).then(function(h){return new Promise(function(f,_){let m=f;t.isImageBitmapLoader===!0&&(m=function(E){const b=new xn(E);b.needsUpdate=!0,f(b)}),t.load(El.resolveURL(h,r.path),m,void 0,_)})}).then(function(h){return u===!0&&a.revokeObjectURL(l),h.userData.mimeType=o.mimeType||e2t(o.uri),h}).catch(function(h){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),h});return this.sourceCache[e]=d,d}assignTexture(e,t,s,i){const r=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),r.extensions[wt.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[wt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[wt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return i!==void 0&&(o.colorSpace=i),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let s=e.material;const i=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+s.uuid;let l=this.cache.get(a);l||(l=new DO,ks.prototype.copy.call(l,s),l.color.copy(s.color),l.map=s.map,l.sizeAttenuation=!1,this.cache.add(a,l)),s=l}else if(e.isLine){const a="LineBasicMaterial:"+s.uuid;let l=this.cache.get(a);l||(l=new MO,ks.prototype.copy.call(l,s),l.color.copy(s.color),l.map=s.map,this.cache.add(a,l)),s=l}if(i||r||o){let a="ClonedMaterial:"+s.uuid+":";i&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=s.clone(),r&&(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(s))),s=l}e.material=s}getMaterialType(){return LE}loadMaterial(e){const t=this,s=this.json,i=this.extensions,r=s.materials[e];let o;const a={},l=r.extensions||{},u=[];if(l[wt.KHR_MATERIALS_UNLIT]){const h=i[wt.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),u.push(h.extendParams(a,r,t))}else{const h=r.pbrMetallicRoughness||{};if(a.color=new ut(1,1,1),a.opacity=1,Array.isArray(h.baseColorFactor)){const f=h.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],Cn),a.opacity=f[3]}h.baseColorTexture!==void 0&&u.push(t.assignTexture(a,"map",h.baseColorTexture,en)),a.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,a.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(u.push(t.assignTexture(a,"metalnessMap",h.metallicRoughnessTexture)),u.push(t.assignTexture(a,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),u.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=qs);const d=r.alphaMode||jm.OPAQUE;if(d===jm.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,d===jm.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==ir&&(u.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new Rt(1,1),r.normalTexture.scale!==void 0)){const h=r.normalTexture.scale;a.normalScale.set(h,h)}if(r.occlusionTexture!==void 0&&o!==ir&&(u.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==ir){const h=r.emissiveFactor;a.emissive=new ut().setRGB(h[0],h[1],h[2],Cn)}return r.emissiveTexture!==void 0&&o!==ir&&u.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,en)),Promise.all(u).then(function(){const h=new o(a);return r.name&&(h.name=r.name),er(h,r),t.associations.set(h,{materials:e}),r.extensions&&wr(i,h,r),h})}createUniqueName(e){const t=Bt.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,s=this.extensions,i=this.primitiveCache;function r(a){return s[wt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return j1(l,a,t)})}const o=[];for(let a=0,l=e.length;a<l;a++){const u=e[a],d=JMt(u),h=i[d];if(h)o.push(h.promise);else{let f;u.extensions&&u.extensions[wt.KHR_DRACO_MESH_COMPRESSION]?f=r(u):f=j1(new ri,u,t),i[d]={primitive:u,promise:f},o.push(f)}}return Promise.all(o)}loadMesh(e){const t=this,s=this.json,i=this.extensions,r=s.meshes[e],o=r.primitives,a=[];for(let l=0,u=o.length;l<u;l++){const d=o[l].material===void 0?QMt(this.cache):this.getDependency("material",o[l].material);a.push(d)}return a.push(t.loadGeometries(o)),Promise.all(a).then(function(l){const u=l.slice(0,l.length-1),d=l[l.length-1],h=[];for(let _=0,m=d.length;_<m;_++){const E=d[_],b=o[_];let g;const y=u[_];if(b.mode===rs.TRIANGLES||b.mode===rs.TRIANGLE_STRIP||b.mode===rs.TRIANGLE_FAN||b.mode===void 0)g=r.isSkinnedMesh===!0?new VIt(E,y):new Un(E,y),g.isSkinnedMesh===!0&&g.normalizeSkinWeights(),b.mode===rs.TRIANGLE_STRIP?g.geometry=Y1(g.geometry,cO):b.mode===rs.TRIANGLE_FAN&&(g.geometry=Y1(g.geometry,Bg));else if(b.mode===rs.LINES)g=new $It(E,y);else if(b.mode===rs.LINE_STRIP)g=new kE(E,y);else if(b.mode===rs.LINE_LOOP)g=new WIt(E,y);else if(b.mode===rs.POINTS)g=new KIt(E,y);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+b.mode);Object.keys(g.geometry.morphAttributes).length>0&&ZMt(g,r),g.name=t.createUniqueName(r.name||"mesh_"+e),er(g,r),b.extensions&&wr(i,g,b),t.assignFinalMaterial(g),h.push(g)}for(let _=0,m=h.length;_<m;_++)t.associations.set(h[_],{meshes:e,primitives:_});if(h.length===1)return r.extensions&&wr(i,h[0],r),h[0];const f=new Fr;r.extensions&&wr(i,f,r),t.associations.set(f,{meshes:e});for(let _=0,m=h.length;_<m;_++)f.add(h[_]);return f})}loadCamera(e){let t;const s=this.json.cameras[e],i=s[s.type];if(!i){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return s.type==="perspective"?t=new Pn(Mwt.radToDeg(i.yfov),i.aspectRatio||1,i.znear||1,i.zfar||2e6):s.type==="orthographic"&&(t=new OE(-i.xmag,i.xmag,i.ymag,-i.ymag,i.znear,i.zfar)),s.name&&(t.name=this.createUniqueName(s.name)),er(t,s),Promise.resolve(t)}loadSkin(e){const t=this.json.skins[e],s=[];for(let i=0,r=t.joints.length;i<r;i++)s.push(this._loadNodeShallow(t.joints[i]));return t.inverseBindMatrices!==void 0?s.push(this.getDependency("accessor",t.inverseBindMatrices)):s.push(null),Promise.all(s).then(function(i){const r=i.pop(),o=i,a=[],l=[];for(let u=0,d=o.length;u<d;u++){const h=o[u];if(h){a.push(h);const f=new xt;r!==null&&f.fromArray(r.array,u*16),l.push(f)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',t.joints[u])}return new DE(a,l)})}loadAnimation(e){const t=this.json,s=this,i=t.animations[e],r=i.name?i.name:"animation_"+e,o=[],a=[],l=[],u=[],d=[];for(let h=0,f=i.channels.length;h<f;h++){const _=i.channels[h],m=i.samplers[_.sampler],E=_.target,b=E.node,g=i.parameters!==void 0?i.parameters[m.input]:m.input,y=i.parameters!==void 0?i.parameters[m.output]:m.output;E.node!==void 0&&(o.push(this.getDependency("node",b)),a.push(this.getDependency("accessor",g)),l.push(this.getDependency("accessor",y)),u.push(m),d.push(E))}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(l),Promise.all(u),Promise.all(d)]).then(function(h){const f=h[0],_=h[1],m=h[2],E=h[3],b=h[4],g=[];for(let y=0,v=f.length;y<v;y++){const S=f[y],w=_[y],x=m[y],A=E[y],D=b[y];if(S===void 0)continue;S.updateMatrix&&S.updateMatrix();const T=s._createAnimationTracks(S,w,x,A,D);if(T)for(let O=0;O<T.length;O++)g.push(T[O])}return new tMt(r,void 0,g)})}createNodeMesh(e){const t=this.json,s=this,i=t.nodes[e];return i.mesh===void 0?null:s.getDependency("mesh",i.mesh).then(function(r){const o=s._getNodeRef(s.meshCache,i.mesh,r);return i.weights!==void 0&&o.traverse(function(a){if(a.isMesh)for(let l=0,u=i.weights.length;l<u;l++)a.morphTargetInfluences[l]=i.weights[l]}),o})}loadNode(e){const t=this.json,s=this,i=t.nodes[e],r=s._loadNodeShallow(e),o=[],a=i.children||[];for(let u=0,d=a.length;u<d;u++)o.push(s.getDependency("node",a[u]));const l=i.skin===void 0?Promise.resolve(null):s.getDependency("skin",i.skin);return Promise.all([r,Promise.all(o),l]).then(function(u){const d=u[0],h=u[1],f=u[2];f!==null&&d.traverse(function(_){_.isSkinnedMesh&&_.bind(f,t2t)});for(let _=0,m=h.length;_<m;_++)d.add(h[_]);return d})}_loadNodeShallow(e){const t=this.json,s=this.extensions,i=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];const r=t.nodes[e],o=r.name?i.createUniqueName(r.name):"",a=[],l=i._invokeOne(function(u){return u.createNodeMesh&&u.createNodeMesh(e)});return l&&a.push(l),r.camera!==void 0&&a.push(i.getDependency("camera",r.camera).then(function(u){return i._getNodeRef(i.cameraCache,r.camera,u)})),i._invokeAll(function(u){return u.createNodeAttachment&&u.createNodeAttachment(e)}).forEach(function(u){a.push(u)}),this.nodeCache[e]=Promise.all(a).then(function(u){let d;if(r.isBone===!0?d=new IO:u.length>1?d=new Fr:u.length===1?d=u[0]:d=new Jt,d!==u[0])for(let h=0,f=u.length;h<f;h++)d.add(u[h]);if(r.name&&(d.userData.name=r.name,d.name=o),er(d,r),r.extensions&&wr(s,d,r),r.matrix!==void 0){const h=new xt;h.fromArray(r.matrix),d.applyMatrix4(h)}else r.translation!==void 0&&d.position.fromArray(r.translation),r.rotation!==void 0&&d.quaternion.fromArray(r.rotation),r.scale!==void 0&&d.scale.fromArray(r.scale);return i.associations.has(d)||i.associations.set(d,{}),i.associations.get(d).nodes=e,d}),this.nodeCache[e]}loadScene(e){const t=this.extensions,s=this.json.scenes[e],i=this,r=new Fr;s.name&&(r.name=i.createUniqueName(s.name)),er(r,s),s.extensions&&wr(t,r,s);const o=s.nodes||[],a=[];for(let l=0,u=o.length;l<u;l++)a.push(i.getDependency("node",o[l]));return Promise.all(a).then(function(l){for(let d=0,h=l.length;d<h;d++)r.add(l[d]);const u=d=>{const h=new Map;for(const[f,_]of i.associations)(f instanceof ks||f instanceof xn)&&h.set(f,_);return d.traverse(f=>{const _=i.associations.get(f);_!=null&&h.set(f,_)}),h};return i.associations=u(r),r})}_createAnimationTracks(e,t,s,i,r){const o=[],a=e.name?e.name:e.uuid,l=[];Yi[r.path]===Yi.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let u;switch(Yi[r.path]){case Yi.weights:u=ha;break;case Yi.rotation:u=eo;break;case Yi.position:case Yi.scale:u=fa;break;default:switch(s.itemSize){case 1:u=ha;break;case 2:case 3:default:u=fa;break}break}const d=i.interpolation!==void 0?jMt[i.interpolation]:ua,h=this._getArrayFromAccessor(s);for(let f=0,_=l.length;f<_;f++){const m=new u(l[f]+"."+Yi[r.path],t.array,h,d);i.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(m),o.push(m)}return o}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const s=Wg(t.constructor),i=new Float32Array(t.length);for(let r=0,o=t.length;r<o;r++)i[r]=t[r]*s;t=i}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(s){const i=this instanceof eo?KMt:GO;return new i(this.times,this.values,this.getValueSize()/3,s)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function s2t(n,e,t){const s=e.attributes,i=new ki;if(s.POSITION!==void 0){const a=t.json.accessors[s.POSITION],l=a.min,u=a.max;if(l!==void 0&&u!==void 0){if(i.set(new ie(l[0],l[1],l[2]),new ie(u[0],u[1],u[2])),a.normalized){const d=Wg(Wo[a.componentType]);i.min.multiplyScalar(d),i.max.multiplyScalar(d)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else return;const r=e.targets;if(r!==void 0){const a=new ie,l=new ie;for(let u=0,d=r.length;u<d;u++){const h=r[u];if(h.POSITION!==void 0){const f=t.json.accessors[h.POSITION],_=f.min,m=f.max;if(_!==void 0&&m!==void 0){if(l.setX(Math.max(Math.abs(_[0]),Math.abs(m[0]))),l.setY(Math.max(Math.abs(_[1]),Math.abs(m[1]))),l.setZ(Math.max(Math.abs(_[2]),Math.abs(m[2]))),f.normalized){const E=Wg(Wo[f.componentType]);l.multiplyScalar(E)}a.max(l)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}i.expandByVector(a)}n.boundingBox=i;const o=new ii;i.getCenter(o.center),o.radius=i.min.distanceTo(i.max)/2,n.boundingSphere=o}function j1(n,e,t){const s=e.attributes,i=[];function r(o,a){return t.getDependency("accessor",o).then(function(l){n.setAttribute(a,l)})}for(const o in s){const a=$g[o]||o.toLowerCase();a in n.attributes||i.push(r(s[o],a))}if(e.indices!==void 0&&!n.index){const o=t.getDependency("accessor",e.indices).then(function(a){n.setIndex(a)});i.push(o)}return Ut.workingColorSpace!==Cn&&"COLOR_0"in s&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Ut.workingColorSpace}" not supported.`),er(n,e),s2t(n,e,t),Promise.all(i).then(function(){return e.targets!==void 0?XMt(n,e.targets,t):n})}const i2t={data(){return{isVideoActive:!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:{startVideoStream(){this.isVideoActive=!0,He.emit("start_webcam_video_stream"),Ue(()=>{Ge.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,He.emit("stop_webcam_video_stream"),Ue(()=>{Ge.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(){Ge.replace(),He.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)}})}},r2t=["src"],o2t=["src"],a2t={class:"controls"},l2t=c("i",{"data-feather":"video"},null,-1),c2t=[l2t],d2t=c("i",{"data-feather":"video"},null,-1),u2t=[d2t],p2t={key:2};function _2t(n,e,t,s,i,r){return C(),R("div",{class:"floating-frame bg-white",style:jt({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=ae((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=ae((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=ae((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=ae((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),i.isVideoActive&&i.imageDataUrl!=null?(C(),R("img",{key:0,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,r2t)):G("",!0),i.isVideoActive&&i.imageDataUrl==null?(C(),R("p",{key:1,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,o2t)):G("",!0),c("div",a2t,[i.isVideoActive?G("",!0):(C(),R("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startVideoStream&&r.startVideoStream(...o))},c2t)),i.isVideoActive?(C(),R("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopVideoStream&&r.stopVideoStream(...o))},u2t)):G("",!0),i.isVideoActive?(C(),R("span",p2t,"FPS: "+se(i.frameRate),1)):G("",!0)])],36)}const h2t=pt(i2t,[["render",_2t]]);const f2t={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(){He.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Ue(()=>{Ge.replace()})},stopAudioStream(){He.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Ue(()=>{Ge.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(){Ge.replace(),He.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)}})}},m2t=["src"],g2t={class:"controls"},b2t=c("i",{"data-feather":"mic"},null,-1),E2t=[b2t],y2t=c("i",{"data-feather":"mic"},null,-1),v2t=[y2t];function S2t(n,e,t,s,i,r){return C(),R("div",{class:"floating-frame bg-white",style:jt({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=ae((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=ae((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[c("div",{class:"handle",onMousedown:e[0]||(e[0]=ae((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=ae((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),i.isAudioActive&&i.imageDataUrl!=null?(C(),R("img",{key:0,src:i.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,m2t)):G("",!0),c("div",g2t,[i.isAudioActive?G("",!0):(C(),R("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startAudioStream&&r.startAudioStream(...o))},E2t)),i.isAudioActive?(C(),R("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopAudioStream&&r.stopAudioStream(...o))},v2t)):G("",!0)])],36)}const T2t=pt(f2t,[["render",S2t]]);const x2t={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:h2t,AudioFrame:T2t},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(),Ue(()=>{Ge.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 FIt,this.camera=new Pn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new OO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new dr,e=new G1({color:65280});this.cube=new Un(n,e),this.scene.add(this.cube);const t=new _Mt(4210752),s=new FO(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 xMt().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 dr,t=new UO().load(n),s=new ir({map:t});this.cube=new Un(e,s),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new dr,e=new G1({color:65280});this.cube=new Un(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)}}},C2t={ref:"webglContainer"},w2t={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"},R2t={key:0,class:"text-center"},A2t={key:1,class:"text-center"},N2t={class:"floating-frame2"},O2t=["innerHTML"];function I2t(n,e,t,s,i,r){const o=dt("VideoFrame"),a=dt("AudioFrame");return C(),R(ze,null,[c("div",C2t,null,512),c("div",w2t,[!i.activePersonality||!i.activePersonality.scene_path?(C(),R("div",R2t," Personality does not have a 3d avatar. ")):G("",!0),!i.activePersonality||!i.activePersonality.avatar||i.activePersonality.avatar===""?(C(),R("div",A2t," Personality does not have an avatar. ")):G("",!0),c("div",N2t,[c("div",{innerHTML:n.htmlContent},null,8,O2t)])]),_e(o,{ref:"video_frame"},null,512),_e(a,{ref:"audio_frame"},null,512)],64)}const M2t=pt(x2t,[["render",I2t]]);let id;const D2t=new Uint8Array(16);function k2t(){if(!id&&(id=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!id))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return id(D2t)}const yn=[];for(let n=0;n<256;++n)yn.push((n+256).toString(16).slice(1));function L2t(n,e=0){return yn[n[e+0]]+yn[n[e+1]]+yn[n[e+2]]+yn[n[e+3]]+"-"+yn[n[e+4]]+yn[n[e+5]]+"-"+yn[n[e+6]]+yn[n[e+7]]+"-"+yn[n[e+8]]+yn[n[e+9]]+"-"+yn[n[e+10]]+yn[n[e+11]]+yn[n[e+12]]+yn[n[e+13]]+yn[n[e+14]]+yn[n[e+15]]}const P2t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Q1={randomUUID:P2t};function Ci(n,e,t){if(Q1.randomUUID&&!e&&!n)return Q1.randomUUID();n=n||{};const s=n.random||(n.rng||k2t)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=s[i];return e}return L2t(s)}class $r{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 zt extends $r{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class In extends $r{constructor(e){super(),this.entity=e}emit(e){let t=!1;const s=()=>[t=!0];for(const i of Array.from(this.listeners.values()))if(i(e,s,this.entity),t)return{prevented:!0};return{prevented:!1}}}class VO extends $r{execute(e,t){let s=e;for(const i of this.listeners)s=i(s,t);return s}}class es extends VO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class U2t extends $r{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 Gs(){const n=Symbol(),e=new Map,t=new Set,s=(l,u)=>{u instanceof $r&&u.registerProxy(n,()=>{var d,h;return(h=(d=e.get(l))===null||d===void 0?void 0:d.listeners)!==null&&h!==void 0?h:[]})},i=l=>{const u=new $r;e.set(l,u),t.forEach(d=>s(l,d[l]))},r=l=>{t.add(l);for(const u of e.keys())s(u,l[u])},o=l=>{for(const u of e.keys())l[u]instanceof $r&&l[u].unregisterProxy(n);t.delete(l)},a=()=>{t.forEach(l=>o(l)),e.clear()};return new Proxy({},{get(l,u){return u==="addTarget"?r:u==="removeTarget"?o:u==="destroy"?a:typeof u!="string"||u.startsWith("_")?l[u]:(e.has(u)||i(u),e.get(u))}})}class X1{constructor(e,t){if(this.destructed=!1,this.events={destruct:new zt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Ci(),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 zO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Ci(),this.from=e,this.to=t}}function Kg(n,e){return Object.fromEntries(Object.entries(n).map(([t,s])=>[t,e(s)]))}class HO{constructor(){this._title="",this.id=Ci(),this.events={loaded:new zt(this),beforeAddInput:new In(this),addInput:new zt(this),beforeRemoveInput:new In(this),removeInput:new zt(this),beforeAddOutput:new In(this),addOutput:new zt(this),beforeRemoveOutput:new In(this),removeOutput:new zt(this),beforeTitleChanged:new In(this),titleChanged:new zt(this),update:new zt(this)},this.hooks={beforeLoad:new es(this),afterSave:new es(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=Kg(this.inputs,i=>i.save()),t=Kg(this.outputs,i=>i.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 i=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,r=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return i.emit(s).prevented?!1:(o[t]=s,this.initializeIntf(e,t,s),r.emit(s),!0)}removeInterface(e,t){const s=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,i=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[t]:this.outputs[t];if(!r||s.emit(r).prevented)return!1;if(r.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===r||a.to===r).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return r.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],i.emit(r),!0}}let qO=class extends HO{load(e){super.load(e)}save(){return super.save()}};function Ua(n){return class extends qO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(s,i)=>n.calculate.call(this,s,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(s=>{const i=t[s]();e==="input"?this.addInput(s,i):this.addOutput(s,i)})}}}class Xt{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=Ci(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new zt(this),beforeSetValue:new In(this),setValue:new zt(this),updated:new zt(this)},this.hooks={load:new es(this),save:new es(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 ga="__baklava_SubgraphInputNode",ba="__baklava_SubgraphOutputNode";class YO extends qO{constructor(){super(),this.graphInterfaceId=Ci()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class $O extends YO{constructor(){super(...arguments),this.type=ga,this.inputs={name:new Xt("Name","Input")},this.outputs={placeholder:new Xt("Value",void 0)}}static isGraphInputNode(e){return e.type===ga}}class WO extends YO{constructor(){super(...arguments),this.type=ba,this.inputs={name:new Xt("Name","Output"),placeholder:new Xt("Value",void 0)},this.outputs={output:new Xt("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===ba}}class tc{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===ga).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===ba).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Ci(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new In(this),addNode:new zt(this),beforeRemoveNode:new In(this),removeNode:new zt(this),beforeAddConnection:new In(this),addConnection:new zt(this),checkConnection:new In(this),beforeRemoveConnection:new In(this),removeConnection:new zt(this)},this.hooks={save:new es(this),load:new es(this),checkConnection:new U2t(this)},this.nodeEvents=Gs(),this.nodeHooks=Gs(),this.connectionEvents=Gs(),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 r of s.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const i=new X1(s.dummyConnection.from,s.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 s=this.findNodeById(e.nodeId),i=this.findNodeById(t.nodeId);if(s&&i&&s===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 r=this.hooks.checkConnection.execute({from:e,to:t});if(r.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(r.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new zO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const s in t.inputs){const i=t.inputs[s];if(i.id===e)return i}for(const s in t.outputs){const i=t.outputs[s];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 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 i=this.editor.nodeTypes.get(s.type);if(!i){t.push(`Node type ${s.type} is not registered`);continue}const r=new i.type;this.addNode(r),r.load(s)}for(const s of e.connections){const i=this.findNodeInterface(s.from),r=this.findNodeInterface(s.to);if(i)if(r){const o=new X1(i,r);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 Vl="__baklava_GraphNode-";function Ea(n){return Vl+n.id}function F2t(n){return class extends HO{constructor(){super(...arguments),this.type=Ea(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,s)=>{var i;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 r=s.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)r.set(l.nodeInterfaceId,t[l.id]);const o=await s.engine.runGraph(this.subgraph,r,s.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,new Xt(t.name,void 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,new Xt(t.name,void 0));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(s=>s.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new Xt("_calculationResults",void 0).setHidden(!0))}}}class Ku{static fromGraph(e,t){return new Ku(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(Ea(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===ga).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===ba).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Ci(),this._name="Subgraph",this.events={nameChanged:new zt(this),updated:new zt(this)},this.hooks={beforeLoad:new es(this),afterSave:new es(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=f=>{const _=Ci();return t.set(f,_),_},i=f=>{const _=t.get(f);if(!_)throw new Error(`Unable to create graph from template: Could not map old id ${f} to new id`);return _},r=f=>Kg(f,_=>({id:s(_.id),templateId:_.id,value:_.value})),o=this.nodes.map(f=>({...f,id:s(f.id),inputs:r(f.inputs),outputs:r(f.outputs)})),a=this.connections.map(f=>({id:s(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)})),u=this.outputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),d={id:Ci(),nodes:o,connections:a,inputs:l,outputs:u};return e||(e=new tc(this.editor)),e.load(d).forEach(f=>console.warn(f)),e.template=this,e}}class B2t{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 zt(this),beforeRegisterNodeType:new In(this),registerNodeType:new zt(this),beforeUnregisterNodeType:new In(this),unregisterNodeType:new zt(this),beforeAddGraphTemplate:new In(this),addGraphTemplate:new zt(this),beforeRemoveGraphTemplate:new In(this),removeGraphTemplate:new zt(this),registerGraph:new zt(this),unregisterGraph:new zt(this)},this.hooks={save:new es(this),load:new es(this)},this.graphTemplateEvents=Gs(),this.graphTemplateHooks=Gs(),this.graphEvents=Gs(),this.graphHooks=Gs(),this.nodeEvents=Gs(),this.nodeHooks=Gs(),this.connectionEvents=Gs(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new tc(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType($O),this.registerNodeType(WO)}registerNodeType(e,t){var s,i;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(s=t==null?void 0:t.category)!==null&&s!==void 0?s:"default",title:(i=t==null?void 0:t.title)!==null&&i!==void 0?i:r.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=F2t(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=Ea(e);for(const s of[this.graph,...this.graphs.values()]){const i=s.nodes.filter(r=>r.type===t);for(const r of i)s.removeNode(r)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{this._loading=!0,e=this.hooks.load.execute(e),e.graphTemplates.forEach(s=>{const i=new Ku(s,this);this.addGraphTemplate(i)});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 G2t(n,e){const t=new Map;e.graphs.forEach(s=>{s.nodes.forEach(i=>t.set(i.id,i))}),n.forEach((s,i)=>{const r=t.get(i);r&&s.forEach((o,a)=>{const l=r.outputs[a];l&&(l.value=o)})})}class KO extends Error{constructor(){super("Cycle detected")}}function V2t(n){return typeof n=="string"}function jO(n,e){const t=new Map,s=new Map,i=new Map;let r,o;if(n instanceof tc)r=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=n,o=e}r.forEach(u=>{Object.values(u.inputs).forEach(d=>t.set(d.id,u.id)),Object.values(u.outputs).forEach(d=>t.set(d.id,u.id))}),r.forEach(u=>{const d=o.filter(f=>f.from&&t.get(f.from.id)===u.id),h=new Set(d.map(f=>t.get(f.to.id)).filter(V2t));s.set(u.id,h),i.set(u,d)});const a=r.slice();o.forEach(u=>{const d=a.findIndex(h=>t.get(u.to.id)===h.id);d>=0&&a.splice(d,1)});const l=[];for(;a.length>0;){const u=a.pop();l.push(u);const d=s.get(u.id);for(;d.size>0;){const h=d.values().next().value;if(d.delete(h),Array.from(s.values()).every(f=>!f.has(h))){const f=r.find(_=>_.id===h);a.push(f)}}}if(Array.from(s.values()).some(u=>u.size>0))throw new KO;return{calculationOrder:l,connectionsFromNode:i,interfaceIdToNodeId:t}}function z2t(n,e){try{return jO(n,e),!1}catch(t){if(t instanceof KO)return!0;throw t}}var Vn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(Vn||(Vn={}));class H2t{get status(){return this.isRunning?Vn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new In(this),afterRun:new zt(this),statusChange:new zt(this),beforeNodeCalculation:new zt(this),afterNodeCalculation:new zt(this)},this.hooks={gatherCalculationData:new es(this),transferData:new VO},this.recalculateOrder=!0,this.internalStatus=Vn.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===Vn.Stopped&&(this.internalStatus=Vn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Vn.Idle&&(this.internalStatus=Vn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Vn.Paused&&(this.internalStatus=Vn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Vn.Idle||this.internalStatus===Vn.Paused)&&(this.internalStatus=Vn.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 r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(t.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};t=r}const s=new zO(e,t);let i=this.editor.graph.connections.slice();return t.allowMultipleConnections||(i=i.filter(r=>r.to!==t)),i.push(s),z2t(this.editor.graph.nodes,i)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(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===Vn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const s of e)for(const i of[...Object.values(s.inputs),...Object.values(s.outputs)])if(i.templateId===t)return i;return null}}class q2t extends H2t{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,jO(e));const{calculationOrder:i,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of i){const l={};Object.entries(a.inputs).forEach(([d,h])=>{l[d]=this.getInterfaceValue(t,h.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let u;if(a.calculate)u=await a.calculate(l,{globalValues:s,engine:this});else{u={};for(const[d,h]of Object.entries(a.outputs))u[d]=this.getInterfaceValue(t,h.id)}this.validateNodeCalculationOutput(a,u),this.events.afterNodeCalculation.emit({outputValues:u,node:a}),o.set(a.id,new Map(Object.entries(u))),r.has(a)&&r.get(a).forEach(d=>{var h;const f=(h=Object.entries(a.outputs).find(([,m])=>m.id===d.from.id))===null||h===void 0?void 0:h[0];if(!f)throw new Error(`Could not find key for interface ${d.from.id}
This is likely a Baklava internal issue. Please report it on GitHub.`);const _=this.hooks.transferData.execute(u[f],d);d.to.allowMultipleConnections?t.has(d.to.id)?t.get(d.to.id).push(_):t.set(d.to.id,[_]):t.set(d.to.id,_)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const t=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,t,e)}getInputValues(e){const t=new Map;for(const s of e.nodes)Object.values(s.inputs).forEach(i=>{i.connectionCount===0&&t.set(i.id,i.value)}),s.calculate||Object.values(s.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)}}let jg=null;function Y2t(n){jg=n}function ys(){if(!jg)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:jg}}function Fs(){const{viewModel:n}=ys();return{graph:Cd(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function QO(n){const{graph:e}=Fs(),t=lt(null),s=lt(null);return{dragging:Je(()=>!!t.value),onPointerDown:l=>{t.value={x:l.pageX,y:l.pageY},s.value={x:n.value.x,y:n.value.y}},onPointerMove:l=>{if(t.value){const u=l.pageX-t.value.x,d=l.pageY-t.value.y;n.value.x=s.value.x+u/e.value.scaling,n.value.y=s.value.y+d/e.value.scaling}},onPointerUp:()=>{t.value=null,s.value=null}}}function XO(n,e,t){if(!e.template)return!1;if(Ea(e.template)===t)return!0;const s=n.graphTemplates.find(r=>Ea(r)===t);return s?s.nodes.filter(r=>r.type.startsWith(Vl)).some(r=>XO(n,e,r.type)):!1}function ZO(n){return Je(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,i])=>i.category)),s=[];for(const i of t.values()){let r=e.filter(([,o])=>o.category===i);n.value.displayedGraph.template?r=r.filter(([o])=>!XO(n.value.editor,n.value.displayedGraph,o)):r=r.filter(([o])=>![ga,ba].includes(o)),r.length>0&&s.push({name:i,nodeTypes:Object.fromEntries(r)})}return s.sort((i,r)=>i.name==="default"?-1:r.name==="default"||i.name>r.name?1:-1),s})}function JO(){const{graph:n}=Fs();return{transform:(t,s)=>{const i=t/n.value.scaling-n.value.panning.x,r=s/n.value.scaling-n.value.panning.y;return[i,r]}}}function $2t(){const{graph:n}=Fs();let e=[],t=-1,s={x:0,y:0};const i=Je(()=>n.value.panning),r=QO(i),o=Je(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(_,m,E)=>{const b=[_/n.value.scaling-n.value.panning.x,m/n.value.scaling-n.value.panning.y],g=[_/E-n.value.panning.x,m/E-n.value.panning.y],y=[g[0]-b[0],g[1]-b[1]];n.value.panning.x+=y[0],n.value.panning.y+=y[1],n.value.scaling=E},l=_=>{_.preventDefault();let m=_.deltaY;_.deltaMode===1&&(m*=32);const E=n.value.scaling*(1-m/3e3);a(_.offsetX,_.offsetY,E)},u=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...r,onPointerDown:_=>{if(e.push(_),r.onPointerDown(_),e.length===2){const{ax:m,ay:E,bx:b,by:g}=u();s={x:m+(b-m)/2,y:E+(g-E)/2}}},onPointerMove:_=>{for(let m=0;m<e.length;m++)if(_.pointerId==e[m].pointerId){e[m]=_;break}if(e.length==2){const{ax:m,ay:E,bx:b,by:g}=u(),y=m-b,v=E-g,S=Math.sqrt(y*y+v*v);if(t>0){const w=n.value.scaling*(1+(S-t)/500);a(s.x,s.y,w)}t=S}else r.onPointerMove(_)},onPointerUp:_=>{e=e.filter(m=>m.pointerId!==_.pointerId),t=-1,r.onPointerUp()},onMouseWheel:l}}var ds=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(ds||{});const eI=Symbol();function W2t(){const{graph:n}=Fs(),e=lt(null),t=lt(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)},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:ds.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:ds.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},r=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const l=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=l.connectionAllowed?ds.ALLOWED:ds.FORBIDDEN,l.connectionAllowed){const u=l.connectionsInDanger.map(d=>d.id);n.value.connections.forEach(d=>{u.includes(d.id)&&(d.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=ds.NONE,n.value.connections.forEach(l=>{l.isInDanger=!1}))};return zo(eI,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:s,onMouseDown:i,onMouseUp:r,hoveredOver:o}}function K2t(n){const e=lt(!1),t=lt(0),s=lt(0),i=ZO(n),{transform:r}=JO(),o=Je(()=>{let d=[];const h={};for(const _ of i.value){const m=Object.entries(_.nodeTypes).map(([E,b])=>({label:b.title,value:"addNode:"+E}));_.name==="default"?d=m:h[_.name]=m}const f=[...Object.entries(h).map(([_,m])=>({label:_,submenu:m}))];return f.length>0&&d.length>0&&f.push({isDivider:!0}),f.push(...d),f}),a=Je(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(d=>"isDivider"in d||"submenu"in d?d:{label:d.label,value:"command:"+d.command,disabled:!n.value.commandHandler.canExecuteCommand(d.command)})]);function l(d){e.value=!0,t.value=d.offsetX,s.value=d.offsetY}function u(d){if(d.startsWith("addNode:")){const h=d.substring(8),f=n.value.editor.nodeTypes.get(h);if(!f)return;const _=Wn(new f.type);n.value.displayedGraph.addNode(_);const[m,E]=r(t.value,s.value);_.position.x=m,_.position.y=E}else if(d.startsWith("command:")){const h=d.substring(8);n.value.commandHandler.canExecuteCommand(h)&&n.value.commandHandler.executeCommand(h)}}return{show:e,x:t,y:s,items:a,open:l,onClick:u}}const j2t=cn({setup(){const{viewModel:n}=ys(),{graph:e}=Fs();return{styles:Je(()=>{const s=n.value.settings.background,i=e.value.panning.x*e.value.scaling,r=e.value.panning.y*e.value.scaling,o=e.value.scaling*s.gridSize,a=o/s.gridDivision,l=`${o}px ${o}px, ${o}px ${o}px`,u=e.value.scaling>s.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${i}px top ${r}px`,backgroundSize:`${l} ${u}`}})}}}),dn=(n,e)=>{const t=n.__vccOpts||n;for(const[s,i]of e)t[s]=i;return t};function Q2t(n,e,t,s,i,r){return C(),R("div",{class:"background",style:jt(n.styles)},null,4)}const X2t=dn(j2t,[["render",Q2t]]);function Z2t(n){return fw()?(GI(n),!0):!1}function BE(n){return typeof n=="function"?n():mt(n)}const tI=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const J2t=Object.prototype.toString,eDt=n=>J2t.call(n)==="[object Object]",yd=()=>{},tDt=nDt();function nDt(){var n,e;return tI&&((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 sDt(n,e,t=!1){return e.reduce((s,i)=>(i in n&&(!t||n[i]!==void 0)&&(s[i]=n[i]),s),{})}function iDt(n,e={}){if(!un(n))return vM(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const s in n.value)t[s]=yM(()=>({get(){return n.value[s]},set(i){var r;if((r=BE(e.replaceRef))!=null?r:!0)if(Array.isArray(n.value)){const a=[...n.value];a[s]=i,n.value=a}else{const a={...n.value,[s]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[s]=i}}));return t}function al(n){var e;const t=BE(n);return(e=t==null?void 0:t.$el)!=null?e:t}const GE=tI?window:void 0;function yl(...n){let e,t,s,i;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,s,i]=n,e=GE):[e,t,s,i]=n,!e)return yd;Array.isArray(t)||(t=[t]),Array.isArray(s)||(s=[s]);const r=[],o=()=>{r.forEach(d=>d()),r.length=0},a=(d,h,f,_)=>(d.addEventListener(h,f,_),()=>d.removeEventListener(h,f,_)),l=Fn(()=>[al(e),BE(i)],([d,h])=>{if(o(),!d)return;const f=eDt(h)?{...h}:h;r.push(...t.flatMap(_=>s.map(m=>a(d,_,m,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Z2t(u),u}let Z1=!1;function nI(n,e,t={}){const{window:s=GE,ignore:i=[],capture:r=!0,detectIframe:o=!1}=t;if(!s)return yd;tDt&&!Z1&&(Z1=!0,Array.from(s.document.body.children).forEach(f=>f.addEventListener("click",yd)),s.document.documentElement.addEventListener("click",yd));let a=!0;const l=f=>i.some(_=>{if(typeof _=="string")return Array.from(s.document.querySelectorAll(_)).some(m=>m===f.target||f.composedPath().includes(m));{const m=al(_);return m&&(f.target===m||f.composedPath().includes(m))}}),d=[yl(s,"click",f=>{const _=al(n);if(!(!_||_===f.target||f.composedPath().includes(_))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:r}),yl(s,"pointerdown",f=>{const _=al(n);a=!l(f)&&!!(_&&!f.composedPath().includes(_))},{passive:!0}),o&&yl(s,"blur",f=>{setTimeout(()=>{var _;const m=al(n);((_=s.document.activeElement)==null?void 0:_.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>d.forEach(f=>f())}const sI={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},rDt=Object.keys(sI);function oDt(n={}){const{target:e=GE}=n,t=lt(!1),s=lt(n.initialValue||{});Object.assign(s.value,sI,s.value);const i=r=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(r.pointerType))&&(s.value=sDt(r,rDt,!1))};if(e){const r={passive:!0};yl(e,["pointerdown","pointermove","pointerup"],i,r),yl(e,"pointerleave",()=>t.value=!1,r)}return{...iDt(s),isInside:t}}const aDt=["onMouseenter","onMouseleave","onClick"],lDt={class:"flex-fill"},cDt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},dDt=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),uDt=[dDt],VE=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 i=null;const r=lt(null),o=lt(-1),a=lt(0),l=lt({x:!1,y:!1}),u=Je(()=>t.flippable&&(l.value.x||t.isFlipped.x)),d=Je(()=>t.flippable&&(l.value.y||t.isFlipped.y)),h=Je(()=>{const y={};return t.isNested||(y.top=(d.value?t.y-a.value:t.y)+"px",y.left=t.x+"px"),y}),f=Je(()=>({"--flipped-x":u.value,"--flipped-y":d.value,"--nested":t.isNested})),_=Je(()=>t.items.map(y=>({...y,hover:!1})));Fn([()=>t.y,()=>t.items],()=>{var y,v,S,w;a.value=t.items.length*30;const x=((v=(y=r.value)==null?void 0:y.parentElement)==null?void 0:v.offsetWidth)??0,A=((w=(S=r.value)==null?void 0:S.parentElement)==null?void 0:w.offsetHeight)??0;l.value.x=!t.isNested&&t.x>x*.75,l.value.y=!t.isNested&&t.y+a.value>A-20}),nI(r,()=>{t.modelValue&&s("update:modelValue",!1)});const m=y=>{!y.submenu&&y.value&&(s("click",y.value),s("update:modelValue",!1))},E=y=>{s("click",y),o.value=-1,t.isNested||s("update:modelValue",!1)},b=(y,v)=>{t.items[v].submenu&&(o.value=v,i!==null&&(clearTimeout(i),i=null))},g=(y,v)=>{t.items[v].submenu&&(i=window.setTimeout(()=>{o.value=-1,i=null},200))};return(y,v)=>{const S=dt("ContextMenu",!0);return C(),St(Ms,{name:"slide-fade"},{default:qe(()=>[B(c("div",{ref_key:"el",ref:r,class:Fe(["baklava-context-menu",f.value]),style:jt(h.value)},[(C(!0),R(ze,null,st(_.value,(w,x)=>(C(),R(ze,null,[w.isDivider?(C(),R("div",{key:`d-${x}`,class:"divider"})):(C(),R("div",{key:`i-${x}`,class:Fe(["item",{submenu:!!w.submenu,"--disabled":!!w.disabled}]),onMouseenter:A=>b(A,x),onMouseleave:A=>g(A,x),onClick:ae(A=>m(w),["stop","prevent"])},[c("div",lDt,se(w.label),1),w.submenu?(C(),R("div",cDt,uDt)):G("",!0),w.submenu?(C(),St(S,{key:1,"model-value":o.value===x,items:w.submenu,"is-nested":!0,"is-flipped":{x:u.value,y:d.value},flippable:y.flippable,onClick:E},null,8,["model-value","items","is-flipped","flippable"])):G("",!0)],42,aDt))],64))),256))],6),[[Ot,y.modelValue]])]),_:1})}}}),pDt={},_Dt={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"},hDt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),fDt=c("circle",{cx:"12",cy:"12",r:"1"},null,-1),mDt=c("circle",{cx:"12",cy:"19",r:"1"},null,-1),gDt=c("circle",{cx:"12",cy:"5",r:"1"},null,-1),bDt=[hDt,fDt,mDt,gDt];function EDt(n,e){return C(),R("svg",_Dt,bDt)}const iI=dn(pDt,[["render",EDt]]),yDt=["id"],vDt={key:0,class:"__tooltip"},SDt={key:2,class:"align-middle"},J1=cn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,g=100)=>{const y=b!=null&&b.toString?b.toString():"";return y.length>g?y.slice(0,g)+"...":y},t=n,{viewModel:s}=ys(),{hoveredOver:i,temporaryConnection:r}=Is(eI),o=lt(null),a=Je(()=>t.intf.connectionCount>0),l=lt(!1),u=Je(()=>s.value.settings.displayValueOnHover&&l.value),d=Je(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),h=Je(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),f=()=>{l.value=!0,i(t.intf)},_=()=>{l.value=!1,i(void 0)},m=()=>{o.value&&s.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},E=()=>{const b=s.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return Mi(m),ql(m),(b,g)=>{var y;return C(),R("div",{id:b.intf.id,ref_key:"el",ref:o,class:Fe(["baklava-node-interface",d.value])},[b.intf.port?(C(),R("div",{key:0,class:Fe(["__port",{"--selected":((y=mt(r))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:_},[An(b.$slots,"portTooltip",{showTooltip:u.value},()=>[u.value===!0?(C(),R("span",vDt,se(e(b.intf.value)),1)):G("",!0)])],34)):G("",!0),h.value?(C(),St(hu(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":g[0]||(g[0]=v=>b.intf.value=v),node:b.node,intf:b.intf,onOpenSidebar:E},null,40,["modelValue","node","intf"])):(C(),R("span",SDt,se(b.intf.name),1))],10,yDt)}}}),TDt=["id","data-node-type"],xDt={class:"__title-label"},CDt={class:"__menu"},wDt={class:"__outputs"},RDt={class:"__inputs"},ADt=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:i}=ys(),{graph:r,switchGraph:o}=Fs(),a=lt(null),l=lt(!1),u=lt(""),d=lt(null),h=lt(!1),f=lt(!1),_=Je(()=>{const F=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(Vl)&&F.push({value:"editSubgraph",label:"Edit Subgraph"}),F}),m=Je(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),E=Je(()=>{var F,z;return{top:`${((F=t.node.position)==null?void 0:F.y)??0}px`,left:`${((z=t.node.position)==null?void 0:z.x)??0}px`,"--width":`${t.node.width??i.value.settings.nodes.defaultWidth}px`}}),b=Je(()=>Object.values(t.node.inputs).filter(F=>!F.hidden)),g=Je(()=>Object.values(t.node.outputs).filter(F=>!F.hidden)),y=()=>{s("select")},v=F=>{t.selected||y(),s("start-drag",F)},S=()=>{f.value=!0},w=async F=>{var z;switch(F){case"delete":r.value.removeNode(t.node);break;case"rename":u.value=t.node.title,l.value=!0,await Ue(),(z=d.value)==null||z.focus();break;case"editSubgraph":o(t.node.template);break}},x=()=>{t.node.title=u.value,l.value=!1},A=()=>{a.value&&i.value.hooks.renderNode.execute({node:t.node,el:a.value})},D=F=>{h.value=!0,F.preventDefault()},T=F=>{if(!h.value)return;const z=t.node.width+F.movementX/r.value.scaling,Z=i.value.settings.nodes.minWidth,M=i.value.settings.nodes.maxWidth;t.node.width=Math.max(Z,Math.min(M,z))},O=()=>{h.value=!1};return Mi(()=>{A(),window.addEventListener("mousemove",T),window.addEventListener("mouseup",O)}),ql(A),Ca(()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",O)}),(F,z)=>(C(),R("div",{id:F.node.id,ref_key:"el",ref:a,class:Fe(["baklava-node",m.value]),style:jt(E.value),"data-node-type":F.node.type,onPointerdown:y},[mt(i).settings.nodes.resizable?(C(),R("div",{key:0,class:"__resize-handle",onMousedown:D},null,32)):G("",!0),An(F.$slots,"title",{},()=>[c("div",{class:"__title",onPointerdown:ae(v,["self","stop"])},[l.value?B((C(),R("input",{key:1,ref_key:"renameInputEl",ref:d,"onUpdate:modelValue":z[1]||(z[1]=Z=>u.value=Z),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:x,onKeydown:Ai(x,["enter"])},null,544)),[[he,u.value]]):(C(),R(ze,{key:0},[c("div",xDt,se(F.node.title),1),c("div",CDt,[_e(iI,{class:"--clickable",onClick:S}),_e(VE,{modelValue:f.value,"onUpdate:modelValue":z[0]||(z[0]=Z=>f.value=Z),x:0,y:0,items:_.value,onClick:w},null,8,["modelValue","items"])])],64))],32)]),An(F.$slots,"content",{},()=>[c("div",{class:"__content",onKeydown:z[2]||(z[2]=Ai(ae(()=>{},["stop"]),["delete"]))},[c("div",wDt,[(C(!0),R(ze,null,st(g.value,Z=>An(F.$slots,"nodeInterface",{key:Z.id,type:"output",node:F.node,intf:Z},()=>[_e(J1,{node:F.node,intf:Z},null,8,["node","intf"])])),128))]),c("div",RDt,[(C(!0),R(ze,null,st(b.value,Z=>An(F.$slots,"nodeInterface",{key:Z.id,type:"input",node:F.node,intf:Z},()=>[_e(J1,{node:F.node,intf:Z},null,8,["node","intf"])])),128))])],32)])],46,TDt))}}),NDt=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:ds.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=ys(),{graph:t}=Fs(),s=(o,a)=>{const l=(o+t.value.panning.x)*t.value.scaling,u=(a+t.value.panning.y)*t.value.scaling;return[l,u]},i=Je(()=>{const[o,a]=s(n.x1,n.y1),[l,u]=s(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${l} ${u}`;{const d=.3*Math.abs(o-l);return`M ${o} ${a} C ${o+d} ${a}, ${l-d} ${u}, ${l} ${u}`}}),r=Je(()=>({"--temporary":n.isTemporary,"--allowed":n.state===ds.ALLOWED,"--forbidden":n.state===ds.FORBIDDEN}));return{d:i,classes:r}}}),ODt=["d"];function IDt(n,e,t,s,i,r){return C(),R("path",{class:Fe(["baklava-connection",n.classes]),d:n.d},null,10,ODt)}const rI=dn(NDt,[["render",IDt]]);function MDt(n){return document.getElementById(n.id)}function ya(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 DDt=cn({components:{"connection-view":rI},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=Fs();let t;const s=lt({x1:0,y1:0,x2:0,y2:0}),i=Je(()=>n.connection.isInDanger?ds.FORBIDDEN:ds.NONE),r=Je(()=>{var u;return(u=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:u.position}),o=Je(()=>{var u;return(u=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:u.position}),a=u=>u.node&&u.interface&&u.port?[u.node.offsetLeft+u.interface.offsetLeft+u.port.offsetLeft+u.port.clientWidth/2,u.node.offsetTop+u.interface.offsetTop+u.port.offsetTop+u.port.clientHeight/2]:[0,0],l=()=>{const u=ya(n.connection.from),d=ya(n.connection.to);u.node&&d.node&&(t||(t=new ResizeObserver(()=>{l()}),t.observe(u.node),t.observe(d.node)));const[h,f]=a(u),[_,m]=a(d);s.value={x1:h,y1:f,x2:_,y2:m}};return Mi(async()=>{await Ue(),l()}),Ca(()=>{t&&t.disconnect()}),Fn([r,o],()=>l(),{deep:!0}),{d:s,state:i}}});function kDt(n,e,t,s,i,r){const o=dt("connection-view");return C(),St(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 LDt=dn(DDt,[["render",kDt]]);function Jd(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 PDt=cn({components:{"connection-view":rI},props:{connection:{type:Object,required:!0}},setup(n){const e=Je(()=>n.connection?n.connection.status:ds.NONE);return{d:Je(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const s=Jd(ya(n.connection.from)),i=n.connection.to?Jd(ya(n.connection.to)):[n.connection.mx||s[0],n.connection.my||s[1]];return n.connection.from.isInput?{input:i,output:s}:{input:s,output:i}}),status:e}}});function UDt(n,e,t,s,i,r){const o=dt("connection-view");return C(),St(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 FDt=dn(PDt,[["render",UDt]]),BDt=cn({setup(){const{viewModel:n}=ys(),{graph:e}=Fs(),t=lt(null),s=Cd(n.value.settings.sidebar,"width"),i=Je(()=>n.value.settings.sidebar.resizable),r=Je(()=>{const h=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===h)}),o=Je(()=>({width:`${s.value}px`})),a=Je(()=>r.value?[...Object.values(r.value.inputs),...Object.values(r.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),l=()=>{e.value.sidebar.visible=!1},u=()=>{window.addEventListener("mousemove",d),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",d)},{once:!0})},d=h=>{var f,_;const m=((_=(f=t.value)==null?void 0:f.parentElement)==null?void 0:_.getBoundingClientRect().width)??500;let E=s.value-h.movementX;E<300?E=300:E>.9*m&&(E=.9*m),s.value=E};return{el:t,graph:e,resizable:i,node:r,styles:o,displayedInterfaces:a,startResize:u,close:l}}}),GDt={class:"__header"},VDt={class:"__node-name"};function zDt(n,e,t,s,i,r){return C(),R("div",{ref:"el",class:Fe(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:jt(n.styles)},[n.resizable?(C(),R("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):G("",!0),c("div",GDt,[c("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),c("div",VDt,[c("b",null,se(n.node?n.node.title:""),1)])]),(C(!0),R(ze,null,st(n.displayedInterfaces,o=>(C(),R("div",{key:o.id,class:"__interface"},[(C(),St(hu(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 HDt=dn(BDt,[["render",zDt]]),qDt=cn({__name:"Minimap",setup(n){const{viewModel:e}=ys(),{graph:t}=Fs(),s=lt(null),i=lt(!1);let r,o=!1,a={x1:0,y1:0,x2:0,y2:0},l;const u=()=>{var x,A;if(!r)return;r.canvas.width=s.value.offsetWidth,r.canvas.height=s.value.offsetHeight;const D=new Map,T=new Map;for(const M of t.value.nodes){const q=MDt(M),H=(q==null?void 0:q.offsetWidth)??0,P=(q==null?void 0:q.offsetHeight)??0,$=((x=M.position)==null?void 0:x.x)??0,J=((A=M.position)==null?void 0:A.y)??0;D.set(M,{x1:$,y1:J,x2:$+H,y2:J+P}),T.set(M,q)}const O={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const M of D.values())M.x1<O.x1&&(O.x1=M.x1),M.y1<O.y1&&(O.y1=M.y1),M.x2>O.x2&&(O.x2=M.x2),M.y2>O.y2&&(O.y2=M.y2);const F=50;O.x1-=F,O.y1-=F,O.x2+=F,O.y2+=F,a=O;const z=r.canvas.width/r.canvas.height,Z=(a.x2-a.x1)/(a.y2-a.y1);if(z>Z){const M=(z-Z)*(a.y2-a.y1)*.5;a.x1-=M,a.x2+=M}else{const M=a.x2-a.x1,q=a.y2-a.y1,H=(M-z*q)/z*.5;a.y1-=H,a.y2+=H}r.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokeStyle="white";for(const M of t.value.connections){const[q,H]=Jd(ya(M.from)),[P,$]=Jd(ya(M.to)),[J,re]=d(q,H),[me,Se]=d(P,$);if(r.beginPath(),r.moveTo(J,re),e.value.settings.useStraightConnections)r.lineTo(me,Se);else{const le=.3*Math.abs(J-me);r.bezierCurveTo(J+le,re,me-le,Se,me,Se)}r.stroke()}r.strokeStyle="lightgray";for(const[M,q]of D.entries()){const[H,P]=d(q.x1,q.y1),[$,J]=d(q.x2,q.y2);r.fillStyle=f(T.get(M)),r.beginPath(),r.rect(H,P,$-H,J-P),r.fill(),r.stroke()}if(i.value){const M=m(),[q,H]=d(M.x1,M.y1),[P,$]=d(M.x2,M.y2);r.fillStyle="rgba(255, 255, 255, 0.2)",r.fillRect(q,H,P-q,$-H)}},d=(x,A)=>[(x-a.x1)/(a.x2-a.x1)*r.canvas.width,(A-a.y1)/(a.y2-a.y1)*r.canvas.height],h=(x,A)=>[x*(a.x2-a.x1)/r.canvas.width+a.x1,A*(a.y2-a.y1)/r.canvas.height+a.y1],f=x=>{if(x){const A=x.querySelector(".__content");if(A){const T=_(A);if(T)return T}const D=_(x);if(D)return D}return"gray"},_=x=>{const A=getComputedStyle(x).backgroundColor;if(A&&A!=="rgba(0, 0, 0, 0)")return A},m=()=>{const x=s.value.parentElement.offsetWidth,A=s.value.parentElement.offsetHeight,D=x/t.value.scaling-t.value.panning.x,T=A/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:D,y2:T}},E=x=>{x.button===0&&(o=!0,b(x))},b=x=>{if(o){const[A,D]=h(x.offsetX,x.offsetY),T=m(),O=(T.x2-T.x1)/2,F=(T.y2-T.y1)/2;t.value.panning.x=-(A-O),t.value.panning.y=-(D-F)}},g=()=>{o=!1},y=()=>{i.value=!0},v=()=>{i.value=!1,g()};Fn([i,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{u()});const S=Je(()=>t.value.nodes.map(x=>x.position)),w=Je(()=>t.value.nodes.map(x=>x.width));return Fn([S,w],()=>{u()},{deep:!0}),Mi(()=>{r=s.value.getContext("2d"),r.imageSmoothingQuality="high",u(),l=setInterval(u,500)}),Ca(()=>{clearInterval(l)}),(x,A)=>(C(),R("canvas",{ref_key:"canvas",ref:s,class:"baklava-minimap",onMouseenter:y,onMouseleave:v,onMousedown:ae(E,["self"]),onMousemove:ae(b,["self"]),onMouseup:g},null,544))}}),YDt=cn({components:{ContextMenu:VE,VerticalDots:iI},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=ys(),{switchGraph:t}=Fs(),s=lt(!1),i=Je(()=>n.type.startsWith(Vl));return{showContextMenu:s,hasContextMenu:i,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{s.value=!0},onContextMenuClick:l=>{const u=n.type.substring(Vl.length),d=e.value.editor.graphTemplates.find(h=>h.id===u);if(d)switch(l){case"editSubgraph":t(d);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(d);break}}}}}),$Dt=["data-node-type"],WDt={class:"__title"},KDt={class:"__title-label"},jDt={key:0,class:"__menu"};function QDt(n,e,t,s,i,r){const o=dt("vertical-dots"),a=dt("context-menu");return C(),R("div",{class:"baklava-node --palette","data-node-type":n.type},[c("div",WDt,[c("div",KDt,se(n.title),1),n.hasContextMenu?(C(),R("div",jDt,[_e(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=ae(()=>{},["stop","prevent"])),onClick:ae(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),_e(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]=ae(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):G("",!0)])],8,$Dt)}const ew=dn(YDt,[["render",QDt]]),XDt={class:"baklava-node-palette"},ZDt={key:0},JDt=cn({__name:"NodePalette",setup(n){const{viewModel:e}=ys(),{x:t,y:s}=oDt(),{transform:i}=JO(),r=ZO(e),o=Is("editorEl"),a=lt(null),l=Je(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:d,top:h}=o.value.getBoundingClientRect();return{top:`${s.value-h}px`,left:`${t.value-d}px`}}),u=(d,h)=>{a.value={type:d,nodeInformation:h};const f=()=>{const _=Wn(new h.type);e.value.displayedGraph.addNode(_);const m=o.value.getBoundingClientRect(),[E,b]=i(t.value-m.left,s.value-m.top);_.position.x=E,_.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(d,h)=>(C(),R(ze,null,[c("div",XDt,[(C(!0),R(ze,null,st(mt(r),f=>(C(),R("section",{key:f.name},[f.name!=="default"?(C(),R("h1",ZDt,se(f.name),1)):G("",!0),(C(!0),R(ze,null,st(f.nodeTypes,(_,m)=>(C(),St(ew,{key:m,type:m,title:_.title,onPointerdown:E=>u(m,_)},null,8,["type","title","onPointerdown"]))),128))]))),128))]),_e(Ms,{name:"fade"},{default:qe(()=>[a.value?(C(),R("div",{key:0,class:"baklava-dragged-node",style:jt(l.value)},[_e(ew,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):G("",!0)]),_:1})],64))}});let rd;const ekt=new Uint8Array(16);function tkt(){if(!rd&&(rd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!rd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rd(ekt)}const vn=[];for(let n=0;n<256;++n)vn.push((n+256).toString(16).slice(1));function nkt(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 skt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),tw={randomUUID:skt};function eu(n,e,t){if(tw.randomUUID&&!e&&!n)return tw.randomUUID();n=n||{};const s=n.random||(n.rng||tkt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=s[i];return e}return nkt(s)}const zl="SAVE_SUBGRAPH";function ikt(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(zl,{canExecute:()=>{var s;return n.value!==((s=n.value.editor)==null?void 0:s.graph)},execute:t})}const rkt={},okt={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"},akt=c("polyline",{points:"6 9 12 15 18 9"},null,-1),lkt=[akt];function ckt(n,e){return C(),R("svg",okt,lkt)}const dkt=dn(rkt,[["render",ckt]]),ukt=cn({components:{"i-arrow":dkt},props:{intf:{type:Object,required:!0}},setup(n){const e=lt(null),t=lt(!1),s=Je(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),i=Je(()=>s.value?typeof s.value=="string"?s.value:s.value.text:""),r=o=>{n.intf.value=typeof o=="string"?o:o.value};return nI(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:s,selectedText:i,setSelected:r}}}),pkt=["title"],_kt={class:"__selected"},hkt={class:"__text"},fkt={class:"__icon"},mkt={class:"__dropdown"},gkt={class:"item --header"},bkt=["onClick"];function Ekt(n,e,t,s,i,r){const o=dt("i-arrow");return C(),R("div",{ref:"el",class:Fe(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[c("div",_kt,[c("div",hkt,se(n.selectedText),1),c("div",fkt,[_e(o)])]),_e(Ms,{name:"slide-fade"},{default:qe(()=>[B(c("div",mkt,[c("div",gkt,se(n.intf.name),1),(C(!0),R(ze,null,st(n.intf.items,(a,l)=>(C(),R("div",{key:l,class:Fe(["item",{"--active":a===n.selectedItem}]),onClick:u=>n.setSelected(a)},se(typeof a=="string"?a:a.text),11,bkt))),128))],512),[[Ot,n.open]])]),_:1})],10,pkt)}const ykt=dn(ukt,[["render",Ekt]]);class vkt extends Xt{constructor(e,t,s){super(e,t),this.component=Hl(ykt),this.items=s}}const Skt=cn({props:{intf:{type:Object,required:!0}}});function Tkt(n,e,t,s,i,r){return C(),R("div",null,se(n.intf.value),1)}const xkt=dn(Skt,[["render",Tkt]]);class Ckt extends Xt{constructor(e,t){super(e,t),this.component=Hl(xkt),this.setPort(!1)}}const wkt=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)}})}}}),Rkt=["placeholder","title"];function Akt(n,e,t,s,i,r){return C(),R("div",null,[B(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,Rkt),[[he,n.v]])])}const Nkt=dn(wkt,[["render",Akt]]);class nc extends Xt{constructor(){super(...arguments),this.component=Hl(Nkt)}}class oI extends $O{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new nc("Name","Input").setPort(!1)},this.outputs={placeholder:new Xt("Connection",void 0)}}}class aI extends WO{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new nc("Name","Output").setPort(!1),placeholder:new Xt("Connection",void 0)},this.outputs={output:new Xt("Output",void 0).setHidden(!0)}}}const lI="CREATE_SUBGRAPH",nw=[ga,ba];function Okt(n,e,t){const s=()=>n.value.selectedNodes.filter(r=>!nw.includes(r.type)).length>0,i=()=>{const{viewModel:r}=ys(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const l=o.selectedNodes.filter(T=>!nw.includes(T.type)),u=l.flatMap(T=>Object.values(T.inputs)),d=l.flatMap(T=>Object.values(T.outputs)),h=o.connections.filter(T=>!d.includes(T.from)&&u.includes(T.to)),f=o.connections.filter(T=>d.includes(T.from)&&!u.includes(T.to)),_=o.connections.filter(T=>d.includes(T.from)&&u.includes(T.to)),m=l.map(T=>T.save()),E=_.map(T=>({id:T.id,from:T.from.id,to:T.to.id})),b=new Map,{xLeft:g,xRight:y,yTop:v}=Ikt(l);console.log(g,y,v);for(const[T,O]of h.entries()){const F=new oI;F.inputs.name.value=O.to.name,m.push({...F.save(),position:{x:y-r.value.settings.nodes.defaultWidth-100,y:v+T*200}}),E.push({id:eu(),from:F.outputs.placeholder.id,to:O.to.id}),b.set(O.to.id,F.graphInterfaceId)}for(const[T,O]of f.entries()){const F=new aI;F.inputs.name.value=O.from.name,m.push({...F.save(),position:{x:g+100,y:v+T*200}}),E.push({id:eu(),from:O.from.id,to:F.inputs.placeholder.id}),b.set(O.from.id,F.graphInterfaceId)}const S=Wn(new Ku({connections:E,nodes:m,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const w=a.nodeTypes.get(Ea(S));if(!w)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");const x=Wn(new w.type);o.addNode(x);const A=Math.round(l.map(T=>T.position.x).reduce((T,O)=>T+O,0)/l.length),D=Math.round(l.map(T=>T.position.y).reduce((T,O)=>T+O,0)/l.length);x.position.x=A,x.position.y=D,h.forEach(T=>{o.removeConnection(T),o.addConnection(T.from,x.inputs[b.get(T.to.id)])}),f.forEach(T=>{o.removeConnection(T),o.addConnection(x.outputs[b.get(T.from.id)],T.to)}),l.forEach(T=>o.removeNode(T)),e.canExecuteCommand(zl)&&e.executeCommand(zl),t(S),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(lI,{canExecute:s,execute:i})}function Ikt(n){const e=n.reduce((i,r)=>{const o=r.position.x;return o<i?o:i},1/0),t=n.reduce((i,r)=>{const o=r.position.y;return o<i?o:i},1/0);return{xLeft:n.reduce((i,r)=>{const o=r.position.x+r.width;return o>i?o:i},-1/0),xRight:e,yTop:t}}const sw="DELETE_NODES";function Mkt(n,e){e.registerCommand(sw,{canExecute:()=>n.value.selectedNodes.length>0,execute(){n.value.selectedNodes.forEach(t=>n.value.removeNode(t))}}),e.registerHotkey(["Delete"],sw)}const cI="SWITCH_TO_MAIN_GRAPH";function Dkt(n,e,t){e.registerCommand(cI,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(zl),t(n.value.editor.graph)}})}function kkt(n,e,t){Mkt(n,e),Okt(n,e,t),ikt(n,e),Dkt(n,e,t)}class iw{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 rw{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);!t||!s||e.addConnection(t,s)}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 Lkt{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<this.steps.length;t++)this.steps[t].redo(e)}}const Qg="UNDO",Xg="REDO",dI="START_TRANSACTION",uI="COMMIT_TRANSACTION";function Pkt(n,e){const t=Symbol("HistoryToken"),s=lt(200),i=lt([]),r=lt(!1),o=lt(-1),a=lt(!1),l=lt([]),u=b=>{if(!r.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>s.value;)i.value.shift()},d=()=>{a.value=!0},h=()=>{a.value=!1,l.value.length>0&&(u(new Lkt(l.value)),l.value=[])},f=()=>i.value.length!==0&&o.value!==-1,_=()=>{f()&&(r.value=!0,i.value[o.value--].undo(n.value),r.value=!1)},m=()=>i.value.length!==0&&o.value<i.value.length-1,E=()=>{m()&&(r.value=!0,i.value[++o.value].redo(n.value),r.value=!1)};return Fn(n,(b,g)=>{g&&(g.events.addNode.unsubscribe(t),g.events.removeNode.unsubscribe(t),g.events.addConnection.unsubscribe(t),g.events.removeConnection.unsubscribe(t)),b&&(b.events.addNode.subscribe(t,y=>{u(new iw("addNode",y.id))}),b.events.removeNode.subscribe(t,y=>{u(new iw("removeNode",y.save()))}),b.events.addConnection.subscribe(t,y=>{u(new rw("addConnection",y.id))}),b.events.removeConnection.subscribe(t,y=>{u(new rw("removeConnection",y))}))},{immediate:!0}),e.registerCommand(Qg,{canExecute:f,execute:_}),e.registerCommand(Xg,{canExecute:m,execute:E}),e.registerCommand(dI,{canExecute:()=>!a.value,execute:d}),e.registerCommand(uI,{canExecute:()=>a.value,execute:h}),e.registerHotkey(["Control","z"],Qg),e.registerHotkey(["Control","y"],Xg),Wn({maxSteps:s})}const Zg="COPY",Jg="PASTE",Ukt="CLEAR_CLIPBOARD";function Fkt(n,e,t){const s=Symbol("ClipboardToken"),i=lt(""),r=lt(""),o=Je(()=>!i.value),a=()=>{i.value="",r.value=""},l=()=>{const h=n.value.selectedNodes.flatMap(_=>[...Object.values(_.inputs),...Object.values(_.outputs)]),f=n.value.connections.filter(_=>h.includes(_.from)||h.includes(_.to)).map(_=>({from:_.from.id,to:_.to.id}));r.value=JSON.stringify(f),i.value=JSON.stringify(n.value.selectedNodes.map(_=>_.save()))},u=(h,f,_)=>{for(const m of h){let E;if((!_||_==="input")&&(E=Object.values(m.inputs).find(b=>b.id===f)),!E&&(!_||_==="output")&&(E=Object.values(m.outputs).find(b=>b.id===f)),E)return E}},d=()=>{if(o.value)return;const h=new Map,f=JSON.parse(i.value),_=JSON.parse(r.value),m=[],E=[],b=n.value;t.executeCommand(dI);for(const g of f){const y=e.value.nodeTypes.get(g.type);if(!y){console.warn(`Node type ${g.type} not registered`);return}const v=new y.type,S=v.id;m.push(v),v.hooks.beforeLoad.subscribe(s,w=>{const x=w;return x.position&&(x.position.x+=100,x.position.y+=100),v.hooks.beforeLoad.unsubscribe(s),x}),b.addNode(v),v.load({...g,id:S}),v.id=S,h.set(g.id,S);for(const w of Object.values(v.inputs)){const x=eu();h.set(w.id,x),w.id=x}for(const w of Object.values(v.outputs)){const x=eu();h.set(w.id,x),w.id=x}}for(const g of _){const y=u(m,h.get(g.from),"output"),v=u(m,h.get(g.to),"input");if(!y||!v)continue;const S=b.addConnection(y,v);S&&E.push(S)}return n.value.selectedNodes=m,t.executeCommand(uI),{newNodes:m,newConnections:E}};return t.registerCommand(Zg,{canExecute:()=>n.value.selectedNodes.length>0,execute:l}),t.registerHotkey(["Control","c"],Zg),t.registerCommand(Jg,{canExecute:()=>!o.value,execute:d}),t.registerHotkey(["Control","v"],Jg),t.registerCommand(Ukt,{canExecute:()=>!0,execute:a}),Wn({isEmpty:o})}const Bkt="OPEN_SIDEBAR";function Gkt(n,e){e.registerCommand(Bkt,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function Vkt(n,e){Gkt(n,e)}const zkt={},Hkt={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"},qkt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Ykt=c("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),$kt=[qkt,Ykt];function Wkt(n,e){return C(),R("svg",Hkt,$kt)}const Kkt=dn(zkt,[["render",Wkt]]),jkt={},Qkt={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"},Xkt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),Zkt=c("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),Jkt=[Xkt,Zkt];function eLt(n,e){return C(),R("svg",Qkt,Jkt)}const tLt=dn(jkt,[["render",eLt]]),nLt={},sLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},iLt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),rLt=c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),oLt=c("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),aLt=c("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),lLt=[iLt,rLt,oLt,aLt];function cLt(n,e){return C(),R("svg",sLt,lLt)}const dLt=dn(nLt,[["render",cLt]]),uLt={},pLt={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"},_Lt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),hLt=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),fLt=c("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),mLt=[_Lt,hLt,fLt];function gLt(n,e){return C(),R("svg",pLt,mLt)}const bLt=dn(uLt,[["render",gLt]]),ELt={},yLt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},vLt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),SLt=c("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),TLt=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),xLt=[vLt,SLt,TLt];function CLt(n,e){return C(),R("svg",yLt,xLt)}const wLt=dn(ELt,[["render",CLt]]),RLt={},ALt={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"},NLt=c("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),OLt=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),ILt=c("circle",{cx:"12",cy:"14",r:"2"},null,-1),MLt=c("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),DLt=[NLt,OLt,ILt,MLt];function kLt(n,e){return C(),R("svg",ALt,DLt)}const LLt=dn(RLt,[["render",kLt]]),PLt={},ULt={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"},FLt=gu('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 3h4v4h-4z"></path><path d="M3 17h4v4h-4z"></path><path d="M17 17h4v4h-4z"></path><path d="M7 17l5 -4l5 4"></path><line x1="12" y1="7" x2="12" y2="13"></line>',6),BLt=[FLt];function GLt(n,e){return C(),R("svg",ULt,BLt)}const VLt=dn(PLt,[["render",GLt]]),zLt=cn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=ys();return{viewModel:n}}}),HLt=["disabled","title"];function qLt(n,e,t,s,i,r){return C(),R("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?(C(),St(hu(n.icon),{key:0})):(C(),R(ze,{key:1},[Xe(se(n.title),1)],64))],8,HLt)}const YLt=dn(zLt,[["render",qLt]]),$Lt=cn({components:{ToolbarButton:YLt},setup(){const{viewModel:n}=ys();return{isSubgraph:Je(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:Zg,title:"Copy",icon:wLt},{command:Jg,title:"Paste",icon:bLt},{command:Qg,title:"Undo",icon:Kkt},{command:Xg,title:"Redo",icon:tLt},{command:lI,title:"Create Subgraph",icon:VLt}],subgraphCommands:[{command:zl,title:"Save Subgraph",icon:LLt},{command:cI,title:"Back to Main Graph",icon:dLt}]}}}),WLt={class:"baklava-toolbar"};function KLt(n,e,t,s,i,r){const o=dt("toolbar-button");return C(),R("div",WLt,[(C(!0),R(ze,null,st(n.commands,a=>(C(),St(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(C(!0),R(ze,{key:0},st(n.subgraphCommands,a=>(C(),St(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):G("",!0)])}const jLt=dn($Lt,[["render",KLt]]),QLt={class:"connections-container"},XLt=cn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),s=Cd(e,"viewModel");Y2t(s);const i=lt(null);zo("editorEl",i);const r=Je(()=>e.viewModel.displayedGraph.nodes),o=Je(()=>e.viewModel.displayedGraph.nodes.map(A=>QO(Cd(A,"position")))),a=Je(()=>e.viewModel.displayedGraph.connections),l=Je(()=>e.viewModel.displayedGraph.selectedNodes),u=$2t(),d=W2t(),h=K2t(s),f=Je(()=>({...u.styles.value})),_=lt(0);e.viewModel.editor.hooks.load.subscribe(t,A=>(_.value++,A));const m=A=>{u.onPointerMove(A),d.onMouseMove(A)},E=A=>{A.button===0&&(A.target===i.value&&(S(),u.onPointerDown(A)),d.onMouseDown())},b=A=>{u.onPointerUp(A),d.onMouseUp()},g=A=>{A.key==="Tab"&&A.preventDefault(),e.viewModel.commandHandler.handleKeyDown(A)},y=A=>{e.viewModel.commandHandler.handleKeyUp(A)},v=A=>{["Control","Shift"].some(D=>e.viewModel.commandHandler.pressedKeys.includes(D))||S(),e.viewModel.displayedGraph.selectedNodes.push(A)},S=()=>{e.viewModel.displayedGraph.selectedNodes=[]},w=A=>{for(const D of e.viewModel.displayedGraph.selectedNodes){const T=r.value.indexOf(D),O=o.value[T];O.onPointerDown(A),document.addEventListener("pointermove",O.onPointerMove)}document.addEventListener("pointerup",x)},x=()=>{for(const A of e.viewModel.displayedGraph.selectedNodes){const D=r.value.indexOf(A),T=o.value[D];T.onPointerUp(),document.removeEventListener("pointermove",T.onPointerMove)}document.removeEventListener("pointerup",x)};return(A,D)=>(C(),R("div",{ref_key:"el",ref:i,tabindex:"-1",class:Fe(["baklava-editor",{"baklava-ignore-mouse":!!mt(d).temporaryConnection.value||mt(u).dragging.value,"--temporary-connection":!!mt(d).temporaryConnection.value}]),onPointermove:ae(m,["self"]),onPointerdown:E,onPointerup:b,onWheel:D[1]||(D[1]=ae((...T)=>mt(u).onMouseWheel&&mt(u).onMouseWheel(...T),["self"])),onKeydown:g,onKeyup:y,onContextmenu:D[2]||(D[2]=ae((...T)=>mt(h).open&&mt(h).open(...T),["self","prevent"]))},[An(A.$slots,"background",{},()=>[_e(X2t)]),An(A.$slots,"toolbar",{},()=>[_e(jLt)]),An(A.$slots,"palette",{},()=>[_e(JDt)]),(C(),R("svg",QLt,[(C(!0),R(ze,null,st(a.value,T=>(C(),R("g",{key:T.id+_.value.toString()},[An(A.$slots,"connection",{connection:T},()=>[_e(LDt,{connection:T},null,8,["connection"])])]))),128)),An(A.$slots,"temporaryConnection",{temporaryConnection:mt(d).temporaryConnection.value},()=>[mt(d).temporaryConnection.value?(C(),St(FDt,{key:0,connection:mt(d).temporaryConnection.value},null,8,["connection"])):G("",!0)])])),c("div",{class:"node-container",style:jt(f.value)},[_e(Qs,{name:"fade"},{default:qe(()=>[(C(!0),R(ze,null,st(r.value,(T,O)=>An(A.$slots,"node",{key:T.id+_.value.toString(),node:T,selected:l.value.includes(T),dragging:o.value[O].dragging.value,onSelect:F=>v(T),onStartDrag:w},()=>[_e(ADt,{node:T,selected:l.value.includes(T),dragging:o.value[O].dragging.value,onSelect:F=>v(T),onStartDrag:w},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),An(A.$slots,"sidebar",{},()=>[_e(HDt)]),An(A.$slots,"minimap",{},()=>[A.viewModel.settings.enableMinimap?(C(),St(qDt,{key:0})):G("",!0)]),An(A.$slots,"contextMenu",{contextMenu:mt(h)},()=>[A.viewModel.settings.contextMenu.enabled?(C(),St(VE,{key:0,modelValue:mt(h).show.value,"onUpdate:modelValue":D[0]||(D[0]=T=>mt(h).show.value=T),items:mt(h).items.value,x:mt(h).x.value,y:mt(h).y.value,onClick:mt(h).onClick},null,8,["modelValue","items","x","y","onClick"])):G("",!0)])],34))}}),ZLt=["INPUT","TEXTAREA","SELECT"];function JLt(n){const e=lt([]),t=lt([]);return{pressedKeys:e,handleKeyDown:o=>{var a;e.value.includes(o.key)||e.value.push(o.key),!ZLt.includes(((a=document.activeElement)==null?void 0:a.tagName)??"")&&t.value.forEach(l=>{l.keys.every(u=>e.value.includes(u))&&n(l.commandName)})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a)=>{t.value.push({keys:o,commandName:a})}}}const ePt=()=>{const n=lt(new Map),e=(r,o)=>{if(n.value.has(r))throw new Error(`Command "${r}" already exists`);n.value.set(r,o)},t=(r,o=!1,...a)=>{if(!n.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return}return n.value.get(r).execute(...a)},s=(r,o=!1,...a)=>{if(!n.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return!1}return n.value.get(r).canExecute(a)},i=JLt(t);return Wn({registerCommand:e,executeCommand:t,canExecuteCommand:s,...i})},tPt=n=>!(n instanceof tc);function nPt(n,e){return{switchGraph:s=>{let i;if(tPt(s))i=new tc(n.value),s.createGraph(i);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.");i=s}e.value&&e.value!==n.value.graph&&e.value.destroy(),i.panning=i.panning??s.panning??{x:0,y:0},i.scaling=i.scaling??s.scaling??1,i.selectedNodes=i.selectedNodes??[],i.sidebar=i.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=i}}}function sPt(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 iPt=()=>({useStraightConnections:!1,enableMinimap:!1,background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1},contextMenu:{enabled:!0,additionalItems:[]}});function rPt(n){const e=lt(n??new B2t),t=Symbol("ViewModelToken"),s=lt(null),i=fM(s),{switchGraph:r}=nPt(e,s),o=Je(()=>i.value&&i.value!==e.value.graph),a=Wn(iPt()),l=ePt(),u=Pkt(i,l),d=Fkt(i,e,l),h={renderNode:new es(null),renderInterface:new es(null)};return kkt(i,l,r),Vkt(i,l),Fn(e,(f,_)=>{_&&(_.events.registerGraph.unsubscribe(t),_.graphEvents.beforeAddNode.unsubscribe(t),f.nodeHooks.beforeLoad.unsubscribe(t),f.nodeHooks.afterSave.unsubscribe(t),f.graphTemplateHooks.beforeLoad.unsubscribe(t),f.graphTemplateHooks.afterSave.unsubscribe(t),f.graph.hooks.load.unsubscribe(t),f.graph.hooks.save.unsubscribe(t)),f&&(f.nodeHooks.beforeLoad.subscribe(t,(m,E)=>(E.position=m.position??{x:0,y:0},E.width=m.width??a.nodes.defaultWidth,E.twoColumn=m.twoColumn??!1,m)),f.nodeHooks.afterSave.subscribe(t,(m,E)=>(m.position=E.position,m.width=E.width,m.twoColumn=E.twoColumn,m)),f.graphTemplateHooks.beforeLoad.subscribe(t,(m,E)=>(E.panning=m.panning,E.scaling=m.scaling,m)),f.graphTemplateHooks.afterSave.subscribe(t,(m,E)=>(m.panning=E.panning,m.scaling=E.scaling,m)),f.graph.hooks.load.subscribe(t,(m,E)=>(E.panning=m.panning,E.scaling=m.scaling,m)),f.graph.hooks.save.subscribe(t,(m,E)=>(m.panning=E.panning,m.scaling=E.scaling,m)),f.graphEvents.beforeAddNode.subscribe(t,m=>sPt(m,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(oI,{category:"Subgraphs"}),e.value.registerNodeType(aI,{category:"Subgraphs"}),r(f.graph))},{immediate:!0}),Wn({editor:e,displayedGraph:i,isSubgraph:o,settings:a,commandHandler:l,history:u,clipboard:d,hooks:h,switchGraph:r})}const oPt=Ua({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new Xt("Request",""),agent_name:()=>new vkt("Personality","",tu.state.config.personalities).setPort(!1)},outputs:{response:()=>new Xt("Response","")},async calculate({request:n}){console.log(tu.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}}}),aPt=Ua({type:"RAGNode",title:"RAG",inputs:{request:()=>new Xt("Prompt",""),document_path:()=>new nc("Document path","").setPort(!1)},outputs:{prompt:()=>new Xt("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(s){console.error(s)}return{response:t}}}),ow=Ua({type:"Task",title:"Task",inputs:{description:()=>new nc("Task description","").setPort(!1)},outputs:{prompt:()=>new Xt("Prompt")},calculate({description:n}){return{prompt:n}}}),aw=Ua({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new Xt("Input","")},outputs:{response:()=>new Ckt("Text","")},async calculate({request:n}){}}),lw=Ua({type:"LLMNode",title:"LLM",inputs:{request:()=>new Xt("Request","")},outputs:{response:()=>new Xt("Response","")},async calculate({request:n}){console.log(tu.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}}}),lPt=Ua({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new Xt("Question",""),outputs:()=>new nc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new Xt("Response","")}}),cPt=cn({components:{"baklava-editor":XLt},setup(){const n=rPt(),e=new q2t(n.editor);n.editor.registerNodeType(oPt),n.editor.registerNodeType(ow),n.editor.registerNodeType(aPt),n.editor.registerNodeType(aw),n.editor.registerNodeType(lw),n.editor.registerNodeType(lPt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),G2t(a,n.editor),e.resume()}),e.start();function s(a,l,u){const d=new a;return n.displayedGraph.addNode(d),d.position.x=l,d.position.y=u,d}const i=s(ow,300,140),r=s(lw,550,140),o=s(aw,850,140);return n.displayedGraph.addConnection(i.outputs.prompt,r.inputs.request),n.displayedGraph.addConnection(r.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),dPt={style:{width:"100vw",height:"100vh"}};function uPt(n,e,t,s,i,r){const o=dt("baklava-editor");return C(),R("div",dPt,[_e(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 pPt=pt(cPt,[["render",uPt]]),_Pt={},hPt={style:{width:"100vw",height:"100vh"}},fPt=["src"];function mPt(n,e,t,s,i,r){return C(),R("div",hPt,[c("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,fPt)])}const gPt=pt(_Pt,[["render",mPt]]),bPt={},EPt={style:{width:"100vw",height:"100vh"}},yPt=["src"];function vPt(n,e,t,s,i,r){return C(),R("div",EPt,[c("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,yPt)])}const SPt=pt(bPt,[["render",vPt]]),TPt=eP({history:bL("/"),routes:[{path:"/auto_sd_view/",name:"AutoSD",component:SPt},{path:"/autosd_view/",name:"ComfyUI",component:gPt},{path:"/playground/",name:"playground",component:_et},{path:"/extensions/",name:"extensions",component:Cet},{path:"/help_view/",name:"help_view",component:Iet},{path:"/settings/",name:"settings",component:wgt},{path:"/training/",name:"training",component:Wgt},{path:"/quantizing/",name:"quantizing",component:nbt},{path:"/",name:"discussions",component:g1t},{path:"/",name:"interactive",component:M2t},{path:"/",name:"nodes",component:pPt}]});const ju=oD(fXe);console.log("Loaded main.js");function xPt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const tu=MD({state(){return{is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await de.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data,console.log("version res:",n),console.log("version :",this.state.version))}catch{console.log("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await pI("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 Bs("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 s=t.data;console.log("languages",s),n("setLanguages",s),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 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 s=t.data;console.log("languages",s),n("setLanguages",s),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 Bs("get_all_personalities"),s=Object.keys(t);console.log("Personalities recovered:"+this.state.config.personalities);for(let i=0;i<s.length;i++){const r=s[i],a=t[r].map(l=>{let u=!1;for(const h of this.state.config.personalities)if(h.includes(r+"/"+l.folder))if(u=!0,h.includes(":")){const f=h.split(":");l.language=f[1]}else l.language=null;let d={};return d=l,d.category=r,d.full_path=r+"/"+l.folder,d.isMounted=u,d});e.length==0?e=a:e=e.concat(a)}e.sort((i,r)=>i.name.localeCompare(r.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let s=0;s<this.state.config.personalities.length;s++){const i=this.state.config.personalities[s],r=i.split(":"),o=this.state.personalities.findIndex(a=>a.full_path==i||a.full_path==r[0]);if(o>=0){let a=xPt(this.state.personalities[o]);r.length>1&&(a.language=r[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else t.push(s),console.log("Couldn't load personality : ",i)}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 Bs("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 de.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 Bs("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){console.log("Fetching models");let e=await Bs("list_models");console.log(`Found ${e}`);let t=await Bs("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 s=this.state.modelsZoo.findIndex(i=>i.name==this.state.config.model_name);s!=-1&&n("setCurrentModel",this.state.modelsZoo[s])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await Bs("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await Bs("ram_usage")},async refreshVramUsage({commit:n}){const e=await Bs("vram_usage"),t=[];if(e.nb_gpus>0){for(let i=0;i<e.nb_gpus;i++){const r=e[`gpu_${i}_total_vram`],o=e[`gpu_${i}_used_vram`],a=e[`gpu_${i}_model`],l=o/r*100,u=r-o;t.push({total_vram:r,used_vram:o,gpu_index:i,gpu_model:a,percentage:l.toFixed(2),available_space:u})}const s={nb_gpus:e.nb_gpus,gpus:t};console.log("gpu usage: ",s),this.state.vramUsage=s}else{const s={nb_gpus:0,gpus:[]};console.log("gpu usage: ",s),this.state.vramUsage=s}}}});async function Bs(n){try{const e=await de.get("/"+n);if(e)return e.data}catch(e){throw console.log(e.message,"api_get_req"),e}}async function pI(n,e){try{const t=await de.post("/"+n,{client_id:e});if(t)return t.data}catch(t){console.log(t.message,"api_post_req - settings");return}}ju.mixin({async created(){this.$store.state.api_get_req=Bs,this.$store.state.api_post_req=pI,console.log("Main.js creation started"),console.log("Main.js created")},beforeMount(){console.log("Main.js before mount")},mounted(){console.log("Main.js mounted")}});function _I(n,e=""){let t=[];for(const s in n)if(n.hasOwnProperty(s)){const i=e?`${e}/${s}`:s;if(typeof n[s]=="object"){const r=_I(n[s],i);t=t.concat(r)}else t.push(i)}return t}ju.use(TPt);ju.use(tu);ju.mount("#app");