From 9e40c4240ad98e7b6b3d43f1bdb6b8bd5f70f5af Mon Sep 17 00:00:00 2001 From: MarkMindCkm <616421019@qq.com> Date: Wed, 6 Mar 2024 19:59:47 +0800 Subject: [PATCH] v0.0.1 --- .gitignore | 4 + README.md | 2 - dist-electron/main.js | 79 +- dist-electron/preload.js | 74 +- dist/assets/index-6e919d14.js | 1015 --------------- dist/assets/index-d41d1478.css | 26 - dist/index.html | 6 +- electron/main.ts | 34 +- index.html | 2 + package.json | 5 +- public/main.css | 0 public/styles.css | 2106 ++++++++++++++++++++++++++++++++ 12 files changed, 2128 insertions(+), 1225 deletions(-) delete mode 100644 README.md delete mode 100644 dist/assets/index-6e919d14.js delete mode 100644 dist/assets/index-d41d1478.css create mode 100644 public/main.css create mode 100644 public/styles.css diff --git a/.gitignore b/.gitignore index 234f2f1..ec42731 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,10 @@ pnpm-debug.log* lerna-debug.log* node_modules +dist +dist-ssr +dist-electron +release *.local # Editor directories and files diff --git a/README.md b/README.md deleted file mode 100644 index 8354ea4..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# MarkMind-ltd -A mindmap and pdf annotate tool . 一个强大的思维导图和 PDF 标注软件 diff --git a/dist-electron/main.js b/dist-electron/main.js index c27cf98..c4aae9b 100644 --- a/dist-electron/main.js +++ b/dist-electron/main.js @@ -1,78 +1 @@ -"use strict"; -const electron = require("electron"); -const path = require("node:path"); -var Store = require("electron-store"); -const store = new Store(); -require("@electron/remote/main").initialize(); -var t = store.get("localTime"); -if (!t) { - store.set("localTime", (/* @__PURE__ */ new Date()).getTime()); -} -process.env.DIST = path.join(__dirname, "../dist"); -process.env.VITE_PUBLIC = electron.app.isPackaged ? process.env.DIST : path.join(process.env.DIST, "../public"); -let win; -const VITE_DEV_SERVER_URL = process.env["VITE_DEV_SERVER_URL"]; -function createWindow() { - win = new electron.BrowserWindow({ - width: 1200, - height: 800, - icon: path.join(process.env.VITE_PUBLIC, "icon.png"), - webPreferences: { - // preload: path.join(__dirname, 'preload.js'), - nodeIntegration: true, - contextIsolation: false, - webSecurity: false, - enableRemoteModule: true - } - }); - require("@electron/remote/main").enable(win.webContents); - win.webContents.on("did-finish-load", () => { - win == null ? void 0 : win.webContents.send("main-process-message", ""); - }); - electron.Menu.setApplicationMenu(null); - if (VITE_DEV_SERVER_URL) { - win.loadURL(VITE_DEV_SERVER_URL); - } else { - win.loadFile(path.join(process.env.DIST, "index.html")); - } -} -electron.app.on("window-all-closed", () => { - if (process.platform !== "darwin") { - electron.app.quit(); - win = null; - } -}); -electron.app.on("activate", () => { - if (electron.BrowserWindow.getAllWindows().length === 0) { - createWindow(); - } -}); -electron.app.whenReady().then(createWindow); -electron.ipcMain.on("openExportWindow", (e, arg) => { - var w = new electron.BrowserWindow({ - // icon: path.join(process.env.VITE_PUBLIC, 'icon.png') - webPreferences: { - // preload: path.join(__dirname, 'preload.js'), - nodeIntegration: true, - contextIsolation: false, - webSecurity: false, - enableRemoteModule: true - } - }); - require("@electron/remote/main").enable(w.webContents); - w.webContents.on("did-finish-load", () => { - w == null ? void 0 : w.webContents.send("main-process-message", arg); - }); - if (VITE_DEV_SERVER_URL) { - win.loadURL(VITE_DEV_SERVER_URL); - } else { - win.loadFile(path.join(process.env.DIST, "index.html")); - } -}); -electron.app.on("window-all-closed", () => { - electron.app.quit(); -}); -electron.ipcMain.on("relaunch", (e, arg) => { - electron.app.relaunch(); - electron.app.exit(); -}); +"use strict";const e=require("electron"),o=require("node:path");var l=require("electron-store");const t=new l;require("@electron/remote/main").initialize();var p=t.get("localTime");p||t.set("localTime",new Date().getTime());process.env.DIST=o.join(__dirname,"../dist");process.env.VITE_PUBLIC=e.app.isPackaged?process.env.DIST:o.join(process.env.DIST,"../public");let n;const i=process.env.VITE_DEV_SERVER_URL;function s(){n=new e.BrowserWindow({width:1200,height:800,icon:o.join(process.env.VITE_PUBLIC,"icon.png"),webPreferences:{nodeIntegration:!0,contextIsolation:!1,webSecurity:!1,enableRemoteModule:!0}}),require("@electron/remote/main").enable(n.webContents),n.webContents.on("did-finish-load",()=>{n==null||n.webContents.send("main-process-message","")}),i?n.loadURL(i):n.loadFile(o.join(process.env.DIST,"index.html"))}e.app.on("window-all-closed",()=>{process.platform!=="darwin"&&(e.app.quit(),n=null)});e.app.on("activate",()=>{e.BrowserWindow.getAllWindows().length===0&&s()});e.app.whenReady().then(s);e.ipcMain.on("openDevTools",(a,r)=>{n&&n.webContents.openDevTools()});e.app.on("window-all-closed",()=>{e.app.quit()});e.ipcMain.on("relaunch",(a,r)=>{e.app.relaunch(),e.app.exit()}); diff --git a/dist-electron/preload.js b/dist-electron/preload.js index 4603186..2ba6995 100644 --- a/dist-electron/preload.js +++ b/dist-electron/preload.js @@ -1,56 +1,11 @@ -"use strict"; -const electron = require("electron"); -electron.contextBridge.exposeInMainWorld("ipcRenderer", withPrototype(electron.ipcRenderer)); -function withPrototype(obj) { - const protos = Object.getPrototypeOf(obj); - for (const [key, value] of Object.entries(protos)) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - continue; - if (typeof value === "function") { - obj[key] = function(...args) { - return value.call(obj, ...args); - }; - } else { - obj[key] = value; - } - } - return obj; -} -function domReady(condition = ["complete", "interactive"]) { - return new Promise((resolve) => { - if (condition.includes(document.readyState)) { - resolve(true); - } else { - document.addEventListener("readystatechange", () => { - if (condition.includes(document.readyState)) { - resolve(true); - } - }); - } - }); -} -const safeDOM = { - append(parent, child) { - if (!Array.from(parent.children).find((e) => e === child)) { - parent.appendChild(child); - } - }, - remove(parent, child) { - if (Array.from(parent.children).find((e) => e === child)) { - parent.removeChild(child); - } - } -}; -function useLoading() { - const className = `loaders-css__square-spin`; - const styleContent = ` +"use strict";const i=require("electron");i.contextBridge.exposeInMainWorld("ipcRenderer",s(i.ipcRenderer));function s(e){const t=Object.getPrototypeOf(e);for(const[n,o]of Object.entries(t))Object.prototype.hasOwnProperty.call(e,n)||(typeof o=="function"?e[n]=function(...d){return o.call(e,...d)}:e[n]=o);return e}function c(e=["complete","interactive"]){return new Promise(t=>{e.includes(document.readyState)?t(!0):document.addEventListener("readystatechange",()=>{e.includes(document.readyState)&&t(!0)})})}const r={append(e,t){Array.from(e.children).find(n=>n===t)||e.appendChild(t)},remove(e,t){Array.from(e.children).find(n=>n===t)&&e.removeChild(t)}};function p(){const e="loaders-css__square-spin",t=` @keyframes square-spin { 25% { transform: perspective(100px) rotateX(180deg) rotateY(0); } 50% { transform: perspective(100px) rotateX(180deg) rotateY(180deg); } 75% { transform: perspective(100px) rotateX(0) rotateY(180deg); } 100% { transform: perspective(100px) rotateX(0) rotateY(0); } } -.${className} > div { +.${e} > div { animation-fill-mode: both; width: 50px; height: 50px; @@ -69,27 +24,4 @@ function useLoading() { background: #282c34; z-index: 9; } - `; - const oStyle = document.createElement("style"); - const oDiv = document.createElement("div"); - oStyle.id = "app-loading-style"; - oStyle.innerHTML = styleContent; - oDiv.className = "app-loading-wrap"; - oDiv.innerHTML = `
`; - return { - appendLoading() { - safeDOM.append(document.head, oStyle); - safeDOM.append(document.body, oDiv); - }, - removeLoading() { - safeDOM.remove(document.head, oStyle); - safeDOM.remove(document.body, oDiv); - } - }; -} -const { appendLoading, removeLoading } = useLoading(); -domReady().then(appendLoading); -window.onmessage = (ev) => { - ev.data.payload === "removeLoading" && removeLoading(); -}; -setTimeout(removeLoading, 4999); + `,n=document.createElement("style"),o=document.createElement("div");return n.id="app-loading-style",n.innerHTML=t,o.className="app-loading-wrap",o.innerHTML=`
`,{appendLoading(){r.append(document.head,n),r.append(document.body,o)},removeLoading(){r.remove(document.head,n),r.remove(document.body,o)}}}const{appendLoading:m,removeLoading:a}=p();c().then(m);window.onmessage=e=>{e.data.payload==="removeLoading"&&a()};setTimeout(a,4999); diff --git a/dist/assets/index-6e919d14.js b/dist/assets/index-6e919d14.js deleted file mode 100644 index f5905b5..0000000 --- a/dist/assets/index-6e919d14.js +++ /dev/null @@ -1,1015 +0,0 @@ -var j8=Object.defineProperty;var Y8=(e,n,i)=>n in e?j8(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var K8=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var ie=(e,n,i)=>(Y8(e,typeof n!="symbol"?n+"":n,i),i);var Fmt=K8((Ymt,Im)=>{(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function i(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=i(a);fetch(a.href,s)}})();var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W4={exports:{}},G0={},Q4={exports:{}},Qn={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gf=Symbol.for("react.element"),X8=Symbol.for("react.portal"),$8=Symbol.for("react.fragment"),Z8=Symbol.for("react.strict_mode"),J8=Symbol.for("react.profiler"),e7=Symbol.for("react.provider"),t7=Symbol.for("react.context"),n7=Symbol.for("react.forward_ref"),i7=Symbol.for("react.suspense"),r7=Symbol.for("react.memo"),a7=Symbol.for("react.lazy"),pC=Symbol.iterator;function s7(e){return e===null||typeof e!="object"?null:(e=pC&&e[pC]||e["@@iterator"],typeof e=="function"?e:null)}var j4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y4=Object.assign,K4={};function Gd(e,n,i){this.props=e,this.context=n,this.refs=K4,this.updater=i||j4}Gd.prototype.isReactComponent={};Gd.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};Gd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function X4(){}X4.prototype=Gd.prototype;function sw(e,n,i){this.props=e,this.context=n,this.refs=K4,this.updater=i||j4}var ow=sw.prototype=new X4;ow.constructor=sw;Y4(ow,Gd.prototype);ow.isPureReactComponent=!0;var mC=Array.isArray,$4=Object.prototype.hasOwnProperty,lw={current:null},Z4={key:!0,ref:!0,__self:!0,__source:!0};function J4(e,n,i){var r,a={},s=null,o=null;if(n!=null)for(r in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(s=""+n.key),n)$4.call(n,r)&&!Z4.hasOwnProperty(r)&&(a[r]=n[r]);var l=arguments.length-2;if(l===1)a.children=i;else if(1>>1,Ee=j[ae];if(0>>1;aea(Qe,ue))Gea(rt,Qe)?(j[ae]=rt,j[Ge]=ue,ae=Ge):(j[ae]=Qe,j[Oe]=ue,ae=Oe);else if(Gea(rt,ue))j[ae]=rt,j[Ge]=ue,ae=Ge;else break e}}return re}function a(j,re){var ue=j.sortIndex-re.sortIndex;return ue!==0?ue:j.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,m=3,f=!1,g=!1,v=!1,T=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(j){for(var re=i(u);re!==null;){if(re.callback===null)r(u);else if(re.startTime<=j)r(u),re.sortIndex=re.expirationTime,n(c,re);else break;re=i(u)}}function M(j){if(v=!1,I(j),!g)if(i(c)!==null)g=!0,N(R);else{var re=i(u);re!==null&&z(M,re.startTime-j)}}function R(j,re){g=!1,v&&(v=!1,y(W),W=-1),f=!0;var ue=m;try{for(I(re),h=i(c);h!==null&&(!(h.expirationTime>re)||j&&!de());){var ae=h.callback;if(typeof ae=="function"){h.callback=null,m=h.priorityLevel;var Ee=ae(h.expirationTime<=re);re=e.unstable_now(),typeof Ee=="function"?h.callback=Ee:h===i(c)&&r(c),I(re)}else r(c);h=i(c)}if(h!==null)var ze=!0;else{var Oe=i(u);Oe!==null&&z(M,Oe.startTime-re),ze=!1}return ze}finally{h=null,m=ue,f=!1}}var B=!1,A=null,W=-1,ne=5,ee=-1;function de(){return!(e.unstable_now()-eej||125ae?(j.sortIndex=ue,n(u,j),i(c)===null&&j===i(u)&&(v?(y(W),W=-1):v=!0,z(M,ue-ae))):(j.sortIndex=Ee,n(c,j),g||f||(g=!0,N(R))),j},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(j){var re=m;return function(){var ue=m;m=re;try{return j.apply(this,arguments)}finally{m=ue}}}})(i6);n6.exports=i6;var v7=n6.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r6=ut,ja=v7;function Rt(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iE=Object.prototype.hasOwnProperty,b7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vC={},bC={};function y7(e){return iE.call(bC,e)?!0:iE.call(vC,e)?!1:b7.test(e)?bC[e]=!0:(vC[e]=!0,!1)}function _7(e,n,i,r){if(i!==null&&i.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E7(e,n,i,r){if(n===null||typeof n>"u"||_7(e,n,i,r))return!0;if(r)return!1;if(i!==null)switch(i.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function aa(e,n,i,r,a,s,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=i,this.propertyName=e,this.type=n,this.sanitizeURL=s,this.removeEmptyString=o}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new aa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Lr[n]=new aa(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new aa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new aa(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lr[e]=new aa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new aa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new aa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new aa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new aa(e,5,!1,e.toLowerCase(),null,!1,!1)});var uw=/[\-:]([a-z])/g;function dw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(uw,dw);Lr[n]=new aa(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(uw,dw);Lr[n]=new aa(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(uw,dw);Lr[n]=new aa(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new aa(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new aa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new aa(e,1,!1,e.toLowerCase(),null,!0,!0)});function hw(e,n,i,r){var a=Lr.hasOwnProperty(n)?Lr[n]:null;(a!==null?a.type!==0:r||!(2l||a[o]!==s[l]){var c=` -`+a[o].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{hv=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?Nh(e):""}function A7(e){switch(e.tag){case 5:return Nh(e.type);case 16:return Nh("Lazy");case 13:return Nh("Suspense");case 19:return Nh("SuspenseList");case 0:case 2:case 15:return e=fv(e.type,!1),e;case 11:return e=fv(e.type.render,!1),e;case 1:return e=fv(e.type,!0),e;default:return""}}function oE(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ju:return"Fragment";case Zu:return"Portal";case rE:return"Profiler";case fw:return"StrictMode";case aE:return"Suspense";case sE:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case o6:return(e.displayName||"Context")+".Consumer";case s6:return(e._context.displayName||"Context")+".Provider";case pw:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mw:return n=e.displayName||null,n!==null?n:oE(e.type)||"Memo";case Dl:n=e._payload,e=e._init;try{return oE(e(n))}catch{}}return null}function w7(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oE(n);case 8:return n===fw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function tc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function c6(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function x7(e){var n=c6(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,s=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function vp(e){e._valueTracker||(e._valueTracker=x7(e))}function u6(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),r="";return e&&(r=c6(e)?e.checked?"true":"false":e.value),e=r,e!==i?(n.setValue(e),!0):!1}function Lm(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function lE(e,n){var i=n.checked;return Ki({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function _C(e,n){var i=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;i=tc(n.value!=null?n.value:i),e._wrapperState={initialChecked:r,initialValue:i,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function d6(e,n){n=n.checked,n!=null&&hw(e,"checked",n,!1)}function cE(e,n){d6(e,n);var i=tc(n.value),r=n.type;if(i!=null)r==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?uE(e,n.type,i):n.hasOwnProperty("defaultValue")&&uE(e,n.type,tc(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function EC(e,n,i){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,i||n===e.value||(e.value=n),e.defaultValue=n}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function uE(e,n,i){(n!=="number"||Lm(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Ih=Array.isArray;function md(e,n,i,r){if(e=e.options,n){n={};for(var a=0;a"+n.valueOf().toString()+"",n=bp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function lf(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var Fh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},C7=["Webkit","ms","Moz","O"];Object.keys(Fh).forEach(function(e){C7.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Fh[n]=Fh[e]})});function m6(e,n,i){return n==null||typeof n=="boolean"||n===""?"":i||typeof n!="number"||n===0||Fh.hasOwnProperty(e)&&Fh[e]?(""+n).trim():n+"px"}function g6(e,n){e=e.style;for(var i in n)if(n.hasOwnProperty(i)){var r=i.indexOf("--")===0,a=m6(i,n[i],r);i==="float"&&(i="cssFloat"),r?e.setProperty(i,a):e[i]=a}}var S7=Ki({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fE(e,n){if(n){if(S7[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(Rt(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(Rt(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(Rt(61))}if(n.style!=null&&typeof n.style!="object")throw Error(Rt(62))}}function pE(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mE=null;function gw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gE=null,gd=null,vd=null;function xC(e){if(e=Qf(e)){if(typeof gE!="function")throw Error(Rt(280));var n=e.stateNode;n&&(n=Y0(n),gE(e.stateNode,e.type,n))}}function v6(e){gd?vd?vd.push(e):vd=[e]:gd=e}function b6(){if(gd){var e=gd,n=vd;if(vd=gd=null,xC(e),n)for(e=0;e>>=0,e===0?32:31-(B7(e)/F7|0)|0}var yp=64,_p=4194304;function Mh(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bm(e,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,a=e.suspendedLanes,s=e.pingedLanes,o=i&268435455;if(o!==0){var l=o&~a;l!==0?r=Mh(l):(s&=o,s!==0&&(r=Mh(s)))}else o=i&~a,o!==0?r=Mh(o):s!==0&&(r=Mh(s));if(r===0)return 0;if(n!==0&&n!==r&&!(n&a)&&(a=r&-r,s=n&-n,a>=s||a===16&&(s&4194240)!==0))return n;if(r&4&&(r|=i&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0i;i++)n.push(e);return n}function Vf(e,n,i){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Us(n),e[n]=i}function U7(e,n){var i=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zh),LC=String.fromCharCode(32),OC=!1;function F6(e,n){switch(e){case"keyup":return gP.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H6(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ed=!1;function bP(e,n){switch(e){case"compositionend":return H6(n);case"keypress":return n.which!==32?null:(OC=!0,LC);case"textInput":return e=n.data,e===LC&&OC?null:e;default:return null}}function yP(e,n){if(ed)return e==="compositionend"||!xw&&F6(e,n)?(e=P6(),cm=Ew=Rl=null,ed=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:i,offset:n-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=FC(i)}}function G6(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?G6(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function V6(){for(var e=window,n=Lm();n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Lm(e.document)}return n}function Cw(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function kP(e){var n=V6(),i=e.focusedElem,r=e.selectionRange;if(n!==i&&i&&i.ownerDocument&&G6(i.ownerDocument.documentElement,i)){if(r!==null&&Cw(i)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in i)i.selectionStart=n,i.selectionEnd=Math.min(e,i.value.length);else if(e=(n=i.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var a=i.textContent.length,s=Math.min(r.start,a);r=r.end===void 0?s:Math.min(r.end,a),!e.extend&&s>r&&(a=r,r=s,s=a),a=HC(i,s);var o=HC(i,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(a.node,a.offset),e.removeAllRanges(),s>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=i;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,td=null,AE=null,Uh=null,wE=!1;function zC(e,n,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;wE||td==null||td!==Lm(r)||(r=td,"selectionStart"in r&&Cw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uh&&pf(Uh,r)||(Uh=r,r=zm(AE,"onSelect"),0rd||(e.current=DE[rd],DE[rd]=null,rd--)}function Ti(e,n){rd++,DE[rd]=e.current,e.current=n}var nc={},Gr=oc(nc),Ea=oc(!1),tu=nc;function Td(e,n){var i=e.type.contextTypes;if(!i)return nc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var a={},s;for(s in i)a[s]=n[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Aa(e){return e=e.childContextTypes,e!=null}function Um(){Li(Ea),Li(Gr)}function jC(e,n,i){if(Gr.current!==nc)throw Error(Rt(168));Ti(Gr,n),Ti(Ea,i)}function J6(e,n,i){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return i;r=r.getChildContext();for(var a in r)if(!(a in n))throw Error(Rt(108,w7(e)||"Unknown",a));return Ki({},i,r)}function Gm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nc,tu=Gr.current,Ti(Gr,e),Ti(Ea,Ea.current),!0}function YC(e,n,i){var r=e.stateNode;if(!r)throw Error(Rt(169));i?(e=J6(e,n,tu),r.__reactInternalMemoizedMergedChildContext=e,Li(Ea),Li(Gr),Ti(Gr,e)):Li(Ea),Ti(Ea,i)}var qo=null,K0=!1,Tv=!1;function eI(e){qo===null?qo=[e]:qo.push(e)}function zP(e){K0=!0,eI(e)}function lc(){if(!Tv&&qo!==null){Tv=!0;var e=0,n=fi;try{var i=qo;for(fi=1;e>=o,a-=o,Vo=1<<32-Us(n)+a|i<W?(ne=A,A=null):ne=A.sibling;var ee=m(y,A,I[W],M);if(ee===null){A===null&&(A=ne);break}e&&A&&ee.alternate===null&&n(y,A),C=s(ee,C,W),B===null?R=ee:B.sibling=ee,B=ee,A=ne}if(W===I.length)return i(y,A),Ui&&Rc(y,W),R;if(A===null){for(;WW?(ne=A,A=null):ne=A.sibling;var de=m(y,A,ee.value,M);if(de===null){A===null&&(A=ne);break}e&&A&&de.alternate===null&&n(y,A),C=s(de,C,W),B===null?R=de:B.sibling=de,B=de,A=ne}if(ee.done)return i(y,A),Ui&&Rc(y,W),R;if(A===null){for(;!ee.done;W++,ee=I.next())ee=h(y,ee.value,M),ee!==null&&(C=s(ee,C,W),B===null?R=ee:B.sibling=ee,B=ee);return Ui&&Rc(y,W),R}for(A=r(y,A);!ee.done;W++,ee=I.next())ee=f(A,y,W,ee.value,M),ee!==null&&(e&&ee.alternate!==null&&A.delete(ee.key===null?W:ee.key),C=s(ee,C,W),B===null?R=ee:B.sibling=ee,B=ee);return e&&A.forEach(function(Y){return n(y,Y)}),Ui&&Rc(y,W),R}function T(y,C,I,M){if(typeof I=="object"&&I!==null&&I.type===Ju&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case gp:e:{for(var R=I.key,B=C;B!==null;){if(B.key===R){if(R=I.type,R===Ju){if(B.tag===7){i(y,B.sibling),C=a(B,I.props.children),C.return=y,y=C;break e}}else if(B.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Dl&&tS(R)===B.type){i(y,B.sibling),C=a(B,I.props),C.ref=hh(y,B,I),C.return=y,y=C;break e}i(y,B);break}else n(y,B);B=B.sibling}I.type===Ju?(C=$c(I.props.children,y.mode,M,I.key),C.return=y,y=C):(M=vm(I.type,I.key,I.props,null,y.mode,M),M.ref=hh(y,C,I),M.return=y,y=M)}return o(y);case Zu:e:{for(B=I.key;C!==null;){if(C.key===B)if(C.tag===4&&C.stateNode.containerInfo===I.containerInfo&&C.stateNode.implementation===I.implementation){i(y,C.sibling),C=a(C,I.children||[]),C.return=y,y=C;break e}else{i(y,C);break}else n(y,C);C=C.sibling}C=Rv(I,y.mode,M),C.return=y,y=C}return o(y);case Dl:return B=I._init,T(y,C,B(I._payload),M)}if(Ih(I))return g(y,C,I,M);if(oh(I))return v(y,C,I,M);Tp(y,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,C!==null&&C.tag===6?(i(y,C.sibling),C=a(C,I),C.return=y,y=C):(i(y,C),C=Ov(I,y.mode,M),C.return=y,y=C),o(y)):i(y,C)}return T}var Dd=lI(!0),cI=lI(!1),jf={},fo=oc(jf),bf=oc(jf),yf=oc(jf);function Wc(e){if(e===jf)throw Error(Rt(174));return e}function Ow(e,n){switch(Ti(yf,n),Ti(bf,e),Ti(fo,jf),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:hE(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=hE(n,e)}Li(fo),Ti(fo,n)}function Nd(){Li(fo),Li(bf),Li(yf)}function uI(e){Wc(yf.current);var n=Wc(fo.current),i=hE(n,e.type);n!==i&&(Ti(bf,e),Ti(fo,i))}function Rw(e){bf.current===e&&(Li(fo),Li(bf))}var ji=oc(0);function Km(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var kv=[];function Pw(){for(var e=0;ei?i:4,e(!0);var r=Dv.transition;Dv.transition={};try{e(!1),n()}finally{fi=i,Dv.transition=r}}function SI(){return bs().memoizedState}function VP(e,n,i){var r=Kl(e);if(i={lane:r,action:i,hasEagerState:!1,eagerState:null,next:null},TI(e))kI(n,i);else if(i=rI(e,n,i,r),i!==null){var a=ia();Gs(i,e,r,a),DI(i,n,r)}}function WP(e,n,i){var r=Kl(e),a={lane:r,action:i,hasEagerState:!1,eagerState:null,next:null};if(TI(e))kI(n,a);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=n.lastRenderedReducer,s!==null))try{var o=n.lastRenderedState,l=s(o,i);if(a.hasEagerState=!0,a.eagerState=l,Vs(l,o)){var c=n.interleaved;c===null?(a.next=a,Mw(n)):(a.next=c.next,c.next=a),n.interleaved=a;return}}catch{}finally{}i=rI(e,n,a,r),i!==null&&(a=ia(),Gs(i,e,r,a),DI(i,n,r))}}function TI(e){var n=e.alternate;return e===Yi||n!==null&&n===Yi}function kI(e,n){Gh=Xm=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function DI(e,n,i){if(i&4194240){var r=n.lanes;r&=e.pendingLanes,i|=r,n.lanes=i,bw(e,i)}}var $m={readContext:vs,useCallback:Hr,useContext:Hr,useEffect:Hr,useImperativeHandle:Hr,useInsertionEffect:Hr,useLayoutEffect:Hr,useMemo:Hr,useReducer:Hr,useRef:Hr,useState:Hr,useDebugValue:Hr,useDeferredValue:Hr,useTransition:Hr,useMutableSource:Hr,useSyncExternalStore:Hr,useId:Hr,unstable_isNewReconciler:!1},QP={readContext:vs,useCallback:function(e,n){return ro().memoizedState=[e,n===void 0?null:n],e},useContext:vs,useEffect:iS,useImperativeHandle:function(e,n,i){return i=i!=null?i.concat([e]):null,fm(4194308,4,EI.bind(null,n,e),i)},useLayoutEffect:function(e,n){return fm(4194308,4,e,n)},useInsertionEffect:function(e,n){return fm(4,2,e,n)},useMemo:function(e,n){var i=ro();return n=n===void 0?null:n,e=e(),i.memoizedState=[e,n],e},useReducer:function(e,n,i){var r=ro();return n=i!==void 0?i(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=VP.bind(null,Yi,e),[r.memoizedState,e]},useRef:function(e){var n=ro();return e={current:e},n.memoizedState=e},useState:nS,useDebugValue:qw,useDeferredValue:function(e){return ro().memoizedState=e},useTransition:function(){var e=nS(!1),n=e[0];return e=GP.bind(null,e[1]),ro().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,i){var r=Yi,a=ro();if(Ui){if(i===void 0)throw Error(Rt(407));i=i()}else{if(i=n(),wr===null)throw Error(Rt(349));iu&30||fI(r,n,i)}a.memoizedState=i;var s={value:i,getSnapshot:n};return a.queue=s,iS(mI.bind(null,r,s,e),[e]),r.flags|=2048,Af(9,pI.bind(null,r,s,i,n),void 0,null),i},useId:function(){var e=ro(),n=wr.identifierPrefix;if(Ui){var i=Wo,r=Vo;i=(r&~(1<<32-Us(r)-1)).toString(32)+i,n=":"+n+"R"+i,i=_f++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(i,{is:r.is}):(e=o.createElement(i),i==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,i),e[oo]=n,e[vf]=r,FI(e,n,!1,!1),n.stateNode=e;e:{switch(o=pE(i,r),i){case"dialog":Ii("cancel",e),Ii("close",e),a=r;break;case"iframe":case"object":case"embed":Ii("load",e),a=r;break;case"video":case"audio":for(a=0;aMd&&(n.flags|=128,r=!0,fh(s,!1),n.lanes=4194304)}else{if(!r)if(e=Km(o),e!==null){if(n.flags|=128,r=!0,i=e.updateQueue,i!==null&&(n.updateQueue=i,n.flags|=4),fh(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Ui)return zr(n),null}else 2*ar()-s.renderingStartTime>Md&&i!==1073741824&&(n.flags|=128,r=!0,fh(s,!1),n.lanes=4194304);s.isBackwards?(o.sibling=n.child,n.child=o):(i=s.last,i!==null?i.sibling=o:n.child=o,s.last=o)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=ar(),n.sibling=null,i=ji.current,Ti(ji,r?i&1|2:i&1),n):(zr(n),null);case 22:case 23:return jw(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?Fa&1073741824&&(zr(n),n.subtreeFlags&6&&(n.flags|=8192)):zr(n),null;case 24:return null;case 25:return null}throw Error(Rt(156,n.tag))}function eB(e,n){switch(Tw(n),n.tag){case 1:return Aa(n.type)&&Um(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Nd(),Li(Ea),Li(Gr),Pw(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Rw(n),null;case 13:if(Li(ji),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(Rt(340));kd()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Li(ji),null;case 4:return Nd(),null;case 10:return Iw(n.type._context),null;case 22:case 23:return jw(),null;case 24:return null;default:return null}}var Dp=!1,qr=!1,tB=typeof WeakSet=="function"?WeakSet:Set,rn=null;function ld(e,n){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(r){Ji(e,n,r)}else i.current=null}function qE(e,n,i){try{i()}catch(r){Ji(e,n,r)}}var hS=!1;function nB(e,n){if(xE=Fm,e=V6(),Cw(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var a=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{i.nodeType,s.nodeType}catch{i=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,m=null;t:for(;;){for(var f;h!==i||a!==0&&h.nodeType!==3||(l=o+a),h!==s||r!==0&&h.nodeType!==3||(c=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===i&&++u===a&&(l=o),m===s&&++d===r&&(c=o),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}i=l===-1||c===-1?null:{start:l,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(CE={focusedElem:e,selectionRange:i},Fm=!1,rn=n;rn!==null;)if(n=rn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,rn=e;else for(;rn!==null;){n=rn;try{var g=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,T=g.memoizedState,y=n.stateNode,C=y.getSnapshotBeforeUpdate(n.elementType===n.type?v:Rs(n.type,v),T);y.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var I=n.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Rt(163))}}catch(M){Ji(n,n.return,M)}if(e=n.sibling,e!==null){e.return=n.return,rn=e;break}rn=n.return}return g=hS,hS=!1,g}function Vh(e,n,i){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,s!==void 0&&qE(n,i,s)}a=a.next}while(a!==r)}}function Z0(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var r=i.create;i.destroy=r()}i=i.next}while(i!==n)}}function UE(e){var n=e.ref;if(n!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof n=="function"?n(e):n.current=e}}function qI(e){var n=e.alternate;n!==null&&(e.alternate=null,qI(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[oo],delete n[vf],delete n[kE],delete n[FP],delete n[HP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function UI(e){return e.tag===5||e.tag===3||e.tag===4}function fS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||UI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function GE(e,n,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(e,n):i.insertBefore(e,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(e,i)):(n=i,n.appendChild(e)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=qm));else if(r!==4&&(e=e.child,e!==null))for(GE(e,n,i),e=e.sibling;e!==null;)GE(e,n,i),e=e.sibling}function VE(e,n,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(VE(e,n,i),e=e.sibling;e!==null;)VE(e,n,i),e=e.sibling}var Nr=null,Ps=!1;function Cl(e,n,i){for(i=i.child;i!==null;)GI(e,n,i),i=i.sibling}function GI(e,n,i){if(ho&&typeof ho.onCommitFiberUnmount=="function")try{ho.onCommitFiberUnmount(V0,i)}catch{}switch(i.tag){case 5:qr||ld(i,n);case 6:var r=Nr,a=Ps;Nr=null,Cl(e,n,i),Nr=r,Ps=a,Nr!==null&&(Ps?(e=Nr,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):Nr.removeChild(i.stateNode));break;case 18:Nr!==null&&(Ps?(e=Nr,i=i.stateNode,e.nodeType===8?Sv(e.parentNode,i):e.nodeType===1&&Sv(e,i),hf(e)):Sv(Nr,i.stateNode));break;case 4:r=Nr,a=Ps,Nr=i.stateNode.containerInfo,Ps=!0,Cl(e,n,i),Nr=r,Ps=a;break;case 0:case 11:case 14:case 15:if(!qr&&(r=i.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var s=a,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&qE(i,n,o),a=a.next}while(a!==r)}Cl(e,n,i);break;case 1:if(!qr&&(ld(i,n),r=i.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=i.memoizedProps,r.state=i.memoizedState,r.componentWillUnmount()}catch(l){Ji(i,n,l)}Cl(e,n,i);break;case 21:Cl(e,n,i);break;case 22:i.mode&1?(qr=(r=qr)||i.memoizedState!==null,Cl(e,n,i),qr=r):Cl(e,n,i);break;default:Cl(e,n,i)}}function pS(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new tB),n.forEach(function(r){var a=dB.bind(null,e,r);i.has(r)||(i.add(r),r.then(a,a))})}}function Ls(e,n){var i=n.deletions;if(i!==null)for(var r=0;ra&&(a=o),r&=~s}if(r=a,r=ar()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rB(r/1960))-r,10e?16:e,Pl===null)var r=!1;else{if(e=Pl,Pl=null,e0=0,Zn&6)throw Error(Rt(331));var a=Zn;for(Zn|=4,rn=e.current;rn!==null;){var s=rn,o=s.child;if(rn.flags&16){var l=s.deletions;if(l!==null){for(var c=0;car()-Ww?Xc(e,0):Vw|=i),wa(e,n)}function $I(e,n){n===0&&(e.mode&1?(n=_p,_p<<=1,!(_p&130023424)&&(_p=4194304)):n=1);var i=ia();e=tl(e,n),e!==null&&(Vf(e,n,i),wa(e,i))}function uB(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),$I(e,i)}function dB(e,n){var i=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(i=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Rt(314))}r!==null&&r.delete(n),$I(e,i)}var ZI;ZI=function(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps||Ea.current)ya=!0;else{if(!(e.lanes&i)&&!(n.flags&128))return ya=!1,ZP(e,n,i);ya=!!(e.flags&131072)}else ya=!1,Ui&&n.flags&1048576&&tI(n,Wm,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;pm(e,n),e=n.pendingProps;var a=Td(n,Gr.current);yd(n,i),a=Fw(null,n,r,e,a,i);var s=Hw();return n.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Aa(r)?(s=!0,Gm(n)):s=!1,n.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Lw(n),a.updater=X0,n.stateNode=a,a._reactInternals=n,OE(n,r,e,i),n=BE(null,n,r,!0,s,i)):(n.tag=0,Ui&&s&&Sw(n),ta(null,n,a,i),n=n.child),n;case 16:r=n.elementType;e:{switch(pm(e,n),e=n.pendingProps,a=r._init,r=a(r._payload),n.type=r,a=n.tag=fB(r),e=Rs(r,e),a){case 0:n=PE(null,n,r,e,i);break e;case 1:n=cS(null,n,r,e,i);break e;case 11:n=oS(null,n,r,e,i);break e;case 14:n=lS(null,n,r,Rs(r.type,e),i);break e}throw Error(Rt(306,r,""))}return n;case 0:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Rs(r,a),PE(e,n,r,a,i);case 1:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Rs(r,a),cS(e,n,r,a,i);case 3:e:{if(RI(n),e===null)throw Error(Rt(387));r=n.pendingProps,s=n.memoizedState,a=s.element,aI(e,n),Ym(n,r,null,i);var o=n.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=s,n.memoizedState=s,n.flags&256){a=Id(Error(Rt(423)),n),n=uS(e,n,r,i,a);break e}else if(r!==a){a=Id(Error(Rt(424)),n),n=uS(e,n,r,i,a);break e}else for(qa=Ql(n.stateNode.containerInfo.firstChild),Qa=n,Ui=!0,Bs=null,i=cI(n,null,r,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(kd(),r===a){n=nl(e,n,i);break e}ta(e,n,r,i)}n=n.child}return n;case 5:return uI(n),e===null&&IE(n),r=n.type,a=n.pendingProps,s=e!==null?e.memoizedProps:null,o=a.children,SE(r,a)?o=null:s!==null&&SE(r,s)&&(n.flags|=32),OI(e,n),ta(e,n,o,i),n.child;case 6:return e===null&&IE(n),null;case 13:return PI(e,n,i);case 4:return Ow(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Dd(n,null,r,i):ta(e,n,r,i),n.child;case 11:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Rs(r,a),oS(e,n,r,a,i);case 7:return ta(e,n,n.pendingProps,i),n.child;case 8:return ta(e,n,n.pendingProps.children,i),n.child;case 12:return ta(e,n,n.pendingProps.children,i),n.child;case 10:e:{if(r=n.type._context,a=n.pendingProps,s=n.memoizedProps,o=a.value,Ti(Qm,r._currentValue),r._currentValue=o,s!==null)if(Vs(s.value,o)){if(s.children===a.children&&!Ea.current){n=nl(e,n,i);break e}}else for(s=n.child,s!==null&&(s.return=n);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Xo(-1,i&-i),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=i,c=s.alternate,c!==null&&(c.lanes|=i),ME(s.return,i,n),l.lanes|=i;break}c=c.next}}else if(s.tag===10)o=s.type===n.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(Rt(341));o.lanes|=i,l=o.alternate,l!==null&&(l.lanes|=i),ME(o,i,n),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===n){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ta(e,n,a.children,i),n=n.child}return n;case 9:return a=n.type,r=n.pendingProps.children,yd(n,i),a=vs(a),r=r(a),n.flags|=1,ta(e,n,r,i),n.child;case 14:return r=n.type,a=Rs(r,n.pendingProps),a=Rs(r.type,a),lS(e,n,r,a,i);case 15:return MI(e,n,n.type,n.pendingProps,i);case 17:return r=n.type,a=n.pendingProps,a=n.elementType===r?a:Rs(r,a),pm(e,n),n.tag=1,Aa(r)?(e=!0,Gm(n)):e=!1,yd(n,i),oI(n,r,a),OE(n,r,a,i),BE(null,n,r,!0,e,i);case 19:return BI(e,n,i);case 22:return LI(e,n,i)}throw Error(Rt(156,n.tag))};function JI(e,n){return C6(e,n)}function hB(e,n,i,r){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fs(e,n,i,r){return new hB(e,n,i,r)}function Kw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fB(e){if(typeof e=="function")return Kw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pw)return 11;if(e===mw)return 14}return 2}function Xl(e,n){var i=e.alternate;return i===null?(i=fs(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function vm(e,n,i,r,a,s){var o=2;if(r=e,typeof e=="function")Kw(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ju:return $c(i.children,a,s,n);case fw:o=8,a|=8;break;case rE:return e=fs(12,i,n,a|2),e.elementType=rE,e.lanes=s,e;case aE:return e=fs(13,i,n,a),e.elementType=aE,e.lanes=s,e;case sE:return e=fs(19,i,n,a),e.elementType=sE,e.lanes=s,e;case l6:return eg(i,a,s,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case s6:o=10;break e;case o6:o=9;break e;case pw:o=11;break e;case mw:o=14;break e;case Dl:o=16,r=null;break e}throw Error(Rt(130,e==null?e:typeof e,""))}return n=fs(o,i,n,a),n.elementType=e,n.type=r,n.lanes=s,n}function $c(e,n,i,r){return e=fs(7,e,r,n),e.lanes=i,e}function eg(e,n,i,r){return e=fs(22,e,r,n),e.elementType=l6,e.lanes=i,e.stateNode={isHidden:!1},e}function Ov(e,n,i){return e=fs(6,e,null,n),e.lanes=i,e}function Rv(e,n,i){return n=fs(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function pB(e,n,i,r,a){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mv(0),this.expirationTimes=mv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mv(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Xw(e,n,i,r,a,s,o,l,c){return e=new pB(e,n,i,l,c),n===1?(n=1,s===!0&&(n|=8)):n=0,s=fs(3,null,null,n),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lw(s),e}function mB(e,n,i){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iM)}catch(e){console.error(e)}}iM(),t6.exports=Ka;var rM=t6.exports,AS=rM;Mm.createRoot=AS.createRoot,Mm.hydrateRoot=AS.hydrateRoot;class aM{}class $l extends aM{constructor(n,i,r){super(),this.viewId=n,this.groupId=i,this.panelId=r}}class jh extends aM{constructor(n,i){super(),this.viewId=n,this.paneId=i}}class bo{constructor(){}static getInstance(){return bo.INSTANCE}hasData(n){return n&&n===this.proto}clearData(n){this.hasData(n)&&(this.proto=void 0,this.data=void 0)}getData(n){if(this.hasData(n))return this.data}setData(n,i){i&&(this.data=n,this.proto=i)}}bo.INSTANCE=new bo;function hs(){const e=bo.getInstance();if(e.hasData($l.prototype))return e.getData($l.prototype)[0]}function mh(){const e=bo.getInstance();if(e.hasData(jh.prototype))return e.getData(jh.prototype)[0]}var Ld;(function(e){e.any=(...n)=>i=>{const r=n.map(a=>a(i));return{dispose:()=>{r.forEach(a=>{a.dispose()})}}}})(Ld||(Ld={}));class ex{constructor(){this._defaultPrevented=!1}get defaultPrevented(){return this._defaultPrevented}preventDefault(){this._defaultPrevented=!0}}class _B{constructor(){this.events=new Map}get size(){return this.events.size}add(n,i){this.events.set(n,i)}delete(n){this.events.delete(n)}clear(){this.events.clear()}}class i0{static create(){var n;return new i0((n=new Error().stack)!==null&&n!==void 0?n:"")}constructor(n){this.value=n}print(){console.warn(this.value)}}class EB{constructor(n,i){this.callback=n,this.stacktrace=i}}class _t{static setLeakageMonitorEnabled(n){n!==_t.ENABLE_TRACKING&&_t.MEMORY_LEAK_WATCHER.clear(),_t.ENABLE_TRACKING=n}get value(){return this._last}constructor(n){this.options=n,this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=n=>{var i;!((i=this.options)===null||i===void 0)&&i.replay&&this._last!==void 0&&n(this._last);const r=new EB(n,_t.ENABLE_TRACKING?i0.create():void 0);return this._listeners.push(r),{dispose:()=>{const a=this._listeners.indexOf(r);a>-1&&this._listeners.splice(a,1)}}},_t.ENABLE_TRACKING&&_t.MEMORY_LEAK_WATCHER.add(this._event,i0.create())),this._event}fire(n){this._last=n;for(const i of this._listeners)i.callback(n)}dispose(){this._disposed||(this._disposed=!0,this._listeners.length>0&&(_t.ENABLE_TRACKING&&queueMicrotask(()=>{var n;for(const i of this._listeners)console.warn((n=i.stacktrace)===null||n===void 0?void 0:n.print())}),this._listeners=[]),_t.ENABLE_TRACKING&&this._event&&_t.MEMORY_LEAK_WATCHER.delete(this._event))}}_t.ENABLE_TRACKING=!1;_t.MEMORY_LEAK_WATCHER=new _B;function Qo(e,n,i,r){return e.addEventListener(n,i,r),{dispose:()=>{e.removeEventListener(n,i,r)}}}function Mi(e,n,i,r){return e.addEventListener(n,i,r),{dispose:()=>{e.removeEventListener(n,i,r)}}}class AB{constructor(){this._onFired=new _t,this.onEvent=this._onFired.event}fire(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this._onFired.fire(),clearTimeout(this.timer)})}dispose(){this._onFired.dispose()}}var Ua;(function(e){e.NONE={dispose:()=>{}};function n(i){return{dispose:()=>{i()}}}e.from=n})(Ua||(Ua={}));class Gn{get isDisposed(){return this._isDisposed}constructor(...n){this._isDisposed=!1,this._disposables=n}addDisposables(...n){n.forEach(i=>this._disposables.push(i))}dispose(){this._isDisposed||(this._isDisposed=!0,this._disposables.forEach(n=>n.dispose()),this._disposables=[])}}class ys{constructor(){this._disposable=Ua.NONE}set value(n){this._disposable&&this._disposable.dispose(),this._disposable=n}dispose(){this._disposable&&(this._disposable.dispose(),this._disposable=Ua.NONE)}}function ps(e,n,i={},r={},a,s){const o=typeof n=="string"?i[n]:void 0,l=typeof n=="string"?r[n]:void 0;if(o&&l)throw new Error(`Cannot create '${e}'. component '${n}' registered as both a component and frameworkComponent`);if(l){if(!a)throw new Error(`Cannot create '${e}' for framework component '${n}'. you must register a frameworkPanelWrapper to use framework components`);return a.createComponent(e,n,l)}if(!o){if(s)return s();throw new Error(`Cannot create '${e}', no component '${n}' provided`)}return new o(e,n)}function sM(e,n){const i=new ResizeObserver(r=>{requestAnimationFrame(()=>{const a=r[0];n(a)})});return i.observe(e),{dispose:()=>{i.unobserve(e),i.disconnect()}}}const xf=(e,...n)=>{for(const i of n)e.classList.contains(i)&&e.classList.remove(i)},ag=(e,...n)=>{for(const i of n)e.classList.contains(i)||e.classList.add(i)},qn=(e,n,i)=>{const r=e.classList.contains(n);i&&!r&&e.classList.add(n),!i&&r&&e.classList.remove(n)};function KE(e,n){for(;e;){if(e===n)return!0;e=e.parentNode}return!1}function Bl(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function oM(e){return new wB(e)}class wB extends Gn{constructor(n){super(),this._onDidFocus=new _t,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new _t,this.onDidBlur=this._onDidBlur.event,this.addDisposables(this._onDidFocus,this._onDidBlur);let i=KE(document.activeElement,n),r=!1;const a=()=>{r=!1,i||(i=!0,this._onDidFocus.fire())},s=()=>{i&&(r=!0,window.setTimeout(()=>{r&&(r=!1,i=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{KE(document.activeElement,n)!==i&&(i?s():a())},n instanceof HTMLElement?(this.addDisposables(Mi(n,"focus",a,!0)),this.addDisposables(Mi(n,"blur",s,!0))):(this.addDisposables(Qo(n,"focus",a,!0)),this.addDisposables(Qo(n,"blur",s,!0)))}refreshState(){this._refreshStateHandler()}}const lM="dv-quasiPreventDefault";function xB(e){e[lM]=!0}function wS(e){return e[lM]}function CB(e,n){const i=Array.from(n);for(const r of i){if(r.href){const s=e.createElement("link");s.href=r.href,s.type=r.type,s.rel="stylesheet",e.head.appendChild(s)}let a=[];try{r.cssRules&&(a=Array.from(r.cssRules).map(s=>s.cssText))}catch{}for(const s of a){const o=e.createElement("style");o.appendChild(e.createTextNode(s)),e.head.appendChild(o)}}}function xS(e){const{left:n,top:i,width:r,height:a}=e.getBoundingClientRect();return{left:n+window.scrollX,top:i+window.scrollY,width:r,height:a}}function SB(e){let n=e;for(;n!=null&&n.parentNode;){if(n.parentNode===document)return!0;n.parentNode instanceof DocumentFragment?n=n.parentNode.host:n=n.parentNode}return!1}function jo(e){if(e.length===0)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function TB(e){return e.length>0?e[e.length-1]:void 0}function cM(e,n){if(e.length!==n.length)return!1;for(let i=0;i-1&&(e.splice(i,1),e.unshift(n))}function Mp(e,n){const i=e.indexOf(n);i>-1&&(e.splice(i,1),e.push(n))}function kB(e,n){for(let i=0;ir===n);return i>-1?(e.splice(i,1),!0):!1}const or=(e,n,i)=>{if(n>i)throw new Error(`${n} > ${i} is an invalid condition`);return Math.min(i,Math.max(e,n))},tx=()=>{let e=1;return{next:()=>(e++).toString()}},Os=(e,n)=>{const i=[];if(typeof n!="number"&&(n=e,e=0),e<=n)for(let r=e;rn;r--)i.push(r);return i};class DB{set size(n){this._size=n}get size(){return this._size}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return typeof this._cachedVisibleSize>"u"}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(n){this.container.style.pointerEvents=n?"":"none"}constructor(n,i,r,a){this.container=n,this.view=i,this.disposable=a,this._cachedVisibleSize=void 0,typeof r=="number"?(this._size=r,this._cachedVisibleSize=void 0,n.classList.add("visible")):(this._size=0,this._cachedVisibleSize=r.cachedVisibleSize)}setVisible(n,i){var r;n!==this.visible&&(n?(this.size=or((r=this._cachedVisibleSize)!==null&&r!==void 0?r:0,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof i=="number"?i:this.size,this.size=0),this.container.classList.toggle("visible",n),this.view.setVisible&&this.view.setVisible(n))}dispose(){return this.disposable.dispose(),this.view}}var An;(function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"})(An||(An={}));var os;(function(e){e[e.MAXIMUM=0]="MAXIMUM",e[e.MINIMUM=1]="MINIMUM",e[e.DISABLED=2]="DISABLED",e[e.ENABLED=3]="ENABLED"})(os||(os={}));var sr;(function(e){e.Low="low",e.High="high",e.Normal="normal"})(sr||(sr={}));var Ga;(function(e){e.Distribute={type:"distribute"};function n(r){return{type:"split",index:r}}e.Split=n;function i(r){return{type:"invisible",cachedVisibleSize:r}}e.Invisible=i})(Ga||(Ga={}));class Cf{get contentSize(){return this._contentSize}get size(){return this._size}set size(n){this._size=n}get orthogonalSize(){return this._orthogonalSize}set orthogonalSize(n){this._orthogonalSize=n}get length(){return this.viewItems.length}get proportions(){return this._proportions?[...this._proportions]:void 0}get orientation(){return this._orientation}set orientation(n){this._orientation=n;const i=this.size;this.size=this.orthogonalSize,this.orthogonalSize=i,xf(this.element,"horizontal","vertical"),this.element.classList.add(this.orientation==An.HORIZONTAL?"horizontal":"vertical")}get minimumSize(){return this.viewItems.reduce((n,i)=>n+i.minimumSize,0)}get maximumSize(){return this.length===0?Number.POSITIVE_INFINITY:this.viewItems.reduce((n,i)=>n+i.maximumSize,0)}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(n){this._startSnappingEnabled!==n&&(this._startSnappingEnabled=n,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(n){this._endSnappingEnabled!==n&&(this._endSnappingEnabled=n,this.updateSashEnablement())}get disabled(){return this._disabled}set disabled(n){this._disabled=n,qn(this.element,"dv-splitview-disabled",n)}constructor(n,i){this.container=n,this.viewItems=[],this.sashes=[],this._size=0,this._orthogonalSize=0,this._contentSize=0,this._proportions=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this._disabled=!1,this._onDidSashEnd=new _t,this.onDidSashEnd=this._onDidSashEnd.event,this._onDidAddView=new _t,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new _t,this.onDidRemoveView=this._onDidRemoveView.event,this.resize=(r,a,s=this.viewItems.map(m=>m.size),o,l,c=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d,h)=>{if(r<0||r>this.viewItems.length)return 0;const m=Os(r,-1),f=Os(r+1,this.viewItems.length);if(l)for(const se of l)Pv(m,se),Pv(f,se);if(o)for(const se of o)Mp(m,se),Mp(f,se);const g=m.map(se=>this.viewItems[se]),v=m.map(se=>s[se]),T=f.map(se=>this.viewItems[se]),y=f.map(se=>s[se]),C=m.reduce((se,q)=>se+this.viewItems[q].minimumSize-s[q],0),I=m.reduce((se,q)=>se+this.viewItems[q].maximumSize-s[q],0),M=f.length===0?Number.POSITIVE_INFINITY:f.reduce((se,q)=>se+s[q]-this.viewItems[q].minimumSize,0),R=f.length===0?Number.NEGATIVE_INFINITY:f.reduce((se,q)=>se+s[q]-this.viewItems[q].maximumSize,0),B=Math.max(C,R),A=Math.min(M,I);let W=!1;if(d){const se=this.viewItems[d.index],q=a>=d.limitDelta;W=q!==se.visible,se.setVisible(q,d.size)}if(!W&&h){const se=this.viewItems[h.index],q=a{const s=r.visible===void 0||r.visible?r.size:{type:"invisible",cachedVisibleSize:r.size},o=r.view;this.addView(o,s,a,!0)}),this._contentSize=this.viewItems.reduce((r,a)=>r+a.size,0),this.saveProportions())}style(n){(n==null?void 0:n.separatorBorder)==="transparent"?(xf(this.element,"separator-border"),this.element.style.removeProperty("--dv-separator-border")):(ag(this.element,"separator-border"),n!=null&&n.separatorBorder&&this.element.style.setProperty("--dv-separator-border",n.separatorBorder))}isViewVisible(n){if(n<0||n>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[n].visible}setViewVisible(n,i){if(n<0||n>=this.viewItems.length)throw new Error("Index out of bounds");qn(this.container,"visible",i);const r=this.viewItems[n];qn(this.container,"visible",i),r.setVisible(i,r.size),this.distributeEmptySpace(n),this.layoutViews(),this.saveProportions()}getViewSize(n){return n<0||n>=this.viewItems.length?-1:this.viewItems[n].size}resizeView(n,i){if(n<0||n>=this.viewItems.length)return;const r=Os(this.viewItems.length).filter(l=>l!==n),a=[...r.filter(l=>this.viewItems[l].priority===sr.Low),n],s=r.filter(l=>this.viewItems[l].priority===sr.High),o=this.viewItems[n];i=Math.round(i),i=or(i,o.minimumSize,Math.min(o.maximumSize,this._size)),o.size=i,this.relayout(a,s)}getViews(){return this.viewItems.map(n=>n.view)}onDidChange(n,i){const r=this.viewItems.indexOf(n);if(r<0||r>=this.viewItems.length)return;i=typeof i=="number"?i:n.size,i=or(i,n.minimumSize,n.maximumSize),n.size=i;const a=Os(this.viewItems.length).filter(l=>l!==r),s=[...a.filter(l=>this.viewItems[l].priority===sr.Low),r],o=a.filter(l=>this.viewItems[l].priority===sr.High);this.relayout([...s,r],o)}addView(n,i={type:"distribute"},r=this.viewItems.length,a){const s=document.createElement("div");s.className="view",s.appendChild(n.element);let o;typeof i=="number"?o=i:i.type==="split"?o=this.getViewSize(i.index)/2:i.type==="invisible"?o={cachedVisibleSize:i.cachedVisibleSize}:o=n.minimumSize;const l=n.onDidChange(u=>this.onDidChange(c,u.size)),c=new DB(s,n,o,{dispose:()=>{l.dispose(),this.viewContainer.removeChild(s)}});if(r===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(r)),this.viewItems.splice(r,0,c),this.viewItems.length>1){const u=document.createElement("div");u.className="sash";const d=m=>{for(const p of this.viewItems)p.enabled=!1;const f=[...Bl("iframe"),...Bl("webview")];for(const p of f)p.style.pointerEvents="none";const g=this._orientation===An.HORIZONTAL?m.clientX:m.clientY,v=kB(this.sashes,p=>p.container===u),T=this.viewItems.map(p=>p.size);let y,C;const I=Os(v,-1),M=Os(v+1,this.viewItems.length),R=I.reduce((p,N)=>p+(this.viewItems[N].minimumSize-T[N]),0),B=I.reduce((p,N)=>p+(this.viewItems[N].viewMaximumSize-T[N]),0),A=M.length===0?Number.POSITIVE_INFINITY:M.reduce((p,N)=>p+(T[N]-this.viewItems[N].minimumSize),0),W=M.length===0?Number.NEGATIVE_INFINITY:M.reduce((p,N)=>p+(T[N]-this.viewItems[N].viewMaximumSize),0),ne=Math.max(R,W),ee=Math.min(A,B),de=this.findFirstSnapIndex(I),Y=this.findFirstSnapIndex(M);if(typeof de=="number"){const p=this.viewItems[de],N=Math.floor(p.viewMinimumSize/2);y={index:de,limitDelta:p.visible?ne-N:ne+N,size:p.size}}if(typeof Y=="number"){const p=this.viewItems[Y],N=Math.floor(p.viewMinimumSize/2);C={index:Y,limitDelta:p.visible?ee+N:ee-N,size:p.size}}const se=p=>{const z=(this._orientation===An.HORIZONTAL?p.clientX:p.clientY)-g;this.resize(v,z,T,void 0,void 0,ne,ee,y,C),this.distributeEmptySpace(),this.layoutViews()},q=()=>{for(const p of this.viewItems)p.enabled=!0;for(const p of f)p.style.pointerEvents="auto";this.saveProportions(),document.removeEventListener("pointermove",se),document.removeEventListener("pointerup",q),document.removeEventListener("pointercancel",q),this._onDidSashEnd.fire(void 0)};document.addEventListener("pointermove",se),document.addEventListener("pointerup",q),document.addEventListener("pointercancel",q)};u.addEventListener("pointerdown",d);const h={container:u,disposable:()=>{u.removeEventListener("pointerdown",d),this.sashContainer.removeChild(u)}};this.sashContainer.appendChild(u),this.sashes.push(h)}a||this.relayout([r]),!a&&typeof i!="number"&&i.type==="distribute"&&this.distributeViewSizes(),this._onDidAddView.fire(n)}distributeViewSizes(){const n=[];let i=0;for(const l of this.viewItems)l.maximumSize-l.minimumSize>0&&(n.push(l),i+=l.size);const r=Math.floor(i/n.length);for(const l of n)l.size=or(r,l.minimumSize,l.maximumSize);const a=Os(this.viewItems.length),s=a.filter(l=>this.viewItems[l].priority===sr.Low),o=a.filter(l=>this.viewItems[l].priority===sr.High);this.relayout(s,o)}removeView(n,i,r=!1){const a=this.viewItems.splice(n,1)[0];if(a.dispose(),this.viewItems.length>=1){const s=Math.max(n-1,0);this.sashes.splice(s,1)[0].disposable()}return r||this.relayout(),i&&i.type==="distribute"&&this.distributeViewSizes(),this._onDidRemoveView.fire(a.view),a.view}getViewCachedVisibleSize(n){if(n<0||n>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[n].cachedVisibleSize}moveView(n,i){const r=this.getViewCachedVisibleSize(n),a=typeof r>"u"?this.getViewSize(n):Ga.Invisible(r),s=this.removeView(n,void 0,!0);this.addView(s,a,i)}layout(n,i){const r=Math.max(this.size,this._contentSize);if(this.size=n,this.orthogonalSize=i,this.proportions){let a=0;for(let s=0;s0&&(o.size=or(Math.round(l*n/a),o.minimumSize,o.maximumSize))}}else{const a=Os(this.viewItems.length),s=a.filter(l=>this.viewItems[l].priority===sr.Low),o=a.filter(l=>this.viewItems[l].priority===sr.High);this.resize(this.viewItems.length-1,n-r,void 0,s,o)}this.distributeEmptySpace(),this.layoutViews()}relayout(n,i){const r=this.viewItems.reduce((a,s)=>a+s.size,0);this.resize(this.viewItems.length-1,this._size-r,void 0,n,i),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}distributeEmptySpace(n){const i=this.viewItems.reduce((l,c)=>l+c.size,0);let r=this.size-i;const a=Os(this.viewItems.length-1,-1),s=a.filter(l=>this.viewItems[l].priority===sr.Low),o=a.filter(l=>this.viewItems[l].priority===sr.High);for(const l of o)Pv(a,l);for(const l of s)Mp(a,l);typeof n=="number"&&Mp(a,n);for(let l=0;r!==0&&l0&&(this._proportions=this.viewItems.map(n=>n.visible?n.size/this._contentSize:void 0))}layoutViews(){this._contentSize=this.viewItems.reduce((r,a)=>r+a.size,0);let n=0;const i=[];this.updateSashEnablement();for(let r=0;r{this._orientation===An.HORIZONTAL&&(r.container.style.width=`${r.size}px`,r.container.style.left=a==0?"0px":`${i[a-1]}px`,r.container.style.top="",r.container.style.height=""),this._orientation===An.VERTICAL&&(r.container.style.height=`${r.size}px`,r.container.style.top=a==0?"0px":`${i[a-1]}px`,r.container.style.width="",r.container.style.left=""),r.view.layout(r.size,this._orthogonalSize)})}findFirstSnapIndex(n){for(const i of n){const r=this.viewItems[i];if(r.visible&&r.snap)return i}for(const i of n){const r=this.viewItems[i];if(r.visible&&r.maximumSize-r.minimumSize>0)return;if(!r.visible&&r.snap)return i}}updateSashEnablement(){let n=!1;const i=this.viewItems.map(c=>n=c.size-c.minimumSize>0||n);n=!1;const r=this.viewItems.map(c=>n=c.maximumSize-c.size>0||n),a=[...this.viewItems].reverse();n=!1;const s=a.map(c=>n=c.size-c.minimumSize>0||n).reverse();n=!1;const o=a.map(c=>n=c.maximumSize-c.size>0||n).reverse();let l=0;for(let c=0;c0||this.startSnappingEnabled)?this.updateSash(u,os.MINIMUM):C&&i[c]&&(l{const s=new Gn(a.onDidChangeExpansionState(()=>{this.setupAnimation(),this._onDidChange.fire(void 0)})),o={pane:a,disposable:{dispose:()=>{s.dispose()}}};this.paneItems.push(o),a.orthogonalSize=this.splitview.orthogonalSize}),this.addDisposables(this._onDidChange,this.splitview.onDidSashEnd(()=>{this._onDidChange.fire(void 0)}),this.splitview.onDidAddView(()=>{this._onDidChange.fire()}),this.splitview.onDidRemoveView(()=>{this._onDidChange.fire()}))}addPane(n,i,r=this.splitview.length,a=!1){const s=n.onDidChangeExpansionState(()=>{this.setupAnimation(),this._onDidChange.fire(void 0)}),o={pane:n,disposable:{dispose:()=>{s.dispose()}}};this.paneItems.splice(r,0,o),n.orthogonalSize=this.splitview.orthogonalSize,this.splitview.addView(n,i,r,a)}getViewSize(n){return this.splitview.getViewSize(n)}getPanes(){return this.splitview.getViews()}removePane(n,i={skipDispose:!1}){const r=this.paneItems.splice(n,1)[0];return this.splitview.removeView(n),i.skipDispose||(r.disposable.dispose(),r.pane.dispose()),r}moveView(n,i){if(n===i)return;const r=this.removePane(n,{skipDispose:!0});this.skipAnimation=!0;try{this.addPane(r.pane,r.pane.size,i,!1)}finally{this.skipAnimation=!1}}layout(n,i){this.splitview.layout(n,i)}setupAnimation(){this.skipAnimation||(this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=void 0),ag(this.element,"animated"),this.animationTimer=setTimeout(()=>{this.animationTimer=void 0,xf(this.element,"animated")},200))}dispose(){super.dispose(),this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=void 0),this.paneItems.forEach(n=>{n.disposable.dispose(),n.pane.dispose()}),this.paneItems=[],this.splitview.dispose(),this.element.remove()}}class ea{get minimumWidth(){return this.view.minimumWidth}get maximumWidth(){return this.view.maximumWidth}get minimumHeight(){return this.view.minimumHeight}get maximumHeight(){return this.view.maximumHeight}get priority(){return this.view.priority}get snap(){return this.view.snap}get minimumSize(){return this.orientation===An.HORIZONTAL?this.minimumHeight:this.minimumWidth}get maximumSize(){return this.orientation===An.HORIZONTAL?this.maximumHeight:this.maximumWidth}get minimumOrthogonalSize(){return this.orientation===An.HORIZONTAL?this.minimumWidth:this.minimumHeight}get maximumOrthogonalSize(){return this.orientation===An.HORIZONTAL?this.maximumWidth:this.maximumHeight}get orthogonalSize(){return this._orthogonalSize}get size(){return this._size}get element(){return this.view.element}get width(){return this.orientation===An.HORIZONTAL?this.orthogonalSize:this.size}get height(){return this.orientation===An.HORIZONTAL?this.size:this.orthogonalSize}constructor(n,i,r,a=0){this.view=n,this.orientation=i,this._onDidChange=new _t,this.onDidChange=this._onDidChange.event,this._orthogonalSize=r,this._size=a,this._disposable=this.view.onDidChange(s=>{s?this._onDidChange.fire({size:this.orientation===An.VERTICAL?s.width:s.height,orthogonalSize:this.orientation===An.VERTICAL?s.height:s.width}):this._onDidChange.fire({})})}setVisible(n){this.view.setVisible&&this.view.setVisible(n)}layout(n,i){this._size=n,this._orthogonalSize=i,this.view.layout(this.width,this.height)}dispose(){this._onDidChange.dispose(),this._disposable.dispose()}}class dr extends Gn{get width(){return this.orientation===An.HORIZONTAL?this.size:this.orthogonalSize}get height(){return this.orientation===An.HORIZONTAL?this.orthogonalSize:this.size}get minimumSize(){return this.children.length===0?0:Math.max(...this.children.map((n,i)=>this.splitview.isViewVisible(i)?n.minimumOrthogonalSize:0))}get maximumSize(){return Math.min(...this.children.map((n,i)=>this.splitview.isViewVisible(i)?n.maximumOrthogonalSize:Number.POSITIVE_INFINITY))}get minimumOrthogonalSize(){return this.splitview.minimumSize}get maximumOrthogonalSize(){return this.splitview.maximumSize}get orthogonalSize(){return this._orthogonalSize}get size(){return this._size}get minimumWidth(){return this.orientation===An.HORIZONTAL?this.minimumOrthogonalSize:this.minimumSize}get minimumHeight(){return this.orientation===An.HORIZONTAL?this.minimumSize:this.minimumOrthogonalSize}get maximumWidth(){return this.orientation===An.HORIZONTAL?this.maximumOrthogonalSize:this.maximumSize}get maximumHeight(){return this.orientation===An.HORIZONTAL?this.maximumSize:this.maximumOrthogonalSize}get priority(){if(this.children.length===0)return sr.Normal;const n=this.children.map(i=>typeof i.priority>"u"?sr.Normal:i.priority);return n.some(i=>i===sr.High)?sr.High:n.some(i=>i===sr.Low)?sr.Low:sr.Normal}get disabled(){return this.splitview.disabled}set disabled(n){this.splitview.disabled=n}constructor(n,i,r,a,s,o,l){if(super(),this.orientation=n,this.proportionalLayout=i,this.styles=r,this._childrenDisposable=Ua.NONE,this.children=[],this._onDidChange=new _t,this.onDidChange=this._onDidChange.event,this._onDidVisibilityChange=new _t,this.onDidVisibilityChange=this._onDidVisibilityChange.event,this._orthogonalSize=s,this._size=a,this.element=document.createElement("div"),this.element.className="branch-node",!l)this.splitview=new Cf(this.element,{orientation:this.orientation,proportionalLayout:i,styles:r}),this.splitview.layout(this.size,this.orthogonalSize);else{const c={views:l.map(u=>({view:u.node,size:u.node.size,visible:u.node instanceof ea&&u.visible!==void 0?u.visible:!0})),size:this.orthogonalSize};this.children=l.map(u=>u.node),this.splitview=new Cf(this.element,{orientation:this.orientation,descriptor:c,proportionalLayout:i,styles:r})}this.disabled=o,this.addDisposables(this._onDidChange,this._onDidVisibilityChange,this.splitview.onDidSashEnd(()=>{this._onDidChange.fire({})})),this.setupChildrenEvents()}setVisible(n){for(const i of this.children)i.setVisible(n)}isChildVisible(n){if(n<0||n>=this.children.length)throw new Error("Invalid index");return this.splitview.isViewVisible(n)}setChildVisible(n,i){if(n<0||n>=this.children.length)throw new Error("Invalid index");if(this.splitview.isViewVisible(n)===i)return;const r=this.splitview.contentSize===0;this.splitview.setViewVisible(n,i);const a=this.splitview.contentSize===0;(i&&r||!i&&a)&&this._onDidVisibilityChange.fire(i)}moveChild(n,i){if(n===i)return;if(n<0||n>=this.children.length)throw new Error("Invalid from index");n=this.children.length)throw new Error("Invalid index");return this.splitview.getViewSize(n)}resizeChild(n,i){if(n<0||n>=this.children.length)throw new Error("Invalid index");this.splitview.resizeView(n,i)}layout(n,i){this._size=i,this._orthogonalSize=n,this.splitview.layout(i,n)}addChild(n,i,r,a){if(r<0||r>this.children.length)throw new Error("Invalid index");this.splitview.addView(n,i,r,a),this._addChild(n,r)}getChildCachedVisibleSize(n){if(n<0||n>=this.children.length)throw new Error("Invalid index");return this.splitview.getViewCachedVisibleSize(n)}removeChild(n,i){if(n<0||n>=this.children.length)throw new Error("Invalid index");return this.splitview.removeView(n,i),this._removeChild(n)}_addChild(n,i){this.children.splice(i,0,n),this.setupChildrenEvents()}_removeChild(n){const[i]=this.children.splice(n,1);return this.setupChildrenEvents(),i}setupChildrenEvents(){this._childrenDisposable.dispose(),this._childrenDisposable=new Gn(Ld.any(...this.children.map(n=>n.onDidChange))(n=>{this._onDidChange.fire({size:n.orthogonalSize})}),...this.children.map((n,i)=>n instanceof dr?n.onDidVisibilityChange(r=>{this.setChildVisible(i,r)}):Ua.NONE))}dispose(){this._childrenDisposable.dispose(),this.splitview.dispose(),this.children.forEach(n=>n.dispose()),super.dispose()}}function XE(e,n){if(e instanceof ea)return e;if(e instanceof dr)return XE(e.children[n?e.children.length-1:0],n);throw new Error("invalid node")}function $E(e,n,i){if(e instanceof dr){const r=new dr(Uo(e.orientation),e.proportionalLayout,e.styles,n,i,e.disabled);let a=0;for(let s=e.children.length-1;s>=0;s--){const o=e.children[s],l=o instanceof dr?o.orthogonalSize:o.size;let c=e.size===0?0:Math.round(n*l/e.size);a+=c,s===0&&(c+=n-a),r.addChild($E(o,i,c),c,0,!0)}return r}else return new ea(e.view,Uo(e.orientation),i)}function NB(e){const n=e.parentElement;if(!n)throw new Error("Invalid grid element");let i=n.firstElementChild,r=0;for(;i!==e&&i!==n.lastElementChild&&i;)i=i.nextElementSibling,r++;return r}function er(e){const n=e.parentElement;if(!n)throw new Error("Invalid grid element");if(/\bgrid-view\b/.test(n.className))return[];const i=NB(n),r=n.parentElement.parentElement.parentElement;return[...er(r),i]}function ao(e,n,i){const r=MB(e,n),a=IB(i);if(r===a){const[s,o]=jo(n);let l=o;return(i==="right"||i==="bottom")&&(l+=1),[...s,l]}else{const s=i==="right"||i==="bottom"?1:0;return[...n,s]}}function IB(e){return e==="top"||e==="bottom"?An.VERTICAL:An.HORIZONTAL}function MB(e,n){return n.length%2===0?Uo(e):e}const Uo=e=>e===An.HORIZONTAL?An.VERTICAL:An.HORIZONTAL;function LB(e){return!!e.children}const uM=(e,n)=>{const i=n===An.VERTICAL?e.box.width:e.box.height;return LB(e)?{type:"branch",data:e.children.map(r=>uM(r,Uo(n))),size:i}:typeof e.cachedVisibleSize=="number"?{type:"leaf",data:e.view.toJSON(),size:e.cachedVisibleSize,visible:!1}:{type:"leaf",data:e.view.toJSON(),size:i}};class OB{get length(){return this._root?this._root.children.length:0}get orientation(){return this.root.orientation}set orientation(n){if(this.root.orientation===n)return;const{size:i,orthogonalSize:r}=this.root;this.root=$E(this.root,r,i),this.root.layout(i,r)}get width(){return this.root.width}get height(){return this.root.height}get minimumWidth(){return this.root.minimumWidth}get minimumHeight(){return this.root.minimumHeight}get maximumWidth(){return this.root.maximumHeight}get maximumHeight(){return this.root.maximumHeight}get locked(){return this._locked}set locked(n){this._locked=n;const i=[this.root];for(;i.length>0;){const r=i.pop();r instanceof dr&&(r.disabled=n,i.push(...r.children))}}maximizedView(){var n;return(n=this._maximizedNode)===null||n===void 0?void 0:n.leaf.view}hasMaximizedView(){return this._maximizedNode!==void 0}maximizeView(n){var i;const r=er(n.element),[a,s]=this.getNode(r);if(!(s instanceof ea)||((i=this._maximizedNode)===null||i===void 0?void 0:i.leaf)===s)return;this.hasMaximizedView()&&this.exitMaximizedView();const o=[];function l(c,u){for(let d=0;d=0;a--){const s=r.children[a];s instanceof ea?n.includes(s)||r.setChildVisible(a,!0):i(s)}}i(this.root),this._maximizedNode=void 0,this._onDidMaximizedNodeChange.fire()}serialize(){return this.hasMaximizedView()&&this.exitMaximizedView(),{root:uM(this.getView(),this.orientation),width:this.width,height:this.height,orientation:this.orientation}}dispose(){this.disposable.dispose(),this._onDidChange.dispose(),this._onDidMaximizedNodeChange.dispose(),this.root.dispose(),this._maximizedNode=void 0,this.element.remove()}clear(){const n=this.root.orientation;this.root=new dr(n,this.proportionalLayout,this.styles,this.root.size,this.root.orthogonalSize,this._locked)}deserialize(n,i){const r=n.orientation,a=r===An.VERTICAL?n.height:n.width;this._deserialize(n.root,r,i,a)}_deserialize(n,i,r,a){this.root=this._deserializeNode(n,i,r,a)}_deserializeNode(n,i,r,a){let s;if(n.type==="branch"){const l=n.data.map(c=>({node:this._deserializeNode(c,Uo(i),r,n.size),visible:c.visible}));s=new dr(i,this.proportionalLayout,this.styles,n.size,a,this._locked,l)}else s=new ea(r.fromJSON(n),i,a,n.size);return s}get root(){return this._root}set root(n){const i=this._root;i&&(i.dispose(),this._maximizedNode=void 0,this.element.removeChild(i.element)),this._root=n,this.element.appendChild(this._root.element),this.disposable.value=this._root.onDidChange(r=>{this._onDidChange.fire(r)})}insertOrthogonalSplitviewAtRoot(){if(!this._root)return;const n=this.root;if(n.element.remove(),this._root=new dr(Uo(n.orientation),this.proportionalLayout,this.styles,this.root.orthogonalSize,this.root.size,this._locked),n.children.length!==0)if(n.children.length===1){const i=n.children[0];n.removeChild(0).dispose(),n.dispose(),this._root.addChild($E(i,i.orthogonalSize,i.size),Ga.Distribute,0)}else this._root.addChild(n,Ga.Distribute,0);this.element.appendChild(this._root.element),this.disposable.value=this._root.onDidChange(i=>{this._onDidChange.fire(i)})}next(n){return this.progmaticSelect(n)}previous(n){return this.progmaticSelect(n,!0)}getView(n){const i=n?this.getNode(n)[1]:this.root;return this._getViews(i,this.orientation)}_getViews(n,i,r){const a={height:n.height,width:n.width};if(n instanceof ea)return{box:a,view:n.view,cachedVisibleSize:r};const s=[];for(let o=0;o-1;s--){const o=r[s],l=n[s]||0;if(i?l-1>-1:l+1u.getChildSize(T));if(u.removeChild(h,i).dispose(),c instanceof dr){g.splice(h,1,...c.children.map(v=>v.size));for(let v=0;v0;)c.removeChild(0)}else{const v=new ea(c.view,Uo(c.orientation),c.size),T=f?c.orthogonalSize:Ga.Invisible(c.orthogonalSize);u.addChild(v,T,h)}c.dispose();for(let v=0;v=i.children.length)throw new Error("Invalid location");const o=i.children[a];return r.push(i),this.getNode(s,o,r)}}class dM{get minimumSize(){return this.component.minimumSize}get maximumSize(){return this.component.maximumSize}get width(){return this.component.width}get height(){return this.component.height}get length(){return this.component.length}get orientation(){return this.component.orientation}get panels(){return this.component.panels}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidAddView(){return this.component.onDidAddView}get onDidRemoveView(){return this.component.onDidRemoveView}constructor(n){this.component=n}updateOptions(n){this.component.updateOptions(n)}removePanel(n,i){this.component.removePanel(n,i)}focus(){this.component.focus()}getPanel(n){return this.component.getPanel(n)}layout(n,i){return this.component.layout(n,i)}addPanel(n){return this.component.addPanel(n)}movePanel(n,i){this.component.movePanel(n,i)}fromJSON(n){this.component.fromJSON(n)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}}class Od{get minimumSize(){return this.component.minimumSize}get maximumSize(){return this.component.maximumSize}get width(){return this.component.width}get height(){return this.component.height}get panels(){return this.component.panels}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get onDidAddView(){return this.component.onDidAddView}get onDidRemoveView(){return this.component.onDidRemoveView}get onDidDrop(){const n=new _t,i=this.component.onDidDrop(r=>{n.fire(Object.assign(Object.assign({},r),{api:this}))});return n.dispose=()=>{i.dispose(),n.dispose()},n.event}constructor(n){this.component=n}removePanel(n){this.component.removePanel(n)}getPanel(n){return this.component.getPanel(n)}movePanel(n,i){this.component.movePanel(n,i)}focus(){this.component.focus()}layout(n,i){this.component.layout(n,i)}addPanel(n){return this.component.addPanel(n)}fromJSON(n){this.component.fromJSON(n)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}}class hM{get width(){return this.component.width}get height(){return this.component.height}get minimumHeight(){return this.component.minimumHeight}get maximumHeight(){return this.component.maximumHeight}get minimumWidth(){return this.component.minimumWidth}get maximumWidth(){return this.component.maximumWidth}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidAddPanel(){return this.component.onDidAddGroup}get onDidRemovePanel(){return this.component.onDidRemoveGroup}get onDidActivePanelChange(){return this.component.onDidActiveGroupChange}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get panels(){return this.component.groups}get orientation(){return this.component.orientation}set orientation(n){this.component.updateOptions({orientation:n})}constructor(n){this.component=n}focus(){this.component.focus()}layout(n,i,r=!1){this.component.layout(n,i,r)}addPanel(n){return this.component.addPanel(n)}removePanel(n,i){this.component.removePanel(n,i)}movePanel(n,i){this.component.movePanel(n,i)}getPanel(n){return this.component.getPanel(n)}fromJSON(n){return this.component.fromJSON(n)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}}class Sf{get id(){return this.component.id}get width(){return this.component.width}get height(){return this.component.height}get minimumHeight(){return this.component.minimumHeight}get maximumHeight(){return this.component.maximumHeight}get minimumWidth(){return this.component.minimumWidth}get maximumWidth(){return this.component.maximumWidth}get size(){return this.component.size}get totalPanels(){return this.component.totalPanels}get onDidActiveGroupChange(){return this.component.onDidActiveGroupChange}get onDidAddGroup(){return this.component.onDidAddGroup}get onDidRemoveGroup(){return this.component.onDidRemoveGroup}get onDidActivePanelChange(){return this.component.onDidActivePanelChange}get onDidAddPanel(){return this.component.onDidAddPanel}get onDidRemovePanel(){return this.component.onDidRemovePanel}get onDidLayoutFromJSON(){return this.component.onDidLayoutFromJSON}get onDidLayoutChange(){return this.component.onDidLayoutChange}get onDidDrop(){return this.component.onDidDrop}get onWillDrop(){return this.component.onWillDrop}get onWillShowOverlay(){return this.component.onWillShowOverlay}get onWillDragGroup(){return this.component.onWillDragGroup}get onWillDragPanel(){return this.component.onWillDragPanel}get panels(){return this.component.panels}get groups(){return this.component.groups}get activePanel(){return this.component.activePanel}get activeGroup(){return this.component.activeGroup}constructor(n){this.component=n}focus(){this.component.focus()}getPanel(n){return this.component.getGroupPanel(n)}layout(n,i,r=!1){this.component.layout(n,i,r)}addPanel(n){return this.component.addPanel(n)}removePanel(n){this.component.removePanel(n)}addGroup(n){return this.component.addGroup(n)}closeAllGroups(){return this.component.closeAllGroups()}removeGroup(n){this.component.removeGroup(n)}getGroup(n){return this.component.getPanel(n)}addFloatingGroup(n,i){return this.component.addFloatingGroup(n,i)}fromJSON(n){this.component.fromJSON(n)}toJSON(){return this.component.toJSON()}clear(){this.component.clear()}moveToNext(n){this.component.moveToNext(n)}moveToPrevious(n){this.component.moveToPrevious(n)}maximizeGroup(n){this.component.maximizeGroup(n.group)}hasMaximizedGroup(){return this.component.hasMaximizedGroup()}exitMaximizedGroup(){this.component.exitMaximizedGroup()}get onDidMaximizedGroupChange(){return this.component.onDidMaximizedGroupChange}addPopoutGroup(n,i){return this.component.addPopoutGroup(n,i)}}class fM extends Gn{constructor(n,i){super(),this.element=n,this.callbacks=i,this.target=null,this.registerListeners()}onDragEnter(n){this.target=n.target,this.callbacks.onDragEnter(n)}onDragOver(n){n.preventDefault(),this.callbacks.onDragOver&&this.callbacks.onDragOver(n)}onDragLeave(n){this.target===n.target&&(this.target=null,this.callbacks.onDragLeave(n))}onDragEnd(n){this.target=null,this.callbacks.onDragEnd(n)}onDrop(n){this.callbacks.onDrop(n)}registerListeners(){this.addDisposables(Mi(this.element,"dragenter",n=>{this.onDragEnter(n)},!0)),this.addDisposables(Mi(this.element,"dragover",n=>{this.onDragOver(n)},!0)),this.addDisposables(Mi(this.element,"dragleave",n=>{this.onDragLeave(n)})),this.addDisposables(Mi(this.element,"dragend",n=>{this.onDragEnd(n)})),this.addDisposables(Mi(this.element,"drop",n=>{this.onDrop(n)}))}}class RB extends ex{get nativeEvent(){return this.options.nativeEvent}get position(){return this.options.position}constructor(n){super(),this.options=n}}function TS(e){switch(e){case"above":return"top";case"below":return"bottom";case"left":return"left";case"right":return"right";case"within":return"center";default:throw new Error(`invalid direction '${e}'`)}}function PB(e){switch(e){case"top":return"above";case"bottom":return"below";case"left":return"left";case"right":return"right";case"center":return"within";default:throw new Error(`invalid position '${e}'`)}}const BB={value:20,type:"percentage"},FB={value:50,type:"percentage"},HB=100,zB=100;class il extends Gn{get state(){return this._state}constructor(n,i){super(),this.element=n,this.options=i,this._onDrop=new _t,this.onDrop=this._onDrop.event,this._onWillShowOverlay=new _t,this.onWillShowOverlay=this._onWillShowOverlay.event,this._acceptedTargetZonesSet=new Set(this.options.acceptedTargetZones),this.dnd=new fM(this.element,{onDragEnter:()=>{},onDragOver:r=>{if(this._acceptedTargetZonesSet.size===0){this.removeDropTarget();return}const a=this.element.clientWidth,s=this.element.clientHeight;if(a===0||s===0)return;const o=r.currentTarget.getBoundingClientRect(),l=r.clientX-o.left,c=r.clientY-o.top,u=this.calculateQuadrant(this._acceptedTargetZonesSet,l,c,a,s);if(this.isAlreadyUsed(r)||u===null){this.removeDropTarget();return}const d=new RB({nativeEvent:r,position:u});if(this._onWillShowOverlay.fire(d),d.defaultPrevented){this.removeDropTarget();return}if(typeof this.options.canDisplayOverlay=="boolean"){if(!this.options.canDisplayOverlay){this.removeDropTarget();return}}else if(!this.options.canDisplayOverlay(r,u)){this.removeDropTarget();return}this.markAsUsed(r),this.targetElement||(this.targetElement=document.createElement("div"),this.targetElement.className="drop-target-dropzone",this.overlayElement=document.createElement("div"),this.overlayElement.className="drop-target-selection",this._state="center",this.targetElement.appendChild(this.overlayElement),this.element.classList.add("drop-target"),this.element.append(this.targetElement)),this.toggleClasses(u,a,s),this._state=u},onDragLeave:()=>{this.removeDropTarget()},onDragEnd:()=>{this.removeDropTarget()},onDrop:r=>{r.preventDefault();const a=this._state;this.removeDropTarget(),a&&(r.stopPropagation(),this._onDrop.fire({position:a,nativeEvent:r}))}}),this.addDisposables(this._onDrop,this._onWillShowOverlay,this.dnd)}setTargetZones(n){this._acceptedTargetZonesSet=new Set(n)}setOverlayModel(n){this.options.overlayModel=n}dispose(){this.removeDropTarget(),super.dispose()}markAsUsed(n){n[il.USED_EVENT_ID]=!0}isAlreadyUsed(n){const i=n[il.USED_EVENT_ID];return typeof i=="boolean"&&i}toggleClasses(n,i,r){var a,s;if(!this.overlayElement)return;const o=i100-s?"right":e.has("top")&&l100-s?"bottom":e.has("center")?"center":null}function UB(e,n,i,r,a,s){return e.has("left")&&nr-s?"right":e.has("top")&&ia-s?"bottom":e.has("center")?"center":null}class GB extends Gn{get element(){return this._element}constructor(n,i){super(),this.accessor=n,this.group=i,this.disposable=new ys,this._onDidFocus=new _t,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new _t,this.onDidBlur=this._onDidBlur.event,this._element=document.createElement("div"),this._element.className="content-container",this._element.tabIndex=-1,this.addDisposables(this._onDidFocus,this._onDidBlur),this.dropTarget=new il(this.element,{acceptedTargetZones:["top","bottom","left","right","center"],canDisplayOverlay:(r,a)=>{if(this.group.locked==="no-drop-target"||this.group.locked&&a==="center")return!1;const s=hs();return!s&&r.shiftKey&&this.group.location.type!=="floating"?!1:s&&s.viewId===this.accessor.id?s.groupId===this.group.id&&(a==="center"||s.panelId===null)?!1:!(this.group.panels.length===1&&s.groupId===this.group.id):this.group.canDisplayOverlay(r,a,"panel")}}),this.addDisposables(this.dropTarget)}show(){this.element.style.display=""}hide(){this.element.style.display="none"}renderPanel(n,i={asActive:!0}){const r=i.asActive||this.panel&&this.group.isPanelActive(this.panel);this.panel&&this.panel.view.content.element.parentElement===this._element&&this._element.removeChild(this.panel.view.content.element),this.panel=n;let a;switch(n.api.renderer){case"onlyWhenVisibile":this.group.renderContainer.detatch(n),this.panel&&r&&this._element.appendChild(this.panel.view.content.element),a=this._element;break;case"always":n.view.content.element.parentElement===this._element&&this._element.removeChild(n.view.content.element),a=this.group.renderContainer.attach({panel:n,referenceContainer:this});break}if(r){const s=n.view.content.onDidFocus,o=n.view.content.onDidBlur,l=oM(a),c=new Gn;c.addDisposables(l,l.onDidFocus(()=>this._onDidFocus.fire()),l.onDidBlur(()=>this._onDidBlur.fire())),s&&c.addDisposables(s(()=>this._onDidFocus.fire())),o&&c.addDisposables(o(()=>this._onDidBlur.fire())),this.disposable.value=c}}openPanel(n){this.panel!==n&&this.renderPanel(n)}layout(n,i){}closePanel(){var n;this.panel&&this.panel.api.renderer==="onlyWhenVisibile"&&((n=this.panel.view.content.element.parentElement)===null||n===void 0||n.removeChild(this.panel.view.content.element)),this.panel=void 0}dispose(){this.disposable.dispose(),super.dispose()}}class nx extends Gn{constructor(n){super(),this.el=n,this.dataDisposable=new ys,this.pointerEventsDisposable=new ys,this._onDragStart=new _t,this.onDragStart=this._onDragStart.event,this.addDisposables(this._onDragStart,this.dataDisposable,this.pointerEventsDisposable),this.configure()}isCancelled(n){return!1}configure(){this.addDisposables(this._onDragStart,Mi(this.el,"dragstart",n=>{if(n.defaultPrevented||this.isCancelled(n)){n.preventDefault();return}const i=[...Bl("iframe"),...Bl("webview")];this.pointerEventsDisposable.value={dispose:()=>{for(const r of i)r.style.pointerEvents="auto"}};for(const r of i)r.style.pointerEvents="none";this.el.classList.add("dv-dragged"),setTimeout(()=>this.el.classList.remove("dv-dragged"),0),this.dataDisposable.value=this.getData(n),this._onDragStart.fire(n),n.dataTransfer&&(n.dataTransfer.effectAllowed="move",n.dataTransfer.items.length>0||n.dataTransfer.setData("text/plain","__dockview_internal_drag_event__"))}),Mi(this.el,"dragend",()=>{this.pointerEventsDisposable.dispose(),this.dataDisposable.dispose()}))}}class VB extends nx{constructor(n,i,r,a){super(n),this.accessor=i,this.group=r,this.panel=a,this.panelTransfer=bo.getInstance()}getData(n){return this.panelTransfer.setData([new $l(this.accessor.id,this.group.id,this.panel.id)],$l.prototype),{dispose:()=>{this.panelTransfer.clearData($l.prototype)}}}}let WB=class extends Gn{get element(){return this._element}constructor(n,i,r){super(),this.panel=n,this.accessor=i,this.group=r,this.content=void 0,this._onChanged=new _t,this.onChanged=this._onChanged.event,this._onDropped=new _t,this.onDrop=this._onDropped.event,this._onDragStart=new _t,this.onDragStart=this._onDragStart.event,this._element=document.createElement("div"),this._element.className="tab",this._element.tabIndex=0,this._element.draggable=!0,qn(this.element,"inactive-tab",!0);const a=new VB(this._element,this.accessor,this.group,this.panel);this.dropTarget=new il(this._element,{acceptedTargetZones:["center"],canDisplayOverlay:(s,o)=>{if(this.group.locked)return!1;const l=hs();return l&&this.accessor.id===l.viewId?l.panelId===null&&l.groupId===this.group.id?!1:this.panel.id!==l.panelId:this.group.model.canDisplayOverlay(s,o,"tab")}}),this.onWillShowOverlay=this.dropTarget.onWillShowOverlay,this.addDisposables(this._onChanged,this._onDropped,this._onDragStart,a.onDragStart(s=>{this._onDragStart.fire(s)}),a,Mi(this._element,"mousedown",s=>{s.defaultPrevented||this._onChanged.fire(s)}),this.dropTarget.onDrop(s=>{this._onDropped.fire(s)}),this.dropTarget)}setActive(n){qn(this.element,"active-tab",n),qn(this.element,"inactive-tab",!n)}setContent(n){this.content&&this._element.removeChild(this.content.element),this.content=n,this._element.appendChild(this.content.element)}dispose(){super.dispose()}};function QB(e,n){ag(n,"dv-dragged"),document.body.appendChild(n),e.setDragImage(n,0,0),setTimeout(()=>{xf(n,"dv-dragged"),n.remove()},0)}class jB extends nx{constructor(n,i,r){super(n),this.accessor=i,this.group=r,this.panelTransfer=bo.getInstance(),this.addDisposables(Mi(n,"mousedown",a=>{a.shiftKey&&xB(a)},!0))}isCancelled(n){return this.group.api.location.type==="floating"&&!n.shiftKey}getData(n){const i=n.dataTransfer;this.panelTransfer.setData([new $l(this.accessor.id,this.group.id,null)],$l.prototype);const r=window.getComputedStyle(this.el),a=r.getPropertyValue("--dv-activegroup-visiblepanel-tab-background-color"),s=r.getPropertyValue("--dv-activegroup-visiblepanel-tab-color");if(i){const o=document.createElement("div");o.style.backgroundColor=a,o.style.color=s,o.style.padding="2px 8px",o.style.height="24px",o.style.fontSize="11px",o.style.lineHeight="20px",o.style.borderRadius="12px",o.style.position="absolute",o.textContent=`Multiple Panels (${this.group.size})`,QB(i,o)}return{dispose:()=>{this.panelTransfer.clearData($l.prototype)}}}}class YB extends Gn{get element(){return this._element}constructor(n,i){super(),this.accessor=n,this.group=i,this._onDrop=new _t,this.onDrop=this._onDrop.event,this._onDragStart=new _t,this.onDragStart=this._onDragStart.event,this._element=document.createElement("div"),this._element.className="void-container",this._element.tabIndex=0,this._element.draggable=!0,this.addDisposables(this._onDrop,this._onDragStart,Mi(this._element,"click",()=>{this.accessor.doSetGroupActive(this.group)}));const r=new jB(this._element,n,i);this.dropTraget=new il(this._element,{acceptedTargetZones:["center"],canDisplayOverlay:(a,s)=>{var o;const l=hs();return l&&this.accessor.id===l.viewId?l.panelId===null&&l.groupId===this.group.id?!1:((o=TB(this.group.panels))===null||o===void 0?void 0:o.id)!==l.panelId:i.model.canDisplayOverlay(a,s,"panel")}}),this.onWillShowOverlay=this.dropTraget.onWillShowOverlay,this.addDisposables(r,r.onDragStart(a=>{this._onDragStart.fire(a)}),this.dropTraget.onDrop(a=>{this._onDrop.fire(a)}),this.dropTraget)}}class KB extends Gn{get panels(){return this.tabs.map(n=>n.value.panel.id)}get size(){return this.tabs.length}get hidden(){return this._hidden}set hidden(n){this._hidden=n,this.element.style.display=n?"none":""}show(){this.hidden||(this.element.style.display="")}hide(){this._element.style.display="none"}setRightActionsElement(n){this.rightActions!==n&&(this.rightActions&&(this.rightActions.remove(),this.rightActions=void 0),n&&(this.rightActionsContainer.appendChild(n),this.rightActions=n))}setLeftActionsElement(n){this.leftActions!==n&&(this.leftActions&&(this.leftActions.remove(),this.leftActions=void 0),n&&(this.leftActionsContainer.appendChild(n),this.leftActions=n))}setPrefixActionsElement(n){this.preActions!==n&&(this.preActions&&(this.preActions.remove(),this.preActions=void 0),n&&(this.preActionsContainer.appendChild(n),this.preActions=n))}get element(){return this._element}isActive(n){return this.selectedIndex>-1&&this.tabs[this.selectedIndex].value===n}indexOf(n){return this.tabs.findIndex(i=>i.value.panel.id===n)}constructor(n,i){super(),this.accessor=n,this.group=i,this.tabs=[],this.selectedIndex=-1,this._hidden=!1,this._onDrop=new _t,this.onDrop=this._onDrop.event,this._onTabDragStart=new _t,this.onTabDragStart=this._onTabDragStart.event,this._onGroupDragStart=new _t,this.onGroupDragStart=this._onGroupDragStart.event,this._onWillShowOverlay=new _t,this.onWillShowOverlay=this._onWillShowOverlay.event,this._element=document.createElement("div"),this._element.className="tabs-and-actions-container",qn(this._element,"dv-full-width-single-tab",this.accessor.options.singleTabMode==="fullwidth"),this.rightActionsContainer=document.createElement("div"),this.rightActionsContainer.className="right-actions-container",this.leftActionsContainer=document.createElement("div"),this.leftActionsContainer.className="left-actions-container",this.preActionsContainer=document.createElement("div"),this.preActionsContainer.className="pre-actions-container",this.tabContainer=document.createElement("div"),this.tabContainer.className="tabs-container",this.voidContainer=new YB(this.accessor,this.group),this._element.appendChild(this.preActionsContainer),this._element.appendChild(this.tabContainer),this._element.appendChild(this.leftActionsContainer),this._element.appendChild(this.voidContainer.element),this._element.appendChild(this.rightActionsContainer),this.addDisposables(this.accessor.onDidAddPanel(r=>{r.api.group===this.group&&qn(this._element,"dv-single-tab",this.size===1)}),this.accessor.onDidRemovePanel(r=>{r.api.group===this.group&&qn(this._element,"dv-single-tab",this.size===1)}),this._onWillShowOverlay,this._onDrop,this._onTabDragStart,this._onGroupDragStart,this.voidContainer,this.voidContainer.onDragStart(r=>{this._onGroupDragStart.fire({nativeEvent:r,group:this.group})}),this.voidContainer.onDrop(r=>{this._onDrop.fire({event:r.nativeEvent,index:this.tabs.length})}),this.voidContainer.onWillShowOverlay(r=>{this._onWillShowOverlay.fire(new ZE(r,{kind:"header_space"}))}),Mi(this.voidContainer.element,"mousedown",r=>{if(!this.accessor.options.disableFloatingGroups&&r.shiftKey&&this.group.api.location.type!=="floating"){r.preventDefault();const{top:s,left:o}=this.element.getBoundingClientRect(),{top:l,left:c}=this.accessor.element.getBoundingClientRect();this.accessor.addFloatingGroup(this.group,{x:o-c+20,y:s-l+20},{inDragMode:!0})}}),Mi(this.tabContainer,"mousedown",r=>{if(r.defaultPrevented)return;r.button===0&&this.accessor.doSetGroupActive(this.group)}))}setActive(n){}addTab(n,i=this.tabs.length){if(i<0||i>this.tabs.length)throw new Error("invalid location");this.tabContainer.insertBefore(n.value.element,this.tabContainer.children[i]),this.tabs=[...this.tabs.slice(0,i),n,...this.tabs.slice(i)],this.selectedIndex<0&&(this.selectedIndex=i)}delete(n){const i=this.tabs.findIndex(o=>o.value.panel.id===n),r=this.tabs.splice(i,1)[0],{value:a,disposable:s}=r;s.dispose(),a.dispose(),a.element.remove()}setActivePanel(n){this.tabs.forEach(i=>{const r=n.id===i.value.panel.id;i.value.setActive(r)})}openPanel(n,i=this.tabs.length){var r;if(this.tabs.find(l=>l.value.panel.id===n.id))return;const a=new WB(n,this.accessor,this.group);if(!(!((r=n.view)===null||r===void 0)&&r.tab))throw new Error("invalid header component");a.setContent(n.view.tab);const s=new Gn(a.onDragStart(l=>{this._onTabDragStart.fire({nativeEvent:l,panel:n})}),a.onChanged(l=>{const c=!this.accessor.options.disableFloatingGroups,u=this.group.api.location.type==="floating"&&this.size===1;if(c&&!u&&l.shiftKey){l.preventDefault();const h=this.accessor.getGroupPanel(a.panel.id),{top:m,left:f}=a.element.getBoundingClientRect(),{top:g,left:v}=this.accessor.element.getBoundingClientRect();this.accessor.addFloatingGroup(h,{x:f-v,y:m-g},{inDragMode:!0});return}!(l.button===0)||l.defaultPrevented||this.group.activePanel!==n&&this.group.model.openPanel(n)}),a.onDrop(l=>{this._onDrop.fire({event:l.nativeEvent,index:this.tabs.findIndex(c=>c.value===a)})}),a.onWillShowOverlay(l=>{this._onWillShowOverlay.fire(new ZE(l,{kind:"tab"}))})),o={value:a,disposable:s};this.addTab(o,i)}closePanel(n){this.delete(n.id)}dispose(){super.dispose();for(const{value:n,disposable:i}of this.tabs)i.dispose(),n.dispose();this.tabs=[]}}class ix extends ex{get nativeEvent(){return this.options.nativeEvent}get position(){return this.options.position}get panel(){return this.options.panel}get group(){return this.options.group}get api(){return this.options.api}constructor(n){super(),this.options=n}getData(){return this.options.getData()}}class pM extends ix{get kind(){return this._kind}constructor(n){super(n),this._kind=n.kind}}class ZE{get kind(){return this._kind}get nativeEvent(){return this.event.nativeEvent}get position(){return this.event.position}get defaultPrevented(){return this.event.defaultPrevented}preventDefault(){this.event.preventDefault()}constructor(n,i){this.event=n,this._kind=i.kind}}class XB extends Gn{get element(){throw new Error("not supported")}get activePanel(){return this._activePanel}get locked(){return this._locked}set locked(n){this._locked=n,qn(this.container,"locked-groupview",n==="no-drop-target"||n)}get isActive(){return this._isGroupActive}get panels(){return this._panels}get size(){return this._panels.length}get isEmpty(){return this._panels.length===0}get hasWatermark(){return!!(this.watermark&&this.container.contains(this.watermark.element))}get header(){return this.tabsContainer}get isContentFocused(){return document.activeElement?KE(document.activeElement,this.contentContainer.element):!1}get location(){return this._location}set location(n){switch(this._location=n,qn(this.container,"dv-groupview-floating",!1),qn(this.container,"dv-groupview-popout",!1),n.type){case"grid":this.contentContainer.dropTarget.setTargetZones(["top","bottom","left","right","center"]);break;case"floating":this.contentContainer.dropTarget.setTargetZones(["center"]),this.contentContainer.dropTarget.setTargetZones(n?["center"]:["top","bottom","left","right","center"]),qn(this.container,"dv-groupview-floating",!0);break;case"popout":this.contentContainer.dropTarget.setTargetZones(["center"]),qn(this.container,"dv-groupview-popout",!0);break}this.groupPanel.api._onDidLocationChange.fire({location:this.location})}constructor(n,i,r,a,s){var o;super(),this.container=n,this.accessor=i,this.id=r,this.options=a,this.groupPanel=s,this._isGroupActive=!1,this._locked=!1,this._location={type:"grid"},this.mostRecentlyUsed=[],this._onDidChange=new _t,this.onDidChange=this._onDidChange.event,this._width=0,this._height=0,this._panels=[],this._onMove=new _t,this.onMove=this._onMove.event,this._onDidDrop=new _t,this.onDidDrop=this._onDidDrop.event,this._onWillDrop=new _t,this.onWillDrop=this._onWillDrop.event,this._onWillShowOverlay=new _t,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onTabDragStart=new _t,this.onTabDragStart=this._onTabDragStart.event,this._onGroupDragStart=new _t,this.onGroupDragStart=this._onGroupDragStart.event,this._onDidAddPanel=new _t,this.onDidAddPanel=this._onDidAddPanel.event,this._onDidRemovePanel=new _t,this.onDidRemovePanel=this._onDidRemovePanel.event,this._onDidActivePanelChange=new _t,this.onDidActivePanelChange=this._onDidActivePanelChange.event,this._overwriteRenderContainer=null,qn(this.container,"groupview",!0),this._api=new Sf(this.accessor),this.tabsContainer=new KB(this.accessor,this.groupPanel),this.contentContainer=new GB(this.accessor,this),n.append(this.tabsContainer.element,this.contentContainer.element),this.header.hidden=!!a.hideHeader,this.locked=(o=a.locked)!==null&&o!==void 0?o:!1,this.addDisposables(this._onTabDragStart,this._onGroupDragStart,this._onWillShowOverlay,this.tabsContainer.onTabDragStart(l=>{this._onTabDragStart.fire(l)}),this.tabsContainer.onGroupDragStart(l=>{this._onGroupDragStart.fire(l)}),this.tabsContainer.onDrop(l=>{this.handleDropEvent("header",l.event,"center",l.index)}),this.contentContainer.onDidFocus(()=>{this.accessor.doSetGroupActive(this.groupPanel)}),this.contentContainer.onDidBlur(()=>{}),this.contentContainer.dropTarget.onDrop(l=>{this.handleDropEvent("content",l.nativeEvent,l.position)}),this.tabsContainer.onWillShowOverlay(l=>{this._onWillShowOverlay.fire(l)}),this.contentContainer.dropTarget.onWillShowOverlay(l=>{this._onWillShowOverlay.fire(new ZE(l,{kind:"content"}))}),this._onMove,this._onDidChange,this._onDidDrop,this._onWillDrop,this._onDidAddPanel,this._onDidRemovePanel,this._onDidActivePanelChange)}focusContent(){this.contentContainer.element.focus()}set renderContainer(n){this.panels.forEach(i=>{this.renderContainer.detatch(i)}),this._overwriteRenderContainer=n,this.panels.forEach(i=>{this.rerender(i)})}get renderContainer(){var n;return(n=this._overwriteRenderContainer)!==null&&n!==void 0?n:this.accessor.overlayRenderContainer}initialize(){this.options.panels&&this.options.panels.forEach(n=>{this.doAddPanel(n)}),this.options.activePanel&&this.openPanel(this.options.activePanel),this.setActive(this.isActive,!0),this.updateContainer(),this.accessor.options.createRightHeaderActionsElement&&(this._rightHeaderActions=this.accessor.options.createRightHeaderActionsElement(this.groupPanel),this.addDisposables(this._rightHeaderActions),this._rightHeaderActions.init({containerApi:this._api,api:this.groupPanel.api}),this.tabsContainer.setRightActionsElement(this._rightHeaderActions.element)),this.accessor.options.createLeftHeaderActionsElement&&(this._leftHeaderActions=this.accessor.options.createLeftHeaderActionsElement(this.groupPanel),this.addDisposables(this._leftHeaderActions),this._leftHeaderActions.init({containerApi:this._api,api:this.groupPanel.api}),this.tabsContainer.setLeftActionsElement(this._leftHeaderActions.element)),this.accessor.options.createPrefixHeaderActionsElement&&(this._prefixHeaderActions=this.accessor.options.createPrefixHeaderActionsElement(this.groupPanel),this.addDisposables(this._prefixHeaderActions),this._prefixHeaderActions.init({containerApi:this._api,api:this.groupPanel.api}),this.tabsContainer.setPrefixActionsElement(this._prefixHeaderActions.element))}rerender(n){this.contentContainer.renderPanel(n,{asActive:!1})}indexOf(n){return this.tabsContainer.indexOf(n.id)}toJSON(){var n;const i={views:this.tabsContainer.panels,activeView:(n=this._activePanel)===null||n===void 0?void 0:n.id,id:this.id};return this.locked!==!1&&(i.locked=this.locked),this.header.hidden&&(i.hideHeader=!0),i}moveToNext(n){n||(n={}),n.panel||(n.panel=this.activePanel);const i=n.panel?this.panels.indexOf(n.panel):-1;let r;if(i0)r=i-1;else if(!n.suppressRoll)r=this.panels.length-1;else return;this.openPanel(this.panels[r])}containsPanel(n){return this.panels.includes(n)}init(n){}update(n){}focus(){var n;(n=this._activePanel)===null||n===void 0||n.focus()}openPanel(n,i={}){(typeof i.index!="number"||i.index>this.panels.length)&&(i.index=this.panels.length);const r=!!i.skipSetActive;if(n.updateParentGroup(this.groupPanel,{skipSetActive:i.skipSetActive}),this.doAddPanel(n,i.index,{skipSetActive:r}),this._activePanel===n){this.contentContainer.renderPanel(n,{asActive:!0});return}r||this.doSetActivePanel(n),i.skipSetGroupActive||this.accessor.doSetGroupActive(this.groupPanel),i.skipSetActive||this.updateContainer()}removePanel(n,i={skipSetActive:!1}){const r=typeof n=="string"?n:n.id,a=this._panels.find(s=>s.id===r);if(!a)throw new Error("invalid operation");return this._removePanel(a,i)}closeAllPanels(){if(this.panels.length>0){const n=[...this.panels];for(const i of n)this.doClose(i)}else this.accessor.removeGroup(this.groupPanel)}closePanel(n){this.doClose(n)}doClose(n){this.accessor.removePanel(n)}isPanelActive(n){return this._activePanel===n}updateActions(n){this.tabsContainer.setRightActionsElement(n)}setActive(n,i=!1){!i&&this.isActive===n||(this._isGroupActive=n,qn(this.container,"active-group",n),qn(this.container,"inactive-group",!n),this.tabsContainer.setActive(this.isActive),!this._activePanel&&this.panels.length>0&&this.doSetActivePanel(this.panels[0]),this.updateContainer())}layout(n,i){var r;this._width=n,this._height=i,this.contentContainer.layout(this._width,this._height),!((r=this._activePanel)===null||r===void 0)&&r.layout&&this._activePanel.layout(this._width,this._height)}_removePanel(n,i){const r=this._activePanel===n;if(this.doRemovePanel(n),r&&this.panels.length>0){const a=this.mostRecentlyUsed[0];this.openPanel(a,{skipSetActive:i.skipSetActive,skipSetGroupActive:i.skipSetActiveGroup})}return this._activePanel&&this.panels.length===0&&this.doSetActivePanel(void 0),i.skipSetActive||this.updateContainer(),n}doRemovePanel(n){const i=this.panels.indexOf(n);this._activePanel===n&&this.contentContainer.closePanel(),this.tabsContainer.delete(n.id),this._panels.splice(i,1),this.mostRecentlyUsed.includes(n)&&this.mostRecentlyUsed.splice(this.mostRecentlyUsed.indexOf(n),1),this._onDidRemovePanel.fire({panel:n})}doAddPanel(n,i=this.panels.length,r={skipSetActive:!1}){const s=this._panels.indexOf(n)>-1;this.tabsContainer.show(),this.contentContainer.show(),this.tabsContainer.openPanel(n,i),r.skipSetActive||this.contentContainer.openPanel(n),!s&&(this.updateMru(n),this.panels.splice(i,0,n),this._onDidAddPanel.fire({panel:n}))}doSetActivePanel(n){this._activePanel!==n&&(this._activePanel=n,n&&(this.tabsContainer.setActivePanel(n),n.layout(this._width,this._height),this.updateMru(n),this._onDidActivePanelChange.fire({panel:n})))}updateMru(n){this.mostRecentlyUsed.includes(n)&&this.mostRecentlyUsed.splice(this.mostRecentlyUsed.indexOf(n),1),this.mostRecentlyUsed=[n,...this.mostRecentlyUsed]}updateContainer(){var n,i;if(qn(this.container,"empty",this.isEmpty),this.panels.forEach(r=>r.runEvents()),this.isEmpty&&!this.watermark){const r=this.accessor.createWatermarkComponent();r.init({containerApi:this._api,group:this.groupPanel}),this.watermark=r,Mi(this.watermark.element,"click",()=>{this.isActive||this.accessor.doSetGroupActive(this.groupPanel)}),this.tabsContainer.hide(),this.contentContainer.element.appendChild(this.watermark.element),this.watermark.updateParentGroup(this.groupPanel,!0)}!this.isEmpty&&this.watermark&&(this.watermark.element.remove(),(i=(n=this.watermark).dispose)===null||i===void 0||i.call(n),this.watermark=void 0,this.tabsContainer.show())}canDisplayOverlay(n,i,r){return this.accessor.options.showDndOverlay?this.accessor.options.showDndOverlay({nativeEvent:n,target:r,group:this.accessor.getPanel(this.id),position:i,getData:hs}):!1}handleDropEvent(n,i,r,a){if(this.locked==="no-drop-target")return;function s(){switch(n){case"header":return typeof a=="number"?"tab":"header_space";case"content":return"content"}}const o=typeof a=="number"?this.panels[a]:void 0,l=new pM({nativeEvent:i,position:r,panel:o,getData:()=>hs(),kind:s(),group:this.groupPanel,api:this._api});if(this._onWillDrop.fire(l),l.defaultPrevented)return;const c=hs();if(c&&c.viewId===this.accessor.id){if(c.panelId===null){const{groupId:f}=c;this._onMove.fire({target:r,groupId:f,index:a});return}if(this.tabsContainer.indexOf(c.panelId)!==-1&&this.tabsContainer.size===1)return;const{groupId:d,panelId:h}=c;if(this.id===d&&!r&&this.tabsContainer.indexOf(h)===a)return;this._onMove.fire({target:r,groupId:c.groupId,itemId:c.panelId,index:a})}else this._onDidDrop.fire(new ix({nativeEvent:i,position:r,panel:o,getData:()=>hs(),group:this.groupPanel,api:this._api}))}dispose(){var n,i,r;super.dispose(),(n=this.watermark)===null||n===void 0||n.element.remove(),(r=(i=this.watermark)===null||i===void 0?void 0:i.dispose)===null||r===void 0||r.call(i),this.watermark=void 0;for(const a of this.panels)a.dispose();this.tabsContainer.dispose(),this.contentContainer.dispose()}}class rx extends Gn{get element(){return this._element}get disableResizing(){return this._disableResizing}set disableResizing(n){this._disableResizing=n}constructor(n,i=!1){super(),this._disableResizing=i,this._element=n,this.addDisposables(sM(this._element,r=>{if(this.isDisposed||this.disableResizing||!this._element.offsetParent||!SB(this._element))return;const{width:a,height:s}=r.contentRect;this.layout(a,s)}))}}const $B=tx();function r0(e){switch(e){case"left":return"left";case"right":return"right";case"above":return"top";case"below":return"bottom";case"within":default:return"center"}}class mM extends rx{get id(){return this._id}get size(){return this._groups.size}get groups(){return Array.from(this._groups.values()).map(n=>n.value)}get width(){return this.gridview.width}get height(){return this.gridview.height}get minimumHeight(){return this.gridview.minimumHeight}get maximumHeight(){return this.gridview.maximumHeight}get minimumWidth(){return this.gridview.minimumWidth}get maximumWidth(){return this.gridview.maximumWidth}get activeGroup(){return this._activeGroup}get locked(){return this.gridview.locked}set locked(n){this.gridview.locked=n}constructor(n){super(document.createElement("div"),n.disableAutoResizing),this._id=$B.next(),this._groups=new Map,this._onDidLayoutChange=new _t,this.onDidLayoutChange=this._onDidLayoutChange.event,this._onDidRemove=new _t,this.onDidRemove=this._onDidRemove.event,this._onDidAdd=new _t,this.onDidAdd=this._onDidAdd.event,this._onDidActiveChange=new _t,this.onDidActiveChange=this._onDidActiveChange.event,this._bufferOnDidLayoutChange=new AB,this.element.style.height="100%",this.element.style.width="100%",n.parentElement.appendChild(this.element),this.gridview=new OB(!!n.proportionalLayout,n.styles,n.orientation),this.gridview.locked=!!n.locked,this.element.appendChild(this.gridview.element),this.layout(0,0,!0),this.addDisposables(Ua.from(()=>{var i;(i=this.element.parentElement)===null||i===void 0||i.removeChild(this.element)}),this.gridview.onDidChange(()=>{this._bufferOnDidLayoutChange.fire()}),Ld.any(this.onDidAdd,this.onDidRemove,this.onDidActiveChange)(()=>{this._bufferOnDidLayoutChange.fire()}),this._bufferOnDidLayoutChange.onEvent(()=>{this._onDidLayoutChange.fire()}),this._bufferOnDidLayoutChange)}setVisible(n,i){this.gridview.setViewVisible(er(n.element),i),this._onDidLayoutChange.fire()}isVisible(n){return this.gridview.isViewVisible(er(n.element))}maximizeGroup(n){this.gridview.maximizeView(n),this.doSetGroupActive(n)}isMaximizedGroup(n){return this.gridview.maximizedView()===n}exitMaximizedGroup(){this.gridview.exitMaximizedView()}hasMaximizedGroup(){return this.gridview.hasMaximizedView()}get onDidMaximizedGroupChange(){return this.gridview.onDidMaximizedNodeChange}doAddGroup(n,i=[0],r){this.gridview.addView(n,r??Ga.Distribute,i),this._onDidAdd.fire(n)}doRemoveGroup(n,i){if(!this._groups.has(n.id))throw new Error("invalid operation");const r=this._groups.get(n.id),a=this.gridview.remove(n,Ga.Distribute);if(r&&!(i!=null&&i.skipDispose)&&(r.disposable.dispose(),r.value.dispose(),this._groups.delete(n.id),this._onDidRemove.fire(n)),!(i!=null&&i.skipActive)&&this._activeGroup===n){const s=Array.from(this._groups.values());this.doSetGroupActive(s.length>0?s[0].value:void 0)}return a}getPanel(n){var i;return(i=this._groups.get(n))===null||i===void 0?void 0:i.value}doSetGroupActive(n){this._activeGroup!==n&&(this._activeGroup&&this._activeGroup.setActive(!1),n&&n.setActive(!0),this._activeGroup=n,this._onDidActiveChange.fire(n))}removeGroup(n){this.doRemoveGroup(n)}moveToNext(n){var i;if(n||(n={}),!n.group){if(!this.activeGroup)return;n.group=this.activeGroup}const r=er(n.group.element),a=(i=this.gridview.next(r))===null||i===void 0?void 0:i.view;this.doSetGroupActive(a)}moveToPrevious(n){var i;if(n||(n={}),!n.group){if(!this.activeGroup)return;n.group=this.activeGroup}const r=er(n.group.element),a=(i=this.gridview.previous(r))===null||i===void 0?void 0:i.view;this.doSetGroupActive(a)}layout(n,i,r){(r??(n!==this.width||i!==this.height))&&(this.gridview.element.style.height=`${i}px`,this.gridview.element.style.width=`${n}px`,this.gridview.layout(n,i))}dispose(){this._onDidActiveChange.dispose(),this._onDidAdd.dispose(),this._onDidRemove.dispose(),this._onDidLayoutChange.dispose();for(const n of this.groups)n.dispose();this.gridview.dispose(),super.dispose()}}class gM extends ex{constructor(){super()}}class vM extends Gn{get isFocused(){return this._isFocused}get isActive(){return this._isActive}get isVisible(){return this._isVisible}get isHidden(){return this._isHidden}get width(){return this._width}get height(){return this._height}constructor(n){super(),this.id=n,this._isFocused=!1,this._isActive=!1,this._isVisible=!0,this._isHidden=!1,this._width=0,this._height=0,this.panelUpdatesDisposable=new ys,this._onDidDimensionChange=new _t,this.onDidDimensionsChange=this._onDidDimensionChange.event,this._onDidChangeFocus=new _t,this.onDidFocusChange=this._onDidChangeFocus.event,this._onWillFocus=new _t,this.onWillFocus=this._onWillFocus.event,this._onDidVisibilityChange=new _t,this.onDidVisibilityChange=this._onDidVisibilityChange.event,this._onDidHiddenChange=new _t,this.onDidHiddenChange=this._onDidHiddenChange.event,this._onDidActiveChange=new _t,this.onDidActiveChange=this._onDidActiveChange.event,this._onActiveChange=new _t,this.onActiveChange=this._onActiveChange.event,this._onUpdateParameters=new _t,this.onUpdateParameters=this._onUpdateParameters.event,this.addDisposables(this.onDidFocusChange(i=>{this._isFocused=i.isFocused}),this.onDidActiveChange(i=>{this._isActive=i.isActive}),this.onDidVisibilityChange(i=>{this._isVisible=i.isVisible}),this.onDidHiddenChange(i=>{this._isHidden=i.isHidden}),this.onDidDimensionsChange(i=>{this._width=i.width,this._height=i.height}),this.panelUpdatesDisposable,this._onDidDimensionChange,this._onDidChangeFocus,this._onDidVisibilityChange,this._onDidActiveChange,this._onWillFocus,this._onActiveChange,this._onUpdateParameters,this._onWillFocus,this._onDidHiddenChange,this._onUpdateParameters)}initialize(n){this.panelUpdatesDisposable.value=this._onUpdateParameters.event(i=>{n.update({params:i})})}setHidden(n){this._onDidHiddenChange.fire({isHidden:n})}setActive(){this._onActiveChange.fire()}updateParameters(n){this._onUpdateParameters.fire(n)}}class bM extends vM{constructor(n){super(n),this._onDidConstraintsChangeInternal=new _t,this.onDidConstraintsChangeInternal=this._onDidConstraintsChangeInternal.event,this._onDidConstraintsChange=new _t({replay:!0}),this.onDidConstraintsChange=this._onDidConstraintsChange.event,this._onDidSizeChange=new _t,this.onDidSizeChange=this._onDidSizeChange.event,this.addDisposables(this._onDidConstraintsChangeInternal,this._onDidConstraintsChange,this._onDidSizeChange)}setConstraints(n){this._onDidConstraintsChangeInternal.fire(n)}setSize(n){this._onDidSizeChange.fire(n)}}class ZB extends bM{set pane(n){this._pane=n}constructor(n){super(n),this._onDidExpansionChange=new _t({replay:!0}),this.onDidExpansionChange=this._onDidExpansionChange.event,this._onMouseEnter=new _t({}),this.onMouseEnter=this._onMouseEnter.event,this._onMouseLeave=new _t({}),this.onMouseLeave=this._onMouseLeave.event,this.addDisposables(this._onDidExpansionChange,this._onMouseEnter,this._onMouseLeave)}setExpanded(n){var i;(i=this._pane)===null||i===void 0||i.setExpanded(n)}get isExpanded(){var n;return!!(!((n=this._pane)===null||n===void 0)&&n.isExpanded())}}class ax extends Gn{get element(){return this._element}get width(){return this._width}get height(){return this._height}get params(){var n;return(n=this._params)===null||n===void 0?void 0:n.params}constructor(n,i,r){super(),this.id=n,this.component=i,this.api=r,this._height=0,this._width=0,this._element=document.createElement("div"),this._element.tabIndex=-1,this._element.style.outline="none",this._element.style.height="100%",this._element.style.width="100%",this._element.style.overflow="hidden";const a=oM(this._element);this.addDisposables(this.api,a.onDidFocus(()=>{this.api._onDidChangeFocus.fire({isFocused:!0})}),a.onDidBlur(()=>{this.api._onDidChangeFocus.fire({isFocused:!1})}),a)}focus(){const n=new gM;this.api._onWillFocus.fire(n),!n.defaultPrevented&&this._element.focus()}layout(n,i){this._width=n,this._height=i,this.api._onDidDimensionChange.fire({width:n,height:i}),this.part&&this._params&&this.part.update(this._params.params)}init(n){this._params=n,this.part=this.getComponent()}update(n){var i,r;this._params=Object.assign(Object.assign({},this._params),{params:Object.assign(Object.assign({},(i=this._params)===null||i===void 0?void 0:i.params),n.params)});for(const a of Object.keys(n.params))n.params[a]===void 0&&delete this._params.params[a];(r=this.part)===null||r===void 0||r.update({params:this._params.params})}toJSON(){var n,i;const r=(i=(n=this._params)===null||n===void 0?void 0:n.params)!==null&&i!==void 0?i:{};return{id:this.id,component:this.component,params:Object.keys(r).length>0?r:void 0}}dispose(){var n;this.api.dispose(),(n=this.part)===null||n===void 0||n.dispose(),super.dispose()}}class JB extends ax{set orientation(n){this._orientation=n}get orientation(){return this._orientation}get minimumSize(){const n=this.headerSize,r=this.isExpanded()?this._minimumBodySize:0;return n+r}get maximumSize(){const n=this.headerSize,r=this.isExpanded()?this._maximumBodySize:0;return n+r}get size(){return this._size}get orthogonalSize(){return this._orthogonalSize}set orthogonalSize(n){this._orthogonalSize=n}get minimumBodySize(){return this._minimumBodySize}set minimumBodySize(n){this._minimumBodySize=typeof n=="number"?n:0}get maximumBodySize(){return this._maximumBodySize}set maximumBodySize(n){this._maximumBodySize=typeof n=="number"?n:Number.POSITIVE_INFINITY}get headerVisible(){return this._headerVisible}set headerVisible(n){this._headerVisible=n,this.header.style.display=n?"":"none"}constructor(n,i,r,a,s,o){super(n,i,new ZB(n)),this.headerComponent=r,this._onDidChangeExpansionState=new _t({replay:!0}),this.onDidChangeExpansionState=this._onDidChangeExpansionState.event,this._onDidChange=new _t,this.onDidChange=this._onDidChange.event,this.headerSize=22,this._orthogonalSize=0,this._size=0,this._minimumBodySize=100,this._maximumBodySize=Number.POSITIVE_INFINITY,this._isExpanded=!1,this.expandedSize=0,this.api.pane=this,this.api.initialize(this),this._isExpanded=s,this._headerVisible=o,this._onDidChangeExpansionState.fire(this.isExpanded()),this._orientation=a,this.element.classList.add("pane"),this.addDisposables(this.api.onDidSizeChange(l=>{this._onDidChange.fire({size:l.size})}),Mi(this.element,"mouseenter",l=>{this.api._onMouseEnter.fire(l)}),Mi(this.element,"mouseleave",l=>{this.api._onMouseLeave.fire(l)})),this.addDisposables(this._onDidChangeExpansionState,this.onDidChangeExpansionState(l=>{this.api._onDidExpansionChange.fire({isExpanded:l})}),this.api.onDidFocusChange(l=>{this.header&&(l.isFocused?ag(this.header,"focused"):xf(this.header,"focused"))})),this.renderOnce()}setVisible(n){this.api._onDidVisibilityChange.fire({isVisible:n})}setActive(n){this.api._onDidActiveChange.fire({isActive:n})}isExpanded(){return this._isExpanded}setExpanded(n){this._isExpanded!==n&&(this._isExpanded=n,n?(this.animationTimer&&clearTimeout(this.animationTimer),this.body&&this.element.appendChild(this.body)):this.animationTimer=setTimeout(()=>{var i;(i=this.body)===null||i===void 0||i.remove()},200),this._onDidChange.fire(n?{size:this.width}:{}),this._onDidChangeExpansionState.fire(n))}layout(n,i){this._size=n,this._orthogonalSize=i;const[r,a]=this.orientation===An.HORIZONTAL?[n,i]:[i,n];this.isExpanded()&&(this.expandedSize=r),super.layout(r,a)}init(n){var i,r;super.init(n),typeof n.minimumBodySize=="number"&&(this.minimumBodySize=n.minimumBodySize),typeof n.maximumBodySize=="number"&&(this.maximumBodySize=n.maximumBodySize),this.bodyPart=this.getBodyComponent(),this.headerPart=this.getHeaderComponent(),this.bodyPart.init(Object.assign(Object.assign({},n),{api:this.api})),this.headerPart.init(Object.assign(Object.assign({},n),{api:this.api})),(i=this.body)===null||i===void 0||i.append(this.bodyPart.element),(r=this.header)===null||r===void 0||r.append(this.headerPart.element),typeof n.isExpanded=="boolean"&&this.setExpanded(n.isExpanded)}toJSON(){const n=this._params;return Object.assign(Object.assign({},super.toJSON()),{headerComponent:this.headerComponent,title:n.title})}renderOnce(){this.header=document.createElement("div"),this.header.tabIndex=0,this.header.className="pane-header",this.header.style.height=`${this.headerSize}px`,this.header.style.lineHeight=`${this.headerSize}px`,this.header.style.minHeight=`${this.headerSize}px`,this.header.style.maxHeight=`${this.headerSize}px`,this.element.appendChild(this.header),this.body=document.createElement("div"),this.body.className="pane-body",this.element.appendChild(this.body)}getComponent(){return{update:n=>{var i,r;(i=this.bodyPart)===null||i===void 0||i.update({params:n}),(r=this.headerPart)===null||r===void 0||r.update({params:n})},dispose:()=>{var n,i;(n=this.bodyPart)===null||n===void 0||n.dispose(),(i=this.headerPart)===null||i===void 0||i.dispose()}}}}class e9 extends JB{constructor(n,i,r,a,s,o,l){super(i,r,a,s,o,!0),this.accessor=n,this._onDidDrop=new _t,this.onDidDrop=this._onDidDrop.event,l||this.initDragFeatures()}initDragFeatures(){if(!this.header)return;const n=this.id,i=this.accessor.id;this.header.draggable=!0,this.handler=new class extends nx{getData(){return bo.getInstance().setData([new jh(i,n)],jh.prototype),{dispose:()=>{bo.getInstance().clearData(jh.prototype)}}}}(this.header),this.target=new il(this.element,{acceptedTargetZones:["top","bottom"],overlayModel:{activationSize:{type:"percentage",value:50}},canDisplayOverlay:r=>{const a=mh();return a&&a.paneId!==this.id&&a.viewId===this.accessor.id?!0:this.accessor.options.showDndOverlay?this.accessor.options.showDndOverlay({nativeEvent:r,getData:mh,panel:this}):!1}}),this.addDisposables(this._onDidDrop,this.handler,this.target,this.target.onDrop(r=>{this.onDrop(r)}))}onDrop(n){const i=mh();if(!i||i.viewId!==this.accessor.id){this._onDidDrop.fire(Object.assign(Object.assign({},n),{panel:this,api:new Od(this.accessor),getData:mh}));return}const r=this._params.containerApi,a=i.paneId,s=r.getPanel(a);if(!s){this._onDidDrop.fire(Object.assign(Object.assign({},n),{panel:this,getData:mh,api:new Od(this.accessor)}));return}const o=r.panels,l=o.indexOf(s);let c=r.panels.indexOf(this);(n.position==="left"||n.position==="top")&&(c=Math.max(0,c-1)),(n.position==="right"||n.position==="bottom")&&(l>c&&c++,c=Math.min(o.length-1,c)),r.movePanel(l,c)}}class sx extends vM{constructor(n,i){super(n),this._onDidConstraintsChangeInternal=new _t,this.onDidConstraintsChangeInternal=this._onDidConstraintsChangeInternal.event,this._onDidConstraintsChange=new _t,this.onDidConstraintsChange=this._onDidConstraintsChange.event,this._onDidSizeChange=new _t,this.onDidSizeChange=this._onDidSizeChange.event,this.addDisposables(this._onDidConstraintsChangeInternal,this._onDidConstraintsChange,this._onDidSizeChange),i&&this.initialize(i)}setConstraints(n){this._onDidConstraintsChangeInternal.fire(n)}setSize(n){this._onDidSizeChange.fire(n)}}class yM extends ax{get priority(){return this._priority}get snap(){return this._snap}get minimumWidth(){const n=typeof this._minimumWidth=="function"?this._minimumWidth():this._minimumWidth;return n!==this._evaluatedMinimumWidth&&(this._evaluatedMinimumWidth=n,this.updateConstraints()),n}get minimumHeight(){const n=typeof this._minimumHeight=="function"?this._minimumHeight():this._minimumHeight;return n!==this._evaluatedMinimumHeight&&(this._evaluatedMinimumHeight=n,this.updateConstraints()),n}get maximumHeight(){const n=typeof this._maximumHeight=="function"?this._maximumHeight():this._maximumHeight;return n!==this._evaluatedMaximumHeight&&(this._evaluatedMaximumHeight=n,this.updateConstraints()),n}get maximumWidth(){const n=typeof this._maximumWidth=="function"?this._maximumWidth():this._maximumWidth;return n!==this._evaluatedMaximumWidth&&(this._evaluatedMaximumWidth=n,this.updateConstraints()),n}get isActive(){return this.api.isActive}constructor(n,i,r,a){super(n,i,a??new sx(n)),this._evaluatedMinimumWidth=0,this._evaluatedMaximumWidth=Number.MAX_SAFE_INTEGER,this._evaluatedMinimumHeight=0,this._evaluatedMaximumHeight=Number.MAX_SAFE_INTEGER,this._minimumWidth=0,this._minimumHeight=0,this._maximumWidth=Number.MAX_SAFE_INTEGER,this._maximumHeight=Number.MAX_SAFE_INTEGER,this._snap=!1,this._onDidChange=new _t,this.onDidChange=this._onDidChange.event,typeof(r==null?void 0:r.minimumWidth)=="number"&&(this._minimumWidth=r.minimumWidth),typeof(r==null?void 0:r.maximumWidth)=="number"&&(this._maximumWidth=r.maximumWidth),typeof(r==null?void 0:r.minimumHeight)=="number"&&(this._minimumHeight=r.minimumHeight),typeof(r==null?void 0:r.maximumHeight)=="number"&&(this._maximumHeight=r.maximumHeight),this.api.initialize(this),this.addDisposables(this.api.onDidHiddenChange(s=>{const{isHidden:o}=s,{accessor:l}=this._params;l.setVisible(this,!o)}),this.api.onActiveChange(()=>{const{accessor:s}=this._params;s.doSetGroupActive(this)}),this.api.onDidConstraintsChangeInternal(s=>{(typeof s.minimumWidth=="number"||typeof s.minimumWidth=="function")&&(this._minimumWidth=s.minimumWidth),(typeof s.minimumHeight=="number"||typeof s.minimumHeight=="function")&&(this._minimumHeight=s.minimumHeight),(typeof s.maximumWidth=="number"||typeof s.maximumWidth=="function")&&(this._maximumWidth=s.maximumWidth),(typeof s.maximumHeight=="number"||typeof s.maximumHeight=="function")&&(this._maximumHeight=s.maximumHeight)}),this.api.onDidSizeChange(s=>{this._onDidChange.fire({height:s.height,width:s.width})}),this._onDidChange)}setVisible(n){this.api._onDidVisibilityChange.fire({isVisible:n})}setActive(n){this.api._onDidActiveChange.fire({isActive:n})}init(n){n.maximumHeight&&(this._maximumHeight=n.maximumHeight),n.minimumHeight&&(this._minimumHeight=n.minimumHeight),n.maximumWidth&&(this._maximumWidth=n.maximumWidth),n.minimumWidth&&(this._minimumWidth=n.minimumWidth),this._priority=n.priority,this._snap=!!n.snap,super.init(n),typeof n.isVisible=="boolean"&&this.setVisible(n.isVisible)}updateConstraints(){this.api._onDidConstraintsChange.fire({minimumWidth:this._evaluatedMinimumWidth,maximumWidth:this._evaluatedMaximumWidth,minimumHeight:this._evaluatedMinimumHeight,maximumHeight:this._evaluatedMaximumHeight})}toJSON(){const n=super.toJSON(),i=a=>a===Number.MAX_SAFE_INTEGER?void 0:a,r=a=>a<=0?void 0:a;return Object.assign(Object.assign({},n),{minimumHeight:r(this.minimumHeight),maximumHeight:i(this.maximumHeight),minimumWidth:r(this.minimumWidth),maximumWidth:i(this.maximumWidth),snap:this.snap,priority:this.priority})}}const gh="DockviewGroupPanelApiImpl not initialized";class t9 extends sx{get location(){if(!this._group)throw new Error(gh);return this._group.model.location}constructor(n,i){super(n),this.accessor=i,this._onDidLocationChange=new _t,this.onDidLocationChange=this._onDidLocationChange.event,this.addDisposables(this._onDidLocationChange)}close(){if(this._group)return this.accessor.removeGroup(this._group)}getWindow(){return this.location.type==="popout"?this.location.getWindow():window}moveTo(n){var i,r,a;if(!this._group)throw new Error(gh);const s=(i=n.group)!==null&&i!==void 0?i:this.accessor.addGroup({direction:PB((r=n.position)!==null&&r!==void 0?r:"right"),skipSetActive:!0});this.accessor.moveGroupOrPanel({from:{groupId:this._group.id},to:{group:s,position:n.group&&(a=n.position)!==null&&a!==void 0?a:"center"}})}maximize(){if(!this._group)throw new Error(gh);this.location.type==="grid"&&this.accessor.maximizeGroup(this._group)}isMaximized(){if(!this._group)throw new Error(gh);return this.accessor.isMaximizedGroup(this._group)}exitMaximized(){if(!this._group)throw new Error(gh);this.isMaximized()&&this.accessor.exitMaximizedGroup()}initialize(n){this._group=n}}const n9=100,i9=100;class kS extends yM{get panels(){return this._model.panels}get activePanel(){return this._model.activePanel}get size(){return this._model.size}get model(){return this._model}get locked(){return this._model.locked}set locked(n){this._model.locked=n}get header(){return this._model.header}constructor(n,i,r){super(i,"groupview_default",{minimumHeight:i9,minimumWidth:n9},new t9(i,n)),this.api.initialize(this),this._model=new XB(this.element,n,i,r,this)}focus(){this.api.isActive||this.api.setActive(),super.focus()}initialize(){this._model.initialize()}setActive(n){super.setActive(n),this.model.setActive(n)}layout(n,i){super.layout(n,i),this.model.layout(n,i)}getComponent(){return this._model}toJSON(){return this.model.toJSON()}}function r9(e){return!!e.referencePanel}function a9(e){return!!e.referenceGroup}function s9(e){return!!e.referencePanel}function o9(e){return!!e.referenceGroup}class l9 extends sx{get location(){return this.group.api.location}get title(){return this.panel.title}get isGroupActive(){return this.group.isActive}get renderer(){return this.panel.renderer}set group(n){const i=this.isGroupActive;if(this._group!==n){this._group=n,this._onDidGroupChange.fire({});let r=i;this.groupEventsDisposable.value=new Gn(this.group.api.onDidLocationChange(a=>{this.group===this.panel.group&&this._onDidLocationChange.fire(a)}),this.group.api.onDidActiveChange(()=>{this.group===this.panel.group&&r!==this.isGroupActive&&(r=this.isGroupActive,this._onDidActiveGroupChange.fire({isActive:this.isGroupActive}))})),this._onDidLocationChange.fire({location:this.group.api.location})}}get group(){return this._group}constructor(n,i,r){super(n.id),this.panel=n,this.accessor=r,this._onDidTitleChange=new _t,this.onDidTitleChange=this._onDidTitleChange.event,this._onDidActiveGroupChange=new _t,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._onDidGroupChange=new _t,this.onDidGroupChange=this._onDidGroupChange.event,this._onDidRendererChange=new _t,this.onDidRendererChange=this._onDidRendererChange.event,this._onDidLocationChange=new _t,this.onDidLocationChange=this._onDidLocationChange.event,this.groupEventsDisposable=new ys,this.initialize(n),this._group=i,this.addDisposables(this.groupEventsDisposable,this._onDidRendererChange,this._onDidTitleChange,this._onDidGroupChange,this._onDidActiveGroupChange,this._onDidLocationChange)}getWindow(){return this.group.api.getWindow()}moveTo(n){var i;this.accessor.moveGroupOrPanel({from:{groupId:this._group.id,panelId:this.panel.id},to:{group:n.group,position:(i=n.position)!==null&&i!==void 0?i:"center",index:n.index}})}setTitle(n){this.panel.setTitle(n)}setRenderer(n){this.panel.setRenderer(n)}close(){this.group.model.closePanel(this.panel)}maximize(){this.group.api.maximize()}isMaximized(){return this.group.api.isMaximized()}exitMaximized(){this.group.api.exitMaximized()}}class ju extends Gn{get params(){return this._params}get title(){return this._title}get group(){return this._group}get renderer(){var n;return(n=this._renderer)!==null&&n!==void 0?n:this.accessor.renderer}constructor(n,i,r,a,s,o){super(),this.id=n,this.accessor=i,this.containerApi=r,this.view=s,this._renderer=o.renderer,this._group=a,this.api=new l9(this,this._group,i),this.addDisposables(this.api.onActiveChange(()=>{i.setActivePanel(this)}),this.api.onDidSizeChange(l=>{this.group.api.setSize(l)}),this.api.onDidRendererChange(l=>{this.group.model.rerender(this)}))}init(n){this._params=n.params,this.view.init(Object.assign(Object.assign({},n),{api:this.api,containerApi:this.containerApi})),this.setTitle(n.title)}focus(){const n=new gM;this.api._onWillFocus.fire(n),!n.defaultPrevented&&(this.api.isActive||this.api.setActive())}toJSON(){return{id:this.id,contentComponent:this.view.contentComponent,tabComponent:this.view.tabComponent,params:Object.keys(this._params||{}).length>0?this._params:void 0,title:this.title,renderer:this._renderer}}setTitle(n){n!==this.title&&(this._title=n,this.view.update({params:{params:this._params,title:this.title}}),this.api._onDidTitleChange.fire({title:n}))}setRenderer(n){n!==this.renderer&&(this._renderer=n,this.api._onDidRendererChange.fire({renderer:n}))}update(n){var i;this._params=Object.assign(Object.assign({},(i=this._params)!==null&&i!==void 0?i:{}),n.params);for(const r of Object.keys(n.params))n.params[r]===void 0&&delete this._params[r];this.view.update({params:{params:this._params,title:this.title}})}updateParentGroup(n,i){this._group=n,this.api.group=this._group;const r=this._group.model.isPanelActive(this),a=this.group.api.isActive&&r;i!=null&&i.skipSetActive||this.api.isActive!==a&&this.api._onDidActiveChange.fire({isActive:this.group.api.isActive&&r}),this.api.isVisible!==r&&this.api._onDidVisibilityChange.fire({isVisible:r})}runEvents(){const n=this._group.model.isPanelActive(this),i=this.group.api.isActive&&n;this.api.isActive!==i&&this.api._onDidActiveChange.fire({isActive:this.group.api.isActive&&n}),this.api.isVisible!==n&&this.api._onDidVisibilityChange.fire({isVisible:n})}layout(n,i){this.api._onDidDimensionChange.fire({width:n,height:i}),this.view.layout(n,i)}dispose(){this.api.dispose(),this.view.dispose()}}const ox=e=>{const n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttributeNS(null,"height",e.height),n.setAttributeNS(null,"width",e.width),n.setAttributeNS(null,"viewBox",e.viewbox),n.setAttributeNS(null,"aria-hidden","false"),n.setAttributeNS(null,"focusable","false"),n.classList.add("dockview-svg");const i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttributeNS(null,"d",e.path),n.appendChild(i),n},_M=()=>ox({width:"11",height:"11",viewbox:"0 0 28 28",path:"M2.1 27.3L0 25.2L11.55 13.65L0 2.1L2.1 0L13.65 11.55L25.2 0L27.3 2.1L15.75 13.65L27.3 25.2L25.2 27.3L13.65 15.75L2.1 27.3Z"}),c9=()=>ox({width:"11",height:"11",viewbox:"0 0 24 15",path:"M12 14.15L0 2.15L2.15 0L12 9.9L21.85 0.0499992L24 2.2L12 14.15Z"}),u9=()=>ox({width:"11",height:"11",viewbox:"0 0 15 25",path:"M2.15 24.1L0 21.95L9.9 12.05L0 2.15L2.15 0L14.2 12.05L2.15 24.1Z"});class Bv extends Gn{get element(){return this._element}constructor(){super(),this.params={},this._element=document.createElement("div"),this._element.className="default-tab",this._content=document.createElement("div"),this._content.className="tab-content",this._actionContainer=document.createElement("div"),this._actionContainer.className="action-container",this._list=document.createElement("ul"),this._list.className="tab-list",this.action=document.createElement("div"),this.action.className="tab-action",this.action.appendChild(_M()),this._element.appendChild(this._content),this._element.appendChild(this._actionContainer),this._actionContainer.appendChild(this._list),this._list.appendChild(this.action),this.addDisposables(Mi(this._actionContainer,"mousedown",n=>{n.preventDefault()})),this.render()}update(n){this.params=Object.assign(Object.assign({},this.params),n.params),this.render()}focus(){}init(n){this.params=n,this._content.textContent=n.title,Mi(this.action,"click",i=>{i.preventDefault(),this.params.api.close()})}onGroupChange(n){this.render()}onPanelVisibleChange(n){this.render()}layout(n,i){}render(){this._content.textContent!==this.params.title&&(this._content.textContent=this.params.title)}}class EM{get content(){return this._content}get tab(){return this._tab}constructor(n,i,r,a){this.accessor=n,this.id=i,this.contentComponent=r,this.tabComponent=a,this._content=this.createContentComponent(this.id,r),this._tab=this.createTabComponent(this.id,a)}init(n){this.content.init(Object.assign(Object.assign({},n),{tab:this.tab})),this.tab.init(n)}updateParentGroup(n,i){}layout(n,i){var r,a;(a=(r=this.content).layout)===null||a===void 0||a.call(r,n,i)}update(n){var i,r,a,s;(r=(i=this.content).update)===null||r===void 0||r.call(i,n),(s=(a=this.tab).update)===null||s===void 0||s.call(a,n)}dispose(){var n,i,r,a;(i=(n=this.content).dispose)===null||i===void 0||i.call(n),(a=(r=this.tab).dispose)===null||a===void 0||a.call(r)}createContentComponent(n,i){var r,a;return ps(n,i,(r=this.accessor.options.components)!==null&&r!==void 0?r:{},this.accessor.options.frameworkComponents,(a=this.accessor.options.frameworkComponentFactory)===null||a===void 0?void 0:a.content)}createTabComponent(n,i){var r,a;return i?ps(n,i,this.accessor.options.tabComponents,this.accessor.options.frameworkTabComponents,(r=this.accessor.options.frameworkComponentFactory)===null||r===void 0?void 0:r.tab,()=>new Bv):this.accessor.options.defaultTabComponent?ps(n,this.accessor.options.defaultTabComponent,this.accessor.options.tabComponents,this.accessor.options.frameworkTabComponents,(a=this.accessor.options.frameworkComponentFactory)===null||a===void 0?void 0:a.tab,()=>new Bv):new Bv}}class d9{constructor(n){this.accessor=n}fromJSON(n,i){var r,a;const s=n.id,o=n.params,l=n.title,c=n.view,u=c?c.content.id:(r=n.contentComponent)!==null&&r!==void 0?r:"unknown",d=c?(a=c.tab)===null||a===void 0?void 0:a.id:n.tabComponent,h=new EM(this.accessor,s,u,d),m=new ju(s,this.accessor,new Sf(this.accessor),i,h,{renderer:n.renderer});return m.init({title:l??s,params:o??{}}),m}}let h9=class extends Gn{get element(){return this._element}constructor(){super(),this._element=document.createElement("div"),this._element.className="watermark";const n=document.createElement("div");n.className="watermark-title";const i=document.createElement("span");i.style.flexGrow="1";const r=document.createElement("div");r.className="watermark-content",this._element.appendChild(n),this._element.appendChild(r);const a=document.createElement("div");a.className="actions-container";const s=document.createElement("div");s.className="close-action",s.appendChild(_M()),a.appendChild(s),n.appendChild(i),n.appendChild(a),this.addDisposables(Mi(s,"click",o=>{var l;o.preventDefault(),this._group&&((l=this._api)===null||l===void 0||l.removeGroup(this._group))}))}update(n){}focus(){}layout(n,i){}init(n){this._api=n.containerApi,this.render()}updateParentGroup(n,i){this._group=n,this.render()}dispose(){super.dispose()}render(){const n=!!(this._api&&this._api.size<=1);qn(this.element,"has-actions",n)}};const DS=(()=>{let e=null;function n(i){e!==i&&e!==null&&qn(e,"dv-bring-to-front",!1),qn(i,"dv-bring-to-front",!0),e=i}return n})();class Fl extends Gn{set minimumInViewportWidth(n){this.options.minimumInViewportWidth=n}set minimumInViewportHeight(n){this.options.minimumInViewportHeight=n}constructor(n){super(),this.options=n,this._element=document.createElement("div"),this._onDidChange=new _t,this.onDidChange=this._onDidChange.event,this._onDidChangeEnd=new _t,this.onDidChangeEnd=this._onDidChangeEnd.event,this.addDisposables(this._onDidChange,this._onDidChangeEnd),this._element.className="dv-resize-container",this.setupResize("top"),this.setupResize("bottom"),this.setupResize("left"),this.setupResize("right"),this.setupResize("topleft"),this.setupResize("topright"),this.setupResize("bottomleft"),this.setupResize("bottomright"),this._element.appendChild(this.options.content),this.options.container.appendChild(this._element),this.setBounds({height:this.options.height,width:this.options.width,top:this.options.top,left:this.options.left})}setBounds(n={}){typeof n.height=="number"&&(this._element.style.height=`${n.height}px`),typeof n.width=="number"&&(this._element.style.width=`${n.width}px`),typeof n.top=="number"&&(this._element.style.top=`${n.top}px`),typeof n.left=="number"&&(this._element.style.left=`${n.left}px`);const i=this.options.container.getBoundingClientRect(),r=this._element.getBoundingClientRect(),a=Math.max(0,this.getMinimumWidth(r.width)),s=typeof this.options.minimumInViewportHeight=="number"?Math.max(0,this.getMinimumHeight(r.height)):0,o=or(r.left-i.left,-a,Math.max(0,i.width-r.width+a)),l=or(r.top-i.top,-s,Math.max(0,i.height-r.height+s));this._element.style.left=`${o}px`,this._element.style.top=`${l}px`,this._onDidChange.fire()}toJSON(){const n=this.options.container.getBoundingClientRect(),i=this._element.getBoundingClientRect();return{top:i.top-n.top,left:i.left-n.left,width:i.width,height:i.height}}setupDrag(n,i={inDragMode:!1}){const r=new ys,a=()=>{let s=null;const o=[...Bl("iframe"),...Bl("webview")];for(const l of o)l.style.pointerEvents="none";r.value=new Gn({dispose:()=>{for(const l of o)l.style.pointerEvents="auto"}},Qo(window,"mousemove",l=>{const c=this.options.container.getBoundingClientRect(),u=l.clientX-c.left,d=l.clientY-c.top;qn(this._element,"dv-resize-container-dragging",!0);const h=this._element.getBoundingClientRect();s===null&&(s={x:l.clientX-h.left,y:l.clientY-h.top});const m=Math.max(0,this.getMinimumWidth(h.width)),f=Math.max(0,this.options.minimumInViewportHeight?this.getMinimumHeight(h.height):0),g=or(u-s.x,-m,Math.max(0,c.width-h.width+m)),v=or(d-s.y,-f,Math.max(0,c.height-h.height+f));this.setBounds({top:v,left:g})}),Qo(window,"mouseup",()=>{qn(this._element,"dv-resize-container-dragging",!1),r.dispose(),this._onDidChangeEnd.fire()}))};this.addDisposables(r,Mi(n,"mousedown",s=>{if(s.defaultPrevented){s.preventDefault();return}wS(s)||a()}),Mi(this.options.content,"mousedown",s=>{s.defaultPrevented||wS(s)||s.shiftKey&&a()}),Mi(this.options.content,"mousedown",()=>{DS(this._element)},!0)),DS(this._element),i.inDragMode&&a()}setupResize(n){const i=document.createElement("div");i.className=`dv-resize-handle-${n}`,this._element.appendChild(i);const r=new ys;this.addDisposables(r,Mi(i,"mousedown",a=>{a.preventDefault();let s=null;const o=[...Bl("iframe"),...Bl("webview")];for(const l of o)l.style.pointerEvents="none";r.value=new Gn(Qo(window,"mousemove",l=>{const c=this.options.container.getBoundingClientRect(),u=this._element.getBoundingClientRect(),d=l.clientY-c.top,h=l.clientX-c.left;s===null&&(s={originalY:d,originalHeight:u.height,originalX:h,originalWidth:u.width});let m,f,g,v;const T=()=>{m=or(d,-Number.MAX_VALUE,s.originalY+s.originalHeight>c.height?this.getMinimumHeight(c.height):Math.max(0,s.originalY+s.originalHeight-Fl.MINIMUM_HEIGHT)),f=s.originalY+s.originalHeight-m},y=()=>{m=s.originalY-s.originalHeight,f=or(d-m,m<0&&typeof this.options.minimumInViewportHeight=="number"?-m+this.options.minimumInViewportHeight:Fl.MINIMUM_HEIGHT,Number.MAX_VALUE)},C=()=>{g=or(h,-Number.MAX_VALUE,s.originalX+s.originalWidth>c.width?this.getMinimumWidth(c.width):Math.max(0,s.originalX+s.originalWidth-Fl.MINIMUM_WIDTH)),v=s.originalX+s.originalWidth-g},I=()=>{g=s.originalX-s.originalWidth,v=or(h-g,g<0&&typeof this.options.minimumInViewportWidth=="number"?-g+this.options.minimumInViewportWidth:Fl.MINIMUM_WIDTH,Number.MAX_VALUE)};switch(n){case"top":T();break;case"bottom":y();break;case"left":C();break;case"right":I();break;case"topleft":T(),C();break;case"topright":T(),I();break;case"bottomleft":y(),C();break;case"bottomright":y(),I();break}this.setBounds({height:f,width:v,top:m,left:g})}),{dispose:()=>{for(const l of o)l.style.pointerEvents="auto"}},Qo(window,"mouseup",()=>{r.dispose(),this._onDidChangeEnd.fire()}))}))}getMinimumWidth(n){return typeof this.options.minimumInViewportWidth=="number"?n-this.options.minimumInViewportWidth:0}getMinimumHeight(n){return typeof this.options.minimumInViewportHeight=="number"?n-this.options.minimumInViewportHeight:n}dispose(){this._element.remove(),super.dispose()}}Fl.MINIMUM_HEIGHT=20;Fl.MINIMUM_WIDTH=20;class f9 extends Gn{constructor(n,i){super(),this.group=n,this.overlay=i,this.addDisposables(i)}position(n){this.overlay.setBounds(n)}}const Lp=100,NS={left:100,top:100};function p9(){const e=document.createElement("div");return e.tabIndex=-1,e}class IS extends Gn{constructor(n){super(),this.element=n,this.map={},this._disposed=!1,this.addDisposables(Ua.from(()=>{for(const i of Object.values(this.map))i.disposable.dispose(),i.destroy.dispose();this._disposed=!0}))}detatch(n){if(this.map[n.api.id]){const{disposable:i,destroy:r}=this.map[n.api.id];return i.dispose(),r.dispose(),delete this.map[n.api.id],!0}return!1}attach(n){const{panel:i,referenceContainer:r}=n;if(!this.map[i.api.id]){const c=p9();c.className="dv-render-overlay",this.map[i.api.id]={panel:i,disposable:Ua.NONE,destroy:Ua.NONE,element:c}}const a=this.map[i.api.id].element;i.view.content.element.parentElement!==a&&a.appendChild(i.view.content.element),a.parentElement!==this.element&&this.element.appendChild(a);const s=()=>{const c=xS(r.element),u=xS(this.element);a.style.left=`${c.left-u.left}px`,a.style.top=`${c.top-u.top}px`,a.style.width=`${c.width}px`,a.style.height=`${c.height}px`,qn(a,"dv-render-overlay-float",i.group.api.location.type==="floating")},o=()=>{i.api.isVisible&&s(),a.style.display=i.api.isVisible?"":"none"},l=new Gn(new fM(a,{onDragEnd:c=>{r.dropTarget.dnd.onDragEnd(c)},onDragEnter:c=>{r.dropTarget.dnd.onDragEnter(c)},onDragLeave:c=>{r.dropTarget.dnd.onDragLeave(c)},onDrop:c=>{r.dropTarget.dnd.onDrop(c)},onDragOver:c=>{r.dropTarget.dnd.onDragOver(c)}}),i.api.onDidVisibilityChange(c=>{o()}),i.api.onDidDimensionsChange(()=>{i.api.isVisible&&s()}));return this.map[i.api.id].destroy=Ua.from(()=>{var c;i.view.content.element.parentElement===a&&a.removeChild(i.view.content.element),(c=a.parentElement)===null||c===void 0||c.removeChild(a)}),queueMicrotask(()=>{this.isDisposed||o()}),this.map[i.api.id].disposable.dispose(),this.map[i.api.id].disposable=l,a}}var m9=globalThis&&globalThis.__awaiter||function(e,n,i,r){function a(s){return s instanceof i?s:new i(function(o){o(s)})}return new(i||(i=Promise))(function(s,o){function l(d){try{u(r.next(d))}catch(h){o(h)}}function c(d){try{u(r.throw(d))}catch(h){o(h)}}function u(d){d.done?s(d.value):a(d.value).then(l,c)}u((r=r.apply(e,n||[])).next())})};class g9 extends Gn{get window(){var n,i;return(i=(n=this._window)===null||n===void 0?void 0:n.value)!==null&&i!==void 0?i:null}constructor(n,i,r){super(),this.target=n,this.className=i,this.options=r,this._onWillClose=new _t,this.onWillClose=this._onWillClose.event,this._onDidClose=new _t,this.onDidClose=this._onDidClose.event,this._window=null,this.addDisposables(this._onWillClose,this._onDidClose,{dispose:()=>{this.close()}})}dimensions(){if(!this._window)return null;const n=this._window.value.screenX,i=this._window.value.screenY,r=this._window.value.innerWidth,a=this._window.value.innerHeight;return{top:i,left:n,width:r,height:a}}close(){var n,i;this._window&&(this._onWillClose.fire(),(i=(n=this.options).onWillClose)===null||i===void 0||i.call(n,{id:this.target,window:this._window.value}),this._window.disposable.dispose(),this._window.value.close(),this._window=null,this._onDidClose.fire())}open(){var n,i;return m9(this,void 0,void 0,function*(){if(this._window)throw new Error("instance of popout window is already open");const r=`${this.options.url}`,a=Object.entries({top:this.options.top,left:this.options.left,width:this.options.width,height:this.options.height}).map(([c,u])=>`${c}=${u}`).join(","),s=window.open(r,this.target,a);if(!s)return null;const o=new Gn;this._window={value:s,disposable:o},o.addDisposables(Qo(window,"beforeunload",()=>{this.close()}));const l=this.createPopoutWindowContainer();return this.className&&l.classList.add(this.className),(i=(n=this.options).onDidOpen)===null||i===void 0||i.call(n,{id:this.target,window:s}),new Promise(c=>{s.addEventListener("unload",u=>{}),s.addEventListener("load",()=>{const u=s.document;u.title=document.title,u.body.appendChild(l),CB(u,window.document.styleSheets),Qo(s,"beforeunload",()=>{this.close()}),c(l)})})})}createPopoutWindowContainer(){const n=document.createElement("div");return n.classList.add("dv-popout-window"),n.id="dv-popout-window",n.style.position="absolute",n.style.width="100%",n.style.height="100%",n.style.top="0px",n.style.left="0px",n}}const v9={activationSize:{type:"pixels",value:10},size:{type:"pixels",value:20}};function Fv(e){const n=e.from.activePanel;[...e.from.panels].map(r=>{const a=e.from.model.removePanel(r);return e.from.model.renderContainer.detatch(r),a}).forEach(r=>{e.to.model.openPanel(r,{skipSetActive:n!==r,skipSetGroupActive:!0})})}function b9(e){function n(a){const s=[];for(let o=0;oa.startsWith("dockview-theme-")),typeof i!="string");)r=r.parentElement;return i}class y9 extends mM{get orientation(){return this.gridview.orientation}get totalPanels(){return this.panels.length}get panels(){return this.groups.flatMap(n=>n.panels)}get options(){return this._options}get activePanel(){const n=this.activeGroup;if(n)return n.activePanel}get renderer(){var n;return(n=this.options.defaultRenderer)!==null&&n!==void 0?n:"onlyWhenVisibile"}constructor(n){var i,r;super({proportionalLayout:!0,orientation:(i=n.orientation)!==null&&i!==void 0?i:An.HORIZONTAL,styles:n.styles,parentElement:n.parentElement,disableAutoResizing:n.disableAutoResizing,locked:n.locked}),this.nextGroupId=tx(),this._deserializer=new d9(this),this.watermark=null,this._onWillDragPanel=new _t,this.onWillDragPanel=this._onWillDragPanel.event,this._onWillDragGroup=new _t,this.onWillDragGroup=this._onWillDragGroup.event,this._onDidDrop=new _t,this.onDidDrop=this._onDidDrop.event,this._onWillDrop=new _t,this.onWillDrop=this._onWillDrop.event,this._onWillShowOverlay=new _t,this.onWillShowOverlay=this._onWillShowOverlay.event,this._onDidRemovePanel=new _t,this.onDidRemovePanel=this._onDidRemovePanel.event,this._onDidAddPanel=new _t,this.onDidAddPanel=this._onDidAddPanel.event,this._onDidLayoutFromJSON=new _t,this.onDidLayoutFromJSON=this._onDidLayoutFromJSON.event,this._onDidActivePanelChange=new _t,this.onDidActivePanelChange=this._onDidActivePanelChange.event,this._onDidMovePanel=new _t,this._floatingGroups=[],this._popoutGroups=[],this._ignoreEvents=0,this._onDidRemoveGroup=new _t,this.onDidRemoveGroup=this._onDidRemoveGroup.event,this._onDidAddGroup=new _t,this.onDidAddGroup=this._onDidAddGroup.event,this._onDidActiveGroupChange=new _t,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._moving=!1;const a=document.createElement("div");a.className="dv-overlay-render-container",this.gridview.element.appendChild(a),this.overlayRenderContainer=new IS(a),qn(this.gridview.element,"dv-dockview",!0),qn(this.element,"dv-debug",!!n.debug),this.addDisposables(this.overlayRenderContainer,this._onWillDragPanel,this._onWillDragGroup,this._onWillShowOverlay,this._onDidActivePanelChange,this._onDidAddPanel,this._onDidRemovePanel,this._onDidLayoutFromJSON,this._onDidDrop,this._onWillDrop,this._onDidMovePanel,this._onDidAddGroup,this._onDidRemoveGroup,this._onDidActiveGroupChange,this.onDidAdd(s=>{this._moving||this._onDidAddGroup.fire(s)}),this.onDidRemove(s=>{this._moving||this._onDidRemoveGroup.fire(s)}),this.onDidActiveChange(s=>{this._moving||this._onDidActiveGroupChange.fire(s)}),Ld.any(this.onDidAdd,this.onDidRemove)(()=>{this.updateWatermark()}),Ld.any(this.onDidAddPanel,this.onDidRemovePanel,this.onDidActivePanelChange)(()=>{this._bufferOnDidLayoutChange.fire()}),Ua.from(()=>{for(const s of[...this._floatingGroups])s.dispose();for(const s of[...this._popoutGroups])s.disposable.dispose()})),this._options=n,this.options.components||(this.options.components={}),this.options.frameworkComponents||(this.options.frameworkComponents={}),this.options.frameworkTabComponents||(this.options.frameworkTabComponents={}),this.options.tabComponents||(this.options.tabComponents={}),!this.options.watermarkComponent&&!this.options.watermarkFrameworkComponent&&(this.options.watermarkComponent=h9),this._rootDropTarget=new il(this.element,{canDisplayOverlay:(s,o)=>{const l=hs();return l?l.viewId!==this.id?!1:o==="center"?this.gridview.length===0:!0:this.options.showDndOverlay?o==="center"&&this.gridview.length!==0?!1:this.options.showDndOverlay({nativeEvent:s,position:o,target:"edge",getData:hs}):!1},acceptedTargetZones:["top","bottom","left","right","center"],overlayModel:(r=this.options.rootOverlayModel)!==null&&r!==void 0?r:v9}),this.addDisposables(this._rootDropTarget.onDrop(s=>{var o;const l=new pM({nativeEvent:s.nativeEvent,position:s.position,panel:void 0,api:this._api,group:void 0,getData:hs,kind:"content"});if(this._onWillDrop.fire(l),l.defaultPrevented)return;const c=hs();c?this.moveGroupOrPanel({from:{groupId:c.groupId,panelId:(o=c.panelId)!==null&&o!==void 0?o:void 0},to:{group:this.orthogonalize(s.position),position:"center"}}):this._onDidDrop.fire(new ix({nativeEvent:s.nativeEvent,position:s.position,panel:void 0,api:this._api,group:void 0,getData:hs}))}),this._rootDropTarget),this._api=new Sf(this),this.updateWatermark()}addPopoutGroup(n,i){var r,a,s;if(n instanceof ju&&n.group.size===1)return this.addPopoutGroup(n.group);const o=b9(this.gridview.element),l=this.element;function c(){return i!=null&&i.position?i.position:n instanceof kS?n.element.getBoundingClientRect():n.group?n.group.element.getBoundingClientRect():l.getBoundingClientRect()}const u=c(),d=(a=(r=i==null?void 0:i.overridePopoutGroup)===null||r===void 0?void 0:r.id)!==null&&a!==void 0?a:this.getNextGroupId();n.api.location.type==="grid"&&n.api.setHidden(!0);const h=new g9(`${this.id}-${d}`,o??"",{url:(s=i==null?void 0:i.popoutUrl)!==null&&s!==void 0?s:"/popout.html",left:window.screenX+u.left,top:window.screenY+u.top,width:u.width,height:u.height,onDidOpen:i==null?void 0:i.onDidOpen,onWillClose:i==null?void 0:i.onWillClose}),m=new Gn(h,h.onDidClose(()=>{m.dispose()}));return h.open().then(f=>{var g;if(h.isDisposed)return;if(f===null){m.dispose();return}const v=document.createElement("div");v.className="dv-overlay-render-container";const T=new IS(v),y=n instanceof ju?n.group:n,C=n.api.location.type,I=(g=i==null?void 0:i.overridePopoutGroup)!==null&&g!==void 0?g:this.createGroup({id:d});if(I.model.renderContainer=T,i!=null&&i.overridePopoutGroup||this._onDidAddGroup.fire(I),n instanceof ju)this.movingLock(()=>{const B=y.model.removePanel(n);I.model.openPanel(B)});else switch(this.movingLock(()=>Fv({from:y,to:I})),C){case"grid":y.api.setHidden(!0);break;case"floating":case"popout":this.removeGroup(y);break}f.classList.add("dv-dockview"),f.style.overflow="hidden",f.appendChild(v),f.appendChild(I.element),I.model.location={type:"popout",getWindow:()=>h.window},this.doSetGroupAndPanelActive(I),m.addDisposables(I.api.onDidActiveChange(B=>{var A;B.isActive&&((A=h.window)===null||A===void 0||A.focus())}),I.api.onWillFocus(()=>{var B;(B=h.window)===null||B===void 0||B.focus()}));let M;const R={window:h,popoutGroup:I,referenceGroup:this.getPanel(y.id)?y.id:void 0,disposable:{dispose:()=>(m.dispose(),M)}};m.addDisposables(Qo(h.window,"resize",()=>{I.layout(window.innerWidth,window.innerHeight)}),T,Ua.from(()=>{if(this.getPanel(y.id))this.movingLock(()=>Fv({from:I,to:y})),y.api.isHidden&&y.api.setHidden(!1),this.getPanel(I.id)&&this.doRemoveGroup(I,{skipPopoutAssociated:!0});else if(this.getPanel(I.id)){const B=this.doRemoveGroup(I,{skipDispose:!0,skipActive:!0});B.model.renderContainer=this.overlayRenderContainer,B.model.location={type:"grid"},M=B}})),this._popoutGroups.push(R),this.updateWatermark()}).catch(f=>{console.error(f)})}addFloatingGroup(n,i,r){var a,s,o,l,c,u,d;let h;if(n instanceof ju)h=this.createGroup(),this._onDidAddGroup.fire(h),this.movingLock(()=>this.removePanel(n,{removeEmptyGroup:!0,skipDispose:!0,skipSetActiveGroup:!0})),h.model.openPanel(n,{skipSetGroupActive:!0});else{h=n;const C=(a=this._popoutGroups.find(R=>R.popoutGroup===h))===null||a===void 0?void 0:a.referenceGroup,I=C?this.getPanel(C):void 0;typeof(r==null?void 0:r.skipRemoveGroup)=="boolean"&&r.skipRemoveGroup||(I?(this.movingLock(()=>Fv({from:n,to:I})),this.doRemoveGroup(n,{skipPopoutReturn:!0,skipPopoutAssociated:!0}),this.doRemoveGroup(I,{skipDispose:!0}),h=I):this.doRemoveGroup(n,{skipDispose:!0,skipPopoutReturn:!0,skipPopoutAssociated:!!I}))}h.model.location={type:"floating"};const m=typeof(i==null?void 0:i.x)=="number"?Math.max(i.x,0):NS.left,f=typeof(i==null?void 0:i.y)=="number"?Math.max(i.y,0):NS.top,g=new Fl({container:this.gridview.element,content:h.element,height:(s=i==null?void 0:i.height)!==null&&s!==void 0?s:300,width:(o=i==null?void 0:i.width)!==null&&o!==void 0?o:300,left:m,top:f,minimumInViewportWidth:this.options.floatingGroupBounds==="boundedWithinViewport"?void 0:(c=(l=this.options.floatingGroupBounds)===null||l===void 0?void 0:l.minimumWidthWithinViewport)!==null&&c!==void 0?c:Lp,minimumInViewportHeight:this.options.floatingGroupBounds==="boundedWithinViewport"?void 0:(d=(u=this.options.floatingGroupBounds)===null||u===void 0?void 0:u.minimumHeightWithinViewport)!==null&&d!==void 0?d:Lp}),v=h.element.querySelector(".void-container");if(!v)throw new Error("failed to find drag handle");g.setupDrag(v,{inDragMode:typeof(r==null?void 0:r.inDragMode)=="boolean"?r.inDragMode:!1});const T=new f9(h,g),y=sM(h.element,C=>{const{width:I,height:M}=C.contentRect;h.layout(I,M)});T.addDisposables(g.onDidChange(()=>{h.layout(h.height,h.width)}),g.onDidChangeEnd(()=>{this._bufferOnDidLayoutChange.fire()}),h.onDidChange(C=>{g.setBounds({height:C==null?void 0:C.height,width:C==null?void 0:C.width})}),{dispose:()=>{y.dispose(),h.model.location={type:"grid"},CS(this._floatingGroups,T),this.updateWatermark()}}),this._floatingGroups.push(T),r!=null&&r.skipActiveGroup||this.doSetGroupAndPanelActive(h),this.updateWatermark()}orthogonalize(n){switch(n){case"top":case"bottom":this.gridview.orientation===An.HORIZONTAL&&this.gridview.insertOrthogonalSplitviewAtRoot();break;case"left":case"right":this.gridview.orientation===An.VERTICAL&&this.gridview.insertOrthogonalSplitviewAtRoot();break}switch(n){case"top":case"left":case"center":return this.createGroupAtLocation([0]);case"bottom":case"right":return this.createGroupAtLocation([this.gridview.length]);default:throw new Error(`unsupported position ${n}`)}}updateOptions(n){var i,r;const a=typeof n.orientation=="string"&&this.gridview.orientation!==n.orientation,s=n.floatingGroupBounds!==void 0&&n.floatingGroupBounds!==this.options.floatingGroupBounds,o=n.rootOverlayModel!==void 0&&n.rootOverlayModel!==this.options.rootOverlayModel;if(this._options=Object.assign(Object.assign({},this.options),n),a&&(this.gridview.orientation=n.orientation),s)for(const l of this._floatingGroups){switch(this.options.floatingGroupBounds){case"boundedWithinViewport":l.overlay.minimumInViewportHeight=void 0,l.overlay.minimumInViewportWidth=void 0;break;case void 0:l.overlay.minimumInViewportHeight=Lp,l.overlay.minimumInViewportWidth=Lp;break;default:l.overlay.minimumInViewportHeight=(i=this.options.floatingGroupBounds)===null||i===void 0?void 0:i.minimumHeightWithinViewport,l.overlay.minimumInViewportWidth=(r=this.options.floatingGroupBounds)===null||r===void 0?void 0:r.minimumWidthWithinViewport}l.overlay.setBounds({})}o&&this._rootDropTarget.setOverlayModel(n.rootOverlayModel),this.layout(this.gridview.width,this.gridview.height,!0)}layout(n,i,r){if(super.layout(n,i,r),this._floatingGroups)for(const a of this._floatingGroups)a.overlay.setBounds()}focus(){var n;(n=this.activeGroup)===null||n===void 0||n.focus()}getGroupPanel(n){return this.panels.find(i=>i.id===n)}setActivePanel(n){n.group.model.openPanel(n),this.doSetGroupAndPanelActive(n.group)}moveToNext(n={}){var i;if(!n.group){if(!this.activeGroup)return;n.group=this.activeGroup}if(n.includePanel&&n.group&&n.group.activePanel!==n.group.panels[n.group.panels.length-1]){n.group.model.moveToNext({suppressRoll:!0});return}const r=er(n.group.element),a=(i=this.gridview.next(r))===null||i===void 0?void 0:i.view;this.doSetGroupAndPanelActive(a)}moveToPrevious(n={}){var i;if(!n.group){if(!this.activeGroup)return;n.group=this.activeGroup}if(n.includePanel&&n.group&&n.group.activePanel!==n.group.panels[0]){n.group.model.moveToPrevious({suppressRoll:!0});return}const r=er(n.group.element),a=(i=this.gridview.previous(r))===null||i===void 0?void 0:i.view;a&&this.doSetGroupAndPanelActive(a)}toJSON(){var n;const i=this.gridview.serialize(),r=this.panels.reduce((l,c)=>(l[c.id]=c.toJSON(),l),{}),a=this._floatingGroups.map(l=>({data:l.group.toJSON(),position:l.overlay.toJSON()})),s=this._popoutGroups.map(l=>({data:l.popoutGroup.toJSON(),gridReferenceGroup:l.referenceGroup,position:l.window.dimensions()})),o={grid:i,panels:r,activeGroup:(n=this.activeGroup)===null||n===void 0?void 0:n.id};return a.length>0&&(o.floatingGroups=a),s.length>0&&(o.popoutGroups=s),o}fromJSON(n){var i,r,a;if(this.clear(),typeof n!="object"||n===null)throw new Error("serialized layout must be a non-null object");const{grid:s,panels:o,activeGroup:l}=n;if(s.root.type!=="branch"||!Array.isArray(s.root.data))throw new Error("root must be of type branch");try{const c=this.width,u=this.height,d=f=>{const{id:g,locked:v,hideHeader:T,views:y,activeView:C}=f;if(typeof g!="string")throw new Error("group id must be of type string");const I=this.createGroup({id:g,locked:!!v,hideHeader:!!T}),M=[];for(const R of y){const B=this._deserializer.fromJSON(o[R],I);M.push(B)}this._onDidAddGroup.fire(I);for(let R=0;R0&&I.model.openPanel(I.panels[I.panels.length-1],{skipSetGroupActive:!0}),I};this.gridview.deserialize(s,{fromJSON:f=>d(f.data)}),this.layout(c,u,!0);const h=(i=n.floatingGroups)!==null&&i!==void 0?i:[];for(const f of h){const{data:g,position:v}=f,T=d(g);this.addFloatingGroup(T,{x:v.left,y:v.top,height:v.height,width:v.width},{skipRemoveGroup:!0,inDragMode:!1})}const m=(r=n.popoutGroups)!==null&&r!==void 0?r:[];for(const f of m){const{data:g,position:v,gridReferenceGroup:T}=f,y=d(g);this.addPopoutGroup((a=T?this.getPanel(T):void 0)!==null&&a!==void 0?a:y,{skipRemoveGroup:!0,position:v??void 0,overridePopoutGroup:T?y:void 0})}for(const f of this._floatingGroups)f.overlay.setBounds();if(typeof l=="string"){const f=this.getPanel(l);f&&this.doSetGroupAndPanelActive(f)}}catch(c){for(const u of this.groups)for(const d of u.panels)this.removePanel(d,{removeEmptyGroup:!1,skipDispose:!1});for(const u of this.groups)u.dispose(),this._groups.delete(u.id),this._onDidRemoveGroup.fire(u);for(const u of[...this._floatingGroups])u.dispose();throw this.clear(),c}this.updateWatermark(),this._onDidLayoutFromJSON.fire()}clear(){const n=Array.from(this._groups.values()).map(r=>r.value),i=!!this.activeGroup;this.activePanel;for(const r of n)this.removeGroup(r,{skipActive:!0});i&&this.doSetGroupAndPanelActive(void 0),this.gridview.clear()}closeAllGroups(){for(const n of this._groups.entries()){const[i,r]=n;r.value.model.closeAllPanels()}}addPanel(n){var i,r;if(this.panels.find(o=>o.id===n.id))throw new Error(`panel with id ${n.id} already exists`);let a;if(n.position&&n.floating)throw new Error("you can only provide one of: position, floating as arguments to .addPanel(...)");if(n.position)if(r9(n.position)){const o=typeof n.position.referencePanel=="string"?this.getGroupPanel(n.position.referencePanel):n.position.referencePanel;if(!o)throw new Error(`referencePanel ${n.position.referencePanel} does not exist`);a=this.findGroup(o)}else if(a9(n.position)){if(a=typeof n.position.referenceGroup=="string"?(i=this._groups.get(n.position.referenceGroup))===null||i===void 0?void 0:i.value:n.position.referenceGroup,!a)throw new Error(`referencePanel ${n.position.referenceGroup} does not exist`)}else{const o=this.orthogonalize(TS(n.position.direction)),l=this.createPanel(n,o);return o.model.openPanel(l),this.doSetGroupAndPanelActive(o),l}else a=this.activeGroup;let s;if(a){const o=r0(((r=n.position)===null||r===void 0?void 0:r.direction)||"within");if(n.floating){const l=this.createGroup();this._onDidAddGroup.fire(l);const c=typeof n.floating=="object"&&n.floating!==null?n.floating:{};this.addFloatingGroup(l,c,{inDragMode:!1,skipRemoveGroup:!0,skipActiveGroup:!0}),s=this.createPanel(n,l),l.model.openPanel(s)}else if(a.api.location.type==="floating"||o==="center")s=this.createPanel(n,a),a.model.openPanel(s),this.doSetGroupAndPanelActive(a);else{const l=er(a.element),c=ao(this.gridview.orientation,l,o),u=this.createGroupAtLocation(c);s=this.createPanel(n,u),u.model.openPanel(s),this.doSetGroupAndPanelActive(u)}}else if(n.floating){const o=this.createGroup();this._onDidAddGroup.fire(o);const l=typeof n.floating=="object"&&n.floating!==null?n.floating:{};this.addFloatingGroup(o,l,{inDragMode:!1,skipRemoveGroup:!0,skipActiveGroup:!0}),s=this.createPanel(n,o),o.model.openPanel(s)}else{const o=this.createGroupAtLocation();s=this.createPanel(n,o),o.model.openPanel(s),this.doSetGroupAndPanelActive(o)}return s}removePanel(n,i={removeEmptyGroup:!0,skipDispose:!1}){const r=n.group;if(!r)throw new Error(`cannot remove panel ${n.id}. it's missing a group.`);r.model.removePanel(n,{skipSetActiveGroup:i.skipSetActiveGroup}),i.skipDispose||(n.group.model.renderContainer.detatch(n),n.dispose()),r.size===0&&i.removeEmptyGroup&&this.removeGroup(r,{skipActive:i.skipSetActiveGroup})}createWatermarkComponent(){var n;return ps("watermark-id","watermark-name",this.options.watermarkComponent?{"watermark-name":this.options.watermarkComponent}:{},this.options.watermarkFrameworkComponent?{"watermark-name":this.options.watermarkFrameworkComponent}:{},(n=this.options.frameworkComponentFactory)===null||n===void 0?void 0:n.watermark)}updateWatermark(){var n,i;if(this.groups.filter(r=>r.api.location.type==="grid"&&!r.api.isHidden).length===0){if(!this.watermark){this.watermark=this.createWatermarkComponent(),this.watermark.init({containerApi:new Sf(this)});const r=document.createElement("div");r.className="dv-watermark-container",r.appendChild(this.watermark.element),this.gridview.element.appendChild(r)}}else this.watermark&&(this.watermark.element.parentElement.remove(),(i=(n=this.watermark).dispose)===null||i===void 0||i.call(n),this.watermark=null)}addGroup(n){var i;const r=this.createGroup(n);if(n){let a;if(s9(n)){const c=typeof n.referencePanel=="string"?this.panels.find(u=>u.id===n.referencePanel):n.referencePanel;if(!c)throw new Error(`reference panel ${n.referencePanel} does not exist`);if(a=this.findGroup(c),!a)throw new Error(`reference group for reference panel ${n.referencePanel} does not exist`)}else if(o9(n)){if(a=typeof n.referenceGroup=="string"?(i=this._groups.get(n.referenceGroup))===null||i===void 0?void 0:i.value:n.referenceGroup,!a)throw new Error(`reference group ${n.referenceGroup} does not exist`)}else{const c=this.orthogonalize(TS(n.direction));return n.skipSetActive||this.doSetGroupAndPanelActive(c),c}const s=r0(n.direction||"within"),o=er(a.element),l=ao(this.gridview.orientation,o,s);return this.doAddGroup(r,l),n.skipSetActive||this.doSetGroupAndPanelActive(r),r}else return this.doAddGroup(r),this.doSetGroupAndPanelActive(r),r}removeGroup(n,i){this.doRemoveGroup(n,i)}doRemoveGroup(n,i){var r;const a=[...n.panels];if(!(i!=null&&i.skipDispose))for(const l of a)this.removePanel(l,{removeEmptyGroup:!1,skipDispose:(r=i==null?void 0:i.skipDispose)!==null&&r!==void 0?r:!1});const s=this.activePanel;if(n.api.location.type==="floating"){const l=this._floatingGroups.find(c=>c.group===n);if(l){if(i!=null&&i.skipDispose||(l.group.dispose(),this._groups.delete(n.id),this._onDidRemoveGroup.fire(n)),CS(this._floatingGroups,l),l.dispose(),!(i!=null&&i.skipActive)&&this._activeGroup===n){const c=Array.from(this._groups.values());this.doSetGroupAndPanelActive(c.length>0?c[0].value:void 0)}return l.group}throw new Error("failed to find floating group")}if(n.api.location.type==="popout"){const l=this._popoutGroups.find(c=>c.popoutGroup===n);if(l){if(!(i!=null&&i.skipDispose)){if(!(i!=null&&i.skipPopoutAssociated)){const u=l.referenceGroup?this.getPanel(l.referenceGroup):void 0;u&&this.removeGroup(u)}l.popoutGroup.dispose(),this._groups.delete(n.id),this._onDidRemoveGroup.fire(n)}const c=l.disposable.dispose();if(!(i!=null&&i.skipPopoutReturn)&&c&&(this.doAddGroup(c,[0]),this.doSetGroupAndPanelActive(c)),!(i!=null&&i.skipActive)&&this._activeGroup===n){const u=Array.from(this._groups.values());this.doSetGroupAndPanelActive(u.length>0?u[0].value:void 0)}return this.updateWatermark(),l.popoutGroup}throw new Error("failed to find popout group")}const o=super.doRemoveGroup(n,i);return i!=null&&i.skipActive||this.activePanel!==s&&this._onDidActivePanelChange.fire(this.activePanel),o}movingLock(n){const i=this._moving;try{return this._moving=!0,n()}finally{this._moving=i}}moveGroupOrPanel(n){var i;const r=n.to.group,a=n.from.groupId,s=n.from.panelId,o=n.to.position,l=n.to.index,c=a?(i=this._groups.get(a))===null||i===void 0?void 0:i.value:void 0;if(!c)throw new Error(`Failed to find group id ${a}`);if(s===void 0){this.moveGroup({from:{group:c},to:{group:r,position:o}});return}if(!o||o==="center"){const u=this.movingLock(()=>c.model.removePanel(s,{skipSetActive:!1,skipSetActiveGroup:!0}));if(!u)throw new Error(`No panel with id ${s}`);c.model.size===0&&this.doRemoveGroup(c,{skipActive:!0}),this.movingLock(()=>r.model.openPanel(u,{index:l,skipSetGroupActive:!0})),this.doSetGroupAndPanelActive(r),this._onDidMovePanel.fire({panel:u})}else{const u=er(r.element),d=ao(this.gridview.orientation,u,o);if(c.size<2){const[h,m]=jo(d);if(c.api.location.type==="grid"){const T=er(c.element),[y,C]=jo(T);if(cM(y,h)){this.gridview.moveView(y,C,m);return}}const f=this.movingLock(()=>this.doRemoveGroup(c,{skipActive:!0,skipDispose:!0})),g=er(r.element),v=ao(this.gridview.orientation,g,o);this.movingLock(()=>this.doAddGroup(f,v)),this.doSetGroupAndPanelActive(f)}else{const h=this.movingLock(()=>c.model.removePanel(s,{skipSetActive:!1,skipSetActiveGroup:!0}));if(!h)throw new Error(`No panel with id ${s}`);const m=ao(this.gridview.orientation,u,o),f=this.createGroupAtLocation(m);this.movingLock(()=>f.model.openPanel(h,{skipSetGroupActive:!0})),this.doSetGroupAndPanelActive(f)}}}moveGroup(n){const i=n.from.group,r=n.to.group,a=n.to.position;if(a==="center"){const s=i.activePanel,o=this.movingLock(()=>[...i.panels].map(l=>i.model.removePanel(l.id,{skipSetActive:!0})));(i==null?void 0:i.model.size)===0&&this.doRemoveGroup(i,{skipActive:!0}),this.movingLock(()=>{for(const l of o)r.model.openPanel(l,{skipSetActive:l!==s,skipSetGroupActive:!0})}),this.doSetGroupAndPanelActive(r),o.forEach(l=>{this._onDidMovePanel.fire({panel:l})})}else{switch(i.api.location.type){case"grid":this.gridview.removeView(er(i.element));break;case"floating":{const l=this._floatingGroups.find(c=>c.group===i);if(!l)throw new Error("failed to find floating group");l.dispose();break}case"popout":{const l=this._popoutGroups.find(c=>c.popoutGroup===i);if(!l)throw new Error("failed to find popout group");l.disposable.dispose()}}const s=er(r.element),o=ao(this.gridview.orientation,s,a);this.gridview.addView(i,Ga.Distribute,o),i.panels.forEach(l=>{this._onDidMovePanel.fire({panel:l})})}}doSetGroupActive(n){super.doSetGroupActive(n);const i=this.activePanel;!this._moving&&i!==this._onDidActivePanelChange.value&&this._onDidActivePanelChange.fire(i)}doSetGroupAndPanelActive(n){super.doSetGroupActive(n);const i=this.activePanel;n&&this.hasMaximizedGroup()&&!this.isMaximizedGroup(n)&&this.exitMaximizedGroup(),!this._moving&&i!==this._onDidActivePanelChange.value&&this._onDidActivePanelChange.fire(i)}getNextGroupId(){let n=this.nextGroupId.next();for(;this._groups.has(n);)n=this.nextGroupId.next();return n}createGroup(n){n||(n={});let i=n==null?void 0:n.id;if(i&&this._groups.has(n.id)&&(console.warn(`Duplicate group id ${n==null?void 0:n.id}. reassigning group id to avoid errors`),i=void 0),!i)for(i=this.nextGroupId.next();this._groups.has(i);)i=this.nextGroupId.next();const r=new kS(this,i,n);if(r.init({params:{},accessor:this}),!this._groups.has(r.id)){const a=new Gn(r.model.onTabDragStart(s=>{this._onWillDragPanel.fire(s)}),r.model.onGroupDragStart(s=>{this._onWillDragGroup.fire(s)}),r.model.onMove(s=>{const{groupId:o,itemId:l,target:c,index:u}=s;this.moveGroupOrPanel({from:{groupId:o,panelId:l},to:{group:r,position:c,index:u}})}),r.model.onDidDrop(s=>{this._onDidDrop.fire(s)}),r.model.onWillDrop(s=>{this._onWillDrop.fire(s)}),r.model.onWillShowOverlay(s=>{if(this.options.disableDnd){s.preventDefault();return}this._onWillShowOverlay.fire(s)}),r.model.onDidAddPanel(s=>{this._moving||this._onDidAddPanel.fire(s.panel)}),r.model.onDidRemovePanel(s=>{this._moving||this._onDidRemovePanel.fire(s.panel)}),r.model.onDidActivePanelChange(s=>{this._moving||s.panel===this.activePanel&&this._onDidActivePanelChange.value!==s.panel&&this._onDidActivePanelChange.fire(s.panel)}));this._groups.set(r.id,{value:r,disposable:a})}return r.initialize(),r}createPanel(n,i){var r,a,s;const o=n.component,l=(r=n.tabComponent)!==null&&r!==void 0?r:this.options.defaultTabComponent,c=new EM(this,n.id,o,l),u=new ju(n.id,this,this._api,i,c,{renderer:n.renderer});return u.init({title:(a=n.title)!==null&&a!==void 0?a:n.id,params:(s=n==null?void 0:n.params)!==null&&s!==void 0?s:{}}),u}createGroupAtLocation(n=[0]){const i=this.createGroup();return this.doAddGroup(i,n),i}findGroup(n){var i;return(i=Array.from(this._groups.values()).find(r=>r.value.model.containsPanel(n)))===null||i===void 0?void 0:i.value}}class _9 extends mM{get orientation(){return this.gridview.orientation}set orientation(n){this.gridview.orientation=n}get options(){return this._options}get deserializer(){return this._deserializer}set deserializer(n){this._deserializer=n}constructor(n){super({parentElement:n.parentElement,proportionalLayout:n.proportionalLayout,orientation:n.orientation,styles:n.styles,disableAutoResizing:n.disableAutoResizing}),this._onDidLayoutfromJSON=new _t,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidRemoveGroup=new _t,this.onDidRemoveGroup=this._onDidRemoveGroup.event,this._onDidAddGroup=new _t,this.onDidAddGroup=this._onDidAddGroup.event,this._onDidActiveGroupChange=new _t,this.onDidActiveGroupChange=this._onDidActiveGroupChange.event,this._options=n,this.addDisposables(this._onDidAddGroup,this._onDidRemoveGroup,this._onDidActiveGroupChange,this.onDidAdd(i=>{this._onDidAddGroup.fire(i)}),this.onDidRemove(i=>{this._onDidRemoveGroup.fire(i)}),this.onDidActiveChange(i=>{this._onDidActiveGroupChange.fire(i)})),this.options.components||(this.options.components={}),this.options.frameworkComponents||(this.options.frameworkComponents={})}updateOptions(n){const i=typeof n.orientation=="string"&&this.gridview.orientation!==n.orientation;this._options=Object.assign(Object.assign({},this.options),n),i&&(this.gridview.orientation=n.orientation),this.layout(this.gridview.width,this.gridview.height,!0)}removePanel(n){this.removeGroup(n)}toJSON(){var n;return{grid:this.gridview.serialize(),activePanel:(n=this.activeGroup)===null||n===void 0?void 0:n.id}}setVisible(n,i){this.gridview.setViewVisible(er(n.element),i)}setActive(n){this._groups.forEach((i,r)=>{i.value.setActive(n===i.value)})}focus(){var n;(n=this.activeGroup)===null||n===void 0||n.focus()}fromJSON(n){this.clear();const{grid:i,activePanel:r}=n;try{const a=[],s=this.width,o=this.height;if(this.gridview.deserialize(i,{fromJSON:l=>{var c,u;const{data:d}=l,h=ps(d.id,d.component,(c=this.options.components)!==null&&c!==void 0?c:{},(u=this.options.frameworkComponents)!==null&&u!==void 0?u:{},this.options.frameworkComponentFactory?{createComponent:this.options.frameworkComponentFactory.createComponent}:void 0);return a.push(()=>h.init({params:d.params,minimumWidth:d.minimumWidth,maximumWidth:d.maximumWidth,minimumHeight:d.minimumHeight,maximumHeight:d.maximumHeight,priority:d.priority,snap:!!d.snap,accessor:this,isVisible:l.visible})),this._onDidAddGroup.fire(h),this.registerPanel(h),h}}),this.layout(s,o,!0),a.forEach(l=>l()),typeof r=="string"){const l=this.getPanel(r);l&&this.doSetGroupActive(l)}}catch(a){for(const s of this.groups)s.dispose(),this._groups.delete(s.id),this._onDidRemoveGroup.fire(s);throw this.clear(),a}this._onDidLayoutfromJSON.fire()}clear(){const n=this.activeGroup,i=Array.from(this._groups.values());for(const r of i)r.disposable.dispose(),this.doRemoveGroup(r.value,{skipActive:!0});n&&this.doSetGroupActive(void 0),this.gridview.clear()}movePanel(n,i){var r;let a;const s=this.gridview.remove(n),o=(r=this._groups.get(i.reference))===null||r===void 0?void 0:r.value;if(!o)throw new Error(`reference group ${i.reference} does not exist`);const l=r0(i.direction);if(l==="center")throw new Error(`${l} not supported as an option`);{const c=er(o.element);a=ao(this.gridview.orientation,c,l)}this.doAddGroup(s,a,i.size)}addPanel(n){var i,r,a,s,o,l;let c=(i=n.location)!==null&&i!==void 0?i:[0];if(!((r=n.position)===null||r===void 0)&&r.referencePanel){const d=(a=this._groups.get(n.position.referencePanel))===null||a===void 0?void 0:a.value;if(!d)throw new Error(`reference group ${n.position.referencePanel} does not exist`);const h=r0(n.position.direction);if(h==="center")throw new Error(`${h} not supported as an option`);{const m=er(d.element);c=ao(this.gridview.orientation,m,h)}}const u=ps(n.id,n.component,(s=this.options.components)!==null&&s!==void 0?s:{},(o=this.options.frameworkComponents)!==null&&o!==void 0?o:{},this.options.frameworkComponentFactory?{createComponent:this.options.frameworkComponentFactory.createComponent}:void 0);return u.init({params:(l=n.params)!==null&&l!==void 0?l:{},minimumWidth:n.minimumWidth,maximumWidth:n.maximumWidth,minimumHeight:n.minimumHeight,maximumHeight:n.maximumHeight,priority:n.priority,snap:!!n.snap,accessor:this,isVisible:!0}),this.registerPanel(u),this.doAddGroup(u,c,n.size),this.doSetGroupActive(u),u}registerPanel(n){const i=new Gn(n.api.onDidFocusChange(r=>{r.isFocused&&this._groups.forEach(a=>{const s=a.value;s!==n?s.setActive(!1):s.setActive(!0)})}));this._groups.set(n.id,{value:n,disposable:i})}moveGroup(n,i,r){const a=this.getPanel(i);if(!a)throw new Error("invalid operation");const s=er(n.element),o=ao(this.gridview.orientation,s,r),[l,c]=jo(o),u=er(a.element),[d,h]=jo(u);if(cM(d,l)){this.gridview.moveView(d,h,c);return}const m=this.doRemoveGroup(a,{skipActive:!0,skipDispose:!0}),f=er(n.element),g=ao(this.gridview.orientation,f,r);this.doAddGroup(m,g)}removeGroup(n){super.removeGroup(n)}dispose(){super.dispose(),this._onDidLayoutfromJSON.dispose()}}class E9 extends rx{get panels(){return this.splitview.getViews()}get options(){return this._options}get length(){return this._panels.size}get orientation(){return this.splitview.orientation}get splitview(){return this._splitview}set splitview(n){this._splitview=n,this._splitviewChangeDisposable.value=new Gn(this._splitview.onDidSashEnd(()=>{this._onDidLayoutChange.fire(void 0)}),this._splitview.onDidAddView(i=>this._onDidAddView.fire(i)),this._splitview.onDidRemoveView(i=>this._onDidRemoveView.fire(i)))}get minimumSize(){return this.splitview.minimumSize}get maximumSize(){return this.splitview.maximumSize}get height(){return this.splitview.orientation===An.HORIZONTAL?this.splitview.orthogonalSize:this.splitview.size}get width(){return this.splitview.orientation===An.HORIZONTAL?this.splitview.size:this.splitview.orthogonalSize}constructor(n){super(n.parentElement,n.disableAutoResizing),this._splitviewChangeDisposable=new ys,this._panels=new Map,this._onDidLayoutfromJSON=new _t,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidAddView=new _t,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new _t,this.onDidRemoveView=this._onDidRemoveView.event,this._onDidLayoutChange=new _t,this.onDidLayoutChange=this._onDidLayoutChange.event,this._options=n,n.components||(n.components={}),n.frameworkComponents||(n.frameworkComponents={}),this.splitview=new Cf(this.element,n),this.addDisposables(this._onDidAddView,this._onDidLayoutfromJSON,this._onDidRemoveView,this._onDidLayoutChange)}updateOptions(n){const i=typeof n.orientation=="string"&&this.options.orientation!==n.orientation;this._options=Object.assign(Object.assign({},this.options),n),i&&(this.splitview.orientation=n.orientation),this.splitview.layout(this.splitview.size,this.splitview.orthogonalSize)}focus(){var n;(n=this._activePanel)===null||n===void 0||n.focus()}movePanel(n,i){this.splitview.moveView(n,i)}setVisible(n,i){const r=this.panels.indexOf(n);this.splitview.setViewVisible(r,i)}setActive(n,i){this._activePanel=n,this.panels.filter(r=>r!==n).forEach(r=>{r.api._onDidActiveChange.fire({isActive:!1}),i||r.focus()}),n.api._onDidActiveChange.fire({isActive:!0}),i||n.focus()}removePanel(n,i){const r=this._panels.get(n.id);if(!r)throw new Error(`unknown splitview panel ${n.id}`);r.dispose(),this._panels.delete(n.id);const a=this.panels.findIndex(l=>l===n);this.splitview.removeView(a,i).dispose();const o=this.panels;o.length>0&&this.setActive(o[o.length-1])}getPanel(n){return this.panels.find(i=>i.id===n)}addPanel(n){var i,r,a;if(this._panels.has(n.id))throw new Error(`panel ${n.id} already exists`);const s=ps(n.id,n.component,(i=this.options.components)!==null&&i!==void 0?i:{},(r=this.options.frameworkComponents)!==null&&r!==void 0?r:{},this.options.frameworkWrapper?{createComponent:this.options.frameworkWrapper.createComponent}:void 0);s.orientation=this.splitview.orientation,s.init({params:(a=n.params)!==null&&a!==void 0?a:{},minimumSize:n.minimumSize,maximumSize:n.maximumSize,snap:n.snap,priority:n.priority,accessor:this});const o=typeof n.size=="number"?n.size:Ga.Distribute,l=typeof n.index=="number"?n.index:void 0;return this.splitview.addView(s,o,l),this.doAddView(s),this.setActive(s),s}layout(n,i){const[r,a]=this.splitview.orientation===An.HORIZONTAL?[n,i]:[i,n];this.splitview.layout(r,a)}doAddView(n){const i=n.api.onDidFocusChange(r=>{r.isFocused&&this.setActive(n,!0)});this._panels.set(n.id,i)}toJSON(){var n;return{views:this.splitview.getViews().map((r,a)=>({size:this.splitview.getViewSize(a),data:r.toJSON(),snap:!!r.snap,priority:r.priority})),activeView:(n=this._activePanel)===null||n===void 0?void 0:n.id,size:this.splitview.size,orientation:this.splitview.orientation}}fromJSON(n){this.clear();const{views:i,orientation:r,size:a,activeView:s}=n,o=[],l=this.width,c=this.height;if(this.splitview=new Cf(this.element,{orientation:r,proportionalLayout:this.options.proportionalLayout,descriptor:{size:a,views:i.map(u=>{var d,h;const m=u.data;if(this._panels.has(m.id))throw new Error(`panel ${m.id} already exists`);const f=ps(m.id,m.component,(d=this.options.components)!==null&&d!==void 0?d:{},(h=this.options.frameworkComponents)!==null&&h!==void 0?h:{},this.options.frameworkWrapper?{createComponent:this.options.frameworkWrapper.createComponent}:void 0);return o.push(()=>{var g;f.init({params:(g=m.params)!==null&&g!==void 0?g:{},minimumSize:m.minimumSize,maximumSize:m.maximumSize,snap:u.snap,priority:u.priority,accessor:this})}),f.orientation=r,this.doAddView(f),setTimeout(()=>{this._onDidAddView.fire(f)},0),{size:u.size,view:f}})}}),this.layout(l,c),o.forEach(u=>u()),typeof s=="string"){const u=this.getPanel(s);u&&this.setActive(u)}this._onDidLayoutfromJSON.fire()}clear(){for(const n of this._panels.values())n.dispose();for(this._panels.clear();this.splitview.length>0;)this.splitview.removeView(0,Ga.Distribute,!0).dispose()}dispose(){for(const i of this._panels.values())i.dispose();this._panels.clear();const n=this.splitview.getViews();this._splitviewChangeDisposable.dispose(),this.splitview.dispose();for(const i of n)i.dispose();super.dispose()}}class MS extends Gn{get element(){return this._element}constructor(){super(),this._expandedIcon=c9(),this._collapsedIcon=u9(),this.disposable=new ys,this.apiRef={api:null},this._element=document.createElement("div"),this.element.className="default-header",this._content=document.createElement("span"),this._expander=document.createElement("div"),this._expander.className="dockview-pane-header-icon",this.element.appendChild(this._expander),this.element.appendChild(this._content),this.addDisposables(Mi(this._element,"click",()=>{var n;(n=this.apiRef.api)===null||n===void 0||n.setExpanded(!this.apiRef.api.isExpanded)}))}init(n){this.apiRef.api=n.api,this._content.textContent=n.title,this.updateIcon(),this.disposable.value=n.api.onDidExpansionChange(()=>{this.updateIcon()})}updateIcon(){var n;const i=!!(!((n=this.apiRef.api)===null||n===void 0)&&n.isExpanded);qn(this._expander,"collapsed",!i),i?(this._expander.contains(this._collapsedIcon)&&this._collapsedIcon.remove(),this._expander.contains(this._expandedIcon)||this._expander.appendChild(this._expandedIcon)):(this._expander.contains(this._expandedIcon)&&this._expandedIcon.remove(),this._expander.contains(this._collapsedIcon)||this._expander.appendChild(this._collapsedIcon))}update(n){}dispose(){this.disposable.dispose(),super.dispose()}}const A9=tx();class LS extends e9{constructor(n){super(n.accessor,n.id,n.component,n.headerComponent,n.orientation,n.isExpanded,n.disableDnd),this.options=n}getBodyComponent(){return this.options.body}getHeaderComponent(){return this.options.header}}class w9 extends rx{get id(){return this._id}get panels(){return this.paneview.getPanes()}set paneview(n){this._paneview=n,this._disposable.value=new Gn(this._paneview.onDidChange(()=>{this._onDidLayoutChange.fire(void 0)}),this._paneview.onDidAddView(i=>this._onDidAddView.fire(i)),this._paneview.onDidRemoveView(i=>this._onDidRemoveView.fire(i)))}get paneview(){return this._paneview}get minimumSize(){return this.paneview.minimumSize}get maximumSize(){return this.paneview.maximumSize}get height(){return this.paneview.orientation===An.HORIZONTAL?this.paneview.orthogonalSize:this.paneview.size}get width(){return this.paneview.orientation===An.HORIZONTAL?this.paneview.size:this.paneview.orthogonalSize}get options(){return this._options}constructor(n){super(n.parentElement,n.disableAutoResizing),this._id=A9.next(),this._disposable=new ys,this._viewDisposables=new Map,this._onDidLayoutfromJSON=new _t,this.onDidLayoutFromJSON=this._onDidLayoutfromJSON.event,this._onDidLayoutChange=new _t,this.onDidLayoutChange=this._onDidLayoutChange.event,this._onDidDrop=new _t,this.onDidDrop=this._onDidDrop.event,this._onDidAddView=new _t,this.onDidAddView=this._onDidAddView.event,this._onDidRemoveView=new _t,this.onDidRemoveView=this._onDidRemoveView.event,this.addDisposables(this._onDidLayoutChange,this._onDidLayoutfromJSON,this._onDidDrop,this._onDidAddView,this._onDidRemoveView),this._options=n,n.components||(n.components={}),n.frameworkComponents||(n.frameworkComponents={}),this.paneview=new SS(this.element,{orientation:An.VERTICAL}),this.addDisposables(this._disposable)}focus(){}updateOptions(n){this._options=Object.assign(Object.assign({},this.options),n)}addPanel(n){var i,r,a,s;const o=ps(n.id,n.component,(i=this.options.components)!==null&&i!==void 0?i:{},(r=this.options.frameworkComponents)!==null&&r!==void 0?r:{},this.options.frameworkWrapper?{createComponent:this.options.frameworkWrapper.body.createComponent}:void 0);let l;n.headerComponent?l=ps(n.id,n.headerComponent,(a=this.options.headerComponents)!==null&&a!==void 0?a:{},this.options.headerframeworkComponents,this.options.frameworkWrapper?{createComponent:this.options.frameworkWrapper.header.createComponent}:void 0):l=new MS;const c=new LS({id:n.id,component:n.component,headerComponent:n.headerComponent,header:l,body:o,orientation:An.VERTICAL,isExpanded:!!n.isExpanded,disableDnd:!!this.options.disableDnd,accessor:this});this.doAddPanel(c);const u=typeof n.size=="number"?n.size:Ga.Distribute,d=typeof n.index=="number"?n.index:void 0;return c.init({params:(s=n.params)!==null&&s!==void 0?s:{},minimumBodySize:n.minimumBodySize,maximumBodySize:n.maximumBodySize,isExpanded:n.isExpanded,title:n.title,containerApi:new Od(this)}),this.paneview.addPane(c,u,d),c.orientation=this.paneview.orientation,c}removePanel(n){const r=this.panels.findIndex(a=>a===n);this.paneview.removePane(r),this.doRemovePanel(n)}movePanel(n,i){this.paneview.moveView(n,i)}getPanel(n){return this.panels.find(i=>i.id===n)}layout(n,i){const[r,a]=this.paneview.orientation===An.HORIZONTAL?[n,i]:[i,n];this.paneview.layout(r,a)}toJSON(){const n=a=>a===Number.MAX_SAFE_INTEGER||a===Number.POSITIVE_INFINITY?void 0:a,i=a=>a<=0?void 0:a;return{views:this.paneview.getPanes().map((a,s)=>({size:this.paneview.getViewSize(s),data:a.toJSON(),minimumSize:i(a.minimumBodySize),maximumSize:n(a.maximumBodySize),expanded:a.isExpanded()})),size:this.paneview.size}}fromJSON(n){this.clear();const{views:i,size:r}=n,a=[],s=this.width,o=this.height;this.paneview=new SS(this.element,{orientation:An.VERTICAL,descriptor:{size:r,views:i.map(l=>{var c,u,d,h;const m=l.data,f=ps(m.id,m.component,(c=this.options.components)!==null&&c!==void 0?c:{},(u=this.options.frameworkComponents)!==null&&u!==void 0?u:{},this.options.frameworkWrapper?{createComponent:this.options.frameworkWrapper.body.createComponent}:void 0);let g;m.headerComponent?g=ps(m.id,m.headerComponent,(d=this.options.headerComponents)!==null&&d!==void 0?d:{},(h=this.options.headerframeworkComponents)!==null&&h!==void 0?h:{},this.options.frameworkWrapper?{createComponent:this.options.frameworkWrapper.header.createComponent}:void 0):g=new MS;const v=new LS({id:m.id,component:m.component,headerComponent:m.headerComponent,header:g,body:f,orientation:An.VERTICAL,isExpanded:!!l.expanded,disableDnd:!!this.options.disableDnd,accessor:this});return this.doAddPanel(v),a.push(()=>{var T;v.init({params:(T=m.params)!==null&&T!==void 0?T:{},minimumBodySize:l.minimumSize,maximumBodySize:l.maximumSize,title:m.title,isExpanded:!!l.expanded,containerApi:new Od(this)}),v.orientation=this.paneview.orientation}),setTimeout(()=>{this._onDidAddView.fire(v)},0),{size:l.size,view:v}})}}),this.layout(s,o),a.forEach(l=>l()),this._onDidLayoutfromJSON.fire()}clear(){for(const[n,i]of this._viewDisposables.entries())i.dispose();this._viewDisposables.clear(),this.paneview.dispose()}doAddPanel(n){const i=n.onDidDrop(r=>{this._onDidDrop.fire(r)});this._viewDisposables.set(n.id,i)}doRemovePanel(n){const i=this._viewDisposables.get(n.id);i&&(i.dispose(),this._viewDisposables.delete(n.id))}dispose(){super.dispose();for(const[n,i]of this._viewDisposables.entries())i.dispose();this._viewDisposables.clear(),this.paneview.dispose()}}class x9 extends ax{get priority(){return this._priority}set orientation(n){this._orientation=n}get orientation(){return this._orientation}get minimumSize(){const n=typeof this._minimumSize=="function"?this._minimumSize():this._minimumSize;return n!==this._evaluatedMinimumSize&&(this._evaluatedMinimumSize=n,this.updateConstraints()),n}get maximumSize(){const n=typeof this._maximumSize=="function"?this._maximumSize():this._maximumSize;return n!==this._evaluatedMaximumSize&&(this._evaluatedMaximumSize=n,this.updateConstraints()),n}get snap(){return this._snap}constructor(n,i){super(n,i,new bM(n)),this._evaluatedMinimumSize=0,this._evaluatedMaximumSize=Number.POSITIVE_INFINITY,this._minimumSize=0,this._maximumSize=Number.POSITIVE_INFINITY,this._snap=!1,this._onDidChange=new _t,this.onDidChange=this._onDidChange.event,this.api.initialize(this),this.addDisposables(this._onDidChange,this.api.onDidHiddenChange(r=>{const{isHidden:a}=r,{accessor:s}=this._params;s.setVisible(this,!a)}),this.api.onActiveChange(()=>{const{accessor:r}=this._params;r.setActive(this)}),this.api.onDidConstraintsChangeInternal(r=>{(typeof r.minimumSize=="number"||typeof r.minimumSize=="function")&&(this._minimumSize=r.minimumSize),(typeof r.maximumSize=="number"||typeof r.maximumSize=="function")&&(this._maximumSize=r.maximumSize),this.updateConstraints()}),this.api.onDidSizeChange(r=>{this._onDidChange.fire({size:r.size})}))}setVisible(n){this.api._onDidVisibilityChange.fire({isVisible:n})}setActive(n){this.api._onDidActiveChange.fire({isActive:n})}layout(n,i){const[r,a]=this.orientation===An.HORIZONTAL?[n,i]:[i,n];super.layout(r,a)}init(n){super.init(n),this._priority=n.priority,n.minimumSize&&(this._minimumSize=n.minimumSize),n.maximumSize&&(this._maximumSize=n.maximumSize),n.snap&&(this._snap=n.snap)}toJSON(){const n=r=>r===Number.MAX_SAFE_INTEGER||r===Number.POSITIVE_INFINITY?void 0:r,i=r=>r<=0?void 0:r;return Object.assign(Object.assign({},super.toJSON()),{minimumSize:i(this.minimumSize),maximumSize:n(this.maximumSize)})}updateConstraints(){this.api._onDidConstraintsChange.fire({maximumSize:this._evaluatedMaximumSize,minimumSize:this._evaluatedMinimumSize})}}const AM=(e,n)=>{const[i,r]=ut.useState(),a=ut.useRef(e.componentProps);return ut.useImperativeHandle(n,()=>({update:s=>{a.current=Object.assign(Object.assign({},a.current),s),r(Date.now())}}),[]),ut.createElement(e.component,a.current)};AM.displayName="DockviewReactJsBridge";const C9=(()=>{let e=1;return{next:()=>`dockview_react_portal_key_${(e++).toString()}`}})(),S9=ut.createContext({});class fu{constructor(n,i,r,a,s){this.parent=n,this.portalStore=i,this.component=r,this.parameters=a,this.context=s,this._initialProps={},this.disposed=!1,this.createPortal()}update(n){if(this.disposed)throw new Error("invalid operation: resource is already disposed");this.componentInstance?this.componentInstance.update(n):this._initialProps=Object.assign(Object.assign({},this._initialProps),n)}createPortal(){if(this.disposed)throw new Error("invalid operation: resource is already disposed");if(!T9(this.component))throw new Error("Dockview: Only React.memo(...), React.ForwardRef(...) and functional components are accepted as components");const n=ut.createElement(ut.forwardRef(AM),{component:this.component,componentProps:this.parameters,ref:a=>{this.componentInstance=a,Object.keys(this._initialProps).length>0&&(this.componentInstance.update(this._initialProps),this._initialProps={})}}),i=this.context?ut.createElement(S9.Provider,{value:this.context},n):n,r=rM.createPortal(i,this.parent,C9.next());this.ref={portal:r,disposable:this.portalStore.addPortal(r)}}dispose(){var n;(n=this.ref)===null||n===void 0||n.disposable.dispose(),this.disposed=!0}}const sg=()=>{const[e,n]=ut.useState([]);ut.useDebugValue(`Portal count: ${e.length}`);const i=ut.useCallback(r=>{n(s=>[...s,r]);let a=!1;return{dispose:()=>{if(a)throw new Error("invalid operation: resource already disposed");a=!0,n(s=>s.filter(o=>o!==r))}}},[]);return[e,i]};function T9(e){return typeof e=="function"||!!(e!=null&&e.$$typeof)}class k9{get element(){return this._element}constructor(n,i,r){this.id=n,this.component=i,this.reactPortalStore=r,this._onDidFocus=new _t,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new _t,this.onDidBlur=this._onDidBlur.event,this._element=document.createElement("div"),this._element.className="dockview-react-part"}focus(){}init(n){this.part=new fu(this.element,this.reactPortalStore,this.component,{params:n.params,api:n.api,containerApi:n.containerApi})}update(n){var i;(i=this.part)===null||i===void 0||i.update(n.params)}layout(n,i){}dispose(){var n;this._onDidFocus.dispose(),this._onDidBlur.dispose(),(n=this.part)===null||n===void 0||n.dispose()}}class D9{get element(){return this._element}constructor(n,i,r){this.id=n,this.component=i,this.reactPortalStore=r,this._element=document.createElement("div"),this._element.className="dockview-react-part"}focus(){}init(n){this.part=new fu(this.element,this.reactPortalStore,this.component,{params:n.params,api:n.api,containerApi:n.containerApi})}update(n){var i;(i=this.part)===null||i===void 0||i.update(n.params)}layout(n,i){}dispose(){var n;(n=this.part)===null||n===void 0||n.dispose()}}class N9{get element(){return this._element}constructor(n,i,r){this.id=n,this.component=i,this.reactPortalStore=r,this._element=document.createElement("div"),this._element.className="dockview-react-part"}init(n){this.part=new fu(this.element,this.reactPortalStore,this.component,{group:n.group,containerApi:n.containerApi,close:()=>{n.group&&n.containerApi.removeGroup(n.group)}})}focus(){}update(n){var i,r,a;this.parameters&&(this.parameters.params=n.params),(i=this.part)===null||i===void 0||i.update({params:(a=(r=this.parameters)===null||r===void 0?void 0:r.params)!==null&&a!==void 0?a:{}})}layout(n,i){}updateParentGroup(n,i){}dispose(){var n;(n=this.part)===null||n===void 0||n.dispose()}}class I9{get element(){return this._element}get part(){return this._part}get group(){return this._group}constructor(n,i,r){this.component=n,this.reactPortalStore=i,this._group=r,this.mutableDisposable=new ys,this._element=document.createElement("div"),this._element.className="dockview-react-part"}focus(){}init(n){this.mutableDisposable.value=new Gn(this._group.model.onDidAddPanel(()=>{this.updatePanels()}),this._group.model.onDidRemovePanel(()=>{this.updatePanels()}),this._group.model.onDidActivePanelChange(()=>{this.updateActivePanel()}),n.api.onDidActiveChange(()=>{this.updateGroupActive()})),this._part=new fu(this.element,this.reactPortalStore,this.component,{api:n.api,containerApi:n.containerApi,panels:this._group.model.panels,activePanel:this._group.model.activePanel,isGroupActive:this._group.api.isActive,group:this._group})}update(n){var i;(i=this._part)===null||i===void 0||i.update(n.params)}dispose(){var n;this.mutableDisposable.dispose(),(n=this._part)===null||n===void 0||n.dispose()}updatePanels(){this.update({params:{panels:this._group.model.panels}})}updateActivePanel(){this.update({params:{activePanel:this._group.model.activePanel}})}updateGroupActive(){this.update({params:{isGroupActive:this._group.api.isActive}})}}function qu(e,n){return e?i=>new I9(e,n,i):void 0}const Op="props.defaultTabComponent",wM=ut.forwardRef((e,n)=>{const i=ut.useRef(null),r=ut.useRef(),[a,s]=sg();return ut.useImperativeHandle(n,()=>i.current,[]),ut.useEffect(()=>{var o;if(!i.current)return()=>{};const l={content:{createComponent:(m,f,g)=>new k9(f,g,{addPortal:s})},tab:{createComponent:(m,f,g)=>new D9(f,g,{addPortal:s})},watermark:{createComponent:(m,f,g)=>new N9(f,g,{addPortal:s})}},c=(o=e.tabComponents)!==null&&o!==void 0?o:{};e.defaultTabComponent&&(c[Op]=e.defaultTabComponent);const u=new y9({parentElement:i.current,frameworkComponentFactory:l,frameworkComponents:e.components,disableAutoResizing:e.disableAutoResizing,frameworkTabComponents:c,watermarkFrameworkComponent:e.watermarkComponent,defaultTabComponent:e.defaultTabComponent?Op:void 0,styles:e.hideBorders?{separatorBorder:"transparent"}:void 0,showDndOverlay:e.showDndOverlay,createLeftHeaderActionsElement:qu(e.leftHeaderActionsComponent,{addPortal:s}),createRightHeaderActionsElement:qu(e.rightHeaderActionsComponent,{addPortal:s}),createPrefixHeaderActionsElement:qu(e.prefixHeaderActionsComponent,{addPortal:s}),singleTabMode:e.singleTabMode,disableFloatingGroups:e.disableFloatingGroups,floatingGroupBounds:e.floatingGroupBounds,defaultRenderer:e.defaultRenderer,debug:e.debug,rootOverlayModel:e.rootOverlayModel,locked:e.locked,disableDnd:e.disableDnd}),{clientWidth:d,clientHeight:h}=i.current;return u.layout(d,h),e.onReady&&e.onReady({api:new Sf(u)}),r.current=u,()=>{u.dispose()}},[]),ut.useEffect(()=>{r.current&&(r.current.locked=!!e.locked)},[e.locked]),ut.useEffect(()=>{r.current&&r.current.updateOptions({disableDnd:e.disableDnd})},[e.disableDnd]),ut.useEffect(()=>{if(!r.current)return()=>{};const o=r.current.onDidDrop(l=>{e.onDidDrop&&e.onDidDrop(l)});return()=>{o.dispose()}},[e.onDidDrop]),ut.useEffect(()=>{if(!r.current)return()=>{};const o=r.current.onWillDrop(l=>{e.onWillDrop&&e.onWillDrop(l)});return()=>{o.dispose()}},[e.onWillDrop]),ut.useEffect(()=>{r.current&&r.current.updateOptions({frameworkComponents:e.components})},[e.components]),ut.useEffect(()=>{r.current&&r.current.updateOptions({floatingGroupBounds:e.floatingGroupBounds})},[e.floatingGroupBounds]),ut.useEffect(()=>{r.current&&r.current.updateOptions({watermarkFrameworkComponent:e.watermarkComponent})},[e.watermarkComponent]),ut.useEffect(()=>{r.current&&r.current.updateOptions({showDndOverlay:e.showDndOverlay})},[e.showDndOverlay]),ut.useEffect(()=>{r.current&&r.current.updateOptions({frameworkTabComponents:e.tabComponents})},[e.tabComponents]),ut.useEffect(()=>{r.current&&r.current.updateOptions({disableFloatingGroups:e.disableFloatingGroups})},[e.disableFloatingGroups]),ut.useEffect(()=>{var o;if(!r.current)return;const l=(o=e.tabComponents)!==null&&o!==void 0?o:{};e.defaultTabComponent&&(l[Op]=e.defaultTabComponent),r.current.updateOptions({defaultTabComponent:e.defaultTabComponent?Op:void 0,frameworkTabComponents:l})},[e.defaultTabComponent]),ut.useEffect(()=>{r.current&&r.current.updateOptions({createRightHeaderActionsElement:qu(e.rightHeaderActionsComponent,{addPortal:s})})},[e.rightHeaderActionsComponent]),ut.useEffect(()=>{r.current&&r.current.updateOptions({createLeftHeaderActionsElement:qu(e.leftHeaderActionsComponent,{addPortal:s})})},[e.leftHeaderActionsComponent]),ut.useEffect(()=>{r.current&&r.current.updateOptions({rootOverlayModel:e.rootOverlayModel})},[e.rootOverlayModel]),ut.useEffect(()=>{r.current&&r.current.updateOptions({createPrefixHeaderActionsElement:qu(e.prefixHeaderActionsComponent,{addPortal:s})})},[e.prefixHeaderActionsComponent]),ut.createElement("div",{className:e.className,style:{height:"100%",width:"100%"},ref:i},a)});wM.displayName="DockviewComponent";globalThis&&globalThis.__rest;class M9 extends x9{constructor(n,i,r,a){super(n,i),this.reactComponent=r,this.reactPortalStore=a}getComponent(){var n,i;return new fu(this.element,this.reactPortalStore,this.reactComponent,{params:(i=(n=this._params)===null||n===void 0?void 0:n.params)!==null&&i!==void 0?i:{},api:this.api,containerApi:new dM(this._params.accessor)})}}const L9=ut.forwardRef((e,n)=>{const i=ut.useRef(null),r=ut.useRef(),[a,s]=sg();return ut.useImperativeHandle(n,()=>i.current,[]),ut.useEffect(()=>{var o;const l=new E9({parentElement:i.current,disableAutoResizing:e.disableAutoResizing,orientation:(o=e.orientation)!==null&&o!==void 0?o:An.HORIZONTAL,frameworkComponents:e.components,frameworkWrapper:{createComponent:(d,h,m)=>new M9(d,h,m,{addPortal:s})},proportionalLayout:typeof e.proportionalLayout=="boolean"?e.proportionalLayout:!0,styles:e.hideBorders?{separatorBorder:"transparent"}:void 0}),{clientWidth:c,clientHeight:u}=i.current;return l.layout(c,u),e.onReady&&e.onReady({api:new dM(l)}),r.current=l,()=>{l.dispose()}},[]),ut.useEffect(()=>{r.current&&r.current.updateOptions({frameworkComponents:e.components})},[e.components]),ut.createElement("div",{className:e.className,style:{height:"100%",width:"100%"},ref:i},a)});L9.displayName="SplitviewComponent";class O9 extends yM{constructor(n,i,r,a){super(n,i),this.reactComponent=r,this.reactPortalStore=a}getComponent(){var n,i;return new fu(this.element,this.reactPortalStore,this.reactComponent,{params:(i=(n=this._params)===null||n===void 0?void 0:n.params)!==null&&i!==void 0?i:{},api:this.api,containerApi:new hM(this._params.accessor)})}}const xM=ut.forwardRef((e,n)=>{const i=ut.useRef(null),r=ut.useRef(),[a,s]=sg();return ut.useImperativeHandle(n,()=>i.current,[]),ut.useEffect(()=>{var o;if(!i.current)return()=>{};const l=new _9({parentElement:i.current,disableAutoResizing:e.disableAutoResizing,proportionalLayout:typeof e.proportionalLayout=="boolean"?e.proportionalLayout:!0,orientation:(o=e.orientation)!==null&&o!==void 0?o:An.HORIZONTAL,frameworkComponents:e.components,frameworkComponentFactory:{createComponent:(d,h,m)=>new O9(d,h,m,{addPortal:s})},styles:e.hideBorders?{separatorBorder:"transparent"}:void 0}),{clientWidth:c,clientHeight:u}=i.current;return l.layout(c,u),e.onReady&&e.onReady({api:new hM(l)}),r.current=l,()=>{l.dispose()}},[]),ut.useEffect(()=>{r.current&&r.current.updateOptions({frameworkComponents:e.components})},[e.components]),ut.createElement("div",{className:e.className,style:{height:"100%",width:"100%"},ref:i},a)});xM.displayName="GridviewComponent";class R9{get element(){return this._element}constructor(n,i,r){this.id=n,this.component=i,this.reactPortalStore=r,this._element=document.createElement("div"),this._element.style.height="100%",this._element.style.width="100%"}init(n){this.part=new fu(this.element,this.reactPortalStore,this.component,{params:n.params,api:n.api,title:n.title,containerApi:n.containerApi})}toJSON(){return{id:this.id}}update(n){var i;(i=this.part)===null||i===void 0||i.update(n.params)}dispose(){var n;(n=this.part)===null||n===void 0||n.dispose()}}const P9=ut.forwardRef((e,n)=>{const i=ut.useRef(null),r=ut.useRef(),[a,s]=sg();return ut.useImperativeHandle(n,()=>i.current,[]),ut.useEffect(()=>{const o=(h,m,f)=>new R9(h,f,{addPortal:s}),l=new w9({parentElement:i.current,disableAutoResizing:e.disableAutoResizing,frameworkComponents:e.components,components:{},headerComponents:{},disableDnd:e.disableDnd,headerframeworkComponents:e.headerComponents,frameworkWrapper:{header:{createComponent:o},body:{createComponent:o}},showDndOverlay:e.showDndOverlay}),c=new Od(l),{clientWidth:u,clientHeight:d}=i.current;return l.layout(u,d),e.onReady&&e.onReady({api:c}),r.current=l,()=>{l.dispose()}},[]),ut.useEffect(()=>{r.current&&r.current.updateOptions({frameworkComponents:e.components})},[e.components]),ut.useEffect(()=>{r.current&&r.current.updateOptions({headerframeworkComponents:e.headerComponents})},[e.headerComponents]),ut.useEffect(()=>{if(!r.current)return()=>{};const o=r.current,l=o.onDidDrop(c=>{e.onDidDrop&&e.onDidDrop(Object.assign(Object.assign({},c),{api:new Od(o)}))});return()=>{l.dispose()}},[e.onDidDrop]),ut.useEffect(()=>{r.current&&r.current.updateOptions({showDndOverlay:e.showDndOverlay})},[e.showDndOverlay]),ut.createElement("div",{className:e.className,style:{height:"100%",width:"100%"},ref:i},a)});P9.displayName="PaneviewComponent";const B9=/^(---)$.+?^(---)$.+?/ims;//! moment.js -//! version : 2.30.1 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var CM;function Xt(){return CM.apply(null,arguments)}function F9(e){CM=e}function Ws(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Zc(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ei(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function lx(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var n;for(n in e)if(ei(e,n))return!1;return!0}function pa(e){return e===void 0}function rl(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Yf(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function SM(e,n){var i=[],r,a=e.length;for(r=0;r>>0,r;for(r=0;r0)for(i=0;i=0;return(s?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var hx=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Rp=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zv={},Ed={};function mn(e,n,i,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Ed[e]=a),n&&(Ed[n[0]]=function(){return yo(a.apply(this,arguments),n[1],n[2])}),i&&(Ed[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function G9(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V9(e){var n=e.match(hx),i,r;for(i=0,r=n.length;i=0&&Rp.test(e);)e=e.replace(Rp,r),Rp.lastIndex=0,i-=1;return e}var W9={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Q9(e){var n=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return n||!i?n:(this._longDateFormat[e]=i.match(hx).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var j9="Invalid date";function Y9(){return this._invalidDate}var K9="%d",X9=/\d{1,2}/;function $9(e){return this._ordinal.replace("%d",e)}var Z9={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J9(e,n,i,r){var a=this._relativeTime[i];return Ao(a)?a(e,n,i,r):a.replace(/%d/i,e)}function eF(e,n){var i=this._relativeTime[e>0?"future":"past"];return Ao(i)?i(n):i.replace(/%s/i,n)}var PS={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Cs(e){return typeof e=="string"?PS[e]||PS[e.toLowerCase()]:void 0}function fx(e){var n={},i,r;for(r in e)ei(e,r)&&(i=Cs(r),i&&(n[i]=e[r]));return n}var tF={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function nF(e){var n=[],i;for(i in e)ei(e,i)&&n.push({unit:i,priority:tF[i]});return n.sort(function(r,a){return r.priority-a.priority}),n}var NM=/\d/,$a=/\d\d/,IM=/\d{3}/,px=/\d{4}/,lg=/[+-]?\d{6}/,Ri=/\d\d?/,MM=/\d\d\d\d?/,LM=/\d\d\d\d\d\d?/,cg=/\d{1,3}/,mx=/\d{1,4}/,ug=/[+-]?\d{1,6}/,Qd=/\d+/,dg=/[+-]?\d+/,iF=/Z|[+-]\d\d:?\d\d/gi,hg=/Z|[+-]\d\d(?::?\d\d)?/gi,rF=/[+-]?\d+(\.\d{1,3})?/,Xf=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,jd=/^[1-9]\d?/,gx=/^([1-9]\d|\d)/,a0;a0={};function tn(e,n,i){a0[e]=Ao(n)?n:function(r,a){return r&&i?i:n}}function aF(e,n){return ei(a0,e)?a0[e](n._strict,n._locale):new RegExp(sF(e))}function sF(e){return $o(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,i,r,a,s){return i||r||a||s}))}function $o(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ds(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Wn(e){var n=+e,i=0;return n!==0&&isFinite(n)&&(i=ds(n)),i}var nA={};function yi(e,n){var i,r=n,a;for(typeof e=="string"&&(e=[e]),rl(n)&&(r=function(s,o){o[n]=Wn(s)}),a=e.length,i=0;i68?1900:2e3)};var OM=Yd("FullYear",!0);function uF(){return fg(this.year())}function Yd(e,n){return function(i){return i!=null?(RM(this,e,i),Xt.updateOffset(this,n),this):Tf(this,e)}}function Tf(e,n){if(!e.isValid())return NaN;var i=e._d,r=e._isUTC;switch(n){case"Milliseconds":return r?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return r?i.getUTCSeconds():i.getSeconds();case"Minutes":return r?i.getUTCMinutes():i.getMinutes();case"Hours":return r?i.getUTCHours():i.getHours();case"Date":return r?i.getUTCDate():i.getDate();case"Day":return r?i.getUTCDay():i.getDay();case"Month":return r?i.getUTCMonth():i.getMonth();case"FullYear":return r?i.getUTCFullYear():i.getFullYear();default:return NaN}}function RM(e,n,i){var r,a,s,o,l;if(!(!e.isValid()||isNaN(i))){switch(r=e._d,a=e._isUTC,n){case"Milliseconds":return void(a?r.setUTCMilliseconds(i):r.setMilliseconds(i));case"Seconds":return void(a?r.setUTCSeconds(i):r.setSeconds(i));case"Minutes":return void(a?r.setUTCMinutes(i):r.setMinutes(i));case"Hours":return void(a?r.setUTCHours(i):r.setHours(i));case"Date":return void(a?r.setUTCDate(i):r.setDate(i));case"FullYear":break;default:return}s=i,o=e.month(),l=e.date(),l=l===29&&o===1&&!fg(s)?28:l,a?r.setUTCFullYear(s,o,l):r.setFullYear(s,o,l)}}function dF(e){return e=Cs(e),Ao(this[e])?this[e]():this}function hF(e,n){if(typeof e=="object"){e=fx(e);var i=nF(e),r,a=i.length;for(r=0;r=0?(l=new Date(e+400,n,i,r,a,s,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,n,i,r,a,s,o),l}function kf(e){var n,i;return e<100&&e>=0?(i=Array.prototype.slice.call(arguments),i[0]=e+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function s0(e,n,i){var r=7+n-i,a=(7+kf(e,0,r).getUTCDay()-n)%7;return-a+r-1}function qM(e,n,i,r,a){var s=(7+i-r)%7,o=s0(e,r,a),l=1+7*(n-1)+s+o,c,u;return l<=0?(c=e-1,u=Yh(c)+l):l>Yh(e)?(c=e+1,u=l-Yh(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Df(e,n,i){var r=s0(e.year(),n,i),a=Math.floor((e.dayOfYear()-r-1)/7)+1,s,o;return a<1?(o=e.year()-1,s=a+Zo(o,n,i)):a>Zo(e.year(),n,i)?(s=a-Zo(e.year(),n,i),o=e.year()+1):(o=e.year(),s=a),{week:s,year:o}}function Zo(e,n,i){var r=s0(e,n,i),a=s0(e+1,n,i);return(Yh(e)-r+a)/7}mn("w",["ww",2],"wo","week");mn("W",["WW",2],"Wo","isoWeek");tn("w",Ri,jd);tn("ww",Ri,$a);tn("W",Ri,jd);tn("WW",Ri,$a);$f(["w","ww","W","WW"],function(e,n,i,r){n[r.substr(0,1)]=Wn(e)});function CF(e){return Df(e,this._week.dow,this._week.doy).week}var SF={dow:0,doy:6};function TF(){return this._week.dow}function kF(){return this._week.doy}function DF(e){var n=this.localeData().week(this);return e==null?n:this.add((e-n)*7,"d")}function NF(e){var n=Df(this,1,4).week;return e==null?n:this.add((e-n)*7,"d")}mn("d",0,"do","day");mn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});mn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});mn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});mn("e",0,0,"weekday");mn("E",0,0,"isoWeekday");tn("d",Ri);tn("e",Ri);tn("E",Ri);tn("dd",function(e,n){return n.weekdaysMinRegex(e)});tn("ddd",function(e,n){return n.weekdaysShortRegex(e)});tn("dddd",function(e,n){return n.weekdaysRegex(e)});$f(["dd","ddd","dddd"],function(e,n,i,r){var a=i._locale.weekdaysParse(e,r,i._strict);a!=null?n.d=a:On(i).invalidWeekday=e});$f(["d","e","E"],function(e,n,i,r){n[r]=Wn(e)});function IF(e,n){return typeof e!="string"?e:isNaN(e)?(e=n.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function MF(e,n){return typeof e=="string"?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function bx(e,n){return e.slice(n,7).concat(e.slice(0,n))}var LF="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),UM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),OF="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),RF=Xf,PF=Xf,BF=Xf;function FF(e,n){var i=Ws(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return e===!0?bx(i,this._week.dow):e?i[e.day()]:i}function HF(e){return e===!0?bx(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zF(e){return e===!0?bx(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function qF(e,n,i){var r,a,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=Eo([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return i?n==="dddd"?(a=rr.call(this._weekdaysParse,o),a!==-1?a:null):n==="ddd"?(a=rr.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=rr.call(this._minWeekdaysParse,o),a!==-1?a:null):n==="dddd"?(a=rr.call(this._weekdaysParse,o),a!==-1||(a=rr.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=rr.call(this._minWeekdaysParse,o),a!==-1?a:null)):n==="ddd"?(a=rr.call(this._shortWeekdaysParse,o),a!==-1||(a=rr.call(this._weekdaysParse,o),a!==-1)?a:(a=rr.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=rr.call(this._minWeekdaysParse,o),a!==-1||(a=rr.call(this._weekdaysParse,o),a!==-1)?a:(a=rr.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function UF(e,n,i){var r,a,s;if(this._weekdaysParseExact)return qF.call(this,e,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Eo([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),i&&n==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(i&&n==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(i&&n==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!i&&this._weekdaysParse[r].test(e))return r}}function GF(e){if(!this.isValid())return e!=null?this:NaN;var n=Tf(this,"Day");return e!=null?(e=IF(e,this.localeData()),this.add(e-n,"d")):n}function VF(e){if(!this.isValid())return e!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return e==null?n:this.add(e-n,"d")}function WF(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var n=MF(e,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function QF(e){return this._weekdaysParseExact?(ei(this,"_weekdaysRegex")||yx.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ei(this,"_weekdaysRegex")||(this._weekdaysRegex=RF),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function jF(e){return this._weekdaysParseExact?(ei(this,"_weekdaysRegex")||yx.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ei(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=PF),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function YF(e){return this._weekdaysParseExact?(ei(this,"_weekdaysRegex")||yx.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ei(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=BF),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yx(){function e(d,h){return h.length-d.length}var n=[],i=[],r=[],a=[],s,o,l,c,u;for(s=0;s<7;s++)o=Eo([2e3,1]).day(s),l=$o(this.weekdaysMin(o,"")),c=$o(this.weekdaysShort(o,"")),u=$o(this.weekdays(o,"")),n.push(l),i.push(c),r.push(u),a.push(l),a.push(c),a.push(u);n.sort(e),i.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function _x(){return this.hours()%12||12}function KF(){return this.hours()||24}mn("H",["HH",2],0,"hour");mn("h",["hh",2],0,_x);mn("k",["kk",2],0,KF);mn("hmm",0,0,function(){return""+_x.apply(this)+yo(this.minutes(),2)});mn("hmmss",0,0,function(){return""+_x.apply(this)+yo(this.minutes(),2)+yo(this.seconds(),2)});mn("Hmm",0,0,function(){return""+this.hours()+yo(this.minutes(),2)});mn("Hmmss",0,0,function(){return""+this.hours()+yo(this.minutes(),2)+yo(this.seconds(),2)});function GM(e,n){mn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}GM("a",!0);GM("A",!1);function VM(e,n){return n._meridiemParse}tn("a",VM);tn("A",VM);tn("H",Ri,gx);tn("h",Ri,jd);tn("k",Ri,jd);tn("HH",Ri,$a);tn("hh",Ri,$a);tn("kk",Ri,$a);tn("hmm",MM);tn("hmmss",LM);tn("Hmm",MM);tn("Hmmss",LM);yi(["H","HH"],gr);yi(["k","kk"],function(e,n,i){var r=Wn(e);n[gr]=r===24?0:r});yi(["a","A"],function(e,n,i){i._isPm=i._locale.isPM(e),i._meridiem=e});yi(["h","hh"],function(e,n,i){n[gr]=Wn(e),On(i).bigHour=!0});yi("hmm",function(e,n,i){var r=e.length-2;n[gr]=Wn(e.substr(0,r)),n[zs]=Wn(e.substr(r)),On(i).bigHour=!0});yi("hmmss",function(e,n,i){var r=e.length-4,a=e.length-2;n[gr]=Wn(e.substr(0,r)),n[zs]=Wn(e.substr(r,2)),n[Ko]=Wn(e.substr(a)),On(i).bigHour=!0});yi("Hmm",function(e,n,i){var r=e.length-2;n[gr]=Wn(e.substr(0,r)),n[zs]=Wn(e.substr(r))});yi("Hmmss",function(e,n,i){var r=e.length-4,a=e.length-2;n[gr]=Wn(e.substr(0,r)),n[zs]=Wn(e.substr(r,2)),n[Ko]=Wn(e.substr(a))});function XF(e){return(e+"").toLowerCase().charAt(0)==="p"}var $F=/[ap]\.?m?\.?/i,ZF=Yd("Hours",!0);function JF(e,n,i){return e>11?i?"pm":"PM":i?"am":"AM"}var WM={calendar:q9,longDateFormat:W9,invalidDate:j9,ordinal:K9,dayOfMonthOrdinalParse:X9,relativeTime:Z9,months:pF,monthsShort:PM,week:SF,weekdays:LF,weekdaysMin:OF,weekdaysShort:UM,meridiemParse:$F},zi={},vh={},Nf;function eH(e,n){var i,r=Math.min(e.length,n.length);for(i=0;i0;){if(a=pg(s.slice(0,i).join("-")),a)return a;if(r&&r.length>=i&&eH(s,r)>=i-1)break;i--}n++}return Nf}function nH(e){return!!(e&&e.match("^[^/\\\\]*$"))}function pg(e){var n=null,i;if(zi[e]===void 0&&typeof Im<"u"&&Im&&Im.exports&&nH(e))try{n=Nf._abbr,i=require,i("./locale/"+e),Zl(n)}catch{zi[e]=null}return zi[e]}function Zl(e,n){var i;return e&&(pa(n)?i=ul(e):i=Ex(e,n),i?Nf=i:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Nf._abbr}function Ex(e,n){if(n!==null){var i,r=WM;if(n.abbr=e,zi[e]!=null)kM("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=zi[e]._config;else if(n.parentLocale!=null)if(zi[n.parentLocale]!=null)r=zi[n.parentLocale]._config;else if(i=pg(n.parentLocale),i!=null)r=i._config;else return vh[n.parentLocale]||(vh[n.parentLocale]=[]),vh[n.parentLocale].push({name:e,config:n}),null;return zi[e]=new dx(eA(r,n)),vh[e]&&vh[e].forEach(function(a){Ex(a.name,a.config)}),Zl(e),zi[e]}else return delete zi[e],null}function iH(e,n){if(n!=null){var i,r,a=WM;zi[e]!=null&&zi[e].parentLocale!=null?zi[e].set(eA(zi[e]._config,n)):(r=pg(e),r!=null&&(a=r._config),n=eA(a,n),r==null&&(n.abbr=e),i=new dx(n),i.parentLocale=zi[e],zi[e]=i),Zl(e)}else zi[e]!=null&&(zi[e].parentLocale!=null?(zi[e]=zi[e].parentLocale,e===Zl()&&Zl(e)):zi[e]!=null&&delete zi[e]);return zi[e]}function ul(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Nf;if(!Ws(e)){if(n=pg(e),n)return n;e=[e]}return tH(e)}function rH(){return tA(zi)}function Ax(e){var n,i=e._a;return i&&On(e).overflow===-2&&(n=i[Yo]<0||i[Yo]>11?Yo:i[lo]<1||i[lo]>vx(i[Ur],i[Yo])?lo:i[gr]<0||i[gr]>24||i[gr]===24&&(i[zs]!==0||i[Ko]!==0||i[Qc]!==0)?gr:i[zs]<0||i[zs]>59?zs:i[Ko]<0||i[Ko]>59?Ko:i[Qc]<0||i[Qc]>999?Qc:-1,On(e)._overflowDayOfYear&&(nlo)&&(n=lo),On(e)._overflowWeeks&&n===-1&&(n=lF),On(e)._overflowWeekday&&n===-1&&(n=cF),On(e).overflow=n),e}var aH=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sH=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oH=/Z|[+-]\d\d(?::?\d\d)?/,Pp=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],qv=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],lH=/^\/?Date\((-?\d+)/i,cH=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,uH={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function QM(e){var n,i,r=e._i,a=aH.exec(r)||sH.exec(r),s,o,l,c,u=Pp.length,d=qv.length;if(a){for(On(e).iso=!0,n=0,i=u;nYh(o)||e._dayOfYear===0)&&(On(e)._overflowDayOfYear=!0),i=kf(o,0,e._dayOfYear),e._a[Yo]=i.getUTCMonth(),e._a[lo]=i.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=r[n]=a[n];for(;n<7;n++)e._a[n]=r[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[gr]===24&&e._a[zs]===0&&e._a[Ko]===0&&e._a[Qc]===0&&(e._nextDay=!0,e._a[gr]=0),e._d=(e._useUTC?kf:xF).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[gr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(On(e).weekdayMismatch=!0)}}function bH(e){var n,i,r,a,s,o,l,c,u;n=e._w,n.GG!=null||n.W!=null||n.E!=null?(s=1,o=4,i=Yu(n.GG,e._a[Ur],Df(Oi(),1,4).year),r=Yu(n.W,1),a=Yu(n.E,1),(a<1||a>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,u=Df(Oi(),s,o),i=Yu(n.gg,e._a[Ur],u.year),r=Yu(n.w,u.week),n.d!=null?(a=n.d,(a<0||a>6)&&(c=!0)):n.e!=null?(a=n.e+s,(n.e<0||n.e>6)&&(c=!0)):a=s),r<1||r>Zo(i,s,o)?On(e)._overflowWeeks=!0:c!=null?On(e)._overflowWeekday=!0:(l=qM(i,r,a,s,o),e._a[Ur]=l.year,e._dayOfYear=l.dayOfYear)}Xt.ISO_8601=function(){};Xt.RFC_2822=function(){};function xx(e){if(e._f===Xt.ISO_8601){QM(e);return}if(e._f===Xt.RFC_2822){jM(e);return}e._a=[],On(e).empty=!0;var n=""+e._i,i,r,a,s,o,l=n.length,c=0,u,d;for(a=DM(e._f,e._locale).match(hx)||[],d=a.length,i=0;i0&&On(e).unusedInput.push(o),n=n.slice(n.indexOf(r)+r.length),c+=r.length),Ed[s]?(r?On(e).empty=!1:On(e).unusedTokens.push(s),oF(s,r,e)):e._strict&&!r&&On(e).unusedTokens.push(s);On(e).charsLeftOver=l-c,n.length>0&&On(e).unusedInput.push(n),e._a[gr]<=12&&On(e).bigHour===!0&&e._a[gr]>0&&(On(e).bigHour=void 0),On(e).parsedDateParts=e._a.slice(0),On(e).meridiem=e._meridiem,e._a[gr]=yH(e._locale,e._a[gr],e._meridiem),u=On(e).era,u!==null&&(e._a[Ur]=e._locale.erasConvertYear(u,e._a[Ur])),wx(e),Ax(e)}function yH(e,n,i){var r;return i==null?n:e.meridiemHour!=null?e.meridiemHour(n,i):(e.isPM!=null&&(r=e.isPM(i),r&&n<12&&(n+=12),!r&&n===12&&(n=0)),n)}function _H(e){var n,i,r,a,s,o,l=!1,c=e._f.length;if(c===0){On(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:og()});function XM(e,n){var i,r;if(n.length===1&&Ws(n[0])&&(n=n[0]),!n.length)return Oi();for(i=n[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qH(){if(!pa(this._isDSTShifted))return this._isDSTShifted;var e={},n;return ux(e,this),e=YM(e),e._a?(n=e._isUTC?Eo(e._a):Oi(e._a),this._isDSTShifted=this.isValid()&&MH(e._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function UH(){return this.isValid()?!this._isUTC:!1}function GH(){return this.isValid()?this._isUTC:!1}function ZM(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VH=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,WH=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function js(e,n){var i=e,r=null,a,s,o;return ym(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:rl(e)||!isNaN(+e)?(i={},n?i[n]=+e:i.milliseconds=+e):(r=VH.exec(e))?(a=r[1]==="-"?-1:1,i={y:0,d:Wn(r[lo])*a,h:Wn(r[gr])*a,m:Wn(r[zs])*a,s:Wn(r[Ko])*a,ms:Wn(iA(r[Qc]*1e3))*a}):(r=WH.exec(e))?(a=r[1]==="-"?-1:1,i={y:Nc(r[2],a),M:Nc(r[3],a),w:Nc(r[4],a),d:Nc(r[5],a),h:Nc(r[6],a),m:Nc(r[7],a),s:Nc(r[8],a)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=QH(Oi(i.from),Oi(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),s=new mg(i),ym(e)&&ei(e,"_locale")&&(s._locale=e._locale),ym(e)&&ei(e,"_isValid")&&(s._isValid=e._isValid),s}js.fn=mg.prototype;js.invalid=IH;function Nc(e,n){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*n}function FS(e,n){var i={};return i.months=n.month()-e.month()+(n.year()-e.year())*12,e.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+e.clone().add(i.months,"M"),i}function QH(e,n){var i;return e.isValid()&&n.isValid()?(n=Sx(n,e),e.isBefore(n)?i=FS(e,n):(i=FS(n,e),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function JM(e,n){return function(i,r){var a,s;return r!==null&&!isNaN(+r)&&(kM(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=i,i=r,r=s),a=js(i,r),eL(this,a,e),this}}function eL(e,n,i,r){var a=n._milliseconds,s=iA(n._days),o=iA(n._months);e.isValid()&&(r=r??!0,o&&FM(e,Tf(e,"Month")+o*i),s&&RM(e,"Date",Tf(e,"Date")+s*i),a&&e._d.setTime(e._d.valueOf()+a*i),r&&Xt.updateOffset(e,s||o))}var jH=JM(1,"add"),YH=JM(-1,"subtract");function tL(e){return typeof e=="string"||e instanceof String}function KH(e){return Qs(e)||Yf(e)||tL(e)||rl(e)||$H(e)||XH(e)||e===null||e===void 0}function XH(e){var n=Zc(e)&&!lx(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,s,o=r.length;for(a=0;ai.valueOf():i.valueOf()9999?bm(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ao(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",bm(i,"Z")):bm(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function dz(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",n="",i,r,a,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),i="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",s=n+'[")]',this.format(i+r+a+s)}function hz(e){e||(e=this.isUtc()?Xt.defaultFormatUtc:Xt.defaultFormat);var n=bm(this,e);return this.localeData().postformat(n)}function fz(e,n){return this.isValid()&&(Qs(e)&&e.isValid()||Oi(e).isValid())?js({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function pz(e){return this.from(Oi(),e)}function mz(e,n){return this.isValid()&&(Qs(e)&&e.isValid()||Oi(e).isValid())?js({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function gz(e){return this.to(Oi(),e)}function nL(e){var n;return e===void 0?this._locale._abbr:(n=ul(e),n!=null&&(this._locale=n),this)}var iL=xs("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function rL(){return this._locale}var o0=1e3,Ad=60*o0,l0=60*Ad,aL=(365*400+97)*24*l0;function wd(e,n){return(e%n+n)%n}function sL(e,n,i){return e<100&&e>=0?new Date(e+400,n,i)-aL:new Date(e,n,i).valueOf()}function oL(e,n,i){return e<100&&e>=0?Date.UTC(e+400,n,i)-aL:Date.UTC(e,n,i)}function vz(e){var n,i;if(e=Cs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?oL:sL,e){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=wd(n+(this._isUTC?0:this.utcOffset()*Ad),l0);break;case"minute":n=this._d.valueOf(),n-=wd(n,Ad);break;case"second":n=this._d.valueOf(),n-=wd(n,o0);break}return this._d.setTime(n),Xt.updateOffset(this,!0),this}function bz(e){var n,i;if(e=Cs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?oL:sL,e){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=l0-wd(n+(this._isUTC?0:this.utcOffset()*Ad),l0)-1;break;case"minute":n=this._d.valueOf(),n+=Ad-wd(n,Ad)-1;break;case"second":n=this._d.valueOf(),n+=o0-wd(n,o0)-1;break}return this._d.setTime(n),Xt.updateOffset(this,!0),this}function yz(){return this._d.valueOf()-(this._offset||0)*6e4}function _z(){return Math.floor(this.valueOf()/1e3)}function Ez(){return new Date(this.valueOf())}function Az(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wz(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xz(){return this.isValid()?this.toISOString():null}function Cz(){return cx(this)}function Sz(){return Hl({},On(this))}function Tz(){return On(this).overflow}function kz(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}mn("N",0,0,"eraAbbr");mn("NN",0,0,"eraAbbr");mn("NNN",0,0,"eraAbbr");mn("NNNN",0,0,"eraName");mn("NNNNN",0,0,"eraNarrow");mn("y",["y",1],"yo","eraYear");mn("y",["yy",2],0,"eraYear");mn("y",["yyy",3],0,"eraYear");mn("y",["yyyy",4],0,"eraYear");tn("N",Tx);tn("NN",Tx);tn("NNN",Tx);tn("NNNN",Hz);tn("NNNNN",zz);yi(["N","NN","NNN","NNNN","NNNNN"],function(e,n,i,r){var a=i._locale.erasParse(e,r,i._strict);a?On(i).era=a:On(i).invalidEra=e});tn("y",Qd);tn("yy",Qd);tn("yyy",Qd);tn("yyyy",Qd);tn("yo",qz);yi(["y","yy","yyy","yyyy"],Ur);yi(["yo"],function(e,n,i,r){var a;i._locale._eraYearOrdinalRegex&&(a=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?n[Ur]=i._locale.eraYearOrdinalParse(e,a):n[Ur]=parseInt(e,10)});function Dz(e,n){var i,r,a,s=this._eras||ul("en")._eras;for(i=0,r=s.length;i=0)return s[r]}function Iz(e,n){var i=e.since<=e.until?1:-1;return n===void 0?Xt(e.since).year():Xt(e.since).year()+(n-e.offset)*i}function Mz(){var e,n,i,r=this.localeData().eras();for(e=0,n=r.length;es&&(n=s),Yz.call(this,e,n,i,r,a))}function Yz(e,n,i,r,a){var s=qM(e,n,i,r,a),o=kf(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}mn("Q",0,"Qo","quarter");tn("Q",NM);yi("Q",function(e,n){n[Yo]=(Wn(e)-1)*3});function Kz(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}mn("D",["DD",2],"Do","date");tn("D",Ri,jd);tn("DD",Ri,$a);tn("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});yi(["D","DD"],lo);yi("Do",function(e,n){n[lo]=Wn(e.match(Ri)[0])});var cL=Yd("Date",!0);mn("DDD",["DDDD",3],"DDDo","dayOfYear");tn("DDD",cg);tn("DDDD",IM);yi(["DDD","DDDD"],function(e,n,i){i._dayOfYear=Wn(e)});function Xz(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?n:this.add(e-n,"d")}mn("m",["mm",2],0,"minute");tn("m",Ri,gx);tn("mm",Ri,$a);yi(["m","mm"],zs);var $z=Yd("Minutes",!1);mn("s",["ss",2],0,"second");tn("s",Ri,gx);tn("ss",Ri,$a);yi(["s","ss"],Ko);var Zz=Yd("Seconds",!1);mn("S",0,0,function(){return~~(this.millisecond()/100)});mn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});mn(0,["SSS",3],0,"millisecond");mn(0,["SSSS",4],0,function(){return this.millisecond()*10});mn(0,["SSSSS",5],0,function(){return this.millisecond()*100});mn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});mn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});mn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});mn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});tn("S",cg,NM);tn("SS",cg,$a);tn("SSS",cg,IM);var zl,uL;for(zl="SSSS";zl.length<=9;zl+="S")tn(zl,Qd);function Jz(e,n){n[Qc]=Wn(("0."+e)*1e3)}for(zl="S";zl.length<=9;zl+="S")yi(zl,Jz);uL=Yd("Milliseconds",!1);mn("z",0,0,"zoneAbbr");mn("zz",0,0,"zoneName");function eq(){return this._isUTC?"UTC":""}function tq(){return this._isUTC?"Coordinated Universal Time":""}var Bt=Kf.prototype;Bt.add=jH;Bt.calendar=ez;Bt.clone=tz;Bt.diff=lz;Bt.endOf=bz;Bt.format=hz;Bt.from=fz;Bt.fromNow=pz;Bt.to=mz;Bt.toNow=gz;Bt.get=dF;Bt.invalidAt=Tz;Bt.isAfter=nz;Bt.isBefore=iz;Bt.isBetween=rz;Bt.isSame=az;Bt.isSameOrAfter=sz;Bt.isSameOrBefore=oz;Bt.isValid=Cz;Bt.lang=iL;Bt.locale=nL;Bt.localeData=rL;Bt.max=CH;Bt.min=xH;Bt.parsingFlags=Sz;Bt.set=hF;Bt.startOf=vz;Bt.subtract=YH;Bt.toArray=Az;Bt.toObject=wz;Bt.toDate=Ez;Bt.toISOString=uz;Bt.inspect=dz;typeof Symbol<"u"&&Symbol.for!=null&&(Bt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Bt.toJSON=xz;Bt.toString=cz;Bt.unix=_z;Bt.valueOf=yz;Bt.creationData=kz;Bt.eraName=Mz;Bt.eraNarrow=Lz;Bt.eraAbbr=Oz;Bt.eraYear=Rz;Bt.year=OM;Bt.isLeapYear=uF;Bt.weekYear=Uz;Bt.isoWeekYear=Gz;Bt.quarter=Bt.quarters=Kz;Bt.month=HM;Bt.daysInMonth=EF;Bt.week=Bt.weeks=DF;Bt.isoWeek=Bt.isoWeeks=NF;Bt.weeksInYear=Qz;Bt.weeksInWeekYear=jz;Bt.isoWeeksInYear=Vz;Bt.isoWeeksInISOWeekYear=Wz;Bt.date=cL;Bt.day=Bt.days=GF;Bt.weekday=VF;Bt.isoWeekday=WF;Bt.dayOfYear=Xz;Bt.hour=Bt.hours=ZF;Bt.minute=Bt.minutes=$z;Bt.second=Bt.seconds=Zz;Bt.millisecond=Bt.milliseconds=uL;Bt.utcOffset=OH;Bt.utc=PH;Bt.local=BH;Bt.parseZone=FH;Bt.hasAlignedHourOffset=HH;Bt.isDST=zH;Bt.isLocal=UH;Bt.isUtcOffset=GH;Bt.isUtc=ZM;Bt.isUTC=ZM;Bt.zoneAbbr=eq;Bt.zoneName=tq;Bt.dates=xs("dates accessor is deprecated. Use date instead.",cL);Bt.months=xs("months accessor is deprecated. Use month instead",HM);Bt.years=xs("years accessor is deprecated. Use year instead",OM);Bt.zone=xs("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",RH);Bt.isDSTShifted=xs("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qH);function nq(e){return Oi(e*1e3)}function iq(){return Oi.apply(null,arguments).parseZone()}function dL(e){return e}var ti=dx.prototype;ti.calendar=U9;ti.longDateFormat=Q9;ti.invalidDate=Y9;ti.ordinal=$9;ti.preparse=dL;ti.postformat=dL;ti.relativeTime=J9;ti.pastFuture=eF;ti.set=z9;ti.eras=Dz;ti.erasParse=Nz;ti.erasConvertYear=Iz;ti.erasAbbrRegex=Bz;ti.erasNameRegex=Pz;ti.erasNarrowRegex=Fz;ti.months=vF;ti.monthsShort=bF;ti.monthsParse=_F;ti.monthsRegex=wF;ti.monthsShortRegex=AF;ti.week=CF;ti.firstDayOfYear=kF;ti.firstDayOfWeek=TF;ti.weekdays=FF;ti.weekdaysMin=zF;ti.weekdaysShort=HF;ti.weekdaysParse=UF;ti.weekdaysRegex=QF;ti.weekdaysShortRegex=jF;ti.weekdaysMinRegex=YF;ti.isPM=XF;ti.meridiem=JF;function c0(e,n,i,r){var a=ul(),s=Eo().set(r,n);return a[i](s,e)}function hL(e,n,i){if(rl(e)&&(n=e,e=void 0),e=e||"",n!=null)return c0(e,n,i,"month");var r,a=[];for(r=0;r<12;r++)a[r]=c0(e,r,i,"month");return a}function Dx(e,n,i,r){typeof e=="boolean"?(rl(n)&&(i=n,n=void 0),n=n||""):(n=e,i=n,e=!1,rl(n)&&(i=n,n=void 0),n=n||"");var a=ul(),s=e?a._week.dow:0,o,l=[];if(i!=null)return c0(n,(i+s)%7,r,"day");for(o=0;o<7;o++)l[o]=c0(n,(o+s)%7,r,"day");return l}function rq(e,n){return hL(e,n,"months")}function aq(e,n){return hL(e,n,"monthsShort")}function sq(e,n,i){return Dx(e,n,i,"weekdays")}function oq(e,n,i){return Dx(e,n,i,"weekdaysShort")}function lq(e,n,i){return Dx(e,n,i,"weekdaysMin")}Zl("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var n=e%10,i=Wn(e%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return e+i}});Xt.lang=xs("moment.lang is deprecated. Use moment.locale instead.",Zl);Xt.langData=xs("moment.langData is deprecated. Use moment.localeData instead.",ul);var Oo=Math.abs;function cq(){var e=this._data;return this._milliseconds=Oo(this._milliseconds),this._days=Oo(this._days),this._months=Oo(this._months),e.milliseconds=Oo(e.milliseconds),e.seconds=Oo(e.seconds),e.minutes=Oo(e.minutes),e.hours=Oo(e.hours),e.months=Oo(e.months),e.years=Oo(e.years),this}function fL(e,n,i,r){var a=js(n,i);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function uq(e,n){return fL(this,e,n,1)}function dq(e,n){return fL(this,e,n,-1)}function HS(e){return e<0?Math.floor(e):Math.ceil(e)}function hq(){var e=this._milliseconds,n=this._days,i=this._months,r=this._data,a,s,o,l,c;return e>=0&&n>=0&&i>=0||e<=0&&n<=0&&i<=0||(e+=HS(aA(i)+n)*864e5,n=0,i=0),r.milliseconds=e%1e3,a=ds(e/1e3),r.seconds=a%60,s=ds(a/60),r.minutes=s%60,o=ds(s/60),r.hours=o%24,n+=ds(o/24),c=ds(pL(n)),i+=c,n-=HS(aA(c)),l=ds(i/12),i%=12,r.days=n,r.months=i,r.years=l,this}function pL(e){return e*4800/146097}function aA(e){return e*146097/4800}function fq(e){if(!this.isValid())return NaN;var n,i,r=this._milliseconds;if(e=Cs(e),e==="month"||e==="quarter"||e==="year")switch(n=this._days+r/864e5,i=this._months+pL(n),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(aA(this._months)),e){case"week":return n/7+r/6048e5;case"day":return n+r/864e5;case"hour":return n*24+r/36e5;case"minute":return n*1440+r/6e4;case"second":return n*86400+r/1e3;case"millisecond":return Math.floor(n*864e5)+r;default:throw new Error("Unknown unit "+e)}}function dl(e){return function(){return this.as(e)}}var mL=dl("ms"),pq=dl("s"),mq=dl("m"),gq=dl("h"),vq=dl("d"),bq=dl("w"),yq=dl("M"),_q=dl("Q"),Eq=dl("y"),Aq=mL;function wq(){return js(this)}function xq(e){return e=Cs(e),this.isValid()?this[e+"s"]():NaN}function pu(e){return function(){return this.isValid()?this._data[e]:NaN}}var Cq=pu("milliseconds"),Sq=pu("seconds"),Tq=pu("minutes"),kq=pu("hours"),Dq=pu("days"),Nq=pu("months"),Iq=pu("years");function Mq(){return ds(this.days()/7)}var Fo=Math.round,ud={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Lq(e,n,i,r,a){return a.relativeTime(n||1,!!i,e,r)}function Oq(e,n,i,r){var a=js(e).abs(),s=Fo(a.as("s")),o=Fo(a.as("m")),l=Fo(a.as("h")),c=Fo(a.as("d")),u=Fo(a.as("M")),d=Fo(a.as("w")),h=Fo(a.as("y")),m=s<=i.ss&&["s",s]||s0,m[4]=r,Lq.apply(null,m)}function Rq(e){return e===void 0?Fo:typeof e=="function"?(Fo=e,!0):!1}function Pq(e,n){return ud[e]===void 0?!1:n===void 0?ud[e]:(ud[e]=n,e==="s"&&(ud.ss=n-1),!0)}function Bq(e,n){if(!this.isValid())return this.localeData().invalidDate();var i=!1,r=ud,a,s;return typeof e=="object"&&(n=e,e=!1),typeof e=="boolean"&&(i=e),typeof n=="object"&&(r=Object.assign({},ud,n),n.s!=null&&n.ss==null&&(r.ss=n.s-1)),a=this.localeData(),s=Oq(this,!i,r,a),i&&(s=a.pastFuture(+this,s)),a.postformat(s)}var Uv=Math.abs;function Uu(e){return(e>0)-(e<0)||+e}function vg(){if(!this.isValid())return this.localeData().invalidDate();var e=Uv(this._milliseconds)/1e3,n=Uv(this._days),i=Uv(this._months),r,a,s,o,l=this.asSeconds(),c,u,d,h;return l?(r=ds(e/60),a=ds(r/60),e%=60,r%=60,s=ds(i/12),i%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=Uu(this._months)!==Uu(l)?"-":"",d=Uu(this._days)!==Uu(l)?"-":"",h=Uu(this._milliseconds)!==Uu(l)?"-":"",c+"P"+(s?u+s+"Y":"")+(i?u+i+"M":"")+(n?d+n+"D":"")+(a||r||e?"T":"")+(a?h+a+"H":"")+(r?h+r+"M":"")+(e?h+o+"S":"")):"P0D"}var Xn=mg.prototype;Xn.isValid=NH;Xn.abs=cq;Xn.add=uq;Xn.subtract=dq;Xn.as=fq;Xn.asMilliseconds=mL;Xn.asSeconds=pq;Xn.asMinutes=mq;Xn.asHours=gq;Xn.asDays=vq;Xn.asWeeks=bq;Xn.asMonths=yq;Xn.asQuarters=_q;Xn.asYears=Eq;Xn.valueOf=Aq;Xn._bubble=hq;Xn.clone=wq;Xn.get=xq;Xn.milliseconds=Cq;Xn.seconds=Sq;Xn.minutes=Tq;Xn.hours=kq;Xn.days=Dq;Xn.weeks=Mq;Xn.months=Nq;Xn.years=Iq;Xn.humanize=Bq;Xn.toISOString=vg;Xn.toString=vg;Xn.toJSON=vg;Xn.locale=nL;Xn.localeData=rL;Xn.toIsoString=xs("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vg);Xn.lang=iL;mn("X",0,0,"unix");mn("x",0,0,"valueOf");tn("x",dg);tn("X",rF);yi("X",function(e,n,i){i._d=new Date(parseFloat(e)*1e3)});yi("x",function(e,n,i){i._d=new Date(Wn(e))});//! moment.js -Xt.version="2.30.1";F9(Oi);Xt.fn=Bt;Xt.min=SH;Xt.max=TH;Xt.now=kH;Xt.utc=Eo;Xt.unix=nq;Xt.months=rq;Xt.isDate=Yf;Xt.locale=Zl;Xt.invalid=og;Xt.duration=js;Xt.isMoment=Qs;Xt.weekdays=sq;Xt.parseZone=iq;Xt.localeData=ul;Xt.isDuration=ym;Xt.monthsShort=aq;Xt.weekdaysMin=lq;Xt.defineLocale=Ex;Xt.updateLocale=iH;Xt.locales=rH;Xt.weekdaysShort=oq;Xt.normalizeUnits=Cs;Xt.relativeTimeRounding=Rq;Xt.relativeTimeThreshold=Pq;Xt.calendarFormat=JH;Xt.prototype=Bt;Xt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let Dr=require("fs"),Hn=require("path");var Fq=require("yaml-front-matter"),Hq=require("electron-store");let zq=require("buffer").Buffer;const Sl=new Hq;class qq{constructor(n){ie(this,"rootDir","");ie(this,"fs",Dr);ie(this,"findPath","");ie(this,"rootDirObj",{});ie(this,"time",null);ie(this,"needFindPath",[]);ie(this,"searchFiles",[]);ie(this,"_time",null);ie(this,"vaultName");this.rootDir=n,this.vaultName=Hn.basename(this.rootDir),this._initMarkmindDir()}getFiles(n,i){this._time&&clearTimeout(this._time),this._time=setTimeout(()=>{if(this.searchFiles=[],this.rootDirObj){for(let s in this.rootDirObj)if(s.indexOf(n)>-1){var r=Hn.extname(s),a=s.replace(Hn.normalize(this.rootDir+"/"),"");r==".md"&&(a=a.replace(r,"")),this.searchFiles.push({fullPath:s,name:Hn.basename(s,r),ext:r&&Hn.extname(s).substr(1),path:a})}i&&i(this.searchFiles.slice()),this.searchFiles=[]}},1e3)}getMarkdowns(){var n=[];if(this.rootDirObj)for(let a in this.rootDirObj){var i=Hn.extname(a);if(i==".md"){var r=a.replace(Hn.normalize(this.rootDir+"/"),"");n.push({fullPath:a,name:Hn.basename(a,i),ext:i&&Hn.extname(a).substr(1),path:r.replace(/\\/g,"/")})}}return n}_initMarkmindDir(){if(this.rootDir){var n=Hn.normalize(Hn.normalize(this.rootDir+"/.markmind"));if(!Dr.existsSync(n))try{Dr.mkdirSync(n,{recursive:!0})}catch(i){console.log(i)}}}saveConfig(n){var i=Hn.normalize(this.rootDir+"/.markmind");if(Dr.existsSync(i))try{Dr.writeFileSync(Hn.normalize(i+"/config.json"),n,"utf-8")}catch{Sl.set("markmindconfig",n)}else Sl.set("markmindconfig",n)}getConfig(){var n,i=Hn.normalize(this.rootDir+"/.markmind/config.json");if(Dr.existsSync(i))try{n=Dr.readFileSync(i,"utf-8")}catch{n=Sl.get("markmindconfig")}else n=Sl.get("markmindconfig");return n}getNewImagePath(n,i){var r=Hn.normalize(this.rootDir+"/"+n);return i&&this.rootDirObj&&(this.rootDirObj[r]=""),r}copyFile(n,i){var r=Hn.normalize(i),a=Hn.extname(i);if(Dr.existsSync(Hn.normalize(i))){var s=Hn.basename(i),o=Hn.basename(i,Hn.extname(i)),l=r.substr(0,r.length-s.length);i=l+o+new Date().getTime()+a}Dr.copyFileSync(n,i);var c=Hn.normalize(i),u=c.replace(Hn.normalize(this.rootDir),"");return{t:c,p:u}}getFileByPath(n){return this.rootDirObj={},this._getFile(this.rootDir,Hn.normalize(n))}existsFolder(n){var i=Hn.normalize(this.rootDir+"/"+n);return Dr.existsSync(i)}saveImage(n,i){Dr.writeFileSync(n,zq.from(i))}getImagePath(n){var i="";if(this.rootDirObj){this.time&&clearTimeout(this.time);for(let r in this.rootDirObj)if(Hn.normalize(r).endsWith(Hn.normalize(n))){i=r;break}}else{this.rootDirObj={};var i=this._getFile(this.rootDir,Hn.normalize(n));this.time&&clearTimeout(this.time)}return i}refreshCacheFilePath(){this.rootDirObj={},this._getFile(this.rootDir)}_getFile(n,i){const r=Dr.readdirSync(n);for(let c=0;c{var a=Dr.statSync(this.rootDir+"/"+r);if(!r.startsWith(".")&&a.isDirectory()){var s={id:yn(),text:Hn.basename(this.rootDir+"/"+r),ext:"",isDir:!0,path:r,fullPath:this.rootDir+"/"+r,children:[],_num:1,isExpand:!1};n.children.push(s),this.getList(s,s.fullPath)}else if(a.isFile()){var o=Hn.normalize(this.rootDir+"/"+r);this.rootDirObj[o]="";var l=Hn.extname(o),s={id:yn(),text:Hn.basename(o,l),ext:l,isDir:!1,path:r,fullPath:this.rootDir+"/"+r,children:[],_num:2};n.children.push(s)}}),n.children.sort((r,a)=>r._num-a._num)}return n}getList(n,i){Dr.readdirSync(i).forEach(a=>{var s=Dr.statSync(i+"/"+a);if(!a.startsWith(".")&&s.isDirectory()){var o={id:yn(),text:Hn.basename(i+"/"+a),ext:"",isDir:!0,path:n.path+"/"+a,fullPath:i+"/"+a,children:[],_num:1,isExpand:!1};n.children.push(o),this.getList(o,o.fullPath)}else if(s.isFile()){var l=Hn.normalize(i+"/"+a);this.rootDirObj[l]="";var c=Hn.extname(l),o={id:yn(),text:Hn.basename(l,c),ext:c,isDir:!1,path:n.path+"/"+a,fullPath:n.fullPath+"/"+a,children:[],_num:2};n.children.push(o)}}),n.children.sort((a,s)=>a._num-s._num)}getVaults(){return Sl.get("markmindvaults")}saveVaults(n){Sl.set("markmindvaults",n)}getActiveVault(){var n=this.getVaults();if(n){n=JSON.parse(n);var i;n&&n.length&&(n.forEach(r=>{r.active&&(i=r)}),i||(i=n[0]))}return i}getLocalTime(){return Sl.get("localTime")}setLocalTime(){Sl.set("localTime",new Date().getTime())}}const Ot=new qq(""),Uq={},Gq={},Vq={},Wq={"Open as mindmap board":"Öffne als Mindmap","Create new mindmap":"Erstelle neue Mindmap","New mindmap board":"Neue Mindmap","Untitled mindmap":"Unbenannte Mindmap","Open as markdown":"Öffne als Markdown","Sub title":"Untertitel","Export to opml":"Exportiere als opml","Export to image":"Exportiere als Bild","Canvas size":"Leinwandgröße","Canvas size desc":"Breite und Höhe der Leinwand","Canvas background":"Leinwand Hintergrund","Canvas background desc":"Hintergrundfarbe der Leinwand","Max level of node to markdown head":"Maximale Knotenebene welche eine Überschrift erstellt","Max level of node to markdown head desc":"Angeben, welche Knotenebene eine separate Überschrift anstelle eines Listenelements erstellt.","Font size":"Schriftgröße","Font size desc":"Gebe die Schriftgröße ans","Mind map layout direct":"Mindmap Layout","Mind map layout direct desc":"Geben Sie die Richtung an, in der die Knoten in Ihrer Mindmap platziert werden.",Right:"Rechts",Left:"Links",Centered:"Zentriert"},gL={"New folder":"Create new folder","Open as mindmap board":"Open as mindmap","Create new mindmap":"Create new mindmap","New mindmap board":"New mindmap board","Untitled mindmap":"Untitled mindmap","Open as markdown":"Open as markdown",Rename:"Rename",Delete:"Delete","Show in system folder":"Reveal in file explorer","Open in a new tab":"Open in new tab","File name":"Untitled mindmap.md","folder name":"Untitled",Confirm:"Confirm",Yes:"Yse",No:"No","Are you sure to do this":"Are you sure to do this ?",Folder:"Folder",File:"File",Mindmap:"Mind map",About:"About",Back:"Back to app","Save PDF error,Please try again":"Save PDF error,Please try again","Open folder as vault":"Open folder as vault","Open folder":"Open",OnlyRead:"Read mode",EditMode:"Edit mode",NodeNum:"Nodes:","Save error":"Save file error !",Welcome:"Welcome To Markmind","Welcome tip":"Please open a folder as vault , if you are in a vault , you can right click file tree to create a folder or mindmap",Language:"Language",English:"English",Chinese:"中文简体","Delete fail":"Delete fail:","Move to trash":"Moved file to the trash, you can still retrieve it !","Not support remove folder":"Delete folder is currently not supported","Subscription markmind":"Subscription markmind","Sub title":"Sub title","Export to opml":"Export to opml","Export to image":"Export to image","Canvas size":"Canvas size","Canvas size desc":"Width and height of the canvas","Canvas background":"Canvas background","Canvas background desc":"Background color of canvas","Max level of node to markdown head":"Max level of node to create a Heading","Max level of node to markdown head desc":"Specify which Node Level creates a seperate Heading instead of a List-Item","Font size":"Font Size","Font size desc":"Specify the Font Size","Mind map layout direct":"Mindmap Layout","Mind map layout direct desc":"Specify the direction the nodes are placed in your Mindmap",Right:"Right",Left:"Left",Centered:"Centered","Open PDF File":"Open PDF file...","Save Image error,Please try again":"Save image error,please try again","Creating Rect Annotate":"Creating rect annotate...","Cancel Create Rect Annotate":"Cancel create rect annotate","File Is Not Exist":"File is not exist","Open File Error":"Open file error","PDF Cannot Open More Instances":"PDF reader cannot open more instances","Create Rect Annotate":"Created rect annotate","Stroke Array":"Stroke Color","Stroke Array Desc":"Node link color base on this value or random color","PDFJs Plugin Path":"PDF reader path","PDFJs Plugin Path Desc":"If you want to use PDF annotation,You need download pdf js plugin and set up this value","Andriod pdfjs Plugin Path":"Andriod pdf reader path","Ios pdfjs Plugin Path":"Ios pdf reader path","Mac pdfjs Plugin Path":"Mac pdfjs Plugin Path","PDF Path":"PDF store path","PDF Annotate Path":"PDF annotate store path","PDF Image Path":"Image store path of PDF rect annotate","Miss PDF Reader Path":"Miss PDF plugin path,you need download Pdf js plugin,and set up value of PDF reader path","Please Use Rich Mode":"Please change yaml mindmap-plugin basic to rich","The probation period has ended":"The probation period has ended or active code has expired",Rect:"Rect",Circle:"Circle",Pointer:"Pointer","Show MindMap":"Show mind map","Hide MindMap":"Hide mind map","Open Protocol":"Support protocol","Open Protocol Desc":"Support protocol like 'obsidian://{protocol name}' for function of jump to pdf annotate",Protocol:"Protocol","Protocol Desc":"Protocol name",Open:"Open",Close:"Close","Open as outline":"Open as outline","Show Annotate":"Show annotate","Annotation save type":"PDF annotation save type","Annotation save type desc":"The type of save pdf annotation,there are two file types:`annos` and `md`,`annos` as default,`annos` is `json` file in fact ","Export annotate pdf":"Export annotate pdf","Export annotate pdf tip":"This is a time-consuming operation. Please wait patiently","Export annotate pdf success":"Export pdf success","Export annotate pdf error":"Export pdf error","Active Code":"Active code","Active Code Desc":"You can active markmind by use this value. Web site:","Active error":"Active code error","Active success":"Active success","Annotate PDF":"Annotate PDF","Annotate EPUB":"Annotate EPUB","PDF Viewer Theme":"PDF viewer theme","PDF Viewer Theme desc":"Theme of pdf viewer","Copy as markdown":"Copy as markdown","Copy node text":"Copy node text only","Copy node link":"Copy node link","Export as opml":"Export as opml","Mobile app not support":"File not support mobile app","Not support file type":"The file type is not support,please open pdf file","Not find md file":"This pdf has not annotations in valut","Please select another node":"Please select another node","Change layout to mindmap":"Change layout to mindmap","Change layout to right":"Change layout to right","Change layout to left":"Change layout to left","Change layout to tree":"Change layout to tree","Copy mindmap node":"Copy selected node","Paste to node":"Paste to node","Toggle mardkown/mindmap":"Toggle markdown/mindmap mode","Copy node id":"Copy node ID","Mobile Active Code":"Mobile active code","Mobile Active Code Desc":"You can active mobile markmind by use value , it will create if you input active code","Mindmap mode":"Mindmap mode","Mindmap mode desc":"When create mindmap , it will create mode of this value , `basic` mode as default","Pdf screen short":"Folder for save pdf annotate image","Pdf screen short desc":"Save image to this folder when use pdf rect annotate","Set mindmap to center":"Set mindmap to center",save:"Save",cancel:"Cancel","Remove annotate space":"Remove space of pdf annotate","Remove annotate space desc":"In environment of chinese , open this and it will remove spaces between text automatic","Get path of vault":"Get base path of vault","Smooth movement":"Support smooth movement of mindmap nodes","Smooth movement desc":"Smooth movement of mindmap nodes","Support code block":"Support parse code block of mindmap","Support code block desc":"Support parse code block of mindmap in markdown file",toPng:"Export to PNG","Set pdf js path":"Set up pdf js plugin path","Please open a mind map":"Please open a mind map and try this command again","Set up pdf js path success":"Success,please restart obsidian","Create new outline":"Create new outline","Copy node":"Copy","Paste node":"Paste","Fill color":"Fill color","Stroke color":"Stroke color","Text color":"Text color","Text align":"Text align","Stroke width":"Stroke width","Stroke style":"Stroke style",nodeColor:"Setup board color",nodeColorDesc:"Use this to setup node background/stroke/font color","Export to html":"Export to html","Change layout to fishLeft":"Change layout to left fish","Change layout to fishRight":"Change layout to right fish","Open as table":"Open as table","get table html":"Get html code of table","get table markdown":"Get markdown of table","Get pdf annotations":"Import pdf highlight annotations","extract highlight success":"Import pdf highlight success","Change basic mode to rich mode":"Change basic mode to rich mode","Change rich mode to basic mode":"Change rich mode to basic mode","Export pdf annotations":"Export pdf annotations","Format of pdf highlight":"Format of pdf highlight","Format of pdf highlight desc":"When export pdf highights , it will generate file in this format","Use new version of pdfjs":"Toggle to new version of pdfjs","Use old version of pdfjs":"Toggle to old version of pdfjs",searchResult:"Find {{nodeNumber}} nodes contains this word","Toggle search box":"Toggle search box","Fine tune height of annotate":"Fine tune height of annotate","Fine tune height of annotate desc":"Fine tune height of annotate , adjust upward (px)","Fine tune height of annotate desc one":"Fine tune height of annotate , adjust downward (px)","Create hand drawn mindmap":"Create hand drawn mindmap from basic mode","Decode URI pdf link":"Open decode PDF link","Decode URI pdf link desc":"If your `annotate-target` is encode by `encodeURI` , you can open this","Expand to first node level":"Expand to first node level","Expand to second node level":"Expand to second node level","Expand to third node level":"Expand to third node level","Expand to all node level":"Expand to all node level","Expand to fourth node level":"Expand to fourth node level","Expand to fifth node level":"Expand to fifth node level","Auto create node when annotate":"Auto create node when annotate","Auto create node when annotate desc":"Auto create node when create pdf annotate","Add child node":"Add child node","Add brother node":"Add brother node","Edit node":"Edit node","Cancel edit node":"Cancel edit node","Delete node":"Delete node",Undo:"Undo",Redo:"Redo","Use custom short cut":"Use custom short cut","Use custom short cut desc":"You can set up custom short cut of mindmap for add node/delete node/undo/redo/edit node/quit edit node commands in `ctrl + p` board","PDF cache folder":"PDF cache folder","PDF cache folder desc":"When you open pdf in web by use pdf annotator, the pdf will store to this folder","Folder of paste image":"Folder of paste image","Folder of paste image desc":"When paste image , image will store to this folder","Change basic to table mode":"Change basic mindmap to table mode","Change basic to outline mode":"Change basic to outline mode","Saving data":"Saving data ...",Saved:"Saved","Only copy annotate link":"Only copy annotate link","Only copy annotate link desc":"Only copy annotate link when click an pdf annotate","Saving image":"Saving image ...","Auto set node to center when tab node of mindmap":"Auto set node to center when tab node of mindmap","Auto set node to center when tab node of mindmap desc":"Auto set node to center when use up/down/left/right key to tab node of mindmap","Auto open search box":"Auto open mindmap search box","Auto open search box desc":"If obsidian has search text, auto open mindmap search box","Export to pdf":"Export mindmap as a pdf file","Please do this in a separate window":"Please export mindmap to pdf in a independ window","PDF save success":"Save pdf success","Add collapse node mark":"Auto add collapse node ID of basic mode","Add collapse node mark desc":"When save mindmap of basic mode , auto add collapsed node ID in the end of node text","Change theme":"Open change theme box","Close change theme":"Close change theme box","Can not change layout":" Can not change node layout to table because the child of this node have summary, boundary , callout or layout","Only use obsidian folder for pdfjs plugin":"Put pdfjs plugin to .obsidian folder of vault","Only use obsidian folder for pdfjs plugin desc":"Put pdfjs plugin to .obsidian folder of vault in android or ios system","Generate mind maps by chatGTP":"Generate mind maps by chatGTP (outline)","Get inspiration":"Get inspiration by chatGTP",ChatGTPError:"Get text error from chatGTP,please try again",ChatGTPLoading:"AI is getting data , please wait a minute...","ChatGTP appkey":"Please input apikey of chatGPT","ChatGTP appkey desc":"Please input apikey of chatGPT",ProxyServer:"Please input proxy server","ProxyServer desc":"If you can not access website of openai api, you can use a proxy server","Generate mind maps by Q&A of chatGTP":"Generate mind maps by chatGPT (Q&A)","Annotate template":"Annotate template","Annotate template desc":"When click annotate, it will generate text according to this template to copy to clipboard","Support translate":"Support for word translation of pdf annotate","Support translate desc":"When make annotate of pdf, support word translation","Google translate":"Google tranlate","Google translate desc":"Google tranlate","Baidu translate":"Baidu translate","Baidu translate desc":"Baidu translate","Youdao translate":"Youdao translate","Youdao translate desc":"Youdao translate","Translate appid":"Translate appId or token","Translate appid desc":"AppId or token of translate","Translate secret":"Translate secret","Translate secret desc":"Secret of translate, if you use token, the value may be empty","Not have translations of pdf full text":"No full-text translation files available","Translate spend time":"Translating, please be patient and wait...","Translate success":"Translation successful","Parsing PDF structure":"Parsing PDF structuring...","Parsing PDF structure error":"Parsing PDF structure error","Full text translate":"Full text translation","Pdf in vault":"Currently only support PDF in vault","Completed translation":"Completed translation: ","Translation engine":"Translation engine",baidu:"baidu","Copy full text translations":"Copy full text translations to clipboard","Mindmap is in read":"Mind map in read-only mode","Export to pdf (old version)":"Export mindmap to pdf (v0.15.9)","Scale speed of mobile version":"Scale speed of mobile version","Scale speed of mobile version desc":"Scale speed of mobile version","Cover node":"Cover node text","Cancel cover node":"Cancel cover node text","Export to xmind zen":"Export mindmap to xmind zen file","Export xmind success":"Export to xmind zen file success"},Qq={},jq={},Yq={},Kq={},Xq={},$q={},Zq={},Jq={},eU={},tU={},nU={},iU={},rU={},aU={},sU={},oU={},lU={"New folder":"新建文件夹","Open as mindmap board":"打开为思维导图","Create new mindmap":"创建新思维导图","New mindmap board":"新建思维导图","Untitled mindmap":"未命名思维导图","Open as markdown":"打开为 Markdown 文件",Rename:"重命名",Delete:"删除","Show in system folder":"在系统资源管理器中显示","Open in a new tab":"在新Tab页中打开","File name":"未命名导图.md","folder name":"未命名",Confirm:"确认",Mindmap:"思维导图",About:"关于",OnlyRead:"只读模式",EditMode:"编辑模式",NodeNum:"节点数:","Save error":"保存文件失败!",Welcome:"欢迎使用 Markmind","Welcome tip":"请选择文件夹作为一个仓库,如果您已经选择,可以右击文件树新建文件夹和文件",Language:"语言",English:"English",Chinese:"中文简体","Delete fail":"删除失败:","Move to trash":"已经移至系统垃圾箱,必要时您还可以找回!","Not support remove folder":"为了数据安全,暂不支持删除文件夹","Subscription markmind":"订阅 markmind",Yes:"确认",No:"取消","Are you sure to do this":"确定执行该操作?",Folder:"文件夹",File:"文件",Back:"返回主界面","Save PDF error,Please try again":"保存 PDF 失败,可能无法访问文件夹,请重试","Open folder as vault":"选择文件夹作为仓库","Open folder":"打开","Sub title":"新节点","Export to opml":"导出至OPML","Export to image":"导出至图片","Canvas size":"画布尺寸","Canvas size desc":"绘制思维导图画布的宽度和高度","Canvas background":"背景颜色","Canvas background desc":"画布的背景颜色","Max level of node to markdown head":"节点文字转为markdown标题的最大层级","Max level of node to markdown head desc":"将小于该层级的节点文字转为markdown标题,最大层级为6,因为HTML标题支持最大为6级","Font size":"文字大小","Font size desc":"思维导图文字默认大小,单位px","Mind map layout direct":"思维导图布局方向","Mind map layout direct desc":"思维导图的布局方向,分为向两侧发散、仅右侧、仅左侧三个方向","Expand node":"展开节点","Collapse node":"收缩节点","Only show this node":"仅显示该节点","Expand all node":"展开所有节点","Collapse all node":"收缩所有节点","Add relate link":"添加联系线","Remove relate link":"删除联系线","Add summary node":"添加归纳","Remove summary node":"删除归纳","Remove node":"删除节点","Only remove this node":"仅删除该节点","Open PDF File":"正在打开PDF文件...","Save Image error,Please try again":"保存图片失败,请重试","Creating Rect Annotate":"正在创建矩形标注","Cancel Create Rect Annotate":"取消创建矩形标注","File Is Not Exist":"文件不存在","Open File Error":"打开文件失败","PDF Cannot Open More Instances":"不支持多开PDF阅读器","Create Rect Annotate":"创建矩形标注成功","Stroke Array":"颜色组","Stroke Array Desc":"节点连线颜色将按照颜色组生成,否则生成随机颜色","PDFJs Plugin Path":"PDFJs 插件路径","Andriod pdfjs Plugin Path":"安卓 PDFJs 插件路径","Ios pdfjs Plugin Path":"IOS PDFJs 插件路径","Mac pdfjs Plugin Path":"Mac PDFJs 插件路径","PDFJs Plugin Path Desc":"如果您要使用PDF标注功能,您需要下载PDFJS插件,并设置插件路径","PDF Path":"PDF 存储路径","PDF Annotate Path":"PDF 标注存储路径","PDF Image Path":"PDF 矩形标注生成的图片存储路径","Miss PDF Reader Path":"缺少PDF插件,您需要下载PDFJS插件,并在设置中设置PDF插件路径(绝对路径)","Please Use Rich Mode":"目前处于Basic模式或者未激活,无法使用PDF标注功能,请使用Rich模式或者激活软件","The probation period has ended":"免费版本或者激活码已过期,请至markmind.net购买激活码以激活应用",Rect:"矩形",Circle:"圆",Pointer:"点","Show MindMap":"显示思维导图","Hide MindMap":"隐藏思维导图","Open Protocol":"开启协议支持","Open Protocol Desc":"支持类似 obsidian://{Protocol name} 的协议,用于跳转至PDF标注",Protocol:"协议名","Protocol Desc":"协议名称",Open:"开启",Close:"关闭","Open as outline":"打开为大纲","Show Annotate":"展示标注","Annotation save type":"标注保存类型","Annotation save type desc":"当保存PDF标注时保存的文件类型,目前分为保存为annos和markdown两种,默认扩展名为annos(本质是json文件)","Export annotate pdf":"导出标注后的PDF文件","Export annotate pdf tip":"这是一个费时的操作,请耐心等待...","Export annotate pdf success":"导出PDF文件成功","Export annotate pdf error":"导出PDF文件失败","Active Code":"激活码","Active Code Desc":"可以使用该值激活markmind,网站:","Active error":"激活失败,请检查激活码","Active success":"已激活","Annotate PDF":"打开注释PDF","Annotate EPUB":"打开注释EPUB","PDF Viewer Theme":"PDF阅读器主题","PDF Viewer Theme desc":"切换PDF阅读器主题皮肤","Copy as markdown":"复制为markdown","Copy node text":"仅复制该节点文本","Copy node link":"复制节点引用链接","Export as opml":"导出为OPML","Mobile app not support":"移动端不支持打开本地PDF文件","Not support file type":"不支持注释该文件类型,只支持pdf文件","Not find md file":"这是一个外部pdf文件,在文件夹中尚不存在批注信息","Please select another node":"请选择另一个节点","Change layout to mindmap":"切换思维导图布局为默认","Change layout to right":"切换思维导图布局为右侧","Change layout to left":"切换思维导图布局为左侧","Change layout to tree":"切换思维导图布局为树向下布局","Copy mindmap node":"复制节点","Paste to node":"粘贴节点","Toggle mardkown/mindmap":"切换为Markdown或思维导图模式","Copy node id":"获取节点ID","Mobile Active Code":"移动端激活码","Mobile Active Code Desc":"用于激活移动端,当你填入激活码时,该值将自动生成","Mindmap mode":"思维导图模式","Mindmap mode desc":"当创建思维导图时,将按照该值创建思维导图的模式,默认是basic模式","Pdf screen short":"PDF 截图文件夹","Pdf screen short desc":"用于保存PDF矩形标注所截的图片","Set mindmap to center":"居中思维导图",save:"保存",cancel:"取消","Remove annotate space":"自动移除标注文字中的空格","Remove annotate space desc":"在中文环境下,某些pdf文字标注时,文字之间存在空格,可以开启该选项,将自动移除文字之间的空格","Get path of vault":"获取库的基础路径","Smooth movement":"开启支持思维导图节点支持平滑过渡效果","Smooth movement desc":"当点击引用节点时,节点跳转到同一思维导图的其他节点时的过渡效果","Support code block":"开启支持图文混排","Support code block desc":"支持在markdown文档中图文混排效果",toPng:"导出为PNG图片","Set pdf js path":"设置 pdfjs 插件路径","Please open a mind map":"请打开一个思维导图并重新执行此命令","Set up pdf js path success":"设置 pdfjs 插件路径成功,请重新启动 obsidian","Create new outline":"创建大纲","Copy node":"复制","Paste node":"粘贴","Fill color":"背景颜色","Stroke color":"外框颜色","Text color":"文字颜色","Text align":"对齐方式","Stroke width":"外框粗细","Stroke style":"外框样式",nodeColor:"节点设置面板颜色组",nodeColorDesc:"用于改变节点设置面板颜色组","Export to html":"导出思维导图为html文件","Change layout to fishLeft":"切换思维导图布局为左侧鱼骨图","Change layout to fishRight":"切换思维导图布局为右侧鱼骨图","Open as table":"打开为表格","get table html":"获取表格的HTML源码","get table markdown":"获取表格的 markdown 文本","Get pdf annotations":"导入PDF高亮标注","extract highlight success":"导入PDF高亮成功","Change basic mode to rich mode":"将 basic 模式转为 rich 模式","Change rich mode to basic mode":"将 rich 模式转为 basic 模式","Export pdf annotations":"导出 PDF 注释","Format of pdf highlight":"PDF 注释格式设置","Format of pdf highlight desc":"当导出 PDF 注释时,将按照该格式生成文件","Use new version of pdfjs":"切换至新版 pdfjs 插件","Use old version of pdfjs":"切换至旧版 pdfjs 插件",searchResult:"发现到 {{nodeNumber}} 个节点包含该关键字","Toggle search box":"打开或关闭搜索框","Fine tune height of annotate":"微调 PDF 标注高度","Fine tune height of annotate desc":"向上调整的距离 (px)","Fine tune height of annotate desc one":"向下调整的距离 (px)","Create hand drawn mindmap":"生成手绘模式的思维导图","Decode URI pdf link":"是否打开解码PDF链接","Decode URI pdf link desc":"如果你的 `annotate-target`被 `encodeURI`编码 , 可以打开该选项","Expand to first node level":"展开至第一级节点","Expand to second node level":"展开至第二级节点","Expand to third node level":"展开至第三级节点","Expand to all node level":"展开所有节点","Expand to fourth node level":"展开至第四级节点","Expand to fifth node level":"展开至第五级节点","Auto create node when annotate":"标注时自动生成思维导图节点","Auto create node when annotate desc":"当创建 pdf 标注时自动是否自动创建思维导图节点","Add child node":"添加子节点","Add brother node":"添加兄弟节点","Edit node":"编辑节点","Cancel edit node":"退出编辑节点","Delete node":"删除节点",Undo:"撤销",Redo:"恢复","Use custom short cut":"开启自定义快捷键","Use custom short cut desc":"支持思维导图设置自定义快捷键,目前支持如下命令(在 Ctrl + P 面板里):添加节点、删除节点、编辑节点、取消编辑节点、撤销、恢复","PDF cache folder":"PDF 缓存目录","PDF cache folder desc":"当使用 PDF 标注工具打开在线 PDF 时,该 PDF 将自动缓存至该文件夹中,下次打开时将优先从该目录中读取数据","Folder of paste image":"粘贴图片文件夹","Folder of paste image desc":"设置文件夹路径,指向库中的某一文件夹,粘贴的图片将存入该文件夹中","Change basic to table mode":"打开 Basic 模式的思维导图为表格","Change basic to outline mode":"打开 Basic 模式为大纲","Saving data":"正在保存 ...",Saved:"已保存","Only copy annotate link":"开启支持只复制标注链接","Only copy annotate link desc":"当点击一个 PDF 标注时,只会复制链接","Saving image":"正在保存图片...","Auto set node to center when tab node of mindmap":"切换思维导图时自动居中节点","Auto set node to center when tab node of mindmap desc":"当使用上、下、左、右键切换节点时,自动居中节点","Auto open search box":"自动打开思维导图搜索框","Auto open search box desc":"当 obsidian 搜索中存在搜索条件,打开思维导图时自动打开搜索框,并触发思维导图搜索","Export to pdf":"导出思维导图为 PDF 文件","Please do this in a separate window":"请在独立窗口进行此操作,无法在主窗口执行","PDF save success":"PDF 保存成功","Add collapse node mark":"Basic 模式下自动添加折叠节点标记","Add collapse node mark desc":"Basic 模式下,保存思维导图时,自动在折叠的节点最后加入ID,用于下次打开可以恢复折叠原状","Change theme":"打开主题切换框","Close change theme":"关闭主题切换框","Can not change layout":"由于该节点的子节点存在归纳、外框、标注或者布局,所以无法转换为表格布局,防止数据丢失","Only use obsidian folder for pdfjs plugin":"支持 pdfjs 插件放在.obsidian 文件夹","Only use obsidian folder for pdfjs plugin desc":"在安卓或者ios系统支持将 pdfjs 插件放在库内的 .obsidian 文件夹","Generate mind maps by chatGTP":"智能生成思维导图(AI 大纲)","Get inspiration":"获取灵感(AI)",ChatGTPError:"AI 获取文本失败,请检查网络,重新尝试!",ChatGTPLoading:"AI 正在获取数据,请稍等...","ChatGTP appkey":"请输入 ChatGPT 的 apikey","ChatGTP appkey desc":"如果您没有这个Apikey 请至 ChatGPT 官网申请",ProxyServer:"网络代理","ProxyServer desc":"如果无法直接访问 OpenAI 的 api,可以使用网络代理","Generate mind maps by Q&A of chatGTP":"智能生成思维导图(AI 问答)","Annotate template":"标注格式","Annotate template desc":"当标注自动生成节点或者点击标注时,将以此格式生成标注,并复制到粘贴板","Support translate":"支持标注划词翻译","Support translate desc":"当做 pdf 标注时,划词时自动翻译","Google translate":"谷歌翻译","Google translate desc":"谷歌翻译设置","Baidu translate":"百度翻译","Baidu translate desc":"百度翻译设置","Youdao translate":"有道翻译","Youdao translate desc":"有道翻译设置","Translate appid":"翻译 Appid 或者 token","Translate appid desc":"请输入翻译的 AppId 或者 token","Translate secret":"翻译秘钥 secret","Translate secret desc":"请输入翻译秘钥 secret, 如果您是使用 token 之类的请求api,则该值可能不需要填写","Not have translations of pdf full text":"没有全文翻译文件,请重新翻译 PDF","Translate spend time":"正在翻译中,请等待,总共 (条数): ","Translate success":"翻译完成","Parsing PDF structure":"正在解析 PDF 结构...","Parsing PDF structure error":"解析 PDF 出错","Full text translate":"全文翻译","Pdf in vault":"全文翻译暂时只支持库内的 pdf","Completed translation":"翻译已完成: ","Translation engine":"翻译引擎",baidu:"百度","Copy full text translations":"复制全文翻译到剪贴板","Mindmap is in read":"导图处于只读模式","Export to pdf (old version)":"导出导图为 PDF (v0.15.9)","Scale speed of mobile version":"移动端缩放速率","Scale speed of mobile version desc":"可以调整该值,使得移动端双指放大或者缩小变换流畅","Cover node":"遮挡节点文字","Cancel cover node":"取消遮挡节点文字","Export to xmind zen":"导出导图为 xmind zen 文件","Export xmind success":"导出 xmind zen 文件成功"},cU={},uU={ar:Uq,cs:Gq,da:Vq,de:Wq,en:gL,"en-gb":Qq,es:jq,fr:Yq,hi:Kq,id:Xq,it:$q,ja:Zq,ko:Jq,nl:eU,nn:tU,pl:nU,pt:iU,"pt-br":rU,ro:aU,ru:sU,tr:oU,"zh-cn":lU,"zh-tw":cU};function kt(e){var a;var n=((a=window.markmind)==null?void 0:a.activeVault)||Ot.getActiveVault(),i=(n==null?void 0:n.language)||Xt.locale();const r=uU[i];return r||console.error("Error: mindmap locale not found",Xt.locale()),r&&r[e]||gL[e]}function sA(e,n,i){if(e&&e.length){const[r,a]=n,s=Math.PI/180*i,o=Math.cos(s),l=Math.sin(s);for(const c of e){const[u,d]=c;c[0]=(u-r)*o-(d-a)*l+r,c[1]=(u-r)*l+(d-a)*o+a}}}function dU(e,n,i){const r=[];e.forEach(a=>r.push(...a)),sA(r,n,i)}function hU(e,n){return e[0]===n[0]&&e[1]===n[1]}function fU(e,n,i,r=1){const a=i,s=Math.max(n,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(a)for(const u of o)sA(u,l,a);const c=pU(o,s,r);if(a){for(const u of o)sA(u,l,-a);dU(c,l,-a)}return c}function pU(e,n,i){const r=[];for(const u of e){const d=[...u];hU(d[0],d[d.length-1])||d.push([d[0][0],d[0][1]]),d.length>2&&r.push(d)}const a=[];n=Math.max(n,.1);const s=[];for(const u of r)for(let d=0;du.ymind.ymin?1:u.xd.x?1:u.ymax===d.ymax?0:(u.ymax-d.ymax)/Math.abs(u.ymax-d.ymax)),!s.length)return a;let o=[],l=s[0].ymin,c=0;for(;o.length||s.length;){if(s.length){let u=-1;for(let h=0;hl);h++)u=h;s.splice(0,u+1).forEach(h=>{o.push({s:l,edge:h})})}if(o=o.filter(u=>!(u.edge.ymax<=l)),o.sort((u,d)=>u.edge.x===d.edge.x?0:(u.edge.x-d.edge.x)/Math.abs(u.edge.x-d.edge.x)),(i!==1||c%n===0)&&o.length>1)for(let u=0;u=o.length)break;const h=o[u].edge,m=o[d].edge;a.push([[Math.round(h.x),l],[Math.round(m.x),l]])}l+=i,o.forEach(u=>{u.edge.x=u.edge.x+i*u.edge.islope}),c++}return a}function Zf(e,n){var i;const r=n.hachureAngle+90;let a=n.hachureGap;a<0&&(a=n.strokeWidth*4),a=Math.round(Math.max(a,.1));let s=1;return n.roughness>=1&&(((i=n.randomizer)===null||i===void 0?void 0:i.next())||Math.random())>.7&&(s=a),fU(e,a,r,s||1)}class Nx{constructor(n){this.helper=n}fillPolygons(n,i){return this._fillPolygons(n,i)}_fillPolygons(n,i){const r=Zf(n,i);return{type:"fillSketch",ops:this.renderLines(r,i)}}renderLines(n,i){const r=[];for(const a of n)r.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],i));return r}}function bg(e){const n=e[0],i=e[1];return Math.sqrt(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2))}class mU extends Nx{fillPolygons(n,i){let r=i.hachureGap;r<0&&(r=i.strokeWidth*4),r=Math.max(r,.1);const a=Object.assign({},i,{hachureGap:r}),s=Zf(n,a),o=Math.PI/180*i.hachureAngle,l=[],c=r*.5*Math.cos(o),u=r*.5*Math.sin(o);for(const[h,m]of s)bg([h,m])&&l.push([[h[0]-c,h[1]+u],[...m]],[[h[0]+c,h[1]-u],[...m]]);return{type:"fillSketch",ops:this.renderLines(l,i)}}}class gU extends Nx{fillPolygons(n,i){const r=this._fillPolygons(n,i),a=Object.assign({},i,{hachureAngle:i.hachureAngle+90}),s=this._fillPolygons(n,a);return r.ops=r.ops.concat(s.ops),r}}class vU{constructor(n){this.helper=n}fillPolygons(n,i){i=Object.assign({},i,{hachureAngle:0});const r=Zf(n,i);return this.dotsOnLines(r,i)}dotsOnLines(n,i){const r=[];let a=i.hachureGap;a<0&&(a=i.strokeWidth*4),a=Math.max(a,.1);let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);const o=a/4;for(const l of n){const c=bg(l),u=c/a,d=Math.ceil(u)-1,h=c-d*a,m=(l[0][0]+l[1][0])/2-a/4,f=Math.min(l[0][1],l[1][1]);for(let g=0;g{const l=bg(o),c=Math.floor(l/(r+a)),u=(l+a-c*(r+a))/2;let d=o[0],h=o[1];d[0]>h[0]&&(d=o[1],h=o[0]);const m=Math.atan((h[1]-d[1])/(h[0]-d[0]));for(let f=0;f{const o=bg(s),l=Math.round(o/(2*i));let c=s[0],u=s[1];c[0]>u[0]&&(c=s[1],u=s[0]);const d=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let h=0;hd%2?u+i:u+n);s.push({key:"C",data:c}),n=c[4],i=c[5];break}case"Q":s.push({key:"Q",data:[...l]}),n=l[2],i=l[3];break;case"q":{const c=l.map((u,d)=>d%2?u+i:u+n);s.push({key:"Q",data:c}),n=c[2],i=c[3];break}case"A":s.push({key:"A",data:[...l]}),n=l[5],i=l[6];break;case"a":n+=l[5],i+=l[6],s.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],n,i]});break;case"H":s.push({key:"H",data:[...l]}),n=l[0];break;case"h":n+=l[0],s.push({key:"H",data:[n]});break;case"V":s.push({key:"V",data:[...l]}),i=l[0];break;case"v":i+=l[0],s.push({key:"V",data:[i]});break;case"S":s.push({key:"S",data:[...l]}),n=l[2],i=l[3];break;case"s":{const c=l.map((u,d)=>d%2?u+i:u+n);s.push({key:"S",data:c}),n=c[2],i=c[3];break}case"T":s.push({key:"T",data:[...l]}),n=l[0],i=l[1];break;case"t":n+=l[0],i+=l[1],s.push({key:"T",data:[n,i]});break;case"Z":case"z":s.push({key:"Z",data:[]}),n=r,i=a;break}return s}function yL(e){const n=[];let i="",r=0,a=0,s=0,o=0,l=0,c=0;for(const{key:u,data:d}of e){switch(u){case"M":n.push({key:"M",data:[...d]}),[r,a]=d,[s,o]=d;break;case"C":n.push({key:"C",data:[...d]}),r=d[4],a=d[5],l=d[2],c=d[3];break;case"L":n.push({key:"L",data:[...d]}),[r,a]=d;break;case"H":r=d[0],n.push({key:"L",data:[r,a]});break;case"V":a=d[0],n.push({key:"L",data:[r,a]});break;case"S":{let h=0,m=0;i==="C"||i==="S"?(h=r+(r-l),m=a+(a-c)):(h=r,m=a),n.push({key:"C",data:[h,m,...d]}),l=d[0],c=d[1],r=d[2],a=d[3];break}case"T":{const[h,m]=d;let f=0,g=0;i==="Q"||i==="T"?(f=r+(r-l),g=a+(a-c)):(f=r,g=a);const v=r+2*(f-r)/3,T=a+2*(g-a)/3,y=h+2*(f-h)/3,C=m+2*(g-m)/3;n.push({key:"C",data:[v,T,y,C,h,m]}),l=f,c=g,r=h,a=m;break}case"Q":{const[h,m,f,g]=d,v=r+2*(h-r)/3,T=a+2*(m-a)/3,y=f+2*(h-f)/3,C=g+2*(m-g)/3;n.push({key:"C",data:[v,T,y,C,f,g]}),l=h,c=m,r=f,a=g;break}case"A":{const h=Math.abs(d[0]),m=Math.abs(d[1]),f=d[2],g=d[3],v=d[4],T=d[5],y=d[6];h===0||m===0?(n.push({key:"C",data:[r,a,T,y,T,y]}),r=T,a=y):(r!==T||a!==y)&&(_L(r,a,T,y,h,m,f,g,v).forEach(function(I){n.push({key:"C",data:I})}),r=T,a=y);break}case"Z":n.push({key:"Z",data:[]}),r=s,a=o;break}i=u}return n}function CU(e){return Math.PI*e/180}function yh(e,n,i){const r=e*Math.cos(i)-n*Math.sin(i),a=e*Math.sin(i)+n*Math.cos(i);return[r,a]}function _L(e,n,i,r,a,s,o,l,c,u){const d=CU(o);let h=[],m=0,f=0,g=0,v=0;if(u)[m,f,g,v]=u;else{[e,n]=yh(e,n,-d),[i,r]=yh(i,r,-d);const Y=(e-i)/2,se=(n-r)/2;let q=Y*Y/(a*a)+se*se/(s*s);q>1&&(q=Math.sqrt(q),a=q*a,s=q*s);const p=l===c?-1:1,N=a*a,z=s*s,j=N*z-N*se*se-z*Y*Y,re=N*se*se+z*Y*Y,ue=p*Math.sqrt(Math.abs(j/re));g=ue*a*se/s+(e+i)/2,v=ue*-s*Y/a+(n+r)/2,m=Math.asin(parseFloat(((n-v)/s).toFixed(9))),f=Math.asin(parseFloat(((r-v)/s).toFixed(9))),ef&&(m=m-Math.PI*2),!c&&f>m&&(f=f-Math.PI*2)}let T=f-m;if(Math.abs(T)>Math.PI*120/180){const Y=f,se=i,q=r;c&&f>m?f=m+Math.PI*120/180*1:f=m+Math.PI*120/180*-1,i=g+a*Math.cos(f),r=v+s*Math.sin(f),h=_L(i,r,se,q,a,s,o,0,c,[f,Y,g,v])}T=f-m;const y=Math.cos(m),C=Math.sin(m),I=Math.cos(f),M=Math.sin(f),R=Math.tan(T/4),B=4/3*a*R,A=4/3*s*R,W=[e,n],ne=[e+B*C,n-A*y],ee=[i+B*M,r-A*I],de=[i,r];if(ne[0]=2*W[0]-ne[0],ne[1]=2*W[1]-ne[1],u)return[ne,ee,de].concat(h);{h=[ne,ee,de].concat(h);const Y=[];for(let se=0;se2){const a=[];for(let s=0;sMath.PI*2&&(f=0,g=Math.PI*2);const v=Math.PI*2/c.curveStepCount,T=Math.min(v/2,(g-f)/2),y=WS(T,u,d,h,m,f,g,1,c);if(!c.disableMultiStroke){const C=WS(T,u,d,h,m,f,g,1.5,c);y.push(...C)}return o&&(l?y.push(...ic(u,d,u+h*Math.cos(f),d+m*Math.sin(f),c),...ic(u,d,u+h*Math.cos(g),d+m*Math.sin(g),c)):y.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+h*Math.cos(f),d+m*Math.sin(f)]})),{type:"path",ops:y}}function US(e,n){const i=yL(bL(Ix(e))),r=[];let a=[0,0],s=[0,0];for(const{key:o,data:l}of i)switch(o){case"M":{s=[l[0],l[1]],a=[l[0],l[1]];break}case"L":r.push(...ic(s[0],s[1],l[0],l[1],n)),s=[l[0],l[1]];break;case"C":{const[c,u,d,h,m,f]=l;r.push(...OU(c,u,d,h,m,f,s,n)),s=[m,f];break}case"Z":r.push(...ic(s[0],s[1],a[0],a[1],n)),s=[a[0],a[1]];break}return{type:"path",ops:r}}function Vv(e,n){const i=[];for(const r of e)if(r.length){const a=n.maxRandomnessOffset||0,s=r.length;if(s>2){i.push({op:"move",data:[r[0][0]+wn(a,n),r[0][1]+wn(a,n)]});for(let o=1;oMath.PI*2&&(h=0,m=Math.PI*2);const f=(m-h)/o.curveStepCount,g=[];for(let v=h;v<=m;v=v+f)g.push([l+u*Math.cos(v),c+d*Math.sin(v)]);return g.push([l+u*Math.cos(m),c+d*Math.sin(m)]),g.push([l,c]),Ku([g],o)}function IU(e,n){return wn(e,n)}function MU(e,n,i){return u0(e,n,i)}function LU(e,n,i,r,a){return ic(e,n,i,r,a,!0)}function GS(e){const n=Object.assign({},e);return n.randomizer=void 0,e.seed&&(n.seed=e.seed+1),n}function wL(e){return e.randomizer||(e.randomizer=new AU(e.seed||0)),e.randomizer.next()}function u0(e,n,i,r=1){return i.roughness*r*(wL(i)*(n-e)+e)}function wn(e,n,i=1){return u0(-e,e,n,i)}function ic(e,n,i,r,a,s=!1){const o=s?a.disableMultiStrokeFill:a.disableMultiStroke,l=cA(e,n,i,r,a,!0,!1);if(o)return l;const c=cA(e,n,i,r,a,!0,!0);return l.concat(c)}function cA(e,n,i,r,a,s,o){const l=Math.pow(e-i,2)+Math.pow(n-r,2),c=Math.sqrt(l);let u=1;c<200?u=1:c>500?u=.4:u=-.0016668*c+1.233334;let d=a.maxRandomnessOffset||0;d*d*100>l&&(d=c/10);const h=d/2,m=.2+wL(a)*.2;let f=a.bowing*a.maxRandomnessOffset*(r-n)/200,g=a.bowing*a.maxRandomnessOffset*(e-i)/200;f=wn(f,a,u),g=wn(g,a,u);const v=[],T=()=>wn(h,a,u),y=()=>wn(d,a,u),C=a.preserveVertices;return s&&(o?v.push({op:"move",data:[e+(C?0:T()),n+(C?0:T())]}):v.push({op:"move",data:[e+(C?0:wn(d,a,u)),n+(C?0:wn(d,a,u))]})),o?v.push({op:"bcurveTo",data:[f+e+(i-e)*m+T(),g+n+(r-n)*m+T(),f+e+2*(i-e)*m+T(),g+n+2*(r-n)*m+T(),i+(C?0:T()),r+(C?0:T())]}):v.push({op:"bcurveTo",data:[f+e+(i-e)*m+y(),g+n+(r-n)*m+y(),f+e+2*(i-e)*m+y(),g+n+2*(r-n)*m+y(),i+(C?0:y()),r+(C?0:y())]}),v}function Fp(e,n,i){if(!e.length)return[];const r=[];r.push([e[0][0]+wn(n,i),e[0][1]+wn(n,i)]),r.push([e[0][0]+wn(n,i),e[0][1]+wn(n,i)]);for(let a=1;a3){const s=[],o=1-i.curveTightness;a.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+21&&a.push(s):a.push(s),a.push(e[n+3])}else{const o=e[n+0],l=e[n+1],c=e[n+2],u=e[n+3],d=Bc(o,l,.5),h=Bc(l,c,.5),m=Bc(c,u,.5),f=Bc(d,h,.5),g=Bc(h,m,.5),v=Bc(f,g,.5);uA([o,d,f,v],0,i,a),uA([v,g,m,u],0,i,a)}return a}function FU(e,n){return h0(e,0,e.length,n)}function h0(e,n,i,r,a){const s=a||[],o=e[n],l=e[i-1];let c=0,u=1;for(let d=n+1;dc&&(c=h,u=d)}return Math.sqrt(c)>r?(h0(e,n,u+1,r,s),h0(e,u,i,r,s)):(s.length||s.push(o),s.push(l)),s}function dA(e,n=.15,i){const r=[],a=(e.length-1)/3;for(let s=0;s0?h0(r,0,r.length,i):r}function HU(e,n,i){const r=Ix(e),a=yL(bL(r)),s=[];let o=[],l=[0,0],c=[];const u=()=>{c.length>=4&&o.push(...dA(c,n)),c=[]},d=()=>{u(),o.length&&(s.push(o),o=[])};for(const{key:m,data:f}of a)switch(m){case"M":d(),l=[f[0],f[1]],o.push(l);break;case"L":u(),o.push([f[0],f[1]]);break;case"C":if(!c.length){const g=o.length?o[o.length-1]:l;c.push([g[0],g[1]])}c.push([f[0],f[1]]),c.push([f[2],f[3]]),c.push([f[4],f[5]]);break;case"Z":u(),o.push([l[0],l[1]]);break}if(d(),!i)return s;const h=[];for(const m of s){const f=FU(m,i);f.length&&h.push(f)}return h}const Pa="none";class f0{constructor(n){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=n||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return EU()}_o(n){return n?Object.assign({},this.defaultOptions,n):this.defaultOptions}_d(n,i,r){return{shape:n,sets:i||[],options:r||this.defaultOptions}}line(n,i,r,a,s){const o=this._o(s);return this._d("line",[EL(n,i,r,a,o)],o)}rectangle(n,i,r,a,s){const o=this._o(s),l=[],c=kU(n,i,r,a,o);if(o.fill){const u=[[n,i],[n+r,i],[n+r,i+a],[n,i+a]];o.fillStyle==="solid"?l.push(Vv([u],o)):l.push(Ku([u],o))}return o.stroke!==Pa&&l.push(c),this._d("rectangle",l,o)}ellipse(n,i,r,a,s){const o=this._o(s),l=[],c=AL(r,a,o),u=lA(n,i,o,c);if(o.fill)if(o.fillStyle==="solid"){const d=lA(n,i,o,c).opset;d.type="fillPath",l.push(d)}else l.push(Ku([u.estimatedPoints],o));return o.stroke!==Pa&&l.push(u.opset),this._d("ellipse",l,o)}circle(n,i,r,a){const s=this.ellipse(n,i,r,r,a);return s.shape="circle",s}linearPath(n,i){const r=this._o(i);return this._d("linearPath",[Em(n,!1,r)],r)}arc(n,i,r,a,s,o,l=!1,c){const u=this._o(c),d=[],h=qS(n,i,r,a,s,o,l,!0,u);if(l&&u.fill)if(u.fillStyle==="solid"){const m=Object.assign({},u);m.disableMultiStroke=!0;const f=qS(n,i,r,a,s,o,!0,!1,m);f.type="fillPath",d.push(f)}else d.push(NU(n,i,r,a,s,o,u));return u.stroke!==Pa&&d.push(h),this._d("arc",d,u)}curve(n,i){const r=this._o(i),a=[],s=zS(n,r);if(r.fill&&r.fill!==Pa)if(r.fillStyle==="solid"){const o=zS(n,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],l=n;if(l.length){const u=typeof l[0][0]=="number"?[l]:l;for(const d of u)d.length<3?o.push(...d):d.length===3?o.push(...dA(QS([d[0],d[0],d[1],d[2]]),10,(1+r.roughness)/2)):o.push(...dA(QS(d),10,(1+r.roughness)/2))}o.length&&a.push(Ku([o],r))}return r.stroke!==Pa&&a.push(s),this._d("curve",a,r)}polygon(n,i){const r=this._o(i),a=[],s=Em(n,!0,r);return r.fill&&(r.fillStyle==="solid"?a.push(Vv([n],r)):a.push(Ku([n],r))),r.stroke!==Pa&&a.push(s),this._d("polygon",a,r)}path(n,i){const r=this._o(i),a=[];if(!n)return this._d("path",a,r);n=(n||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const s=r.fill&&r.fill!=="transparent"&&r.fill!==Pa,o=r.stroke!==Pa,l=!!(r.simplification&&r.simplification<1),c=l?4-4*(r.simplification||1):(1+r.roughness)/2,u=HU(n,1,c),d=US(n,r);if(s)if(r.fillStyle==="solid")if(u.length===1){const h=US(n,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else a.push(Vv(u,r));else a.push(Ku(u,r));return o&&(l?u.forEach(h=>{a.push(Em(h,!1,r))}):a.push(d)),this._d("path",a,r)}opsToPath(n,i){let r="";for(const a of n.ops){const s=typeof i=="number"&&i>=0?a.data.map(o=>+o.toFixed(i)):a.data;switch(a.op){case"move":r+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":r+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":r+=`L${s[0]} ${s[1]} `;break}}return r.trim()}toPaths(n){const i=n.sets||[],r=n.options||this.defaultOptions,a=[];for(const s of i){let o=null;switch(s.type){case"path":o={d:this.opsToPath(s),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Pa};break;case"fillPath":o={d:this.opsToPath(s),stroke:Pa,strokeWidth:0,fill:r.fill||Pa};break;case"fillSketch":o=this.fillSketch(s,r);break}o&&a.push(o)}return a}fillSketch(n,i){let r=i.fillWeight;return r<0&&(r=i.strokeWidth/2),{d:this.opsToPath(n),stroke:i.fill||Pa,strokeWidth:r,fill:Pa}}_mergedShape(n){return n.filter((i,r)=>r===0?!0:i.op!=="move")}}class zU{constructor(n,i){this.canvas=n,this.ctx=this.canvas.getContext("2d"),this.gen=new f0(i)}draw(n){const i=n.sets||[],r=n.options||this.getDefaultOptions(),a=this.ctx,s=n.options.fixedDecimalPlaceDigits;for(const o of i)switch(o.type){case"path":a.save(),a.strokeStyle=r.stroke==="none"?"transparent":r.stroke,a.lineWidth=r.strokeWidth,r.strokeLineDash&&a.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(a.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(a,o,s),a.restore();break;case"fillPath":{a.save(),a.fillStyle=r.fill||"";const l=n.shape==="curve"||n.shape==="polygon"||n.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,o,s,l),a.restore();break}case"fillSketch":this.fillSketch(a,o,r);break}}fillSketch(n,i,r){let a=r.fillWeight;a<0&&(a=r.strokeWidth/2),n.save(),r.fillLineDash&&n.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(n.lineDashOffset=r.fillLineDashOffset),n.strokeStyle=r.fill||"",n.lineWidth=a,this._drawToContext(n,i,r.fixedDecimalPlaceDigits),n.restore()}_drawToContext(n,i,r,a="nonzero"){n.beginPath();for(const s of i.ops){const o=typeof r=="number"&&r>=0?s.data.map(l=>+l.toFixed(r)):s.data;switch(s.op){case"move":n.moveTo(o[0],o[1]);break;case"bcurveTo":n.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":n.lineTo(o[0],o[1]);break}}i.type==="fillPath"?n.fill(a):n.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(n,i,r,a,s){const o=this.gen.line(n,i,r,a,s);return this.draw(o),o}rectangle(n,i,r,a,s){const o=this.gen.rectangle(n,i,r,a,s);return this.draw(o),o}ellipse(n,i,r,a,s){const o=this.gen.ellipse(n,i,r,a,s);return this.draw(o),o}circle(n,i,r,a){const s=this.gen.circle(n,i,r,a);return this.draw(s),s}linearPath(n,i){const r=this.gen.linearPath(n,i);return this.draw(r),r}polygon(n,i){const r=this.gen.polygon(n,i);return this.draw(r),r}arc(n,i,r,a,s,o,l=!1,c){const u=this.gen.arc(n,i,r,a,s,o,l,c);return this.draw(u),u}curve(n,i){const r=this.gen.curve(n,i);return this.draw(r),r}path(n,i){const r=this.gen.path(n,i);return this.draw(r),r}}const Hp="http://www.w3.org/2000/svg";class qU{constructor(n,i){this.svg=n,this.gen=new f0(i)}draw(n){const i=n.sets||[],r=n.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,s=a.createElementNS(Hp,"g"),o=n.options.fixedDecimalPlaceDigits;for(const l of i){let c=null;switch(l.type){case"path":{c=a.createElementNS(Hp,"path"),c.setAttribute("d",this.opsToPath(l,o)),c.setAttribute("stroke",r.stroke),c.setAttribute("stroke-width",r.strokeWidth+""),c.setAttribute("fill","none"),r.strokeLineDash&&c.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&c.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break}case"fillPath":{c=a.createElementNS(Hp,"path"),c.setAttribute("d",this.opsToPath(l,o)),c.setAttribute("stroke","none"),c.setAttribute("stroke-width","0"),c.setAttribute("fill",r.fill||""),(n.shape==="curve"||n.shape==="polygon")&&c.setAttribute("fill-rule","evenodd");break}case"fillSketch":{c=this.fillSketch(a,l,r);break}}c&&s.appendChild(c)}return s}fillSketch(n,i,r){let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=n.createElementNS(Hp,"path");return s.setAttribute("d",this.opsToPath(i,r.fixedDecimalPlaceDigits)),s.setAttribute("stroke",r.fill||""),s.setAttribute("stroke-width",a+""),s.setAttribute("fill","none"),r.fillLineDash&&s.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(n,i){return this.gen.opsToPath(n,i)}line(n,i,r,a,s){const o=this.gen.line(n,i,r,a,s);return this.draw(o)}rectangle(n,i,r,a,s){const o=this.gen.rectangle(n,i,r,a,s);return this.draw(o)}ellipse(n,i,r,a,s){const o=this.gen.ellipse(n,i,r,a,s);return this.draw(o)}circle(n,i,r,a){const s=this.gen.circle(n,i,r,a);return this.draw(s)}linearPath(n,i){const r=this.gen.linearPath(n,i);return this.draw(r)}polygon(n,i){const r=this.gen.polygon(n,i);return this.draw(r)}arc(n,i,r,a,s,o,l=!1,c){const u=this.gen.arc(n,i,r,a,s,o,l,c);return this.draw(u)}curve(n,i){const r=this.gen.curve(n,i);return this.draw(r)}path(n,i){const r=this.gen.path(n,i);return this.draw(r)}}const jc={canvas(e,n){return new zU(e,n)},svg(e,n){return new qU(e,n)},generator(e){return new f0(e)},newSeed(){return f0.newSeed()}};var ai={};const UU="Á",GU="á",VU="Ă",WU="ă",QU="∾",jU="∿",YU="∾̳",KU="Â",XU="â",$U="´",ZU="А",JU="а",eG="Æ",tG="æ",nG="⁡",iG="𝔄",rG="𝔞",aG="À",sG="à",oG="ℵ",lG="ℵ",cG="Α",uG="α",dG="Ā",hG="ā",fG="⨿",pG="&",mG="&",gG="⩕",vG="⩓",bG="∧",yG="⩜",_G="⩘",EG="⩚",AG="∠",wG="⦤",xG="∠",CG="⦨",SG="⦩",TG="⦪",kG="⦫",DG="⦬",NG="⦭",IG="⦮",MG="⦯",LG="∡",OG="∟",RG="⊾",PG="⦝",BG="∢",FG="Å",HG="⍼",zG="Ą",qG="ą",UG="𝔸",GG="𝕒",VG="⩯",WG="≈",QG="⩰",jG="≊",YG="≋",KG="'",XG="⁡",$G="≈",ZG="≊",JG="Å",eV="å",tV="𝒜",nV="𝒶",iV="≔",rV="*",aV="≈",sV="≍",oV="Ã",lV="ã",cV="Ä",uV="ä",dV="∳",hV="⨑",fV="≌",pV="϶",mV="‵",gV="∽",vV="⋍",bV="∖",yV="⫧",_V="⊽",EV="⌅",AV="⌆",wV="⌅",xV="⎵",CV="⎶",SV="≌",TV="Б",kV="б",DV="„",NV="∵",IV="∵",MV="∵",LV="⦰",OV="϶",RV="ℬ",PV="ℬ",BV="Β",FV="β",HV="ℶ",zV="≬",qV="𝔅",UV="𝔟",GV="⋂",VV="◯",WV="⋃",QV="⨀",jV="⨁",YV="⨂",KV="⨆",XV="★",$V="▽",ZV="△",JV="⨄",eW="⋁",tW="⋀",nW="⤍",iW="⧫",rW="▪",aW="▴",sW="▾",oW="◂",lW="▸",cW="␣",uW="▒",dW="░",hW="▓",fW="█",pW="=⃥",mW="≡⃥",gW="⫭",vW="⌐",bW="𝔹",yW="𝕓",_W="⊥",EW="⊥",AW="⋈",wW="⧉",xW="┐",CW="╕",SW="╖",TW="╗",kW="┌",DW="╒",NW="╓",IW="╔",MW="─",LW="═",OW="┬",RW="╤",PW="╥",BW="╦",FW="┴",HW="╧",zW="╨",qW="╩",UW="⊟",GW="⊞",VW="⊠",WW="┘",QW="╛",jW="╜",YW="╝",KW="└",XW="╘",$W="╙",ZW="╚",JW="│",eQ="║",tQ="┼",nQ="╪",iQ="╫",rQ="╬",aQ="┤",sQ="╡",oQ="╢",lQ="╣",cQ="├",uQ="╞",dQ="╟",hQ="╠",fQ="‵",pQ="˘",mQ="˘",gQ="¦",vQ="𝒷",bQ="ℬ",yQ="⁏",_Q="∽",EQ="⋍",AQ="⧅",wQ="\\",xQ="⟈",CQ="•",SQ="•",TQ="≎",kQ="⪮",DQ="≏",NQ="≎",IQ="≏",MQ="Ć",LQ="ć",OQ="⩄",RQ="⩉",PQ="⩋",BQ="∩",FQ="⋒",HQ="⩇",zQ="⩀",qQ="ⅅ",UQ="∩︀",GQ="⁁",VQ="ˇ",WQ="ℭ",QQ="⩍",jQ="Č",YQ="č",KQ="Ç",XQ="ç",$Q="Ĉ",ZQ="ĉ",JQ="∰",ej="⩌",tj="⩐",nj="Ċ",ij="ċ",rj="¸",aj="¸",sj="⦲",oj="¢",lj="·",cj="·",uj="𝔠",dj="ℭ",hj="Ч",fj="ч",pj="✓",mj="✓",gj="Χ",vj="χ",bj="ˆ",yj="≗",_j="↺",Ej="↻",Aj="⊛",wj="⊚",xj="⊝",Cj="⊙",Sj="®",Tj="Ⓢ",kj="⊖",Dj="⊕",Nj="⊗",Ij="○",Mj="⧃",Lj="≗",Oj="⨐",Rj="⫯",Pj="⧂",Bj="∲",Fj="”",Hj="’",zj="♣",qj="♣",Uj=":",Gj="∷",Vj="⩴",Wj="≔",Qj="≔",jj=",",Yj="@",Kj="∁",Xj="∘",$j="∁",Zj="ℂ",Jj="≅",eY="⩭",tY="≡",nY="∮",iY="∯",rY="∮",aY="𝕔",sY="ℂ",oY="∐",lY="∐",cY="©",uY="©",dY="℗",hY="∳",fY="↵",pY="✗",mY="⨯",gY="𝒞",vY="𝒸",bY="⫏",yY="⫑",_Y="⫐",EY="⫒",AY="⋯",wY="⤸",xY="⤵",CY="⋞",SY="⋟",TY="↶",kY="⤽",DY="⩈",NY="⩆",IY="≍",MY="∪",LY="⋓",OY="⩊",RY="⊍",PY="⩅",BY="∪︀",FY="↷",HY="⤼",zY="⋞",qY="⋟",UY="⋎",GY="⋏",VY="¤",WY="↶",QY="↷",jY="⋎",YY="⋏",KY="∲",XY="∱",$Y="⌭",ZY="†",JY="‡",eK="ℸ",tK="↓",nK="↡",iK="⇓",rK="‐",aK="⫤",sK="⊣",oK="⤏",lK="˝",cK="Ď",uK="ď",dK="Д",hK="д",fK="‡",pK="⇊",mK="ⅅ",gK="ⅆ",vK="⤑",bK="⩷",yK="°",_K="∇",EK="Δ",AK="δ",wK="⦱",xK="⥿",CK="𝔇",SK="𝔡",TK="⥥",kK="⇃",DK="⇂",NK="´",IK="˙",MK="˝",LK="`",OK="˜",RK="⋄",PK="⋄",BK="⋄",FK="♦",HK="♦",zK="¨",qK="ⅆ",UK="ϝ",GK="⋲",VK="÷",WK="÷",QK="⋇",jK="⋇",YK="Ђ",KK="ђ",XK="⌞",$K="⌍",ZK="$",JK="𝔻",eX="𝕕",tX="¨",nX="˙",iX="⃜",rX="≐",aX="≑",sX="≐",oX="∸",lX="∔",cX="⊡",uX="⌆",dX="∯",hX="¨",fX="⇓",pX="⇐",mX="⇔",gX="⫤",vX="⟸",bX="⟺",yX="⟹",_X="⇒",EX="⊨",AX="⇑",wX="⇕",xX="∥",CX="⤓",SX="↓",TX="↓",kX="⇓",DX="⇵",NX="̑",IX="⇊",MX="⇃",LX="⇂",OX="⥐",RX="⥞",PX="⥖",BX="↽",FX="⥟",HX="⥗",zX="⇁",qX="↧",UX="⊤",GX="⤐",VX="⌟",WX="⌌",QX="𝒟",jX="𝒹",YX="Ѕ",KX="ѕ",XX="⧶",$X="Đ",ZX="đ",JX="⋱",e$="▿",t$="▾",n$="⇵",i$="⥯",r$="⦦",a$="Џ",s$="џ",o$="⟿",l$="É",c$="é",u$="⩮",d$="Ě",h$="ě",f$="Ê",p$="ê",m$="≖",g$="≕",v$="Э",b$="э",y$="⩷",_$="Ė",E$="ė",A$="≑",w$="ⅇ",x$="≒",C$="𝔈",S$="𝔢",T$="⪚",k$="È",D$="è",N$="⪖",I$="⪘",M$="⪙",L$="∈",O$="⏧",R$="ℓ",P$="⪕",B$="⪗",F$="Ē",H$="ē",z$="∅",q$="∅",U$="◻",G$="∅",V$="▫",W$=" ",Q$=" ",j$=" ",Y$="Ŋ",K$="ŋ",X$=" ",$$="Ę",Z$="ę",J$="𝔼",eZ="𝕖",tZ="⋕",nZ="⧣",iZ="⩱",rZ="ε",aZ="Ε",sZ="ε",oZ="ϵ",lZ="≖",cZ="≕",uZ="≂",dZ="⪖",hZ="⪕",fZ="⩵",pZ="=",mZ="≂",gZ="≟",vZ="⇌",bZ="≡",yZ="⩸",_Z="⧥",EZ="⥱",AZ="≓",wZ="ℯ",xZ="ℰ",CZ="≐",SZ="⩳",TZ="≂",kZ="Η",DZ="η",NZ="Ð",IZ="ð",MZ="Ë",LZ="ë",OZ="€",RZ="!",PZ="∃",BZ="∃",FZ="ℰ",HZ="ⅇ",zZ="ⅇ",qZ="≒",UZ="Ф",GZ="ф",VZ="♀",WZ="ffi",QZ="ff",jZ="ffl",YZ="𝔉",KZ="𝔣",XZ="fi",$Z="◼",ZZ="▪",JZ="fj",eJ="♭",tJ="fl",nJ="▱",iJ="ƒ",rJ="𝔽",aJ="𝕗",sJ="∀",oJ="∀",lJ="⋔",cJ="⫙",uJ="ℱ",dJ="⨍",hJ="½",fJ="⅓",pJ="¼",mJ="⅕",gJ="⅙",vJ="⅛",bJ="⅔",yJ="⅖",_J="¾",EJ="⅗",AJ="⅜",wJ="⅘",xJ="⅚",CJ="⅝",SJ="⅞",TJ="⁄",kJ="⌢",DJ="𝒻",NJ="ℱ",IJ="ǵ",MJ="Γ",LJ="γ",OJ="Ϝ",RJ="ϝ",PJ="⪆",BJ="Ğ",FJ="ğ",HJ="Ģ",zJ="Ĝ",qJ="ĝ",UJ="Г",GJ="г",VJ="Ġ",WJ="ġ",QJ="≥",jJ="≧",YJ="⪌",KJ="⋛",XJ="≥",$J="≧",ZJ="⩾",JJ="⪩",eee="⩾",tee="⪀",nee="⪂",iee="⪄",ree="⋛︀",aee="⪔",see="𝔊",oee="𝔤",lee="≫",cee="⋙",uee="⋙",dee="ℷ",hee="Ѓ",fee="ѓ",pee="⪥",mee="≷",gee="⪒",vee="⪤",bee="⪊",yee="⪊",_ee="⪈",Eee="≩",Aee="⪈",wee="≩",xee="⋧",Cee="𝔾",See="𝕘",Tee="`",kee="≥",Dee="⋛",Nee="≧",Iee="⪢",Mee="≷",Lee="⩾",Oee="≳",Ree="𝒢",Pee="ℊ",Bee="≳",Fee="⪎",Hee="⪐",zee="⪧",qee="⩺",Uee=">",Gee=">",Vee="≫",Wee="⋗",Qee="⦕",jee="⩼",Yee="⪆",Kee="⥸",Xee="⋗",$ee="⋛",Zee="⪌",Jee="≷",ete="≳",tte="≩︀",nte="≩︀",ite="ˇ",rte=" ",ate="½",ste="ℋ",ote="Ъ",lte="ъ",cte="⥈",ute="↔",dte="⇔",hte="↭",fte="^",pte="ℏ",mte="Ĥ",gte="ĥ",vte="♥",bte="♥",yte="…",_te="⊹",Ete="𝔥",Ate="ℌ",wte="ℋ",xte="⤥",Cte="⤦",Ste="⇿",Tte="∻",kte="↩",Dte="↪",Nte="𝕙",Ite="ℍ",Mte="―",Lte="─",Ote="𝒽",Rte="ℋ",Pte="ℏ",Bte="Ħ",Fte="ħ",Hte="≎",zte="≏",qte="⁃",Ute="‐",Gte="Í",Vte="í",Wte="⁣",Qte="Î",jte="î",Yte="И",Kte="и",Xte="İ",$te="Е",Zte="е",Jte="¡",ene="⇔",tne="𝔦",nne="ℑ",ine="Ì",rne="ì",ane="ⅈ",sne="⨌",one="∭",lne="⧜",cne="℩",une="IJ",dne="ij",hne="Ī",fne="ī",pne="ℑ",mne="ⅈ",gne="ℐ",vne="ℑ",bne="ı",yne="ℑ",_ne="⊷",Ene="Ƶ",Ane="⇒",wne="℅",xne="∞",Cne="⧝",Sne="ı",Tne="⊺",kne="∫",Dne="∬",Nne="ℤ",Ine="∫",Mne="⊺",Lne="⋂",One="⨗",Rne="⨼",Pne="⁣",Bne="⁢",Fne="Ё",Hne="ё",zne="Į",qne="į",Une="𝕀",Gne="𝕚",Vne="Ι",Wne="ι",Qne="⨼",jne="¿",Yne="𝒾",Kne="ℐ",Xne="∈",$ne="⋵",Zne="⋹",Jne="⋴",eie="⋳",tie="∈",nie="⁢",iie="Ĩ",rie="ĩ",aie="І",sie="і",oie="Ï",lie="ï",cie="Ĵ",uie="ĵ",die="Й",hie="й",fie="𝔍",pie="𝔧",mie="ȷ",gie="𝕁",vie="𝕛",bie="𝒥",yie="𝒿",_ie="Ј",Eie="ј",Aie="Є",wie="є",xie="Κ",Cie="κ",Sie="ϰ",Tie="Ķ",kie="ķ",Die="К",Nie="к",Iie="𝔎",Mie="𝔨",Lie="ĸ",Oie="Х",Rie="х",Pie="Ќ",Bie="ќ",Fie="𝕂",Hie="𝕜",zie="𝒦",qie="𝓀",Uie="⇚",Gie="Ĺ",Vie="ĺ",Wie="⦴",Qie="ℒ",jie="Λ",Yie="λ",Kie="⟨",Xie="⟪",$ie="⦑",Zie="⟨",Jie="⪅",ere="ℒ",tre="«",nre="⇤",ire="⤟",rre="←",are="↞",sre="⇐",ore="⤝",lre="↩",cre="↫",ure="⤹",dre="⥳",hre="↢",fre="⤙",pre="⤛",mre="⪫",gre="⪭",vre="⪭︀",bre="⤌",yre="⤎",_re="❲",Ere="{",Are="[",wre="⦋",xre="⦏",Cre="⦍",Sre="Ľ",Tre="ľ",kre="Ļ",Dre="ļ",Nre="⌈",Ire="{",Mre="Л",Lre="л",Ore="⤶",Rre="“",Pre="„",Bre="⥧",Fre="⥋",Hre="↲",zre="≤",qre="≦",Ure="⟨",Gre="⇤",Vre="←",Wre="←",Qre="⇐",jre="⇆",Yre="↢",Kre="⌈",Xre="⟦",$re="⥡",Zre="⥙",Jre="⇃",eae="⌊",tae="↽",nae="↼",iae="⇇",rae="↔",aae="↔",sae="⇔",oae="⇆",lae="⇋",cae="↭",uae="⥎",dae="↤",hae="⊣",fae="⥚",pae="⋋",mae="⧏",gae="⊲",vae="⊴",bae="⥑",yae="⥠",_ae="⥘",Eae="↿",Aae="⥒",wae="↼",xae="⪋",Cae="⋚",Sae="≤",Tae="≦",kae="⩽",Dae="⪨",Nae="⩽",Iae="⩿",Mae="⪁",Lae="⪃",Oae="⋚︀",Rae="⪓",Pae="⪅",Bae="⋖",Fae="⋚",Hae="⪋",zae="⋚",qae="≦",Uae="≶",Gae="≶",Vae="⪡",Wae="≲",Qae="⩽",jae="≲",Yae="⥼",Kae="⌊",Xae="𝔏",$ae="𝔩",Zae="≶",Jae="⪑",ese="⥢",tse="↽",nse="↼",ise="⥪",rse="▄",ase="Љ",sse="љ",ose="⇇",lse="≪",cse="⋘",use="⌞",dse="⇚",hse="⥫",fse="◺",pse="Ŀ",mse="ŀ",gse="⎰",vse="⎰",bse="⪉",yse="⪉",_se="⪇",Ese="≨",Ase="⪇",wse="≨",xse="⋦",Cse="⟬",Sse="⇽",Tse="⟦",kse="⟵",Dse="⟵",Nse="⟸",Ise="⟷",Mse="⟷",Lse="⟺",Ose="⟼",Rse="⟶",Pse="⟶",Bse="⟹",Fse="↫",Hse="↬",zse="⦅",qse="𝕃",Use="𝕝",Gse="⨭",Vse="⨴",Wse="∗",Qse="_",jse="↙",Yse="↘",Kse="◊",Xse="◊",$se="⧫",Zse="(",Jse="⦓",eoe="⇆",toe="⌟",noe="⇋",ioe="⥭",roe="‎",aoe="⊿",soe="‹",ooe="𝓁",loe="ℒ",coe="↰",uoe="↰",doe="≲",hoe="⪍",foe="⪏",poe="[",moe="‘",goe="‚",voe="Ł",boe="ł",yoe="⪦",_oe="⩹",Eoe="<",Aoe="<",woe="≪",xoe="⋖",Coe="⋋",Soe="⋉",Toe="⥶",koe="⩻",Doe="◃",Noe="⊴",Ioe="◂",Moe="⦖",Loe="⥊",Ooe="⥦",Roe="≨︀",Poe="≨︀",Boe="¯",Foe="♂",Hoe="✠",zoe="✠",qoe="↦",Uoe="↦",Goe="↧",Voe="↤",Woe="↥",Qoe="▮",joe="⨩",Yoe="М",Koe="м",Xoe="—",$oe="∺",Zoe="∡",Joe=" ",ele="ℳ",tle="𝔐",nle="𝔪",ile="℧",rle="µ",ale="*",sle="⫰",ole="∣",lle="·",cle="⊟",ule="−",dle="∸",hle="⨪",fle="∓",ple="⫛",mle="…",gle="∓",vle="⊧",ble="𝕄",yle="𝕞",_le="∓",Ele="𝓂",Ale="ℳ",wle="∾",xle="Μ",Cle="μ",Sle="⊸",Tle="⊸",kle="∇",Dle="Ń",Nle="ń",Ile="∠⃒",Mle="≉",Lle="⩰̸",Ole="≋̸",Rle="ʼn",Ple="≉",Ble="♮",Fle="ℕ",Hle="♮",zle=" ",qle="≎̸",Ule="≏̸",Gle="⩃",Vle="Ň",Wle="ň",Qle="Ņ",jle="ņ",Yle="≇",Kle="⩭̸",Xle="⩂",$le="Н",Zle="н",Jle="–",ece="⤤",tce="↗",nce="⇗",ice="↗",rce="≠",ace="≐̸",sce="​",oce="​",lce="​",cce="​",uce="≢",dce="⤨",hce="≂̸",fce="≫",pce="≪",mce=` -`,gce="∄",vce="∄",bce="𝔑",yce="𝔫",_ce="≧̸",Ece="≱",Ace="≱",wce="≧̸",xce="⩾̸",Cce="⩾̸",Sce="⋙̸",Tce="≵",kce="≫⃒",Dce="≯",Nce="≯",Ice="≫̸",Mce="↮",Lce="⇎",Oce="⫲",Rce="∋",Pce="⋼",Bce="⋺",Fce="∋",Hce="Њ",zce="њ",qce="↚",Uce="⇍",Gce="‥",Vce="≦̸",Wce="≰",Qce="↚",jce="⇍",Yce="↮",Kce="⇎",Xce="≰",$ce="≦̸",Zce="⩽̸",Jce="⩽̸",eue="≮",tue="⋘̸",nue="≴",iue="≪⃒",rue="≮",aue="⋪",sue="⋬",oue="≪̸",lue="∤",cue="⁠",uue=" ",due="𝕟",hue="ℕ",fue="⫬",pue="¬",mue="≢",gue="≭",vue="∦",bue="∉",yue="≠",_ue="≂̸",Eue="∄",Aue="≯",wue="≱",xue="≧̸",Cue="≫̸",Sue="≹",Tue="⩾̸",kue="≵",Due="≎̸",Nue="≏̸",Iue="∉",Mue="⋵̸",Lue="⋹̸",Oue="∉",Rue="⋷",Pue="⋶",Bue="⧏̸",Fue="⋪",Hue="⋬",zue="≮",que="≰",Uue="≸",Gue="≪̸",Vue="⩽̸",Wue="≴",Que="⪢̸",jue="⪡̸",Yue="∌",Kue="∌",Xue="⋾",$ue="⋽",Zue="⊀",Jue="⪯̸",ede="⋠",tde="∌",nde="⧐̸",ide="⋫",rde="⋭",ade="⊏̸",sde="⋢",ode="⊐̸",lde="⋣",cde="⊂⃒",ude="⊈",dde="⊁",hde="⪰̸",fde="⋡",pde="≿̸",mde="⊃⃒",gde="⊉",vde="≁",bde="≄",yde="≇",_de="≉",Ede="∤",Ade="∦",wde="∦",xde="⫽⃥",Cde="∂̸",Sde="⨔",Tde="⊀",kde="⋠",Dde="⊀",Nde="⪯̸",Ide="⪯̸",Mde="⤳̸",Lde="↛",Ode="⇏",Rde="↝̸",Pde="↛",Bde="⇏",Fde="⋫",Hde="⋭",zde="⊁",qde="⋡",Ude="⪰̸",Gde="𝒩",Vde="𝓃",Wde="∤",Qde="∦",jde="≁",Yde="≄",Kde="≄",Xde="∤",$de="∦",Zde="⋢",Jde="⋣",ehe="⊄",the="⫅̸",nhe="⊈",ihe="⊂⃒",rhe="⊈",ahe="⫅̸",she="⊁",ohe="⪰̸",lhe="⊅",che="⫆̸",uhe="⊉",dhe="⊃⃒",hhe="⊉",fhe="⫆̸",phe="≹",mhe="Ñ",ghe="ñ",vhe="≸",bhe="⋪",yhe="⋬",_he="⋫",Ehe="⋭",Ahe="Ν",whe="ν",xhe="#",Che="№",She=" ",The="≍⃒",khe="⊬",Dhe="⊭",Nhe="⊮",Ihe="⊯",Mhe="≥⃒",Lhe=">⃒",Ohe="⤄",Rhe="⧞",Phe="⤂",Bhe="≤⃒",Fhe="<⃒",Hhe="⊴⃒",zhe="⤃",qhe="⊵⃒",Uhe="∼⃒",Ghe="⤣",Vhe="↖",Whe="⇖",Qhe="↖",jhe="⤧",Yhe="Ó",Khe="ó",Xhe="⊛",$he="Ô",Zhe="ô",Jhe="⊚",efe="О",tfe="о",nfe="⊝",ife="Ő",rfe="ő",afe="⨸",sfe="⊙",ofe="⦼",lfe="Œ",cfe="œ",ufe="⦿",dfe="𝔒",hfe="𝔬",ffe="˛",pfe="Ò",mfe="ò",gfe="⧁",vfe="⦵",bfe="Ω",yfe="∮",_fe="↺",Efe="⦾",Afe="⦻",wfe="‾",xfe="⧀",Cfe="Ō",Sfe="ō",Tfe="Ω",kfe="ω",Dfe="Ο",Nfe="ο",Ife="⦶",Mfe="⊖",Lfe="𝕆",Ofe="𝕠",Rfe="⦷",Pfe="“",Bfe="‘",Ffe="⦹",Hfe="⊕",zfe="↻",qfe="⩔",Ufe="∨",Gfe="⩝",Vfe="ℴ",Wfe="ℴ",Qfe="ª",jfe="º",Yfe="⊶",Kfe="⩖",Xfe="⩗",$fe="⩛",Zfe="Ⓢ",Jfe="𝒪",epe="ℴ",tpe="Ø",npe="ø",ipe="⊘",rpe="Õ",ape="õ",spe="⨶",ope="⨷",lpe="⊗",cpe="Ö",upe="ö",dpe="⌽",hpe="‾",fpe="⏞",ppe="⎴",mpe="⏜",gpe="¶",vpe="∥",bpe="∥",ype="⫳",_pe="⫽",Epe="∂",Ape="∂",wpe="П",xpe="п",Cpe="%",Spe=".",Tpe="‰",kpe="⊥",Dpe="‱",Npe="𝔓",Ipe="𝔭",Mpe="Φ",Lpe="φ",Ope="ϕ",Rpe="ℳ",Ppe="☎",Bpe="Π",Fpe="π",Hpe="⋔",zpe="ϖ",qpe="ℏ",Upe="ℎ",Gpe="ℏ",Vpe="⨣",Wpe="⊞",Qpe="⨢",jpe="+",Ype="∔",Kpe="⨥",Xpe="⩲",$pe="±",Zpe="±",Jpe="⨦",eme="⨧",tme="±",nme="ℌ",ime="⨕",rme="𝕡",ame="ℙ",sme="£",ome="⪷",lme="⪻",cme="≺",ume="≼",dme="⪷",hme="≺",fme="≼",pme="≺",mme="⪯",gme="≼",vme="≾",bme="⪯",yme="⪹",_me="⪵",Eme="⋨",Ame="⪯",wme="⪳",xme="≾",Cme="′",Sme="″",Tme="ℙ",kme="⪹",Dme="⪵",Nme="⋨",Ime="∏",Mme="∏",Lme="⌮",Ome="⌒",Rme="⌓",Pme="∝",Bme="∝",Fme="∷",Hme="∝",zme="≾",qme="⊰",Ume="𝒫",Gme="𝓅",Vme="Ψ",Wme="ψ",Qme=" ",jme="𝔔",Yme="𝔮",Kme="⨌",Xme="𝕢",$me="ℚ",Zme="⁗",Jme="𝒬",e0e="𝓆",t0e="ℍ",n0e="⨖",i0e="?",r0e="≟",a0e='"',s0e='"',o0e="⇛",l0e="∽̱",c0e="Ŕ",u0e="ŕ",d0e="√",h0e="⦳",f0e="⟩",p0e="⟫",m0e="⦒",g0e="⦥",v0e="⟩",b0e="»",y0e="⥵",_0e="⇥",E0e="⤠",A0e="⤳",w0e="→",x0e="↠",C0e="⇒",S0e="⤞",T0e="↪",k0e="↬",D0e="⥅",N0e="⥴",I0e="⤖",M0e="↣",L0e="↝",O0e="⤚",R0e="⤜",P0e="∶",B0e="ℚ",F0e="⤍",H0e="⤏",z0e="⤐",q0e="❳",U0e="}",G0e="]",V0e="⦌",W0e="⦎",Q0e="⦐",j0e="Ř",Y0e="ř",K0e="Ŗ",X0e="ŗ",$0e="⌉",Z0e="}",J0e="Р",ege="р",tge="⤷",nge="⥩",ige="”",rge="”",age="↳",sge="ℜ",oge="ℛ",lge="ℜ",cge="ℝ",uge="ℜ",dge="▭",hge="®",fge="®",pge="∋",mge="⇋",gge="⥯",vge="⥽",bge="⌋",yge="𝔯",_ge="ℜ",Ege="⥤",Age="⇁",wge="⇀",xge="⥬",Cge="Ρ",Sge="ρ",Tge="ϱ",kge="⟩",Dge="⇥",Nge="→",Ige="→",Mge="⇒",Lge="⇄",Oge="↣",Rge="⌉",Pge="⟧",Bge="⥝",Fge="⥕",Hge="⇂",zge="⌋",qge="⇁",Uge="⇀",Gge="⇄",Vge="⇌",Wge="⇉",Qge="↝",jge="↦",Yge="⊢",Kge="⥛",Xge="⋌",$ge="⧐",Zge="⊳",Jge="⊵",eve="⥏",tve="⥜",nve="⥔",ive="↾",rve="⥓",ave="⇀",sve="˚",ove="≓",lve="⇄",cve="⇌",uve="‏",dve="⎱",hve="⎱",fve="⫮",pve="⟭",mve="⇾",gve="⟧",vve="⦆",bve="𝕣",yve="ℝ",_ve="⨮",Eve="⨵",Ave="⥰",wve=")",xve="⦔",Cve="⨒",Sve="⇉",Tve="⇛",kve="›",Dve="𝓇",Nve="ℛ",Ive="↱",Mve="↱",Lve="]",Ove="’",Rve="’",Pve="⋌",Bve="⋊",Fve="▹",Hve="⊵",zve="▸",qve="⧎",Uve="⧴",Gve="⥨",Vve="℞",Wve="Ś",Qve="ś",jve="‚",Yve="⪸",Kve="Š",Xve="š",$ve="⪼",Zve="≻",Jve="≽",ebe="⪰",tbe="⪴",nbe="Ş",ibe="ş",rbe="Ŝ",abe="ŝ",sbe="⪺",obe="⪶",lbe="⋩",cbe="⨓",ube="≿",dbe="С",hbe="с",fbe="⊡",pbe="⋅",mbe="⩦",gbe="⤥",vbe="↘",bbe="⇘",ybe="↘",_be="§",Ebe=";",Abe="⤩",wbe="∖",xbe="∖",Cbe="✶",Sbe="𝔖",Tbe="𝔰",kbe="⌢",Dbe="♯",Nbe="Щ",Ibe="щ",Mbe="Ш",Lbe="ш",Obe="↓",Rbe="←",Pbe="∣",Bbe="∥",Fbe="→",Hbe="↑",zbe="­",qbe="Σ",Ube="σ",Gbe="ς",Vbe="ς",Wbe="∼",Qbe="⩪",jbe="≃",Ybe="≃",Kbe="⪞",Xbe="⪠",$be="⪝",Zbe="⪟",Jbe="≆",e1e="⨤",t1e="⥲",n1e="←",i1e="∘",r1e="∖",a1e="⨳",s1e="⧤",o1e="∣",l1e="⌣",c1e="⪪",u1e="⪬",d1e="⪬︀",h1e="Ь",f1e="ь",p1e="⌿",m1e="⧄",g1e="/",v1e="𝕊",b1e="𝕤",y1e="♠",_1e="♠",E1e="∥",A1e="⊓",w1e="⊓︀",x1e="⊔",C1e="⊔︀",S1e="√",T1e="⊏",k1e="⊑",D1e="⊏",N1e="⊑",I1e="⊐",M1e="⊒",L1e="⊐",O1e="⊒",R1e="□",P1e="□",B1e="⊓",F1e="⊏",H1e="⊑",z1e="⊐",q1e="⊒",U1e="⊔",G1e="▪",V1e="□",W1e="▪",Q1e="→",j1e="𝒮",Y1e="𝓈",K1e="∖",X1e="⌣",$1e="⋆",Z1e="⋆",J1e="☆",eye="★",tye="ϵ",nye="ϕ",iye="¯",rye="⊂",aye="⋐",sye="⪽",oye="⫅",lye="⊆",cye="⫃",uye="⫁",dye="⫋",hye="⊊",fye="⪿",pye="⥹",mye="⊂",gye="⋐",vye="⊆",bye="⫅",yye="⊆",_ye="⊊",Eye="⫋",Aye="⫇",wye="⫕",xye="⫓",Cye="⪸",Sye="≻",Tye="≽",kye="≻",Dye="⪰",Nye="≽",Iye="≿",Mye="⪰",Lye="⪺",Oye="⪶",Rye="⋩",Pye="≿",Bye="∋",Fye="∑",Hye="∑",zye="♪",qye="¹",Uye="²",Gye="³",Vye="⊃",Wye="⋑",Qye="⪾",jye="⫘",Yye="⫆",Kye="⊇",Xye="⫄",$ye="⊃",Zye="⊇",Jye="⟉",e_e="⫗",t_e="⥻",n_e="⫂",i_e="⫌",r_e="⊋",a_e="⫀",s_e="⊃",o_e="⋑",l_e="⊇",c_e="⫆",u_e="⊋",d_e="⫌",h_e="⫈",f_e="⫔",p_e="⫖",m_e="⤦",g_e="↙",v_e="⇙",b_e="↙",y_e="⤪",__e="ß",E_e=" ",A_e="⌖",w_e="Τ",x_e="τ",C_e="⎴",S_e="Ť",T_e="ť",k_e="Ţ",D_e="ţ",N_e="Т",I_e="т",M_e="⃛",L_e="⌕",O_e="𝔗",R_e="𝔱",P_e="∴",B_e="∴",F_e="∴",H_e="Θ",z_e="θ",q_e="ϑ",U_e="ϑ",G_e="≈",V_e="∼",W_e="  ",Q_e=" ",j_e=" ",Y_e="≈",K_e="∼",X_e="Þ",$_e="þ",Z_e="˜",J_e="∼",eEe="≃",tEe="≅",nEe="≈",iEe="⨱",rEe="⊠",aEe="×",sEe="⨰",oEe="∭",lEe="⤨",cEe="⌶",uEe="⫱",dEe="⊤",hEe="𝕋",fEe="𝕥",pEe="⫚",mEe="⤩",gEe="‴",vEe="™",bEe="™",yEe="▵",_Ee="▿",EEe="◃",AEe="⊴",wEe="≜",xEe="▹",CEe="⊵",SEe="◬",TEe="≜",kEe="⨺",DEe="⃛",NEe="⨹",IEe="⧍",MEe="⨻",LEe="⏢",OEe="𝒯",REe="𝓉",PEe="Ц",BEe="ц",FEe="Ћ",HEe="ћ",zEe="Ŧ",qEe="ŧ",UEe="≬",GEe="↞",VEe="↠",WEe="Ú",QEe="ú",jEe="↑",YEe="↟",KEe="⇑",XEe="⥉",$Ee="Ў",ZEe="ў",JEe="Ŭ",eAe="ŭ",tAe="Û",nAe="û",iAe="У",rAe="у",aAe="⇅",sAe="Ű",oAe="ű",lAe="⥮",cAe="⥾",uAe="𝔘",dAe="𝔲",hAe="Ù",fAe="ù",pAe="⥣",mAe="↿",gAe="↾",vAe="▀",bAe="⌜",yAe="⌜",_Ae="⌏",EAe="◸",AAe="Ū",wAe="ū",xAe="¨",CAe="_",SAe="⏟",TAe="⎵",kAe="⏝",DAe="⋃",NAe="⊎",IAe="Ų",MAe="ų",LAe="𝕌",OAe="𝕦",RAe="⤒",PAe="↑",BAe="↑",FAe="⇑",HAe="⇅",zAe="↕",qAe="↕",UAe="⇕",GAe="⥮",VAe="↿",WAe="↾",QAe="⊎",jAe="↖",YAe="↗",KAe="υ",XAe="ϒ",$Ae="ϒ",ZAe="Υ",JAe="υ",ewe="↥",twe="⊥",nwe="⇈",iwe="⌝",rwe="⌝",awe="⌎",swe="Ů",owe="ů",lwe="◹",cwe="𝒰",uwe="𝓊",dwe="⋰",hwe="Ũ",fwe="ũ",pwe="▵",mwe="▴",gwe="⇈",vwe="Ü",bwe="ü",ywe="⦧",_we="⦜",Ewe="ϵ",Awe="ϰ",wwe="∅",xwe="ϕ",Cwe="ϖ",Swe="∝",Twe="↕",kwe="⇕",Dwe="ϱ",Nwe="ς",Iwe="⊊︀",Mwe="⫋︀",Lwe="⊋︀",Owe="⫌︀",Rwe="ϑ",Pwe="⊲",Bwe="⊳",Fwe="⫨",Hwe="⫫",zwe="⫩",qwe="В",Uwe="в",Gwe="⊢",Vwe="⊨",Wwe="⊩",Qwe="⊫",jwe="⫦",Ywe="⊻",Kwe="∨",Xwe="⋁",$we="≚",Zwe="⋮",Jwe="|",exe="‖",txe="|",nxe="‖",ixe="∣",rxe="|",axe="❘",sxe="≀",oxe=" ",lxe="𝔙",cxe="𝔳",uxe="⊲",dxe="⊂⃒",hxe="⊃⃒",fxe="𝕍",pxe="𝕧",mxe="∝",gxe="⊳",vxe="𝒱",bxe="𝓋",yxe="⫋︀",_xe="⊊︀",Exe="⫌︀",Axe="⊋︀",wxe="⊪",xxe="⦚",Cxe="Ŵ",Sxe="ŵ",Txe="⩟",kxe="∧",Dxe="⋀",Nxe="≙",Ixe="℘",Mxe="𝔚",Lxe="𝔴",Oxe="𝕎",Rxe="𝕨",Pxe="℘",Bxe="≀",Fxe="≀",Hxe="𝒲",zxe="𝓌",qxe="⋂",Uxe="◯",Gxe="⋃",Vxe="▽",Wxe="𝔛",Qxe="𝔵",jxe="⟷",Yxe="⟺",Kxe="Ξ",Xxe="ξ",$xe="⟵",Zxe="⟸",Jxe="⟼",e2e="⋻",t2e="⨀",n2e="𝕏",i2e="𝕩",r2e="⨁",a2e="⨂",s2e="⟶",o2e="⟹",l2e="𝒳",c2e="𝓍",u2e="⨆",d2e="⨄",h2e="△",f2e="⋁",p2e="⋀",m2e="Ý",g2e="ý",v2e="Я",b2e="я",y2e="Ŷ",_2e="ŷ",E2e="Ы",A2e="ы",w2e="¥",x2e="𝔜",C2e="𝔶",S2e="Ї",T2e="ї",k2e="𝕐",D2e="𝕪",N2e="𝒴",I2e="𝓎",M2e="Ю",L2e="ю",O2e="ÿ",R2e="Ÿ",P2e="Ź",B2e="ź",F2e="Ž",H2e="ž",z2e="З",q2e="з",U2e="Ż",G2e="ż",V2e="ℨ",W2e="​",Q2e="Ζ",j2e="ζ",Y2e="𝔷",K2e="ℨ",X2e="Ж",$2e="ж",Z2e="⇝",J2e="𝕫",eCe="ℤ",tCe="𝒵",nCe="𝓏",iCe="‍",rCe="‌",aCe={Aacute:UU,aacute:GU,Abreve:VU,abreve:WU,ac:QU,acd:jU,acE:YU,Acirc:KU,acirc:XU,acute:$U,Acy:ZU,acy:JU,AElig:eG,aelig:tG,af:nG,Afr:iG,afr:rG,Agrave:aG,agrave:sG,alefsym:oG,aleph:lG,Alpha:cG,alpha:uG,Amacr:dG,amacr:hG,amalg:fG,amp:pG,AMP:mG,andand:gG,And:vG,and:bG,andd:yG,andslope:_G,andv:EG,ang:AG,ange:wG,angle:xG,angmsdaa:CG,angmsdab:SG,angmsdac:TG,angmsdad:kG,angmsdae:DG,angmsdaf:NG,angmsdag:IG,angmsdah:MG,angmsd:LG,angrt:OG,angrtvb:RG,angrtvbd:PG,angsph:BG,angst:FG,angzarr:HG,Aogon:zG,aogon:qG,Aopf:UG,aopf:GG,apacir:VG,ap:WG,apE:QG,ape:jG,apid:YG,apos:KG,ApplyFunction:XG,approx:$G,approxeq:ZG,Aring:JG,aring:eV,Ascr:tV,ascr:nV,Assign:iV,ast:rV,asymp:aV,asympeq:sV,Atilde:oV,atilde:lV,Auml:cV,auml:uV,awconint:dV,awint:hV,backcong:fV,backepsilon:pV,backprime:mV,backsim:gV,backsimeq:vV,Backslash:bV,Barv:yV,barvee:_V,barwed:EV,Barwed:AV,barwedge:wV,bbrk:xV,bbrktbrk:CV,bcong:SV,Bcy:TV,bcy:kV,bdquo:DV,becaus:NV,because:IV,Because:MV,bemptyv:LV,bepsi:OV,bernou:RV,Bernoullis:PV,Beta:BV,beta:FV,beth:HV,between:zV,Bfr:qV,bfr:UV,bigcap:GV,bigcirc:VV,bigcup:WV,bigodot:QV,bigoplus:jV,bigotimes:YV,bigsqcup:KV,bigstar:XV,bigtriangledown:$V,bigtriangleup:ZV,biguplus:JV,bigvee:eW,bigwedge:tW,bkarow:nW,blacklozenge:iW,blacksquare:rW,blacktriangle:aW,blacktriangledown:sW,blacktriangleleft:oW,blacktriangleright:lW,blank:cW,blk12:uW,blk14:dW,blk34:hW,block:fW,bne:pW,bnequiv:mW,bNot:gW,bnot:vW,Bopf:bW,bopf:yW,bot:_W,bottom:EW,bowtie:AW,boxbox:wW,boxdl:xW,boxdL:CW,boxDl:SW,boxDL:TW,boxdr:kW,boxdR:DW,boxDr:NW,boxDR:IW,boxh:MW,boxH:LW,boxhd:OW,boxHd:RW,boxhD:PW,boxHD:BW,boxhu:FW,boxHu:HW,boxhU:zW,boxHU:qW,boxminus:UW,boxplus:GW,boxtimes:VW,boxul:WW,boxuL:QW,boxUl:jW,boxUL:YW,boxur:KW,boxuR:XW,boxUr:$W,boxUR:ZW,boxv:JW,boxV:eQ,boxvh:tQ,boxvH:nQ,boxVh:iQ,boxVH:rQ,boxvl:aQ,boxvL:sQ,boxVl:oQ,boxVL:lQ,boxvr:cQ,boxvR:uQ,boxVr:dQ,boxVR:hQ,bprime:fQ,breve:pQ,Breve:mQ,brvbar:gQ,bscr:vQ,Bscr:bQ,bsemi:yQ,bsim:_Q,bsime:EQ,bsolb:AQ,bsol:wQ,bsolhsub:xQ,bull:CQ,bullet:SQ,bump:TQ,bumpE:kQ,bumpe:DQ,Bumpeq:NQ,bumpeq:IQ,Cacute:MQ,cacute:LQ,capand:OQ,capbrcup:RQ,capcap:PQ,cap:BQ,Cap:FQ,capcup:HQ,capdot:zQ,CapitalDifferentialD:qQ,caps:UQ,caret:GQ,caron:VQ,Cayleys:WQ,ccaps:QQ,Ccaron:jQ,ccaron:YQ,Ccedil:KQ,ccedil:XQ,Ccirc:$Q,ccirc:ZQ,Cconint:JQ,ccups:ej,ccupssm:tj,Cdot:nj,cdot:ij,cedil:rj,Cedilla:aj,cemptyv:sj,cent:oj,centerdot:lj,CenterDot:cj,cfr:uj,Cfr:dj,CHcy:hj,chcy:fj,check:pj,checkmark:mj,Chi:gj,chi:vj,circ:bj,circeq:yj,circlearrowleft:_j,circlearrowright:Ej,circledast:Aj,circledcirc:wj,circleddash:xj,CircleDot:Cj,circledR:Sj,circledS:Tj,CircleMinus:kj,CirclePlus:Dj,CircleTimes:Nj,cir:Ij,cirE:Mj,cire:Lj,cirfnint:Oj,cirmid:Rj,cirscir:Pj,ClockwiseContourIntegral:Bj,CloseCurlyDoubleQuote:Fj,CloseCurlyQuote:Hj,clubs:zj,clubsuit:qj,colon:Uj,Colon:Gj,Colone:Vj,colone:Wj,coloneq:Qj,comma:jj,commat:Yj,comp:Kj,compfn:Xj,complement:$j,complexes:Zj,cong:Jj,congdot:eY,Congruent:tY,conint:nY,Conint:iY,ContourIntegral:rY,copf:aY,Copf:sY,coprod:oY,Coproduct:lY,copy:cY,COPY:uY,copysr:dY,CounterClockwiseContourIntegral:hY,crarr:fY,cross:pY,Cross:mY,Cscr:gY,cscr:vY,csub:bY,csube:yY,csup:_Y,csupe:EY,ctdot:AY,cudarrl:wY,cudarrr:xY,cuepr:CY,cuesc:SY,cularr:TY,cularrp:kY,cupbrcap:DY,cupcap:NY,CupCap:IY,cup:MY,Cup:LY,cupcup:OY,cupdot:RY,cupor:PY,cups:BY,curarr:FY,curarrm:HY,curlyeqprec:zY,curlyeqsucc:qY,curlyvee:UY,curlywedge:GY,curren:VY,curvearrowleft:WY,curvearrowright:QY,cuvee:jY,cuwed:YY,cwconint:KY,cwint:XY,cylcty:$Y,dagger:ZY,Dagger:JY,daleth:eK,darr:tK,Darr:nK,dArr:iK,dash:rK,Dashv:aK,dashv:sK,dbkarow:oK,dblac:lK,Dcaron:cK,dcaron:uK,Dcy:dK,dcy:hK,ddagger:fK,ddarr:pK,DD:mK,dd:gK,DDotrahd:vK,ddotseq:bK,deg:yK,Del:_K,Delta:EK,delta:AK,demptyv:wK,dfisht:xK,Dfr:CK,dfr:SK,dHar:TK,dharl:kK,dharr:DK,DiacriticalAcute:NK,DiacriticalDot:IK,DiacriticalDoubleAcute:MK,DiacriticalGrave:LK,DiacriticalTilde:OK,diam:RK,diamond:PK,Diamond:BK,diamondsuit:FK,diams:HK,die:zK,DifferentialD:qK,digamma:UK,disin:GK,div:VK,divide:WK,divideontimes:QK,divonx:jK,DJcy:YK,djcy:KK,dlcorn:XK,dlcrop:$K,dollar:ZK,Dopf:JK,dopf:eX,Dot:tX,dot:nX,DotDot:iX,doteq:rX,doteqdot:aX,DotEqual:sX,dotminus:oX,dotplus:lX,dotsquare:cX,doublebarwedge:uX,DoubleContourIntegral:dX,DoubleDot:hX,DoubleDownArrow:fX,DoubleLeftArrow:pX,DoubleLeftRightArrow:mX,DoubleLeftTee:gX,DoubleLongLeftArrow:vX,DoubleLongLeftRightArrow:bX,DoubleLongRightArrow:yX,DoubleRightArrow:_X,DoubleRightTee:EX,DoubleUpArrow:AX,DoubleUpDownArrow:wX,DoubleVerticalBar:xX,DownArrowBar:CX,downarrow:SX,DownArrow:TX,Downarrow:kX,DownArrowUpArrow:DX,DownBreve:NX,downdownarrows:IX,downharpoonleft:MX,downharpoonright:LX,DownLeftRightVector:OX,DownLeftTeeVector:RX,DownLeftVectorBar:PX,DownLeftVector:BX,DownRightTeeVector:FX,DownRightVectorBar:HX,DownRightVector:zX,DownTeeArrow:qX,DownTee:UX,drbkarow:GX,drcorn:VX,drcrop:WX,Dscr:QX,dscr:jX,DScy:YX,dscy:KX,dsol:XX,Dstrok:$X,dstrok:ZX,dtdot:JX,dtri:e$,dtrif:t$,duarr:n$,duhar:i$,dwangle:r$,DZcy:a$,dzcy:s$,dzigrarr:o$,Eacute:l$,eacute:c$,easter:u$,Ecaron:d$,ecaron:h$,Ecirc:f$,ecirc:p$,ecir:m$,ecolon:g$,Ecy:v$,ecy:b$,eDDot:y$,Edot:_$,edot:E$,eDot:A$,ee:w$,efDot:x$,Efr:C$,efr:S$,eg:T$,Egrave:k$,egrave:D$,egs:N$,egsdot:I$,el:M$,Element:L$,elinters:O$,ell:R$,els:P$,elsdot:B$,Emacr:F$,emacr:H$,empty:z$,emptyset:q$,EmptySmallSquare:U$,emptyv:G$,EmptyVerySmallSquare:V$,emsp13:W$,emsp14:Q$,emsp:j$,ENG:Y$,eng:K$,ensp:X$,Eogon:$$,eogon:Z$,Eopf:J$,eopf:eZ,epar:tZ,eparsl:nZ,eplus:iZ,epsi:rZ,Epsilon:aZ,epsilon:sZ,epsiv:oZ,eqcirc:lZ,eqcolon:cZ,eqsim:uZ,eqslantgtr:dZ,eqslantless:hZ,Equal:fZ,equals:pZ,EqualTilde:mZ,equest:gZ,Equilibrium:vZ,equiv:bZ,equivDD:yZ,eqvparsl:_Z,erarr:EZ,erDot:AZ,escr:wZ,Escr:xZ,esdot:CZ,Esim:SZ,esim:TZ,Eta:kZ,eta:DZ,ETH:NZ,eth:IZ,Euml:MZ,euml:LZ,euro:OZ,excl:RZ,exist:PZ,Exists:BZ,expectation:FZ,exponentiale:HZ,ExponentialE:zZ,fallingdotseq:qZ,Fcy:UZ,fcy:GZ,female:VZ,ffilig:WZ,fflig:QZ,ffllig:jZ,Ffr:YZ,ffr:KZ,filig:XZ,FilledSmallSquare:$Z,FilledVerySmallSquare:ZZ,fjlig:JZ,flat:eJ,fllig:tJ,fltns:nJ,fnof:iJ,Fopf:rJ,fopf:aJ,forall:sJ,ForAll:oJ,fork:lJ,forkv:cJ,Fouriertrf:uJ,fpartint:dJ,frac12:hJ,frac13:fJ,frac14:pJ,frac15:mJ,frac16:gJ,frac18:vJ,frac23:bJ,frac25:yJ,frac34:_J,frac35:EJ,frac38:AJ,frac45:wJ,frac56:xJ,frac58:CJ,frac78:SJ,frasl:TJ,frown:kJ,fscr:DJ,Fscr:NJ,gacute:IJ,Gamma:MJ,gamma:LJ,Gammad:OJ,gammad:RJ,gap:PJ,Gbreve:BJ,gbreve:FJ,Gcedil:HJ,Gcirc:zJ,gcirc:qJ,Gcy:UJ,gcy:GJ,Gdot:VJ,gdot:WJ,ge:QJ,gE:jJ,gEl:YJ,gel:KJ,geq:XJ,geqq:$J,geqslant:ZJ,gescc:JJ,ges:eee,gesdot:tee,gesdoto:nee,gesdotol:iee,gesl:ree,gesles:aee,Gfr:see,gfr:oee,gg:lee,Gg:cee,ggg:uee,gimel:dee,GJcy:hee,gjcy:fee,gla:pee,gl:mee,glE:gee,glj:vee,gnap:bee,gnapprox:yee,gne:_ee,gnE:Eee,gneq:Aee,gneqq:wee,gnsim:xee,Gopf:Cee,gopf:See,grave:Tee,GreaterEqual:kee,GreaterEqualLess:Dee,GreaterFullEqual:Nee,GreaterGreater:Iee,GreaterLess:Mee,GreaterSlantEqual:Lee,GreaterTilde:Oee,Gscr:Ree,gscr:Pee,gsim:Bee,gsime:Fee,gsiml:Hee,gtcc:zee,gtcir:qee,gt:Uee,GT:Gee,Gt:Vee,gtdot:Wee,gtlPar:Qee,gtquest:jee,gtrapprox:Yee,gtrarr:Kee,gtrdot:Xee,gtreqless:$ee,gtreqqless:Zee,gtrless:Jee,gtrsim:ete,gvertneqq:tte,gvnE:nte,Hacek:ite,hairsp:rte,half:ate,hamilt:ste,HARDcy:ote,hardcy:lte,harrcir:cte,harr:ute,hArr:dte,harrw:hte,Hat:fte,hbar:pte,Hcirc:mte,hcirc:gte,hearts:vte,heartsuit:bte,hellip:yte,hercon:_te,hfr:Ete,Hfr:Ate,HilbertSpace:wte,hksearow:xte,hkswarow:Cte,hoarr:Ste,homtht:Tte,hookleftarrow:kte,hookrightarrow:Dte,hopf:Nte,Hopf:Ite,horbar:Mte,HorizontalLine:Lte,hscr:Ote,Hscr:Rte,hslash:Pte,Hstrok:Bte,hstrok:Fte,HumpDownHump:Hte,HumpEqual:zte,hybull:qte,hyphen:Ute,Iacute:Gte,iacute:Vte,ic:Wte,Icirc:Qte,icirc:jte,Icy:Yte,icy:Kte,Idot:Xte,IEcy:$te,iecy:Zte,iexcl:Jte,iff:ene,ifr:tne,Ifr:nne,Igrave:ine,igrave:rne,ii:ane,iiiint:sne,iiint:one,iinfin:lne,iiota:cne,IJlig:une,ijlig:dne,Imacr:hne,imacr:fne,image:pne,ImaginaryI:mne,imagline:gne,imagpart:vne,imath:bne,Im:yne,imof:_ne,imped:Ene,Implies:Ane,incare:wne,in:"∈",infin:xne,infintie:Cne,inodot:Sne,intcal:Tne,int:kne,Int:Dne,integers:Nne,Integral:Ine,intercal:Mne,Intersection:Lne,intlarhk:One,intprod:Rne,InvisibleComma:Pne,InvisibleTimes:Bne,IOcy:Fne,iocy:Hne,Iogon:zne,iogon:qne,Iopf:Une,iopf:Gne,Iota:Vne,iota:Wne,iprod:Qne,iquest:jne,iscr:Yne,Iscr:Kne,isin:Xne,isindot:$ne,isinE:Zne,isins:Jne,isinsv:eie,isinv:tie,it:nie,Itilde:iie,itilde:rie,Iukcy:aie,iukcy:sie,Iuml:oie,iuml:lie,Jcirc:cie,jcirc:uie,Jcy:die,jcy:hie,Jfr:fie,jfr:pie,jmath:mie,Jopf:gie,jopf:vie,Jscr:bie,jscr:yie,Jsercy:_ie,jsercy:Eie,Jukcy:Aie,jukcy:wie,Kappa:xie,kappa:Cie,kappav:Sie,Kcedil:Tie,kcedil:kie,Kcy:Die,kcy:Nie,Kfr:Iie,kfr:Mie,kgreen:Lie,KHcy:Oie,khcy:Rie,KJcy:Pie,kjcy:Bie,Kopf:Fie,kopf:Hie,Kscr:zie,kscr:qie,lAarr:Uie,Lacute:Gie,lacute:Vie,laemptyv:Wie,lagran:Qie,Lambda:jie,lambda:Yie,lang:Kie,Lang:Xie,langd:$ie,langle:Zie,lap:Jie,Laplacetrf:ere,laquo:tre,larrb:nre,larrbfs:ire,larr:rre,Larr:are,lArr:sre,larrfs:ore,larrhk:lre,larrlp:cre,larrpl:ure,larrsim:dre,larrtl:hre,latail:fre,lAtail:pre,lat:mre,late:gre,lates:vre,lbarr:bre,lBarr:yre,lbbrk:_re,lbrace:Ere,lbrack:Are,lbrke:wre,lbrksld:xre,lbrkslu:Cre,Lcaron:Sre,lcaron:Tre,Lcedil:kre,lcedil:Dre,lceil:Nre,lcub:Ire,Lcy:Mre,lcy:Lre,ldca:Ore,ldquo:Rre,ldquor:Pre,ldrdhar:Bre,ldrushar:Fre,ldsh:Hre,le:zre,lE:qre,LeftAngleBracket:Ure,LeftArrowBar:Gre,leftarrow:Vre,LeftArrow:Wre,Leftarrow:Qre,LeftArrowRightArrow:jre,leftarrowtail:Yre,LeftCeiling:Kre,LeftDoubleBracket:Xre,LeftDownTeeVector:$re,LeftDownVectorBar:Zre,LeftDownVector:Jre,LeftFloor:eae,leftharpoondown:tae,leftharpoonup:nae,leftleftarrows:iae,leftrightarrow:rae,LeftRightArrow:aae,Leftrightarrow:sae,leftrightarrows:oae,leftrightharpoons:lae,leftrightsquigarrow:cae,LeftRightVector:uae,LeftTeeArrow:dae,LeftTee:hae,LeftTeeVector:fae,leftthreetimes:pae,LeftTriangleBar:mae,LeftTriangle:gae,LeftTriangleEqual:vae,LeftUpDownVector:bae,LeftUpTeeVector:yae,LeftUpVectorBar:_ae,LeftUpVector:Eae,LeftVectorBar:Aae,LeftVector:wae,lEg:xae,leg:Cae,leq:Sae,leqq:Tae,leqslant:kae,lescc:Dae,les:Nae,lesdot:Iae,lesdoto:Mae,lesdotor:Lae,lesg:Oae,lesges:Rae,lessapprox:Pae,lessdot:Bae,lesseqgtr:Fae,lesseqqgtr:Hae,LessEqualGreater:zae,LessFullEqual:qae,LessGreater:Uae,lessgtr:Gae,LessLess:Vae,lesssim:Wae,LessSlantEqual:Qae,LessTilde:jae,lfisht:Yae,lfloor:Kae,Lfr:Xae,lfr:$ae,lg:Zae,lgE:Jae,lHar:ese,lhard:tse,lharu:nse,lharul:ise,lhblk:rse,LJcy:ase,ljcy:sse,llarr:ose,ll:lse,Ll:cse,llcorner:use,Lleftarrow:dse,llhard:hse,lltri:fse,Lmidot:pse,lmidot:mse,lmoustache:gse,lmoust:vse,lnap:bse,lnapprox:yse,lne:_se,lnE:Ese,lneq:Ase,lneqq:wse,lnsim:xse,loang:Cse,loarr:Sse,lobrk:Tse,longleftarrow:kse,LongLeftArrow:Dse,Longleftarrow:Nse,longleftrightarrow:Ise,LongLeftRightArrow:Mse,Longleftrightarrow:Lse,longmapsto:Ose,longrightarrow:Rse,LongRightArrow:Pse,Longrightarrow:Bse,looparrowleft:Fse,looparrowright:Hse,lopar:zse,Lopf:qse,lopf:Use,loplus:Gse,lotimes:Vse,lowast:Wse,lowbar:Qse,LowerLeftArrow:jse,LowerRightArrow:Yse,loz:Kse,lozenge:Xse,lozf:$se,lpar:Zse,lparlt:Jse,lrarr:eoe,lrcorner:toe,lrhar:noe,lrhard:ioe,lrm:roe,lrtri:aoe,lsaquo:soe,lscr:ooe,Lscr:loe,lsh:coe,Lsh:uoe,lsim:doe,lsime:hoe,lsimg:foe,lsqb:poe,lsquo:moe,lsquor:goe,Lstrok:voe,lstrok:boe,ltcc:yoe,ltcir:_oe,lt:Eoe,LT:Aoe,Lt:woe,ltdot:xoe,lthree:Coe,ltimes:Soe,ltlarr:Toe,ltquest:koe,ltri:Doe,ltrie:Noe,ltrif:Ioe,ltrPar:Moe,lurdshar:Loe,luruhar:Ooe,lvertneqq:Roe,lvnE:Poe,macr:Boe,male:Foe,malt:Hoe,maltese:zoe,Map:"⤅",map:qoe,mapsto:Uoe,mapstodown:Goe,mapstoleft:Voe,mapstoup:Woe,marker:Qoe,mcomma:joe,Mcy:Yoe,mcy:Koe,mdash:Xoe,mDDot:$oe,measuredangle:Zoe,MediumSpace:Joe,Mellintrf:ele,Mfr:tle,mfr:nle,mho:ile,micro:rle,midast:ale,midcir:sle,mid:ole,middot:lle,minusb:cle,minus:ule,minusd:dle,minusdu:hle,MinusPlus:fle,mlcp:ple,mldr:mle,mnplus:gle,models:vle,Mopf:ble,mopf:yle,mp:_le,mscr:Ele,Mscr:Ale,mstpos:wle,Mu:xle,mu:Cle,multimap:Sle,mumap:Tle,nabla:kle,Nacute:Dle,nacute:Nle,nang:Ile,nap:Mle,napE:Lle,napid:Ole,napos:Rle,napprox:Ple,natural:Ble,naturals:Fle,natur:Hle,nbsp:zle,nbump:qle,nbumpe:Ule,ncap:Gle,Ncaron:Vle,ncaron:Wle,Ncedil:Qle,ncedil:jle,ncong:Yle,ncongdot:Kle,ncup:Xle,Ncy:$le,ncy:Zle,ndash:Jle,nearhk:ece,nearr:tce,neArr:nce,nearrow:ice,ne:rce,nedot:ace,NegativeMediumSpace:sce,NegativeThickSpace:oce,NegativeThinSpace:lce,NegativeVeryThinSpace:cce,nequiv:uce,nesear:dce,nesim:hce,NestedGreaterGreater:fce,NestedLessLess:pce,NewLine:mce,nexist:gce,nexists:vce,Nfr:bce,nfr:yce,ngE:_ce,nge:Ece,ngeq:Ace,ngeqq:wce,ngeqslant:xce,nges:Cce,nGg:Sce,ngsim:Tce,nGt:kce,ngt:Dce,ngtr:Nce,nGtv:Ice,nharr:Mce,nhArr:Lce,nhpar:Oce,ni:Rce,nis:Pce,nisd:Bce,niv:Fce,NJcy:Hce,njcy:zce,nlarr:qce,nlArr:Uce,nldr:Gce,nlE:Vce,nle:Wce,nleftarrow:Qce,nLeftarrow:jce,nleftrightarrow:Yce,nLeftrightarrow:Kce,nleq:Xce,nleqq:$ce,nleqslant:Zce,nles:Jce,nless:eue,nLl:tue,nlsim:nue,nLt:iue,nlt:rue,nltri:aue,nltrie:sue,nLtv:oue,nmid:lue,NoBreak:cue,NonBreakingSpace:uue,nopf:due,Nopf:hue,Not:fue,not:pue,NotCongruent:mue,NotCupCap:gue,NotDoubleVerticalBar:vue,NotElement:bue,NotEqual:yue,NotEqualTilde:_ue,NotExists:Eue,NotGreater:Aue,NotGreaterEqual:wue,NotGreaterFullEqual:xue,NotGreaterGreater:Cue,NotGreaterLess:Sue,NotGreaterSlantEqual:Tue,NotGreaterTilde:kue,NotHumpDownHump:Due,NotHumpEqual:Nue,notin:Iue,notindot:Mue,notinE:Lue,notinva:Oue,notinvb:Rue,notinvc:Pue,NotLeftTriangleBar:Bue,NotLeftTriangle:Fue,NotLeftTriangleEqual:Hue,NotLess:zue,NotLessEqual:que,NotLessGreater:Uue,NotLessLess:Gue,NotLessSlantEqual:Vue,NotLessTilde:Wue,NotNestedGreaterGreater:Que,NotNestedLessLess:jue,notni:Yue,notniva:Kue,notnivb:Xue,notnivc:$ue,NotPrecedes:Zue,NotPrecedesEqual:Jue,NotPrecedesSlantEqual:ede,NotReverseElement:tde,NotRightTriangleBar:nde,NotRightTriangle:ide,NotRightTriangleEqual:rde,NotSquareSubset:ade,NotSquareSubsetEqual:sde,NotSquareSuperset:ode,NotSquareSupersetEqual:lde,NotSubset:cde,NotSubsetEqual:ude,NotSucceeds:dde,NotSucceedsEqual:hde,NotSucceedsSlantEqual:fde,NotSucceedsTilde:pde,NotSuperset:mde,NotSupersetEqual:gde,NotTilde:vde,NotTildeEqual:bde,NotTildeFullEqual:yde,NotTildeTilde:_de,NotVerticalBar:Ede,nparallel:Ade,npar:wde,nparsl:xde,npart:Cde,npolint:Sde,npr:Tde,nprcue:kde,nprec:Dde,npreceq:Nde,npre:Ide,nrarrc:Mde,nrarr:Lde,nrArr:Ode,nrarrw:Rde,nrightarrow:Pde,nRightarrow:Bde,nrtri:Fde,nrtrie:Hde,nsc:zde,nsccue:qde,nsce:Ude,Nscr:Gde,nscr:Vde,nshortmid:Wde,nshortparallel:Qde,nsim:jde,nsime:Yde,nsimeq:Kde,nsmid:Xde,nspar:$de,nsqsube:Zde,nsqsupe:Jde,nsub:ehe,nsubE:the,nsube:nhe,nsubset:ihe,nsubseteq:rhe,nsubseteqq:ahe,nsucc:she,nsucceq:ohe,nsup:lhe,nsupE:che,nsupe:uhe,nsupset:dhe,nsupseteq:hhe,nsupseteqq:fhe,ntgl:phe,Ntilde:mhe,ntilde:ghe,ntlg:vhe,ntriangleleft:bhe,ntrianglelefteq:yhe,ntriangleright:_he,ntrianglerighteq:Ehe,Nu:Ahe,nu:whe,num:xhe,numero:Che,numsp:She,nvap:The,nvdash:khe,nvDash:Dhe,nVdash:Nhe,nVDash:Ihe,nvge:Mhe,nvgt:Lhe,nvHarr:Ohe,nvinfin:Rhe,nvlArr:Phe,nvle:Bhe,nvlt:Fhe,nvltrie:Hhe,nvrArr:zhe,nvrtrie:qhe,nvsim:Uhe,nwarhk:Ghe,nwarr:Vhe,nwArr:Whe,nwarrow:Qhe,nwnear:jhe,Oacute:Yhe,oacute:Khe,oast:Xhe,Ocirc:$he,ocirc:Zhe,ocir:Jhe,Ocy:efe,ocy:tfe,odash:nfe,Odblac:ife,odblac:rfe,odiv:afe,odot:sfe,odsold:ofe,OElig:lfe,oelig:cfe,ofcir:ufe,Ofr:dfe,ofr:hfe,ogon:ffe,Ograve:pfe,ograve:mfe,ogt:gfe,ohbar:vfe,ohm:bfe,oint:yfe,olarr:_fe,olcir:Efe,olcross:Afe,oline:wfe,olt:xfe,Omacr:Cfe,omacr:Sfe,Omega:Tfe,omega:kfe,Omicron:Dfe,omicron:Nfe,omid:Ife,ominus:Mfe,Oopf:Lfe,oopf:Ofe,opar:Rfe,OpenCurlyDoubleQuote:Pfe,OpenCurlyQuote:Bfe,operp:Ffe,oplus:Hfe,orarr:zfe,Or:qfe,or:Ufe,ord:Gfe,order:Vfe,orderof:Wfe,ordf:Qfe,ordm:jfe,origof:Yfe,oror:Kfe,orslope:Xfe,orv:$fe,oS:Zfe,Oscr:Jfe,oscr:epe,Oslash:tpe,oslash:npe,osol:ipe,Otilde:rpe,otilde:ape,otimesas:spe,Otimes:ope,otimes:lpe,Ouml:cpe,ouml:upe,ovbar:dpe,OverBar:hpe,OverBrace:fpe,OverBracket:ppe,OverParenthesis:mpe,para:gpe,parallel:vpe,par:bpe,parsim:ype,parsl:_pe,part:Epe,PartialD:Ape,Pcy:wpe,pcy:xpe,percnt:Cpe,period:Spe,permil:Tpe,perp:kpe,pertenk:Dpe,Pfr:Npe,pfr:Ipe,Phi:Mpe,phi:Lpe,phiv:Ope,phmmat:Rpe,phone:Ppe,Pi:Bpe,pi:Fpe,pitchfork:Hpe,piv:zpe,planck:qpe,planckh:Upe,plankv:Gpe,plusacir:Vpe,plusb:Wpe,pluscir:Qpe,plus:jpe,plusdo:Ype,plusdu:Kpe,pluse:Xpe,PlusMinus:$pe,plusmn:Zpe,plussim:Jpe,plustwo:eme,pm:tme,Poincareplane:nme,pointint:ime,popf:rme,Popf:ame,pound:sme,prap:ome,Pr:lme,pr:cme,prcue:ume,precapprox:dme,prec:hme,preccurlyeq:fme,Precedes:pme,PrecedesEqual:mme,PrecedesSlantEqual:gme,PrecedesTilde:vme,preceq:bme,precnapprox:yme,precneqq:_me,precnsim:Eme,pre:Ame,prE:wme,precsim:xme,prime:Cme,Prime:Sme,primes:Tme,prnap:kme,prnE:Dme,prnsim:Nme,prod:Ime,Product:Mme,profalar:Lme,profline:Ome,profsurf:Rme,prop:Pme,Proportional:Bme,Proportion:Fme,propto:Hme,prsim:zme,prurel:qme,Pscr:Ume,pscr:Gme,Psi:Vme,psi:Wme,puncsp:Qme,Qfr:jme,qfr:Yme,qint:Kme,qopf:Xme,Qopf:$me,qprime:Zme,Qscr:Jme,qscr:e0e,quaternions:t0e,quatint:n0e,quest:i0e,questeq:r0e,quot:a0e,QUOT:s0e,rAarr:o0e,race:l0e,Racute:c0e,racute:u0e,radic:d0e,raemptyv:h0e,rang:f0e,Rang:p0e,rangd:m0e,range:g0e,rangle:v0e,raquo:b0e,rarrap:y0e,rarrb:_0e,rarrbfs:E0e,rarrc:A0e,rarr:w0e,Rarr:x0e,rArr:C0e,rarrfs:S0e,rarrhk:T0e,rarrlp:k0e,rarrpl:D0e,rarrsim:N0e,Rarrtl:I0e,rarrtl:M0e,rarrw:L0e,ratail:O0e,rAtail:R0e,ratio:P0e,rationals:B0e,rbarr:F0e,rBarr:H0e,RBarr:z0e,rbbrk:q0e,rbrace:U0e,rbrack:G0e,rbrke:V0e,rbrksld:W0e,rbrkslu:Q0e,Rcaron:j0e,rcaron:Y0e,Rcedil:K0e,rcedil:X0e,rceil:$0e,rcub:Z0e,Rcy:J0e,rcy:ege,rdca:tge,rdldhar:nge,rdquo:ige,rdquor:rge,rdsh:age,real:sge,realine:oge,realpart:lge,reals:cge,Re:uge,rect:dge,reg:hge,REG:fge,ReverseElement:pge,ReverseEquilibrium:mge,ReverseUpEquilibrium:gge,rfisht:vge,rfloor:bge,rfr:yge,Rfr:_ge,rHar:Ege,rhard:Age,rharu:wge,rharul:xge,Rho:Cge,rho:Sge,rhov:Tge,RightAngleBracket:kge,RightArrowBar:Dge,rightarrow:Nge,RightArrow:Ige,Rightarrow:Mge,RightArrowLeftArrow:Lge,rightarrowtail:Oge,RightCeiling:Rge,RightDoubleBracket:Pge,RightDownTeeVector:Bge,RightDownVectorBar:Fge,RightDownVector:Hge,RightFloor:zge,rightharpoondown:qge,rightharpoonup:Uge,rightleftarrows:Gge,rightleftharpoons:Vge,rightrightarrows:Wge,rightsquigarrow:Qge,RightTeeArrow:jge,RightTee:Yge,RightTeeVector:Kge,rightthreetimes:Xge,RightTriangleBar:$ge,RightTriangle:Zge,RightTriangleEqual:Jge,RightUpDownVector:eve,RightUpTeeVector:tve,RightUpVectorBar:nve,RightUpVector:ive,RightVectorBar:rve,RightVector:ave,ring:sve,risingdotseq:ove,rlarr:lve,rlhar:cve,rlm:uve,rmoustache:dve,rmoust:hve,rnmid:fve,roang:pve,roarr:mve,robrk:gve,ropar:vve,ropf:bve,Ropf:yve,roplus:_ve,rotimes:Eve,RoundImplies:Ave,rpar:wve,rpargt:xve,rppolint:Cve,rrarr:Sve,Rrightarrow:Tve,rsaquo:kve,rscr:Dve,Rscr:Nve,rsh:Ive,Rsh:Mve,rsqb:Lve,rsquo:Ove,rsquor:Rve,rthree:Pve,rtimes:Bve,rtri:Fve,rtrie:Hve,rtrif:zve,rtriltri:qve,RuleDelayed:Uve,ruluhar:Gve,rx:Vve,Sacute:Wve,sacute:Qve,sbquo:jve,scap:Yve,Scaron:Kve,scaron:Xve,Sc:$ve,sc:Zve,sccue:Jve,sce:ebe,scE:tbe,Scedil:nbe,scedil:ibe,Scirc:rbe,scirc:abe,scnap:sbe,scnE:obe,scnsim:lbe,scpolint:cbe,scsim:ube,Scy:dbe,scy:hbe,sdotb:fbe,sdot:pbe,sdote:mbe,searhk:gbe,searr:vbe,seArr:bbe,searrow:ybe,sect:_be,semi:Ebe,seswar:Abe,setminus:wbe,setmn:xbe,sext:Cbe,Sfr:Sbe,sfr:Tbe,sfrown:kbe,sharp:Dbe,SHCHcy:Nbe,shchcy:Ibe,SHcy:Mbe,shcy:Lbe,ShortDownArrow:Obe,ShortLeftArrow:Rbe,shortmid:Pbe,shortparallel:Bbe,ShortRightArrow:Fbe,ShortUpArrow:Hbe,shy:zbe,Sigma:qbe,sigma:Ube,sigmaf:Gbe,sigmav:Vbe,sim:Wbe,simdot:Qbe,sime:jbe,simeq:Ybe,simg:Kbe,simgE:Xbe,siml:$be,simlE:Zbe,simne:Jbe,simplus:e1e,simrarr:t1e,slarr:n1e,SmallCircle:i1e,smallsetminus:r1e,smashp:a1e,smeparsl:s1e,smid:o1e,smile:l1e,smt:c1e,smte:u1e,smtes:d1e,SOFTcy:h1e,softcy:f1e,solbar:p1e,solb:m1e,sol:g1e,Sopf:v1e,sopf:b1e,spades:y1e,spadesuit:_1e,spar:E1e,sqcap:A1e,sqcaps:w1e,sqcup:x1e,sqcups:C1e,Sqrt:S1e,sqsub:T1e,sqsube:k1e,sqsubset:D1e,sqsubseteq:N1e,sqsup:I1e,sqsupe:M1e,sqsupset:L1e,sqsupseteq:O1e,square:R1e,Square:P1e,SquareIntersection:B1e,SquareSubset:F1e,SquareSubsetEqual:H1e,SquareSuperset:z1e,SquareSupersetEqual:q1e,SquareUnion:U1e,squarf:G1e,squ:V1e,squf:W1e,srarr:Q1e,Sscr:j1e,sscr:Y1e,ssetmn:K1e,ssmile:X1e,sstarf:$1e,Star:Z1e,star:J1e,starf:eye,straightepsilon:tye,straightphi:nye,strns:iye,sub:rye,Sub:aye,subdot:sye,subE:oye,sube:lye,subedot:cye,submult:uye,subnE:dye,subne:hye,subplus:fye,subrarr:pye,subset:mye,Subset:gye,subseteq:vye,subseteqq:bye,SubsetEqual:yye,subsetneq:_ye,subsetneqq:Eye,subsim:Aye,subsub:wye,subsup:xye,succapprox:Cye,succ:Sye,succcurlyeq:Tye,Succeeds:kye,SucceedsEqual:Dye,SucceedsSlantEqual:Nye,SucceedsTilde:Iye,succeq:Mye,succnapprox:Lye,succneqq:Oye,succnsim:Rye,succsim:Pye,SuchThat:Bye,sum:Fye,Sum:Hye,sung:zye,sup1:qye,sup2:Uye,sup3:Gye,sup:Vye,Sup:Wye,supdot:Qye,supdsub:jye,supE:Yye,supe:Kye,supedot:Xye,Superset:$ye,SupersetEqual:Zye,suphsol:Jye,suphsub:e_e,suplarr:t_e,supmult:n_e,supnE:i_e,supne:r_e,supplus:a_e,supset:s_e,Supset:o_e,supseteq:l_e,supseteqq:c_e,supsetneq:u_e,supsetneqq:d_e,supsim:h_e,supsub:f_e,supsup:p_e,swarhk:m_e,swarr:g_e,swArr:v_e,swarrow:b_e,swnwar:y_e,szlig:__e,Tab:E_e,target:A_e,Tau:w_e,tau:x_e,tbrk:C_e,Tcaron:S_e,tcaron:T_e,Tcedil:k_e,tcedil:D_e,Tcy:N_e,tcy:I_e,tdot:M_e,telrec:L_e,Tfr:O_e,tfr:R_e,there4:P_e,therefore:B_e,Therefore:F_e,Theta:H_e,theta:z_e,thetasym:q_e,thetav:U_e,thickapprox:G_e,thicksim:V_e,ThickSpace:W_e,ThinSpace:Q_e,thinsp:j_e,thkap:Y_e,thksim:K_e,THORN:X_e,thorn:$_e,tilde:Z_e,Tilde:J_e,TildeEqual:eEe,TildeFullEqual:tEe,TildeTilde:nEe,timesbar:iEe,timesb:rEe,times:aEe,timesd:sEe,tint:oEe,toea:lEe,topbot:cEe,topcir:uEe,top:dEe,Topf:hEe,topf:fEe,topfork:pEe,tosa:mEe,tprime:gEe,trade:vEe,TRADE:bEe,triangle:yEe,triangledown:_Ee,triangleleft:EEe,trianglelefteq:AEe,triangleq:wEe,triangleright:xEe,trianglerighteq:CEe,tridot:SEe,trie:TEe,triminus:kEe,TripleDot:DEe,triplus:NEe,trisb:IEe,tritime:MEe,trpezium:LEe,Tscr:OEe,tscr:REe,TScy:PEe,tscy:BEe,TSHcy:FEe,tshcy:HEe,Tstrok:zEe,tstrok:qEe,twixt:UEe,twoheadleftarrow:GEe,twoheadrightarrow:VEe,Uacute:WEe,uacute:QEe,uarr:jEe,Uarr:YEe,uArr:KEe,Uarrocir:XEe,Ubrcy:$Ee,ubrcy:ZEe,Ubreve:JEe,ubreve:eAe,Ucirc:tAe,ucirc:nAe,Ucy:iAe,ucy:rAe,udarr:aAe,Udblac:sAe,udblac:oAe,udhar:lAe,ufisht:cAe,Ufr:uAe,ufr:dAe,Ugrave:hAe,ugrave:fAe,uHar:pAe,uharl:mAe,uharr:gAe,uhblk:vAe,ulcorn:bAe,ulcorner:yAe,ulcrop:_Ae,ultri:EAe,Umacr:AAe,umacr:wAe,uml:xAe,UnderBar:CAe,UnderBrace:SAe,UnderBracket:TAe,UnderParenthesis:kAe,Union:DAe,UnionPlus:NAe,Uogon:IAe,uogon:MAe,Uopf:LAe,uopf:OAe,UpArrowBar:RAe,uparrow:PAe,UpArrow:BAe,Uparrow:FAe,UpArrowDownArrow:HAe,updownarrow:zAe,UpDownArrow:qAe,Updownarrow:UAe,UpEquilibrium:GAe,upharpoonleft:VAe,upharpoonright:WAe,uplus:QAe,UpperLeftArrow:jAe,UpperRightArrow:YAe,upsi:KAe,Upsi:XAe,upsih:$Ae,Upsilon:ZAe,upsilon:JAe,UpTeeArrow:ewe,UpTee:twe,upuparrows:nwe,urcorn:iwe,urcorner:rwe,urcrop:awe,Uring:swe,uring:owe,urtri:lwe,Uscr:cwe,uscr:uwe,utdot:dwe,Utilde:hwe,utilde:fwe,utri:pwe,utrif:mwe,uuarr:gwe,Uuml:vwe,uuml:bwe,uwangle:ywe,vangrt:_we,varepsilon:Ewe,varkappa:Awe,varnothing:wwe,varphi:xwe,varpi:Cwe,varpropto:Swe,varr:Twe,vArr:kwe,varrho:Dwe,varsigma:Nwe,varsubsetneq:Iwe,varsubsetneqq:Mwe,varsupsetneq:Lwe,varsupsetneqq:Owe,vartheta:Rwe,vartriangleleft:Pwe,vartriangleright:Bwe,vBar:Fwe,Vbar:Hwe,vBarv:zwe,Vcy:qwe,vcy:Uwe,vdash:Gwe,vDash:Vwe,Vdash:Wwe,VDash:Qwe,Vdashl:jwe,veebar:Ywe,vee:Kwe,Vee:Xwe,veeeq:$we,vellip:Zwe,verbar:Jwe,Verbar:exe,vert:txe,Vert:nxe,VerticalBar:ixe,VerticalLine:rxe,VerticalSeparator:axe,VerticalTilde:sxe,VeryThinSpace:oxe,Vfr:lxe,vfr:cxe,vltri:uxe,vnsub:dxe,vnsup:hxe,Vopf:fxe,vopf:pxe,vprop:mxe,vrtri:gxe,Vscr:vxe,vscr:bxe,vsubnE:yxe,vsubne:_xe,vsupnE:Exe,vsupne:Axe,Vvdash:wxe,vzigzag:xxe,Wcirc:Cxe,wcirc:Sxe,wedbar:Txe,wedge:kxe,Wedge:Dxe,wedgeq:Nxe,weierp:Ixe,Wfr:Mxe,wfr:Lxe,Wopf:Oxe,wopf:Rxe,wp:Pxe,wr:Bxe,wreath:Fxe,Wscr:Hxe,wscr:zxe,xcap:qxe,xcirc:Uxe,xcup:Gxe,xdtri:Vxe,Xfr:Wxe,xfr:Qxe,xharr:jxe,xhArr:Yxe,Xi:Kxe,xi:Xxe,xlarr:$xe,xlArr:Zxe,xmap:Jxe,xnis:e2e,xodot:t2e,Xopf:n2e,xopf:i2e,xoplus:r2e,xotime:a2e,xrarr:s2e,xrArr:o2e,Xscr:l2e,xscr:c2e,xsqcup:u2e,xuplus:d2e,xutri:h2e,xvee:f2e,xwedge:p2e,Yacute:m2e,yacute:g2e,YAcy:v2e,yacy:b2e,Ycirc:y2e,ycirc:_2e,Ycy:E2e,ycy:A2e,yen:w2e,Yfr:x2e,yfr:C2e,YIcy:S2e,yicy:T2e,Yopf:k2e,yopf:D2e,Yscr:N2e,yscr:I2e,YUcy:M2e,yucy:L2e,yuml:O2e,Yuml:R2e,Zacute:P2e,zacute:B2e,Zcaron:F2e,zcaron:H2e,Zcy:z2e,zcy:q2e,Zdot:U2e,zdot:G2e,zeetrf:V2e,ZeroWidthSpace:W2e,Zeta:Q2e,zeta:j2e,zfr:Y2e,Zfr:K2e,ZHcy:X2e,zhcy:$2e,zigrarr:Z2e,zopf:J2e,Zopf:eCe,Zscr:tCe,zscr:nCe,zwj:iCe,zwnj:rCe};var xL=aCe,Mx=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Kd={},jS={};function sCe(e){var n,i,r=jS[e];if(r)return r;for(r=jS[e]=[],n=0;n<128;n++)i=String.fromCharCode(n),/^[0-9a-z]$/i.test(i)?r.push(i):r.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n"u"&&(i=!0),l=sCe(n),r=0,a=e.length;r=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1=56320&&o<=57343)){c+=encodeURIComponent(e[r]+e[r+1]),r++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(e[r])}return c}yg.defaultChars=";/?:@&=+$,-_.!~*'()#";yg.componentChars="-_.!~*'()";var oCe=yg,YS={};function lCe(e){var n,i,r=YS[e];if(r)return r;for(r=YS[e]=[],n=0;n<128;n++)i=String.fromCharCode(n),r.push(i);for(n=0;n=55296&&d<=57343?h+="���":h+=String.fromCharCode(d),a+=6;continue}if((o&248)===240&&a+91114111?h+="����":(d-=65536,h+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),a+=9;continue}h+="�"}return h})}_g.defaultChars=";/?:@&=+$,#";_g.componentChars="";var cCe=_g,uCe=function(n){var i="";return i+=n.protocol||"",i+=n.slashes?"//":"",i+=n.auth?n.auth+"@":"",n.hostname&&n.hostname.indexOf(":")!==-1?i+="["+n.hostname+"]":i+=n.hostname||"",i+=n.port?":"+n.port:"",i+=n.pathname||"",i+=n.search||"",i+=n.hash||"",i};function p0(){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 dCe=/^([a-z0-9.+-]+:)/i,hCe=/:[0-9]*$/,fCe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,pCe=["<",">",'"',"`"," ","\r",` -`," "],mCe=["{","}","|","\\","^","`"].concat(pCe),gCe=["'"].concat(mCe),KS=["%","/","?",";","#"].concat(gCe),XS=["/","?","#"],vCe=255,$S=/^[+a-z0-9A-Z_-]{0,63}$/,bCe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ZS={javascript:!0,"javascript:":!0},JS={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function yCe(e,n){if(e&&e instanceof p0)return e;var i=new p0;return i.parse(e,n),i}p0.prototype.parse=function(e,n){var i,r,a,s,o,l=e;if(l=l.trim(),!n&&e.split("#").length===1){var c=fCe.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=dCe.exec(l);if(u&&(u=u[0],a=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(n||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=l.substr(0,2)==="//",o&&!(u&&ZS[u])&&(l=l.substr(2),this.slashes=!0)),!ZS[u]&&(o||u&&!JS[u])){var d=-1;for(i=0;i127?y+="x":y+=T[C];if(!y.match($S)){var M=v.slice(0,i),R=v.slice(i+1),B=T.match(bCe);B&&(M.push(B[1]),R.unshift(B[2])),R.length&&(l=R.join(".")+l),this.hostname=M.join(".");break}}}}this.hostname.length>vCe&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=l.indexOf("#");A!==-1&&(this.hash=l.substr(A),l=l.slice(0,A));var W=l.indexOf("?");return W!==-1&&(this.search=l.substr(W),l=l.slice(0,W)),l&&(this.pathname=l),JS[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};p0.prototype.parseHost=function(e){var n=hCe.exec(e);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),e=e.substr(0,e.length-n.length)),e&&(this.hostname=e)};var _Ce=yCe;Kd.encode=oCe;Kd.decode=cCe;Kd.format=uCe;Kd.parse=_Ce;var Ic={},Wv,eT;function CL(){return eT||(eT=1,Wv=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Wv}var Qv,tT;function SL(){return tT||(tT=1,Qv=/[\0-\x1F\x7F-\x9F]/),Qv}var jv,nT;function ECe(){return nT||(nT=1,jv=/[\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]/),jv}var Yv,iT;function TL(){return iT||(iT=1,Yv=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Yv}var rT;function ACe(){return rT||(rT=1,Ic.Any=CL(),Ic.Cc=SL(),Ic.Cf=ECe(),Ic.P=Mx,Ic.Z=TL()),Ic}(function(e){function n(q){return Object.prototype.toString.call(q)}function i(q){return n(q)==="[object String]"}var r=Object.prototype.hasOwnProperty;function a(q,p){return r.call(q,p)}function s(q){var p=Array.prototype.slice.call(arguments,1);return p.forEach(function(N){if(N){if(typeof N!="object")throw new TypeError(N+"must be object");Object.keys(N).forEach(function(z){q[z]=N[z]})}}),q}function o(q,p,N){return[].concat(q.slice(0,p),N,q.slice(p+1))}function l(q){return!(q>=55296&&q<=57343||q>=64976&&q<=65007||(q&65535)===65535||(q&65535)===65534||q>=0&&q<=8||q===11||q>=14&&q<=31||q>=127&&q<=159||q>1114111)}function c(q){if(q>65535){q-=65536;var p=55296+(q>>10),N=56320+(q&1023);return String.fromCharCode(p,N)}return String.fromCharCode(q)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(u.source+"|"+d.source,"gi"),m=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,f=xL;function g(q,p){var N=0;return a(f,p)?f[p]:p.charCodeAt(0)===35&&m.test(p)&&(N=p[1].toLowerCase()==="x"?parseInt(p.slice(2),16):parseInt(p.slice(1),10),l(N))?c(N):q}function v(q){return q.indexOf("\\")<0?q:q.replace(u,"$1")}function T(q){return q.indexOf("\\")<0&&q.indexOf("&")<0?q:q.replace(h,function(p,N,z){return N||g(p,z)})}var y=/[&<>"]/,C=/[&<>"]/g,I={"&":"&","<":"<",">":">",'"':"""};function M(q){return I[q]}function R(q){return y.test(q)?q.replace(C,M):q}var B=/[.?*+^$[\]\\(){}|-]/g;function A(q){return q.replace(B,"\\$&")}function W(q){switch(q){case 9:case 32:return!0}return!1}function ne(q){if(q>=8192&&q<=8202)return!0;switch(q){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 ee=Mx;function de(q){return ee.test(q)}function Y(q){switch(q){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 se(q){return q=q.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(q=q.replace(/ẞ/g,"ß")),q.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Kd,e.lib.ucmicro=ACe(),e.assign=s,e.isString=i,e.has=a,e.unescapeMd=v,e.unescapeAll=T,e.isValidEntityCode=l,e.fromCodePoint=c,e.escapeHtml=R,e.arrayReplaceAt=o,e.isSpace=W,e.isWhiteSpace=ne,e.isMdAsciiPunct=Y,e.isPunctChar=de,e.escapeRE=A,e.normalizeReference=se})(ai);var Eg={},wCe=function(n,i,r){var a,s,o,l,c=-1,u=n.posMax,d=n.pos;for(n.pos=i+1,a=1;n.pos32))return c;if(a===41){if(s===0)break;s--}i++}return l===i||s!==0||(c.str=aT(n.slice(l,i)),c.lines=o,c.pos=i,c.ok=!0),c},CCe=ai.unescapeAll,SCe=function(n,i,r){var a,s,o=0,l=i,c={ok:!1,pos:0,lines:0,str:""};if(i>=r||(s=n.charCodeAt(i),s!==34&&s!==39&&s!==40))return c;for(i++,s===40&&(s=41);i"+su(e[n].content)+""};wo.code_block=function(e,n,i,r,a){var s=e[n];return""+su(e[n].content)+` -`};wo.fence=function(e,n,i,r,a){var s=e[n],o=s.info?kCe(s.info).trim():"",l="",c="",u,d,h,m,f;return o&&(h=o.split(/(\s+)/g),l=h[0],c=h.slice(2).join("")),i.highlight?u=i.highlight(s.content,l,c)||su(s.content):u=su(s.content),u.indexOf(""+u+` -`):"
"+u+`
-`};wo.image=function(e,n,i,r,a){var s=e[n];return s.attrs[s.attrIndex("alt")][1]=a.renderInlineAsText(s.children,i,r),a.renderToken(e,n,i)};wo.hardbreak=function(e,n,i){return i.xhtmlOut?`
-`:`
-`};wo.softbreak=function(e,n,i){return i.breaks?i.xhtmlOut?`
-`:`
-`:` -`};wo.text=function(e,n){return su(e[n].content)};wo.html_block=function(e,n){return e[n].content};wo.html_inline=function(e,n){return e[n].content};function Xd(){this.rules=TCe({},wo)}Xd.prototype.renderAttrs=function(n){var i,r,a;if(!n.attrs)return"";for(a="",i=0,r=n.attrs.length;i -`:">",s)};Xd.prototype.renderInline=function(e,n,i){for(var r,a="",s=this.rules,o=0,l=e.length;o\s]/i.test(e)}function BCe(e){return/^<\/a\s*>/i.test(e)}var FCe=function(n){var i,r,a,s,o,l,c,u,d,h,m,f,g,v,T,y,C=n.tokens,I;if(n.md.options.linkify){for(r=0,a=C.length;r=0;i--){if(l=s[i],l.type==="link_close"){for(i--;s[i].level!==l.level&&s[i].type!=="link_open";)i--;continue}if(l.type==="html_inline"&&(PCe(l.content)&&g>0&&g--,BCe(l.content)&&g++),!(g>0)&&l.type==="text"&&n.md.linkify.test(l.content)){for(d=l.content,I=n.md.linkify.match(d),c=[],f=l.level,m=0,u=0;um&&(o=new n.Token("text","",0),o.content=d.slice(m,h),o.level=f,c.push(o)),o=new n.Token("link_open","a",1),o.attrs=[["href",T]],o.level=f++,o.markup="linkify",o.info="auto",c.push(o),o=new n.Token("text","",0),o.content=y,o.level=f,c.push(o),o=new n.Token("link_close","a",-1),o.level=--f,o.markup="linkify",o.info="auto",c.push(o),m=I[u].lastIndex);m=0;n--)i=e[n],i.type==="text"&&!r&&(i.content=i.content.replace(zCe,UCe)),i.type==="link_open"&&i.info==="auto"&&r--,i.type==="link_close"&&i.info==="auto"&&r++}function VCe(e){var n,i,r=0;for(n=e.length-1;n>=0;n--)i=e[n],i.type==="text"&&!r&&kL.test(i.content)&&(i.content=i.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–")),i.type==="link_open"&&i.info==="auto"&&r--,i.type==="link_close"&&i.info==="auto"&&r++}var WCe=function(n){var i;if(n.md.options.typographer)for(i=n.tokens.length-1;i>=0;i--)n.tokens[i].type==="inline"&&(HCe.test(n.tokens[i].content)&&GCe(n.tokens[i].children),kL.test(n.tokens[i].content)&&VCe(n.tokens[i].children))},sT=ai.isWhiteSpace,oT=ai.isPunctChar,lT=ai.isMdAsciiPunct,QCe=/['"]/,cT=/['"]/g,uT="’";function zp(e,n,i){return e.substr(0,n)+i+e.substr(n+1)}function jCe(e,n){var i,r,a,s,o,l,c,u,d,h,m,f,g,v,T,y,C,I,M,R,B;for(M=[],i=0;i=0&&!(M[C].level<=c);C--);if(M.length=C+1,r.type==="text"){a=r.content,o=0,l=a.length;e:for(;o=0)d=a.charCodeAt(s.index-1);else for(C=i-1;C>=0&&!(e[C].type==="softbreak"||e[C].type==="hardbreak");C--)if(e[C].content){d=e[C].content.charCodeAt(e[C].content.length-1);break}if(h=32,o=48&&d<=57&&(y=T=!1),T&&y&&(T=m,y=f),!T&&!y){I&&(r.content=zp(r.content,s.index,uT));continue}if(y){for(C=M.length-1;C>=0&&(u=M[C],!(M[C].level=0;i--)n.tokens[i].type!=="inline"||!QCe.test(n.tokens[i].content)||jCe(n.tokens[i].children,n)};function $d(e,n,i){this.type=e,this.tag=n,this.attrs=null,this.map=null,this.nesting=i,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}$d.prototype.attrIndex=function(n){var i,r,a;if(!this.attrs)return-1;for(i=this.attrs,r=0,a=i.length;r=0&&(r=this.attrs[i][1]),r};$d.prototype.attrJoin=function(n,i){var r=this.attrIndex(n);r<0?this.attrPush([n,i]):this.attrs[r][1]=this.attrs[r][1]+" "+i};var Ox=$d,KCe=Ox;function DL(e,n,i){this.src=e,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=n}DL.prototype.Token=KCe;var XCe=DL,$Ce=Lx,Kv=[["normalize",MCe],["block",LCe],["inline",OCe],["linkify",FCe],["replacements",WCe],["smartquotes",YCe]];function Rx(){this.ruler=new $Ce;for(var e=0;er||(d=i+1,n.sCount[d]=4||(l=n.bMarks[d]+n.tShift[d],l>=n.eMarks[d])||(R=n.src.charCodeAt(l++),R!==124&&R!==45&&R!==58)||l>=n.eMarks[d]||(B=n.src.charCodeAt(l++),B!==124&&B!==45&&B!==58&&!Xv(B))||R===45&&Xv(B))return!1;for(;l=4||(h=dT(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),m=h.length,m===0||m!==g.length))return!1;if(a)return!0;for(C=n.parentType,n.parentType="table",M=n.md.block.ruler.getRules("blockquote"),f=n.push("table_open","table",1),f.map=T=[i,0],f=n.push("thead_open","thead",1),f.map=[i,i+1],f=n.push("tr_open","tr",1),f.map=[i,i+1],c=0;c=4)break;for(h=dT(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),d===i+2&&(f=n.push("tbody_open","tbody",1),f.map=y=[i+2,0]),f=n.push("tr_open","tr",1),f.map=[d,d+1],c=0;c=4){a++,s=a;continue}break}return n.line=s,o=n.push("code_block","code",0),o.content=n.getLines(i,s,4+n.blkIndent,!1)+` -`,o.map=[i,n.line],!0},tSe=function(n,i,r,a){var s,o,l,c,u,d,h,m=!1,f=n.bMarks[i]+n.tShift[i],g=n.eMarks[i];if(n.sCount[i]-n.blkIndent>=4||f+3>g||(s=n.src.charCodeAt(f),s!==126&&s!==96)||(u=f,f=n.skipChars(f,s),o=f-u,o<3)||(h=n.src.slice(u,f),l=n.src.slice(f,g),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(a)return!0;for(c=i;c++,!(c>=r||(f=u=n.bMarks[c]+n.tShift[c],g=n.eMarks[c],f=4)&&(f=n.skipChars(f,s),!(f-u=4||n.src.charCodeAt(ee++)!==62)return!1;if(a)return!0;for(c=f=n.sCount[i]+1,n.src.charCodeAt(ee)===32?(ee++,c++,f++,s=!1,M=!0):n.src.charCodeAt(ee)===9?(M=!0,(n.bsCount[i]+f)%4===3?(ee++,c++,f++,s=!1):s=!0):M=!1,g=[n.bMarks[i]],n.bMarks[i]=ee;ee=de,C=[n.sCount[i]],n.sCount[i]=f-c,I=[n.tShift[i]],n.tShift[i]=ee-n.bMarks[i],B=n.md.block.ruler.getRules("blockquote"),y=n.parentType,n.parentType="blockquote",m=i+1;m=de));m++){if(n.src.charCodeAt(ee++)===62&&!W){for(c=f=n.sCount[m]+1,n.src.charCodeAt(ee)===32?(ee++,c++,f++,s=!1,M=!0):n.src.charCodeAt(ee)===9?(M=!0,(n.bsCount[m]+f)%4===3?(ee++,c++,f++,s=!1):s=!0):M=!1,g.push(n.bMarks[m]),n.bMarks[m]=ee;ee=de,v.push(n.bsCount[m]),n.bsCount[m]=n.sCount[m]+1+(M?1:0),C.push(n.sCount[m]),n.sCount[m]=f-c,I.push(n.tShift[m]),n.tShift[m]=ee-n.bMarks[m];continue}if(d)break;for(R=!1,l=0,u=B.length;l",A.map=h=[i,0],n.md.block.tokenize(n,i,m),A=n.push("blockquote_close","blockquote",-1),A.markup=">",n.lineMax=ne,n.parentType=y,h[1]=n.line,l=0;l=4||(s=n.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(o=1;u=s||(i=e.src.charCodeAt(a++),i<48||i>57))return-1;for(;;){if(a>=s)return-1;if(i=e.src.charCodeAt(a++),i>=48&&i<=57){if(a-r>=10)return-1;continue}if(i===41||i===46)break;return-1}return a=4||n.listIndent>=0&&n.sCount[i]-n.listIndent>=4&&n.sCount[i]=n.blkIndent&&(z=!0),(de=pT(n,i))>=0){if(h=!0,se=n.bMarks[i]+n.tShift[i],y=Number(n.src.slice(se,de-1)),z&&y!==1)return!1}else if((de=fT(n,i))>=0)h=!1;else return!1;if(z&&n.skipSpaces(de)>=n.eMarks[i])return!1;if(T=n.src.charCodeAt(de-1),a)return!0;for(v=n.tokens.length,h?(N=n.push("ordered_list_open","ol",1),y!==1&&(N.attrs=[["start",y]])):N=n.push("bullet_list_open","ul",1),N.map=g=[i,0],N.markup=String.fromCharCode(T),I=i,Y=!1,p=n.md.block.ruler.getRules("list"),B=n.parentType,n.parentType="list";I=C?u=1:u=M-d,u>4&&(u=1),c=d+u,N=n.push("list_item_open","li",1),N.markup=String.fromCharCode(T),N.map=m=[i,0],h&&(N.info=n.src.slice(se,de-1)),ne=n.tight,W=n.tShift[i],A=n.sCount[i],R=n.listIndent,n.listIndent=n.blkIndent,n.blkIndent=c,n.tight=!0,n.tShift[i]=o-n.bMarks[i],n.sCount[i]=M,o>=C&&n.isEmpty(i+1)?n.line=Math.min(n.line+2,r):n.md.block.tokenize(n,i,r,!0),(!n.tight||Y)&&(j=!1),Y=n.line-i>1&&n.isEmpty(n.line-1),n.blkIndent=n.listIndent,n.listIndent=R,n.tShift[i]=W,n.sCount[i]=A,n.tight=ne,N=n.push("list_item_close","li",-1),N.markup=String.fromCharCode(T),I=i=n.line,m[1]=I,o=n.bMarks[i],I>=r||n.sCount[I]=4)break;for(q=!1,l=0,f=p.length;l=4||n.src.charCodeAt(B)!==91)return!1;for(;++B3)&&!(n.sCount[W]<0)){for(C=!1,d=0,h=I.length;d"u"&&(n.env.references={}),typeof n.env.references[m]>"u"&&(n.env.references[m]={title:M,href:u}),n.parentType=g,n.line=i+R+1),!0)},cSe=["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"],Ag={},uSe="[a-zA-Z_:][a-zA-Z0-9:._-]*",dSe="[^\"'=<>`\\x00-\\x20]+",hSe="'[^']*'",fSe='"[^"]*"',pSe="(?:"+dSe+"|"+hSe+"|"+fSe+")",mSe="(?:\\s+"+uSe+"(?:\\s*=\\s*"+pSe+")?)",IL="<[A-Za-z][A-Za-z0-9\\-]*"+mSe+"*\\s*\\/?>",ML="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",gSe="|",vSe="<[?][\\s\\S]*?[?]>",bSe="]*>",ySe="",_Se=new RegExp("^(?:"+IL+"|"+ML+"|"+gSe+"|"+vSe+"|"+bSe+"|"+ySe+")"),ESe=new RegExp("^(?:"+IL+"|"+ML+")");Ag.HTML_TAG_RE=_Se;Ag.HTML_OPEN_CLOSE_TAG_RE=ESe;var ASe=cSe,wSe=Ag.HTML_OPEN_CLOSE_TAG_RE,Gu=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(wSe.source+"\\s*$"),/^$/,!1]],xSe=function(n,i,r,a){var s,o,l,c,u=n.bMarks[i]+n.tShift[i],d=n.eMarks[i];if(n.sCount[i]-n.blkIndent>=4||!n.md.options.html||n.src.charCodeAt(u)!==60)return!1;for(c=n.src.slice(u,d),s=0;s=4||(s=n.src.charCodeAt(u),s!==35||u>=d))return!1;for(o=1,s=n.src.charCodeAt(++u);s===35&&u6||uu&&mT(n.src.charCodeAt(l-1))&&(d=l),n.line=i+1,c=n.push("heading_open","h"+String(o),1),c.markup="########".slice(0,o),c.map=[i,n.line],c=n.push("inline","",0),c.content=n.src.slice(u,d).trim(),c.map=[i,n.line],c.children=[],c=n.push("heading_close","h"+String(o),-1),c.markup="########".slice(0,o)),!0)},SSe=function(n,i,r){var a,s,o,l,c,u,d,h,m,f=i+1,g,v=n.md.block.ruler.getRules("paragraph");if(n.sCount[i]-n.blkIndent>=4)return!1;for(g=n.parentType,n.parentType="paragraph";f3)){if(n.sCount[f]>=n.blkIndent&&(u=n.bMarks[f]+n.tShift[f],d=n.eMarks[f],u=d)))){h=m===61?1:2;break}if(!(n.sCount[f]<0)){for(s=!1,o=0,l=v.length;o3)&&!(n.sCount[u]<0)){for(a=!1,s=0,o=d.length;s0&&this.level++,this.tokens.push(r),r};xo.prototype.isEmpty=function(n){return this.bMarks[n]+this.tShift[n]>=this.eMarks[n]};xo.prototype.skipEmptyLines=function(n){for(var i=this.lineMax;ni;)if(!wg(this.src.charCodeAt(--n)))return n+1;return n};xo.prototype.skipChars=function(n,i){for(var r=this.src.length;nr;)if(i!==this.src.charCodeAt(--n))return n+1;return n};xo.prototype.getLines=function(n,i,r,a){var s,o,l,c,u,d,h,m=n;if(n>=i)return"";for(d=new Array(i-n),s=0;mr?d[s]=new Array(o-r+1).join(" ")+this.src.slice(c,u):d[s]=this.src.slice(c,u)}return d.join("")};xo.prototype.Token=LL;var kSe=xo,DSe=Lx,Up=[["table",JCe,["paragraph","reference"]],["code",eSe],["fence",tSe,["paragraph","reference","blockquote","list"]],["blockquote",nSe,["paragraph","reference","blockquote","list"]],["hr",rSe,["paragraph","reference","blockquote","list"]],["list",sSe,["paragraph","reference","blockquote"]],["reference",lSe],["html_block",xSe,["paragraph","reference","blockquote"]],["heading",CSe,["paragraph","reference","blockquote"]],["lheading",SSe],["paragraph",TSe]];function xg(){this.ruler=new DSe;for(var e=0;e=i||e.sCount[l]=u){e.line=i;break}for(a=0;a=0&&n.pending.charCodeAt(r)===32)if(r>=1&&n.pending.charCodeAt(r-1)===32){for(s=r-1;s>=1&&n.pending.charCodeAt(s-1)===32;)s--;n.pending=n.pending.slice(0,s),n.push("hardbreak","br",0)}else n.pending=n.pending.slice(0,-1),n.push("softbreak","br",0);else n.push("softbreak","br",0);for(o++;o?@[]^_`{|}~-".split("").forEach(function(e){Px[e.charCodeAt(0)]=1});var PSe=function(n,i){var r,a=n.pos,s=n.posMax;if(n.src.charCodeAt(a)!==92)return!1;if(a++,a=0;i--)r=n[i],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(a=n[r.end],l=i>0&&n[i-1].end===r.end+1&&n[i-1].marker===r.marker&&n[i-1].token===r.token-1&&n[r.end+1].token===a.token+1,o=String.fromCharCode(r.marker),s=e.tokens[r.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?o+o:o,s.content="",s=e.tokens[a.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?o+o:o,s.content="",l&&(e.tokens[n[i-1].token].content="",e.tokens[n[r.end+1].token].content="",i--))}Sg.postProcess=function(n){var i,r=n.tokens_meta,a=n.tokens_meta.length;for(bT(n,n.delimiters),i=0;i=v)return!1;if(T=c,u=n.md.helpers.parseLinkDestination(n.src,c,n.posMax),u.ok){for(m=n.md.normalizeLink(u.str),n.md.validateLink(m)?c=u.pos:m="",T=c;c=v||n.src.charCodeAt(c)!==41)&&(y=!0),c++}if(y){if(typeof n.env.references>"u")return!1;if(c=0?s=n.src.slice(T,c++):c=o+1):c=o+1,s||(s=n.src.slice(l,o)),d=n.env.references[FSe(s)],!d)return n.pos=g,!1;m=d.href,f=d.title}return i||(n.pos=l,n.posMax=o,h=n.push("link_open","a",1),h.attrs=r=[["href",m]],f&&r.push(["title",f]),n.md.inline.tokenize(n),h=n.push("link_close","a",-1)),n.pos=c,n.posMax=v,!0},zSe=ai.normalizeReference,Jv=ai.isSpace,qSe=function(n,i){var r,a,s,o,l,c,u,d,h,m,f,g,v,T="",y=n.pos,C=n.posMax;if(n.src.charCodeAt(n.pos)!==33||n.src.charCodeAt(n.pos+1)!==91||(c=n.pos+2,l=n.md.helpers.parseLinkLabel(n,n.pos+1,!1),l<0))return!1;if(u=l+1,u=C)return!1;for(v=u,h=n.md.helpers.parseLinkDestination(n.src,u,n.posMax),h.ok&&(T=n.md.normalizeLink(h.str),n.md.validateLink(T)?u=h.pos:T=""),v=u;u=C||n.src.charCodeAt(u)!==41)return n.pos=y,!1;u++}else{if(typeof n.env.references>"u")return!1;if(u=0?o=n.src.slice(v,u++):u=l+1):u=l+1,o||(o=n.src.slice(c,l)),d=n.env.references[zSe(o)],!d)return n.pos=y,!1;T=d.href,m=d.title}return i||(s=n.src.slice(c,l),n.md.inline.parse(s,n.md,n.env,g=[]),f=n.push("image","img",0),f.attrs=r=[["src",T],["alt",""]],f.children=g,f.content=s,m&&r.push(["title",m])),n.pos=u,n.posMax=C,!0},USe=/^([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])?)*)$/,GSe=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,VSe=function(n,i){var r,a,s,o,l,c,u=n.pos;if(n.src.charCodeAt(u)!==60)return!1;for(l=n.pos,c=n.posMax;;){if(++u>=c||(o=n.src.charCodeAt(u),o===60))return!1;if(o===62)break}return r=n.src.slice(l+1,u),GSe.test(r)?(a=n.md.normalizeLink(r),n.md.validateLink(a)?(i||(s=n.push("link_open","a",1),s.attrs=[["href",a]],s.markup="autolink",s.info="auto",s=n.push("text","",0),s.content=n.md.normalizeLinkText(r),s=n.push("link_close","a",-1),s.markup="autolink",s.info="auto"),n.pos+=r.length+2,!0):!1):USe.test(r)?(a=n.md.normalizeLink("mailto:"+r),n.md.validateLink(a)?(i||(s=n.push("link_open","a",1),s.attrs=[["href",a]],s.markup="autolink",s.info="auto",s=n.push("text","",0),s.content=n.md.normalizeLinkText(r),s=n.push("link_close","a",-1),s.markup="autolink",s.info="auto"),n.pos+=r.length+2,!0):!1):!1},WSe=Ag.HTML_TAG_RE;function QSe(e){var n=e|32;return n>=97&&n<=122}var jSe=function(n,i){var r,a,s,o,l=n.pos;return!n.md.options.html||(s=n.posMax,n.src.charCodeAt(l)!==60||l+2>=s)||(r=n.src.charCodeAt(l+1),r!==33&&r!==63&&r!==47&&!QSe(r))||(a=n.src.slice(l).match(WSe),!a)?!1:(i||(o=n.push("html_inline","",0),o.content=n.src.slice(l,l+a[0].length)),n.pos+=a[0].length,!0)},yT=xL,YSe=ai.has,KSe=ai.isValidEntityCode,_T=ai.fromCodePoint,XSe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,$Se=/^&([a-z][a-z0-9]{1,31});/i,ZSe=function(n,i){var r,a,s,o=n.pos,l=n.posMax;if(n.src.charCodeAt(o)!==38)return!1;if(o+1o;r-=g[r]+1)if(s=n[r],s.marker===a.marker&&s.open&&s.end<0&&(c=!1,(s.close||a.open)&&(s.length+a.length)%3===0&&(s.length%3!==0||a.length%3!==0)&&(c=!0),!c)){u=r>0&&!n[r-1].open?g[r-1]+1:0,g[i]=i-r+u,g[r]=u,a.open=!1,s.end=i,s.close=!1,l=-1,f=-2;break}l!==-1&&(d[a.marker][(a.open?3:0)+(a.length||0)%3]=l)}}}var JSe=function(n){var i,r=n.tokens_meta,a=n.tokens_meta.length;for(ET(n,n.delimiters),i=0;i0&&a++,s[i].type==="text"&&i+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(a),r};Jf.prototype.scanDelims=function(e,n){var i=e,r,a,s,o,l,c,u,d,h,m=!0,f=!0,g=this.posMax,v=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;i=s)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ep.prototype.parse=function(e,n,i,r){var a,s,o,l=new this.State(e,n,i,r);for(this.tokenize(l),s=this.ruler2.getRules(""),o=s.length,a=0;a|$))",n.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}),nb}function hA(e){var n=Array.prototype.slice.call(arguments,1);return n.forEach(function(i){i&&Object.keys(i).forEach(function(r){e[r]=i[r]})}),e}function Tg(e){return Object.prototype.toString.call(e)}function rTe(e){return Tg(e)==="[object String]"}function aTe(e){return Tg(e)==="[object Object]"}function sTe(e){return Tg(e)==="[object RegExp]"}function TT(e){return Tg(e)==="[object Function]"}function oTe(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var OL={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function lTe(e){return Object.keys(e||{}).reduce(function(n,i){return n||OL.hasOwnProperty(i)},!1)}var cTe={"http:":{validate:function(e,n,i){var r=e.slice(n);return i.re.http||(i.re.http=new RegExp("^\\/\\/"+i.re.src_auth+i.re.src_host_port_strict+i.re.src_path,"i")),i.re.http.test(r)?r.match(i.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,n,i){var r=e.slice(n);return i.re.no_http||(i.re.no_http=new RegExp("^"+i.re.src_auth+"(?:localhost|(?:(?:"+i.re.src_domain+")\\.)+"+i.re.src_domain_root+")"+i.re.src_port+i.re.src_host_terminator+i.re.src_path,"i")),i.re.no_http.test(r)?n>=3&&e[n-3]===":"||n>=3&&e[n-3]==="/"?0:r.match(i.re.no_http)[0].length:0}},"mailto:":{validate:function(e,n,i){var r=e.slice(n);return i.re.mailto||(i.re.mailto=new RegExp("^"+i.re.src_email_name+"@"+i.re.src_host_strict,"i")),i.re.mailto.test(r)?r.match(i.re.mailto)[0].length:0}}},uTe="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]",dTe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function hTe(e){e.__index__=-1,e.__text_cache__=""}function fTe(e){return function(n,i){var r=n.slice(i);return e.test(r)?r.match(e)[0].length:0}}function kT(){return function(e,n){n.normalize(e)}}function m0(e){var n=e.re=iTe()(e.__opts__),i=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||i.push(uTe),i.push(n.src_xn),n.src_tlds=i.join("|");function r(l){return l.replace("%TLDS%",n.src_tlds)}n.email_fuzzy=RegExp(r(n.tpl_email_fuzzy),"i"),n.link_fuzzy=RegExp(r(n.tpl_link_fuzzy),"i"),n.link_no_ip_fuzzy=RegExp(r(n.tpl_link_no_ip_fuzzy),"i"),n.host_fuzzy_test=RegExp(r(n.tpl_host_fuzzy_test),"i");var a=[];e.__compiled__={};function s(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(e.__schemas__).forEach(function(l){var c=e.__schemas__[l];if(c!==null){var u={validate:null,link:null};if(e.__compiled__[l]=u,aTe(c)){sTe(c.validate)?u.validate=fTe(c.validate):TT(c.validate)?u.validate=c.validate:s(l,c),TT(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=kT();return}if(rTe(c)){a.push(l);return}s(l,c)}}),a.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:kT()};var o=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(oTe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+o+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),hTe(e)}function pTe(e,n){var i=e.__index__,r=e.__last_index__,a=e.__text_cache__.slice(i,r);this.schema=e.__schema__.toLowerCase(),this.index=i+n,this.lastIndex=r+n,this.raw=a,this.text=a,this.url=a}function DT(e,n){var i=new pTe(e,n);return e.__compiled__[i.schema].normalize(i,e),i}function _s(e,n){if(!(this instanceof _s))return new _s(e,n);n||lTe(e)&&(n=e,e={}),this.__opts__=hA({},OL,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=hA({},cTe,e),this.__compiled__={},this.__tlds__=dTe,this.__tlds_replaced__=!1,this.re={},m0(this)}_s.prototype.add=function(n,i){return this.__schemas__[n]=i,m0(this),this};_s.prototype.set=function(n){return this.__opts__=hA(this.__opts__,n),this};_s.prototype.test=function(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return!1;var i,r,a,s,o,l,c,u,d;if(this.re.schema_test.test(n)){for(c=this.re.schema_search,c.lastIndex=0;(i=c.exec(n))!==null;)if(s=this.testSchemaAt(n,i[2],c.lastIndex),s){this.__schema__=i[2],this.__index__=i.index+i[1].length,this.__last_index__=i.index+i[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=n.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u=0&&(a=n.match(this.re.email_fuzzy))!==null&&(o=a.index+a[1].length,l=a.index+a[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=l))),this.__index__>=0};_s.prototype.pretest=function(n){return this.re.pretest.test(n)};_s.prototype.testSchemaAt=function(n,i,r){return this.__compiled__[i.toLowerCase()]?this.__compiled__[i.toLowerCase()].validate(n,r,this):0};_s.prototype.match=function(n){var i=0,r=[];this.__index__>=0&&this.__text_cache__===n&&(r.push(DT(this,i)),i=this.__last_index__);for(var a=i?n.slice(i):n;this.test(a);)r.push(DT(this,i)),a=a.slice(this.__last_index__),i+=this.__last_index__;return r.length?r:null};_s.prototype.tlds=function(n,i){return n=Array.isArray(n)?n:[n],i?(this.__tlds__=this.__tlds__.concat(n).sort().filter(function(r,a,s){return r!==s[a-1]}).reverse(),m0(this),this):(this.__tlds__=n.slice(),this.__tlds_replaced__=!0,m0(this),this)};_s.prototype.normalize=function(n){n.schema||(n.url="http://"+n.url),n.schema==="mailto:"&&!/^mailto:/i.test(n.url)&&(n.url="mailto:"+n.url)};_s.prototype.onCompile=function(){};var mTe=_s,gTe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},vTe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},bTe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},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","text_collapse"]}}},Kh=ai,yTe=Eg,_Te=DCe,ETe=ZCe,ATe=NSe,wTe=nTe,xTe=mTe,Yc=Kd,RL=require("punycode"),CTe={default:gTe,zero:vTe,commonmark:bTe},STe=/^(vbscript|javascript|file|data):/,TTe=/^data:image\/(gif|png|jpeg|webp);/;function kTe(e){var n=e.trim().toLowerCase();return STe.test(n)?!!TTe.test(n):!0}var PL=["http:","https:","mailto:"];function DTe(e){var n=Yc.parse(e,!0);if(n.hostname&&(!n.protocol||PL.indexOf(n.protocol)>=0))try{n.hostname=RL.toASCII(n.hostname)}catch{}return Yc.encode(Yc.format(n))}function NTe(e){var n=Yc.parse(e,!0);if(n.hostname&&(!n.protocol||PL.indexOf(n.protocol)>=0))try{n.hostname=RL.toUnicode(n.hostname)}catch{}return Yc.decode(Yc.format(n),Yc.decode.defaultChars+"%")}function Es(e,n){if(!(this instanceof Es))return new Es(e,n);n||Kh.isString(e)||(n=e||{},e="default"),this.inline=new wTe,this.block=new ATe,this.core=new ETe,this.renderer=new _Te,this.linkify=new xTe,this.validateLink=kTe,this.normalizeLink=DTe,this.normalizeLinkText=NTe,this.utils=Kh,this.helpers=Kh.assign({},yTe),this.options={},this.configure(e),n&&this.set(n)}Es.prototype.set=function(e){return Kh.assign(this.options,e),this};Es.prototype.configure=function(e){var n=this,i;if(Kh.isString(e)&&(i=e,e=CTe[i],!e))throw new Error('Wrong `markdown-it` preset "'+i+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&n[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&n[r].ruler2.enableOnly(e.components[r].rules2)}),this};Es.prototype.enable=function(e,n){var i=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){i=i.concat(this[a].ruler.enable(e,!0))},this),i=i.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(a){return i.indexOf(a)<0});if(r.length&&!n)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};Es.prototype.disable=function(e,n){var i=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){i=i.concat(this[a].ruler.disable(e,!0))},this),i=i.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(a){return i.indexOf(a)<0});if(r.length&&!n)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};Es.prototype.use=function(e){var n=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,n),this};Es.prototype.parse=function(e,n){if(typeof e!="string")throw new Error("Input data should be a String");var i=new this.core.State(e,this,n);return this.core.process(i),i.tokens};Es.prototype.render=function(e,n){return n=n||{},this.renderer.render(this.parse(e,n),this.options,n)};Es.prototype.parseInline=function(e,n){var i=new this.core.State(e,this,n);return i.inlineMode=!0,this.core.process(i),i.tokens};Es.prototype.renderInline=function(e,n){return n=n||{},this.renderer.render(this.parseInline(e,n),this.options,n)};var ITe=Es,MTe=ITe;const LTe=vr(MTe);var BL={};(function(e){(function(n){n(e)})(function(n){var i=[],r=Object.keys,a={},s={},o=/^(no-?highlight|plain|text)$/i,l=/\blang(?:uage)?-([\w-]+)\b/i,c=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,u="",d={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function h(N){return N.replace(/&/g,"&").replace(//g,">")}function m(N){return N.nodeName.toLowerCase()}function f(N,z){var j=N&&N.exec(z);return j&&j.index===0}function g(N){return o.test(N)}function v(N){var z,j,re,ue,ae=N.className+" ";if(ae+=N.parentNode?N.parentNode.className:"",j=l.exec(ae),j)return p(j[1])?j[1]:"no-highlight";for(ae=ae.split(/\s+/),z=0,re=ae.length;z"}function Oe(rt){ue+=""}function Qe(rt){(rt.event==="start"?ze:Oe)(rt.node)}for(;N.length||z.length;){var Ge=Ee();if(ue+=h(j.substring(re,Ge[0].offset)),re=Ge[0].offset,Ge===N){ae.reverse().forEach(Oe);do Qe(Ge.splice(0,1)[0]),Ge=Ee();while(Ge===N&&Ge.length&&Ge[0].offset===re);ae.reverse().forEach(ze)}else Ge[0].event==="start"?ae.push(Ge[0].node):ae.pop(),Qe(Ge.splice(0,1)[0])}return ue+h(j.substr(re))}function I(N){return N.variants&&!N.cached_variants&&(N.cached_variants=N.variants.map(function(z){return T(N,{variants:null},z)})),N.cached_variants||N.endsWithParent&&[T(N)]||[N]}function M(N){function z(ue){return ue&&ue.source||ue}function j(ue,ae){return new RegExp(z(ue),"m"+(N.case_insensitive?"i":"")+(ae?"g":""))}function re(ue,ae){if(!ue.compiled){if(ue.compiled=!0,ue.keywords=ue.keywords||ue.beginKeywords,ue.keywords){var Ee={},ze=function(Qe,Ge){N.case_insensitive&&(Ge=Ge.toLowerCase()),Ge.split(" ").forEach(function(rt){var ht=rt.split("|");Ee[ht[0]]=[Qe,ht[1]?Number(ht[1]):1]})};typeof ue.keywords=="string"?ze("keyword",ue.keywords):r(ue.keywords).forEach(function(Qe){ze(Qe,ue.keywords[Qe])}),ue.keywords=Ee}ue.lexemesRe=j(ue.lexemes||/\w+/,!0),ae&&(ue.beginKeywords&&(ue.begin="\\b("+ue.beginKeywords.split(" ").join("|")+")\\b"),ue.begin||(ue.begin=/\B|\b/),ue.beginRe=j(ue.begin),!ue.end&&!ue.endsWithParent&&(ue.end=/\B|\b/),ue.end&&(ue.endRe=j(ue.end)),ue.terminator_end=z(ue.end)||"",ue.endsWithParent&&ae.terminator_end&&(ue.terminator_end+=(ue.end?"|":"")+ae.terminator_end)),ue.illegal&&(ue.illegalRe=j(ue.illegal)),ue.relevance==null&&(ue.relevance=1),ue.contains||(ue.contains=[]),ue.contains=Array.prototype.concat.apply([],ue.contains.map(function(Qe){return I(Qe==="self"?ue:Qe)})),ue.contains.forEach(function(Qe){re(Qe,ue)}),ue.starts&&re(ue.starts,ae);var Oe=ue.contains.map(function(Qe){return Qe.beginKeywords?"\\.?("+Qe.begin+")\\.?":Qe.begin}).concat([ue.terminator_end,ue.illegal]).map(z).filter(Boolean);ue.terminators=Oe.length?j(Oe.join("|"),!0):{exec:function(){return null}}}}re(N)}function R(N,z,j,re){function ue(Ue,Ke){var Pe,st;for(Pe=0,st=Ke.contains.length;Pe',et+Ke+Ht}function Qe(){var Ue,Ke,Pe,st;if(!gt.keywords)return h(Ze);for(st="",Ke=0,gt.lexemesRe.lastIndex=0,Pe=gt.lexemesRe.exec(Ze);Pe;)st+=h(Ze.substring(Ke,Pe.index)),Ue=ze(gt,Pe),Ue?(Ye+=Ue[1],st+=Oe(Ue[0],h(Pe[0]))):st+=h(Pe[0]),Ke=gt.lexemesRe.lastIndex,Pe=gt.lexemesRe.exec(Ze);return st+h(Ze.substr(Ke))}function Ge(){var Ue=typeof gt.subLanguage=="string";if(Ue&&!a[gt.subLanguage])return h(Ze);var Ke=Ue?R(gt.subLanguage,Ze,!0,Vt[gt.subLanguage]):B(Ze,gt.subLanguage.length?gt.subLanguage:void 0);return gt.relevance>0&&(Ye+=Ke.relevance),Ue&&(Vt[gt.subLanguage]=Ke.top),Oe(Ke.language,Ke.value,!1,!0)}function rt(){Qt+=gt.subLanguage!=null?Ge():Qe(),Ze=""}function ht(Ue){Qt+=Ue.className?Oe(Ue.className,"",!0):"",gt=Object.create(Ue,{parent:{value:gt}})}function bt(Ue,Ke){if(Ze+=Ue,Ke==null)return rt(),0;var Pe=ue(Ke,gt);if(Pe)return Pe.skip?Ze+=Ke:(Pe.excludeBegin&&(Ze+=Ke),rt(),!Pe.returnBegin&&!Pe.excludeBegin&&(Ze=Ke)),ht(Pe),Pe.returnBegin?0:Ke.length;var st=ae(gt,Ke);if(st){var at=gt;at.skip?Ze+=Ke:(at.returnEnd||at.excludeEnd||(Ze+=Ke),rt(),at.excludeEnd&&(Ze=Ke));do gt.className&&(Qt+=u),gt.skip||(Ye+=gt.relevance),gt=gt.parent;while(gt!==st.parent);return st.starts&&ht(st.starts),at.returnEnd?0:Ke.length}if(Ee(Ke,gt))throw new Error('Illegal lexeme "'+Ke+'" for mode "'+(gt.className||"")+'"');return Ze+=Ke,Ke.length||1}var St=p(N);if(!St)throw new Error('Unknown language: "'+N+'"');M(St);var gt=re||St,Vt={},Qt="",te;for(te=gt;te!==St;te=te.parent)te.className&&(Qt=Oe(te.className,"",!0)+Qt);var Ze="",Ye=0;try{for(var Se,xe,Re=0;gt.terminators.lastIndex=Re,Se=gt.terminators.exec(z),!!Se;)xe=bt(z.substring(Re,Se.index),Se[0]),Re=Se.index+xe;for(bt(z.substr(Re)),te=gt;te.parent;te=te.parent)te.className&&(Qt+=u);return{relevance:Ye,value:Qt,language:N,top:gt}}catch(Ue){if(Ue.message&&Ue.message.indexOf("Illegal")!==-1)return{relevance:0,value:h(z)};throw Ue}}function B(N,z){z=z||d.languages||r(a);var j={relevance:0,value:h(N)},re=j;return z.filter(p).forEach(function(ue){var ae=R(ue,N,!1);ae.language=ue,ae.relevance>re.relevance&&(re=ae),ae.relevance>j.relevance&&(re=j,j=ae)}),re.language&&(j.second_best=re),j}function A(N){return d.tabReplace||d.useBR?N.replace(c,function(z,j){return d.useBR&&z===` -`?"
":d.tabReplace?j.replace(/\t/g,d.tabReplace):""}):N}function W(N,z,j){var re=z?s[z]:j,ue=[N.trim()];return N.match(/\bhljs\b/)||ue.push("hljs"),N.indexOf(re)===-1&&ue.push(re),ue.join(" ").trim()}function ne(N){var z,j,re,ue,ae,Ee=v(N);g(Ee)||(d.useBR?(z=document.createElementNS("http://www.w3.org/1999/xhtml","div"),z.innerHTML=N.innerHTML.replace(/\n/g,"").replace(//g,` -`)):z=N,ae=z.textContent,re=Ee?R(Ee,ae,!0):B(ae),j=y(z),j.length&&(ue=document.createElementNS("http://www.w3.org/1999/xhtml","div"),ue.innerHTML=re.value,re.value=C(j,y(ue),ae)),re.value=A(re.value),N.innerHTML=re.value,N.className=W(N.className,Ee,re.language),N.result={language:re.language,re:re.relevance},re.second_best&&(N.second_best={language:re.second_best.language,re:re.second_best.relevance}))}function ee(N){d=T(d,N)}function de(){if(!de.called){de.called=!0;var N=document.querySelectorAll("pre code");i.forEach.call(N,ne)}}function Y(){addEventListener("DOMContentLoaded",de,!1),addEventListener("load",de,!1)}function se(N,z){var j=a[N]=z(n);j.aliases&&j.aliases.forEach(function(re){s[re]=N})}function q(){return r(a)}function p(N){return N=(N||"").toLowerCase(),a[N]||a[s[N]]}return n.highlight=R,n.highlightAuto=B,n.fixMarkup=A,n.highlightBlock=ne,n.configure=ee,n.initHighlighting=de,n.initHighlightingOnLoad=Y,n.registerLanguage=se,n.listLanguages=q,n.getLanguage=p,n.inherit=T,n.IDENT_RE="[a-zA-Z]\\w*",n.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",n.NUMBER_RE="\\b\\d+(\\.\\d+)?",n.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",n.BINARY_NUMBER_RE="\\b(0b[01]+)",n.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",n.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},n.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},n.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},n.PHRASAL_WORDS_MODE={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/},n.COMMENT=function(N,z,j){var re=n.inherit({className:"comment",begin:N,end:z,contains:[]},j||{});return re.contains.push(n.PHRASAL_WORDS_MODE),re.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),re},n.C_LINE_COMMENT_MODE=n.COMMENT("//","$"),n.C_BLOCK_COMMENT_MODE=n.COMMENT("/\\*","\\*/"),n.HASH_COMMENT_MODE=n.COMMENT("#","$"),n.NUMBER_MODE={className:"number",begin:n.NUMBER_RE,relevance:0},n.C_NUMBER_MODE={className:"number",begin:n.C_NUMBER_RE,relevance:0},n.BINARY_NUMBER_MODE={className:"number",begin:n.BINARY_NUMBER_RE,relevance:0},n.CSS_NUMBER_MODE={className:"number",begin:n.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},n.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[n.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[n.BACKSLASH_ESCAPE]}]},n.TITLE_MODE={className:"title",begin:n.IDENT_RE,relevance:0},n.UNDERSCORE_TITLE_MODE={className:"title",begin:n.UNDERSCORE_IDENT_RE,relevance:0},n.METHOD_GUARD={begin:"\\.\\s*"+n.UNDERSCORE_IDENT_RE,relevance:0},n})})(BL);var ib,NT;function OTe(){return NT||(NT=1,ib=function(e){var n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее ",r="возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",a=i+r,s="загрузитьизфайла ",o="вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",l=s+o,c="разделительстраниц разделительстрок символтабуляции ",u="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",d="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 установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",h="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",m=c+u+d+h,f="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",g="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",v="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",T="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",y="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",C="отображениевремениэлементовпланировщика ",I="типфайлаформатированногодокумента ",M="обходрезультатазапроса типзаписизапроса ",R="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",B="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",A="типизмеренияпостроителязапроса ",W="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",ne="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 ",ee="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",de="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",Y="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",se="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",q="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",p="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",N="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",z="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",j="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",re=f+g+v+T+y+C+I+M+R+B+A+W+ne+ee+de+Y+se+q+p+N+z+j,ue="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 шрифт элементрезультатакомпоновкиданных ",ae="comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",Ee=ue+ae,ze="null истина ложь неопределено",Oe=e.inherit(e.NUMBER_MODE),Qe={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Ge={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},rt=e.inherit(e.C_LINE_COMMENT_MODE),ht={className:"meta",lexemes:n,begin:"#|&",end:"$",keywords:{"meta-keyword":a+l},contains:[rt]},bt={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},St={className:"function",lexemes:n,variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",lexemes:n,begin:n,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{keyword:"знач",literal:ze},contains:[Oe,Qe,Ge]},rt]},e.inherit(e.TITLE_MODE,{begin:n})]};return{case_insensitive:!0,lexemes:n,keywords:{keyword:a,built_in:m,class:re,type:Ee,literal:ze},contains:[ht,St,rt,bt,Oe,Qe,Ge]}}),ib}var rb,IT;function RTe(){return IT||(IT=1,rb=function(e){var n={ruleDeclaration:"^[a-zA-Z][a-zA-Z0-9-]*",unexpectedChars:"[!@#$^&',?+~`|:]"},i=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],r=e.COMMENT(";","$"),a={className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},s={className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},o={className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},l={className:"symbol",begin:/%[si]/},c={begin:n.ruleDeclaration+"\\s*=",returnBegin:!0,end:/=/,relevance:0,contains:[{className:"attribute",begin:n.ruleDeclaration}]};return{illegal:n.unexpectedChars,keywords:i.join(" "),contains:[c,r,a,s,o,l,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}),rb}var ab,MT;function PTe(){return MT||(MT=1,ab=function(e){return{contains:[{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+\\b",relevance:0},{className:"string",begin:'"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)',end:'"',keywords:"GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE",illegal:"\\n",relevance:10},{className:"string",begin:/\[/,end:/\]/,illegal:"\\n"},{className:"string",begin:'"',end:'"',illegal:"\\n"}]}}),ab}var sb,LT;function BTe(){return LT||(LT=1,sb=function(e){var n="[a-zA-Z_$][a-zA-Z0-9_$]*",i="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)",r={className:"rest_arg",begin:"[.]{3}",end:n,relevance:10};return{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,{className:"class",beginKeywords:"package",end:"{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:";",keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:"[{;]",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r]},{begin:":\\s*"+i}]},e.METHOD_GUARD],illegal:/#/}}),sb}var ob,OT;function FTe(){return OT||(OT=1,ob=function(e){var n="\\d(_|\\d)*",i="[eE][-+]?"+n,r=n+"(\\."+n+")?("+i+")?",a="\\w+",s=n+"#"+a+"(\\."+a+")?#("+i+")?",o="\\b("+s+"|"+r+")",l="[A-Za-z](_?[A-Za-z0-9.])*",c=`[]{}%#'"`,u=e.COMMENT("--","$"),d={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:c,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{case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[u,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:o,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:c},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[u,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:c},d,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:c}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:c},d]}}),ob}var lb,RT;function HTe(){return RT||(RT=1,lb=function(e){var n={className:"number",begin:"[\\$%]\\d+"};return{aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:""},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"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"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",n]},n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}),lb}var cb,PT;function zTe(){return PT||(PT=1,cb=function(e){var n=e.inherit(e.QUOTE_STRING_MODE,{illegal:""}),i={className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_NUMBER_MODE,n]},r=e.COMMENT("--","$"),a=e.COMMENT("\\(\\*","\\*\\)",{contains:["self",r]}),s=[r,a,e.HASH_COMMENT_MODE];return{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 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,e.C_NUMBER_MODE,{className:"built_in",begin:"\\b(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))\\b|^\\s*return\\b"},{className:"literal",begin:"\\b(text item delimiters|current application|missing value)\\b"},{className:"keyword",begin:"\\b(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|POSIX path|(date|time) string|quoted form)\\b"},{beginKeywords:"on",illegal:"[${=;\\n]",contains:[e.UNDERSCORE_TITLE_MODE,i]}].concat(s),illegal:"//|->|=>|\\[\\["}}),cb}var ub,BT;function qTe(){return BT||(BT=1,ub=function(e){var n={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U)?L?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},r={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},a={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},s=e.IDENT_RE+"\\s*\\(",o={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and or not",built_in:"std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf 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",literal:"true false nullptr NULL"},l=[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,i];return{aliases:["c","cc","h","c++","h++","hpp"],keywords:o,illegal:"",keywords:o,contains:["self",n]},{begin:e.IDENT_RE+"::",keywords:o},{variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:o,contains:l.concat([{begin:/\(/,end:/\)/,keywords:o,contains:l.concat(["self"]),relevance:0}]),relevance:0},{className:"function",begin:"("+e.IDENT_RE+"[\\*&\\s]+)+"+s,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:o,illegal:/[^\w\s\*&]/,contains:[{begin:s,returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,r,n]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},{className:"class",beginKeywords:"class struct",end:/[{;:]/,contains:[{begin://,contains:["self"]},e.TITLE_MODE]}]),exports:{preprocessor:a,strings:i,keywords:o}}}),ub}var db,FT;function UTe(){return FT||(FT=1,db=function(e){var n=e.getLanguage("cpp").exports;return{keywords:{keyword:"boolean byte word string String array "+n.keywords.keyword,built_in:"setup loop while catch for if do goto try switch case else default break continue return 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 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"},contains:[n.preprocessor,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}),db}var hb,HT;function GTe(){return HT||(HT=1,hb=function(e){return{case_insensitive:!0,aliases:["arm"],lexemes:"\\.?"+e.IDENT_RE,keywords:{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 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]?",end:"\\s"},e.COMMENT("[;@]","$",{relevance:0}),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:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"[=#]\\w+"}],relevance:0}]}}),hb}var fb,zT;function VTe(){return zT||(zT=1,fb=function(e){var n="[A-Za-z0-9\\._:-]+",i={endsWithParent:!0,illegal:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0}]},{className:"tag",begin:"|$)",end:">",keywords:{name:"style"},contains:[i],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"|$)",end:">",keywords:{name:"script"},contains:[i],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"meta",variants:[{begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?\w+/,end:/\?>/}]},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},i]}]}}),fb}var pb,qT;function WTe(){return qT||(qT=1,pb=function(e){return{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,5}) .+?( \\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},{className:"bullet",begin:"^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{className:"strong",begin:"\\B\\*(?![\\*\\s])",end:"(\\n{2}|\\*)",contains:[{begin:"\\\\*\\w",relevance:0}]},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0},{className:"emphasis",begin:"_(?![_\\s])",end:"(\\n{2}|_)",relevance:0},{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{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}]}}),pb}var mb,UT;function QTe(){return UT||(UT=1,mb=function(e){var n="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{keywords:n,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:n+" "+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:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",keywords:n+" "+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:n,excludeEnd:!0,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,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]+"}]}}),mb}var gb,GT;function jTe(){return GT||(GT=1,gb=function(e){var n={begin:"`[\\s\\S]"};return{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:"A|0 true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[{className:"built_in",begin:"A_[a-zA-Z0-9]+"},n,e.inherit(e.QUOTE_STRING_MODE,{contains:[n]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"subst",begin:"%(?=[a-zA-Z0-9#_$@])",end:"%",illegal:"[^a-zA-Z0-9#_$@]"},{className:"built_in",begin:"^\\s*\\w+\\s*,"},{className:"meta",begin:"^\\s*#w+",end:"$",relevance:0},{className:"symbol",contains:[n],variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{begin:",\\s*,"}]}}),gb}var vb,VT;function YTe(){return VT||(VT=1,vb=function(e){var n="ByRef Case Const ContinueCase ContinueLoop Default 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",i="True False And Null Not Or",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",a={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},s={begin:"\\$[A-z0-9_]+"},o={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},l={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[o,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},o,a]},u={className:"symbol",begin:"@[A-z0-9_]+"},d={className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[s,o,l]}]};return{case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:n,built_in:r,literal:i},contains:[a,s,o,l,c,u,d]}}),vb}var bb,WT;function KTe(){return WT||(WT=1,bb=function(e){return{case_insensitive:!0,lexemes:"\\.?"+e.IDENT_RE,keywords:{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]+"}]}}),bb}var yb,QT;function XTe(){return QT||(QT=1,yb=function(e){var n={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},i="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{keywords:{keyword:i},contains:[n,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}),yb}var _b,jT;function $Te(){return jT||(jT=1,_b=function(e){return{keywords:"false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",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:"$"},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]}]}}),_b}var Eb,YT;function ZTe(){return YT||(YT=1,Eb=function(e){var n={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},r={className:"string",begin:/'/,end:/'/};return{aliases:["sh","zsh"],lexemes:/\b-?[a-z\._]+\b/,keywords:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt 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",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[{className:"meta",begin:/^#![^\n]+sh\s*$/,relevance:10},{className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},e.HASH_COMMENT_MODE,i,r,n]}}),Eb}var Ab,KT;function JTe(){return KT||(KT=1,Ab=function(e){return{case_insensitive:!0,illegal:"^.",lexemes:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keywords:{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|0 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([0-9]+[0-9edED.]*[#!]?)",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}),Ab}var wb,XT;function eke(){return XT||(XT=1,wb=function(e){return{contains:[{className:"attribute",begin://},{begin:/::=/,starts:{end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}]}}),wb}var xb,$T;function tke(){return $T||($T=1,xb=function(e){var n={className:"literal",begin:"[\\+\\-]",relevance:0};return{aliases:["bf"],contains:[e.COMMENT(`[^\\[\\]\\.,\\+\\-<> \r -]`,`[\\[\\]\\.,\\+\\-<> \r -]`,{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/\+\+|\-\-/,returnBegin:!0,contains:[n]},n]}}),xb}var Cb,ZT;function nke(){return ZT||(ZT=1,Cb=function(e){var n="div mod in and or not xor asserterror begin case do downto else end exit for 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})],a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/},o={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},l={className:"string",begin:'"',end:'"'},c={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[a,s]}].concat(r)},u={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[e.TITLE_MODE,c]};return{case_insensitive:!0,keywords:{keyword:n,literal:i},illegal:/\/\*/,contains:[a,s,o,l,e.NUMBER_MODE,u,c]}}),Cb}var Sb,JT;function ike(){return JT||(JT=1,Sb=function(e){return{aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},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/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}),Sb}var Tb,ek;function rke(){return ek||(ek=1,Tb=function(e){var n="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",i="shared abstract formal default actual variable late native deprecatedfinal sealed annotation suppressWarnings small",r="doc by license see throws tagged",a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:n,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=s,{keywords:{keyword:n+" "+i,meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?:\\:"[^"]*")?'}].concat(s)}}),Tb}var kb,tk;function ake(){return tk||(tk=1,kb=function(e){return{aliases:["clean","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",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:"->|<-[|:]?|::|#!?|>>=|\\{\\||\\|\\}|:==|=:|\\.\\.|<>|`"}]}}),kb}var Db,nk;function ske(){return nk||(nk=1,Db=function(e){var n={"builtin-name":"def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - 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 defmacro defn defn- 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 defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod 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"},i="a-zA-Z_\\-!.?+*=<>&#'",r="["+i+"]["+i+"0-9/;:]*",a="[-+]?\\d+(\\.\\d+)?",s={begin:r,relevance:0},o={className:"number",begin:a,relevance:0},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),c=e.COMMENT(";","$",{relevance:0}),u={className:"literal",begin:/\b(true|false|nil)\b/},d={begin:"[\\[\\{]",end:"[\\]\\}]"},h={className:"comment",begin:"\\^"+r},m=e.COMMENT("\\^\\{","\\}"),f={className:"symbol",begin:"[:]{1,2}"+r},g={begin:"\\(",end:"\\)"},v={endsWithParent:!0,relevance:0},T={keywords:n,lexemes:r,className:"name",begin:r,starts:v},y=[g,l,h,m,c,f,d,o,u,s];return g.contains=[e.COMMENT("comment",""),T,v],v.contains=y,d.contains=y,m.contains=[d],{aliases:["clj"],illegal:/\S/,contains:[g,l,h,m,c,f,d,o,u]}}),Db}var Nb,ik;function oke(){return ik||(ik=1,Nb=function(e){return{contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}),Nb}var Ib,rk;function lke(){return rk||(rk=1,Ib=function(e){return{aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory 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 equal less greater strless strgreater strequal matches"},contains:[{className:"variable",begin:"\\${",end:"}"},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}),Ib}var Mb,ak;function cke(){return ak||(ak=1,Mb=function(e){var n={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super yield import export from as default await then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},i="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/}/,keywords:n},a=[e.BINARY_NUMBER_MODE,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]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,r]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[r,e.HASH_COMMENT_MODE]},{begin:"//[gim]*",relevance:0},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{begin:"@"+i},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];r.contains=a;var s=e.inherit(e.TITLE_MODE,{begin:i}),o="(\\(.*\\))?\\s*\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(a)}]};return{aliases:["coffee","cson","iced"],keywords:n,illegal:/\/\*/,contains:a.concat([e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}),Mb}var Lb,sk;function uke(){return sk||(sk=1,Lb=function(e){return{keywords:{keyword:"_ 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 DependentDerive 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:/[-=]>/}]}}),Lb}var Ob,ok;function dke(){return ok||(ok=1,Ob=function(n){var i={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},r={className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},a="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";return{case_insensitive:!0,aliases:["cos","cls"],keywords:a,contains:[r,i,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}),Ob}var Rb,lk;function hke(){return lk||(lk=1,Rb=function(e){var n="primitive rsc_template",i="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml",r="property rsc_defaults op_defaults",a="params meta operations op rule attributes utilization",s="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 \\",o="number string",l="Master Started Slave Stopped start promote demote stop monitor true false";return{aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:a+" "+s+" "+o,literal:l},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:n,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+i.split(" ").join("|")+")\\s+",keywords:i,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:r,starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z\$_\#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}),Rb}var Pb,ck;function fke(){return ck||(ck=1,Pb=function(e){var n="(_[uif](8|16|32|64))?",i="[a-zA-Z_]\\w*[!?=]?",r="!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",a="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\][=?]?",s={keyword:"abstract alias 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 when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},o={className:"subst",begin:"#{",end:"}",keywords:s},l={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:s};function c(v,T){var y=[{begin:v,end:T}];return y[0].contains=y,y}var u={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%w?\\(",end:"\\)",contains:c("\\(","\\)")},{begin:"%w?\\[",end:"\\]",contains:c("\\[","\\]")},{begin:"%w?{",end:"}",contains:c("{","}")},{begin:"%w?<",end:">",contains:c("<",">")},{begin:"%w?/",end:"/"},{begin:"%w?%",end:"%"},{begin:"%w?-",end:"-"},{begin:"%w?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},d={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:c("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:c("\\[","\\]")},{begin:"%q{",end:"}",contains:c("{","}")},{begin:"%q<",end:">",contains:c("<",">")},{begin:"%q/",end:"/"},{begin:"%q%",end:"%"},{begin:"%q-",end:"-"},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},h={begin:"("+r+")\\s*",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/",end:"/[a-z]*"},{begin:"%r\\(",end:"\\)",contains:c("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:c("\\[","\\]")},{begin:"%r{",end:"}",contains:c("{","}")},{begin:"%r<",end:">",contains:c("<",">")},{begin:"%r/",end:"/"},{begin:"%r%",end:"%"},{begin:"%r-",end:"-"},{begin:"%r\\|",end:"\\|"}]}],relevance:0},m={className:"regexp",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:"%r\\(",end:"\\)",contains:c("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:c("\\[","\\]")},{begin:"%r{",end:"}",contains:c("{","}")},{begin:"%r<",end:">",contains:c("<",">")},{begin:"%r/",end:"/"},{begin:"%r%",end:"%"},{begin:"%r-",end:"-"},{begin:"%r\\|",end:"\\|"}],relevance:0},f={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"})]},g=[l,u,d,h,m,f,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"})],relevance:10},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:5},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[u,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]*[01])"+n},{begin:"\\b0o([0-7_]*[0-7])"+n},{begin:"\\b0x([A-Fa-f0-9_]*[A-Fa-f0-9])"+n},{begin:"\\b(([0-9][0-9_]*[0-9]|[0-9])(\\.[0-9_]*[0-9])?([eE][+-]?[0-9_]*[0-9])?)"+n}],relevance:0}];return o.contains=g,l.contains=g.slice(1),{aliases:["cr"],lexemes:i,keywords:s,contains:g}}),Pb}var Bb,uk;function pke(){return uk||(uk=1,Bb=function(e){var n={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long nameof object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},i={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},r=e.inherit(i,{illegal:/\n/}),a={className:"subst",begin:"{",end:"}",keywords:n},s=e.inherit(a,{illegal:/\n/}),o={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},e.BACKSLASH_ESCAPE,s]},l={className:"string",begin:/\$@"/,end:'"',contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},a]},c=e.inherit(l,{illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},s]});a.contains=[l,o,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],s.contains=[c,o,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var u={variants:[l,o,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},d=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?";return{aliases:["csharp"],keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},u,e.C_NUMBER_MODE,{beginKeywords:"class interface",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",end:/[{;=]/,illegal:/[^\s:]/,contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+d+"\\s+)+"+e.IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.IDENT_RE+"\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0,contains:[u,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}}),Bb}var Fb,dk;function mke(){return dk||(dk=1,Fb=function(e){return{case_insensitive:!1,lexemes:"[a-zA-Z][a-zA-Z0-9_-]*",keywords:{keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}),Fb}var Hb,hk;function gke(){return hk||(hk=1,Hb=function(e){var n="[a-zA-Z-][a-zA-Z0-9_-]*",i={begin:/[A-Z\_\.\-]+\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:n,relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,i]}]}}),Hb}var zb,fk;function vke(){return fk||(fk=1,zb=function(e){var n={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"},i="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",a="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",o="0[xX]"+s,l="([eE][+-]?"+r+")",c="("+r+"(\\.\\d*|"+l+")|\\d+\\."+r+r+"|\\."+i+l+"?)",u="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+r+")",d="("+i+"|"+a+"|"+o+")",h="("+u+"|"+c+")",m=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,f={className:"number",begin:"\\b"+d+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},g={className:"number",begin:"\\b("+h+"([fF]|L|i|[fF]i|Li)?|"+d+"(i|[fF]i|Li))",relevance:0},v={className:"string",begin:"'("+m+"|.)",end:"'",illegal:"."},T={begin:m,relevance:0},y={className:"string",begin:'"',contains:[T],end:'"[cwd]?'},C={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},I={className:"string",begin:"`",end:"`[cwd]?"},M={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},R={className:"string",begin:'q"\\{',end:'\\}"'},B={className:"meta",begin:"^#!",end:"$",relevance:5},A={className:"meta",begin:"#(line)",end:"$",relevance:5},W={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},ne=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,ne,M,y,C,I,R,g,f,v,B,A,W]}}),zb}var qb,pk;function bke(){return pk||(pk=1,qb=function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}| )",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}),qb}var Ub,mk;function yke(){return mk||(mk=1,Ub=function(e){var n={className:"subst",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,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,n]}]};n.contains=[e.C_NUMBER_MODE,i];var r={keyword:"assert async await break case catch class const continue default do else enum extends false final finally for if in is new null rethrow return super switch sync this throw true try var void while with yield abstract as dynamic export external factory get implements import library operator part set static typedef",built_in:"print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num document window querySelector querySelectorAll Element ElementList"};return{keywords:r,contains:[i,e.COMMENT("/\\*\\*","\\*/",{subLanguage:"markdown"}),e.COMMENT("///","$",{subLanguage:"markdown"}),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:"=>"}]}}),Ub}var Gb,gk;function _ke(){return gk||(gk=1,Gb=function(e){var n="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 ",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/},o={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},l={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:n,contains:[a,s,r].concat(i)},r].concat(i)};return{aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:n,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[a,s,e.NUMBER_MODE,o,l,r].concat(i)}}),Gb}var Vb,vk;function Eke(){return vk||(vk=1,Vb=function(e){return{aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^\-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/\*{5}/,end:/\*{5}$/}]},{className:"addition",begin:"^\\+",end:"$"},{className:"deletion",begin:"^\\-",end:"$"},{className:"addition",begin:"^\\!",end:"$"}]}}),Vb}var Wb,bk;function Ake(){return bk||(bk=1,Wb=function(e){var n={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{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:[n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:[n]}]}}),Wb}var Qb,yk;function wke(){return yk||(yk=1,Qb=function(e){return{aliases:["bind","zone"],keywords:{keyword:"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]?/})]}}),Qb}var jb,_k;function xke(){return _k||(_k=1,jb=function(e){return{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:/[^\\]\n/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a={className:"variable",begin:"\\&[a-z\\d_]*\\b"},s={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},o={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},l={className:"params",begin:"<",end:">",contains:[i,a]},c={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0},u={className:"class",begin:"/\\s*{",end:"};",relevance:10,contains:[a,s,o,c,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,n]};return{keywords:"",contains:[u,a,s,o,c,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,n,r,{begin:e.IDENT_RE+"::",keywords:""}]}}),Xb}var $b,xk;function kke(){return xk||(xk=1,$b=function(e){var n="if eq ne lt lte gt gte select default math sep";return{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:n}]}}),$b}var Zb,Ck;function Dke(){return Ck||(Ck=1,Zb=function(e){var n=e.COMMENT(/\(\*/,/\*\)/),i={className:"attribute",begin:/^[ ]*[a-zA-Z][a-zA-Z-]*([\s-]+[a-zA-Z][a-zA-Z]*)*/},r={className:"meta",begin:/\?.*\?/},a={begin:/=/,end:/;/,contains:[n,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{illegal:/\S/,contains:[n,i,a]}}),Zb}var Jb,Sk;function Nke(){return Sk||(Sk=1,Jb=function(e){var n="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",a={className:"subst",begin:"#\\{",end:"}",lexemes:n,keywords:r},s={className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},l=e.inherit(o,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),c=[s,e.HASH_COMMENT_MODE,l,o,{className:"symbol",begin:":(?!\\s)",contains:[s,{begin:i}],relevance:0},{className:"symbol",begin:n+":",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:"variable",begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{begin:"->"},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[e.HASH_COMMENT_MODE,{className:"regexp",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return a.contains=c,{lexemes:n,keywords:r,contains:c}}),Jb}var e1,Tk;function Ike(){return Tk||(Tk=1,e1=function(e){var n={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n]},a={begin:"{",end:"}",contains:r.contains};return{keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,n],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,n],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[i,r,a,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"port",end:"$",keywords:"port",contains:[n]},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}],illegal:/;/}}),e1}var t1,kk;function Mke(){return kk||(kk=1,t1=function(e){var n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},r={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},s=[e.COMMENT("#","$",{contains:[r]}),e.COMMENT("^\\=begin","^\\=end",{contains:[r],relevance:10}),e.COMMENT("^__END__","\\n$")],o={className:"subst",begin:"#\\{",end:"}",keywords:i},l={className:"string",contains:[e.BACKSLASH_ESCAPE,o],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}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<(-?)\w+$/,end:/^\s*\w+$/}]},c={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:i},u=[l,a,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(s)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:n}),c].concat(s)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[l,{begin:n}],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:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"params",begin:/\|/,end:/\|/,keywords:i},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[a,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,o],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(s),relevance:0}].concat(s);o.contains=u,c.contains=u;var d="[>?]>",h="[\\w#]+\\(\\w+\\):\\d+:\\d+>",m="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",f=[{begin:/^\s*=>/,starts:{end:"$",contains:u}},{className:"meta",begin:"^("+d+"|"+h+"|"+m+")",starts:{end:"$",contains:u}}];return{aliases:["rb","gemspec","podspec","thor","irb"],keywords:i,illegal:/\/\*/,contains:s.concat(f).concat(u)}}),t1}var n1,Dk;function Lke(){return Dk||(Dk=1,n1=function(e){return{subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}),n1}var i1,Nk;function Oke(){return Nk||(Nk=1,i1=function(e){return{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",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\?(::)?([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}]}}),i1}var r1,Ik;function Rke(){return Ik||(Ik=1,r1=function(e){var n="[a-z'][a-zA-Z0-9_']*",i="("+n+":"+n+"|"+n+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},a=e.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+n+"/\\d+"},l={begin:i+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:i,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},c={begin:"{",end:"}",relevance:0},u={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},h={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:"{",end:"}",relevance:0}]},m={beginKeywords:"fun receive if try case",end:"end",keywords:r};m.contains=[a,o,e.inherit(e.APOS_STRING_MODE,{className:""}),m,l,e.QUOTE_STRING_MODE,s,c,u,d,h];var f=[a,o,m,l,e.QUOTE_STRING_MODE,s,c,u,d,h];l.contains[1].contains=f,c.contains=f,h.contains[1].contains=f;var g={className:"params",begin:"\\(",end:"\\)",contains:f};return{aliases:["erl"],keywords:r,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[g,e.inherit(e.TITLE_MODE,{begin:n})],starts:{end:";|\\.",keywords:r,contains:f}},a,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,lexemes:"-"+e.IDENT_RE,keywords:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",contains:[g]},s,e.QUOTE_STRING_MODE,h,u,d,c,{begin:/\.$/}]}}),r1}var a1,Mk;function Pke(){return Mk||(Mk=1,a1=function(e){return{aliases:["xlsx","xls"],case_insensitive:!0,lexemes:/[a-zA-Z][\w\.]*/,keywords:{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|0 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/})]}}),a1}var s1,Lk;function Bke(){return Lk||(Lk=1,s1=function(e){return{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}}),s1}var o1,Ok;function Fke(){return Ok||(Ok=1,o1=function(e){var n={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i={className:"string",variants:[{begin:'"',end:'"'}]},r={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[r]};return{keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,i,a,e.C_NUMBER_MODE]}}),o1}var l1,Rk;function Hke(){return Rk||(Rk=1,l1=function(e){var n={className:"params",begin:"\\(",end:"\\)"},i={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",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_ofacosh 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"};return{case_insensitive:!0,aliases:["f90","f95"],keywords:i,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,n]},e.COMMENT("!","$",{relevance:0}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}),l1}var c1,Pk;function zke(){return Pk||(Pk=1,c1=function(e){var n={begin:"<",end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*","\\*\\)"),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,n]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE]},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),e.C_NUMBER_MODE]}}),c1}var u1,Bk;function qke(){return Bk||(Bk=1,u1=function(e){var n={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:/\$/}]},a={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},s={begin:"/",end:"/",keywords:n,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},o={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[a,s,{className:"comment",begin:/([ ]*[a-z0-9&#*=?@>\\<:\-,()$\[\]_.{}!+%^]+)+/,relevance:0}]};return{aliases:["gms"],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-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,s,o]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[o]},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]}}),u1}var d1,Fk;function Uke(){return Fk||(Fk=1,d1=function(e){var n={keyword:"and 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 not open or 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",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 threadBegin threadEnd threadEndFor threadFor threadJoin threadStat 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 strtrim sylvester",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"},i={className:"meta",begin:"#",end:"$",keywords:{"meta-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:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r=e.UNDERSCORE_IDENT_RE+"\\s*\\(?",a=[{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}];return{aliases:["gss"],case_insensitive:!0,keywords:n,illegal:"(\\{[%#]|[%#]\\})",contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("@","@"),i,{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"function",beginKeywords:"proc keyword",end:";",excludeEnd:!0,keywords:n,contains:[{begin:r,returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i].concat(a)},{className:"function",beginKeywords:"fn",end:";",excludeEnd:!0,keywords:n,contains:[{begin:r+e.IDENT_RE+"\\)?\\s*\\=\\s*",returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE].concat(a)},{className:"function",begin:"\\bexternal (proc|keyword|fn)\\s+",end:";",excludeEnd:!0,keywords:n,contains:[{begin:r,returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"\\bexternal (matrix|string|array|sparse matrix|struct "+e.IDENT_RE+")\\s+",end:";",excludeEnd:!0,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}}),d1}var h1,Hk;function Gke(){return Hk||(Hk=1,h1=function(e){var n="[A-Z_][A-Z0-9_.]*",i="\\%",r="IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR",a={className:"meta",begin:"([O])([0-9]+)"},s=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?([0-9]*\\.?[0-9]+\\.?))|"+e.C_NUMBER_RE}),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)(\\[)",end:"([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{aliases:["nc"],case_insensitive:!0,lexemes:n,keywords:r,contains:[{className:"meta",begin:i},a].concat(s)}}),h1}var f1,zk;function Vke(){return zk||(zk=1,f1=function(e){return{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]}}),f1}var p1,qk;function Wke(){return qk||(qk=1,p1=function(e){return{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 iimageBufferiimageCube 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:"$"}]}}),p1}var m1,Uk;function Qke(){return Uk||(Uk=1,m1=function(e){var n={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 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{aliases:["golang"],keywords:n,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:"#{",starts:{end:"}",subLanguage:"ruby"}}]}}),y1}var _1,jk;function $ke(){return jk||(jk=1,_1=function(e){var n={"builtin-name":"each in with if else unless bindattr action collection debugger log outlet template unbound view yield"};return{aliases:["hbs","html.hbs","html.handlebars"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,keywords:n,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,keywords:n}]}}),_1}var E1,Yk;function Zke(){return Yk||(Yk=1,E1=function(e){var n={variants:[e.COMMENT("--","$"),e.COMMENT("{-","-}",{contains:["self"]})]},i={className:"meta",begin:"{-#",end:"#-}"},r={className:"meta",begin:"^#",end:"$"},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",illegal:'"',contains:[i,r,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),n]},o={begin:"{",end:"}",contains:s.contains};return{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",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[s,n],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[s,n],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[a,s,n]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[i,a,s,o,n]},{beginKeywords:"default",end:"$",contains:[a,s,n]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,n]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[a,e.QUOTE_STRING_MODE,n]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},i,r,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,a,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),n,{begin:"->|<-"}]}}),E1}var A1,Kk;function Jke(){return Kk||(Kk=1,A1=function(e){var n="Int Float String Bool Dynamic Void Array ";return{aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+n,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,e.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ ]*",end:"[^A-Za-z0-9_ \\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ ]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"abstract",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:"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:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE]}],illegal:/<\//}}),A1}var w1,Xk;function eDe(){return Xk||(Xk=1,w1=function(e){return{case_insensitive:!0,lexemes:/[\w\._]+/,keywords:"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:{"meta-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:"meta-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]}}),w1}var x1,$k;function tDe(){return $k||($k=1,x1=function(e){var n="action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view",i={illegal:/\}\}/,begin:/[a-zA-Z0-9_]+=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[a-zA-Z0-9_]+/}]};e.QUOTE_STRING_MODE;var r={endsWithParent:!0,relevance:0,keywords:{keyword:"as",built_in:n},contains:[e.QUOTE_STRING_MODE,i,e.NUMBER_MODE]};return{case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.\-]+/,keywords:{"builtin-name":n},starts:r}]},{className:"template-variable",begin:/\{\{[a-zA-Z][a-zA-Z\-]+/,end:/\}\}/,keywords:{keyword:"as",built_in:n},contains:[e.QUOTE_STRING_MODE]}]}}),x1}var C1,Zk;function nDe(){return Zk||(Zk=1,C1=function(e){var n="HTTP/[0-9\\.]+";return{aliases:["https"],illegal:"\\S",contains:[{begin:"^"+n,end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) "+n+"$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:n},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}}),C1}var S1,Jk;function iDe(){return Jk||(Jk=1,S1=function(e){var n={"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="a-zA-Z_\\-!.?+*=<>&#'",r="["+i+"]["+i+"0-9/;:]*",a="[-+]?\\d+(\\.\\d+)?",s={className:"meta",begin:"^#!",end:"$"},o={begin:r,relevance:0},l={className:"number",begin:a,relevance:0},c=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:"[\\]\\}]"},m={className:"comment",begin:"\\^"+r},f=e.COMMENT("\\^\\{","\\}"),g={className:"symbol",begin:"[:]{1,2}"+r},v={begin:"\\(",end:"\\)"},T={endsWithParent:!0,relevance:0},y={keywords:n,lexemes:r,className:"name",begin:r,starts:T},C=[v,c,m,f,u,g,h,l,d,o];return v.contains=[e.COMMENT("comment",""),y,T],T.contains=C,h.contains=C,{aliases:["hylang"],illegal:/\S/,contains:[s,v,c,m,f,u,g,h,l,d]}}),S1}var T1,eD;function rDe(){return eD||(eD=1,T1=function(e){var n="\\[",i="\\]";return{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:n,end:i}]},{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:n,end:i,contains:["self"]}]}}),T1}var k1,tD;function aDe(){return tD||(tD=1,k1=function(e){var n={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]};return{aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(";","$"),e.HASH_COMMENT_MODE,{className:"section",begin:/^\s*\[+/,end:/\]+/},{begin:/^[a-z0-9\[\]_-]+\s*=\s*/,end:"$",returnBegin:!0,contains:[{className:"attr",begin:/[a-z0-9\[\]_-]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\bon|off|true|false|yes|no\b/},{className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},n,{className:"number",begin:/([\+\-]+)?[\d]+_[\d_]+/},e.NUMBER_MODE]}]}]}}),k1}var D1,nD;function sDe(){return nD||(nD=1,D1=function(e){var n={className:"params",begin:"\\(",end:"\\)"},i={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_ofacosh 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"};return{case_insensitive:!0,keywords:i,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,n]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),{className:"number",begin:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",relevance:0}]}}),D1}var N1,iD;function oDe(){return iD||(iD=1,N1=function(e){var n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=n+"(<"+n+"(\\s*,\\s*"+n+")*>)?",r="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",a="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",s={className:"number",begin:a,relevance:0};return{aliases:["jsp"],keywords:r,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"("+i+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:r,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:r,relevance:0,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]},s,{className:"meta",begin:"@[A-Za-z]+"}]}}),N1}var I1,rD;function lDe(){return rD||(rD=1,I1=function(e){var n="[A-Za-z$_][0-9A-Za-z$_]*",i={keyword:"in of 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 static import from as",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 Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},a={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},s={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,a]};a.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,r,e.REGEXP_MODE];var o=a.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:i,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,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,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:o}]}]},{begin://,subLanguage:"xml",contains:[{begin:/<\w+\s*\/>/,skip:!0},{begin:/<\w+/,end:/(\/\w+|\w+\/)>/,skip:!0,contains:[{begin:/<\w+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:o}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}),I1}var M1,aD;function cDe(){return aD||(aD=1,M1=function(e){var n={begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]},i={className:"params",begin:/\(/,end:/\)/,contains:[n],relevance:0},r={className:"function",begin:/:[\w\-.]+/,relevance:0},a={className:"string",begin:/\B(([\/.])[\w\-.\/=]+)+/},s={className:"params",begin:/--[\w\-=\/]+/};return{aliases:["wildfly-cli"],lexemes:"[a-z-]+",keywords:{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,s,r,a,i]}}),M1}var L1,sD;function uDe(){return sD||(sD=1,L1=function(e){var n={literal:"true false null"},i=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:i,keywords:n},a={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})],illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return i.splice(i.length,0,a,s),{contains:i,keywords:n,illegal:"\\S"}}),L1}var O1,oD;function dDe(){return oD||(oD=1,O1=function(e){var n={keyword:"in isa where baremodule begin break catch ccall const continue do else elseif end export false finally for function global if import importall let local macro module quote return true try using while type immutable abstract bitstype typealias ",literal:"true false ARGS C_NULL DevNull ENDIAN_BOM ENV I Inf Inf16 Inf32 Inf64 InsertionSort JULIA_HOME LOAD_PATH MergeSort NaN NaN16 NaN32 NaN64 PROGRAM_FILE QuickSort RoundDown RoundFromZero RoundNearest RoundNearestTiesAway RoundNearestTiesUp RoundToZero RoundUp STDERR STDIN STDOUT VERSION catalan e|0 eu|0 eulergamma golden im nothing pi γ π φ ",built_in:"ANY AbstractArray AbstractChannel AbstractFloat AbstractMatrix AbstractRNG AbstractSerializer AbstractSet AbstractSparseArray AbstractSparseMatrix AbstractSparseVector AbstractString AbstractUnitRange AbstractVecOrMat AbstractVector Any ArgumentError Array AssertionError Associative Base64DecodePipe Base64EncodePipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError BufferStream CachingPool CapturedException CartesianIndex CartesianRange Cchar Cdouble Cfloat Channel Char Cint Cintmax_t Clong Clonglong ClusterManager Cmd CodeInfo Colon Complex Complex128 Complex32 Complex64 CompositeException Condition ConjArray ConjMatrix ConjVector Cptrdiff_t Cshort Csize_t Cssize_t Cstring Cuchar Cuint Cuintmax_t Culong Culonglong Cushort Cwchar_t Cwstring DataType Date DateFormat DateTime DenseArray DenseMatrix DenseVecOrMat DenseVector Diagonal Dict DimensionMismatch Dims DirectIndexString Display DivideError DomainError EOFError EachLine Enum Enumerate ErrorException Exception ExponentialBackOff Expr Factorization FileMonitor Float16 Float32 Float64 Function Future GlobalRef GotoNode HTML Hermitian IO IOBuffer IOContext IOStream IPAddr IPv4 IPv6 IndexCartesian IndexLinear IndexStyle InexactError InitError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException InvalidStateException Irrational KeyError LabelNode LinSpace LineNumberNode LoadError LowerTriangular MIME Matrix MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode NullException Nullable Number ObjectIdDict OrdinalRange OutOfMemoryError OverflowError Pair ParseError PartialQuickSort PermutedDimsArray Pipe PollingFileWatcher ProcessExitedException Ptr QuoteNode RandomDevice Range RangeIndex Rational RawFD ReadOnlyMemoryError Real ReentrantLock Ref Regex RegexMatch RemoteChannel RemoteException RevString RoundingMode RowVector SSAValue SegmentationFault SerializationState Set SharedArray SharedMatrix SharedVector Signed SimpleVector Slot SlotNumber SparseMatrixCSC SparseVector StackFrame StackOverflowError StackTrace StepRange StepRangeLen StridedArray StridedMatrix StridedVecOrMat StridedVector String SubArray SubString SymTridiagonal Symbol Symmetric SystemError TCPSocket Task Text TextDisplay Timer Tridiagonal Tuple Type TypeError TypeMapEntry TypeMapLevel TypeName TypeVar TypedSlot UDPSocket UInt UInt128 UInt16 UInt32 UInt64 UInt8 UndefRefError UndefVarError UnicodeError UniformScaling Union UnionAll UnitRange Unsigned UpperTriangular Val Vararg VecElement VecOrMat Vector VersionNumber Void WeakKeyDict WeakRef WorkerConfig WorkerPool "},i="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",r={lexemes:i,keywords:n,illegal:/<\//},a={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},s={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},o={className:"subst",begin:/\$\(/,end:/\)/,keywords:n},l={className:"variable",begin:"\\$"+i},c={className:"string",contains:[e.BACKSLASH_ESCAPE,o,l],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},u={className:"string",contains:[e.BACKSLASH_ESCAPE,o,l],begin:"`",end:"`"},d={className:"meta",begin:"@"+i},h={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return r.contains=[a,s,c,u,d,h,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],o.contains=r.contains,r}),O1}var R1,lD;function hDe(){return lD||(lD=1,R1=function(e){return{contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}),R1}var P1,cD;function fDe(){return cD||(cD=1,P1=function(e){var n={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 initinterface annotation data sealed internal infix operator out by constructor super trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},i={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},a={className:"subst",begin:"\\${",end:"}",contains:[e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""',contains:[s,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,s,a]}]},l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"meta-string"})]}]};return{keywords:n,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,r,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:n,illegal:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l,c,o,e.C_NUMBER_MODE]},e.C_BLOCK_COMMENT_MODE]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},l,c]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},e.C_NUMBER_MODE]}}),P1}var B1,uD;function pDe(){return uD||(uD=1,B1=function(e){var n="[a-zA-Z_][\\w.]*",i="<\\?(lasso(script)?|=)",r="\\]|\\?>",a={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"},s=e.COMMENT("",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+i},c={className:"symbol",begin:"'"+n+"'"},u=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+n},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:n,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+n,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[c]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:n+"(=(?!>))?|[-+*/%](?!>)"})]}];return{aliases:["ls","lassoscript"],case_insensitive:!0,lexemes:n+"|&[lg]t;",keywords:a,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+i,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",lexemes:n+"|&[lg]t;",keywords:a,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+i,returnEnd:!0,contains:[s]}},o,l].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}),B1}var F1,dD;function mDe(){return dD||(dD=1,F1=function(e){return{contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}}),F1}var H1,hD;function gDe(){return hD||(hD=1,H1=function(e){return{contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:" {",returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}),H1}var z1,fD;function vDe(){return fD||(fD=1,z1=function(e){var n="[\\w-]+",i="("+n+"|@{"+n+"})",r=[],a=[],s=function(g){return{className:"string",begin:"~?"+g+".*?"+g}},o=function(g,v,T){return{className:g,begin:v,relevance:T}},l={begin:"\\(",end:"\\)",contains:a,relevance:0};a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s("'"),s('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},o("number","#[0-9A-Fa-f]+\\b"),l,o("variable","@@?"+n,10),o("variable","@{"+n+"}"),o("built_in","~?`[^`]*?`"),{className:"attribute",begin:n+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var c=a.concat({begin:"{",end:"}",contains:r}),u={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},d={begin:i+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:i,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},h={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:a,relevance:0}},m={className:"variable",variants:[{begin:"@"+n+"\\s*:",relevance:15},{begin:"@"+n}],starts:{end:"[;}]",returnEnd:!0,contains:c}},f={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:i,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,o("keyword","all\\b"),o("variable","@{"+n+"}"),o("selector-tag",i+"%?",0),o("selector-id","#"+i),o("selector-class","\\."+i,0),o("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:c},{begin:"!important"}]};return r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,m,d,f),{case_insensitive:!0,illegal:`[=>'/<($"]`,contains:r}}),z1}var q1,pD;function bDe(){return pD||(pD=1,q1=function(e){var n="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",i="\\|[^]*?\\|",r="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",a={className:"meta",begin:"^#!",end:"$"},s={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},l=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),c=e.COMMENT(";","$",{relevance:0}),u={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+n},h={begin:n,relevance:0},m={begin:i},f={begin:"\\(",end:"\\)",contains:["self",s,l,o,h]},g={contains:[o,l,u,d,f,h],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+i}]},v={variants:[{begin:"'"+n},{begin:"#'"+n+"(::"+n+")*"}]},T={begin:"\\(\\s*",end:"\\)"},y={endsWithParent:!0,relevance:0};return T.contains=[{className:"name",variants:[{begin:n},{begin:i}]},y],y.contains=[g,v,T,s,o,l,c,u,d,m,h],{illegal:/\S/,contains:[o,a,s,l,c,g,v,T,h]}}),q1}var U1,mD;function yDe(){return mD||(mD=1,U1=function(e){var n={begin:"\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+",relevance:0},i=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),a=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{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 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 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 libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load 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 union unload wait write"},contains:[n,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[n,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[a,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[n,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(i),illegal:";$|^\\[|^=|&|{"}}),U1}var G1,gD;function _De(){return gD||(gD=1,G1=function(e){var n={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger case default function var with then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super case default function var void const let enum export import native __hasProp __extends __slice __bind __indexOf",literal:"true false null undefined yes no on off it that void",built_in:"npm require console print module global window document"},i="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",r=e.inherit(e.TITLE_MODE,{begin:i}),a={className:"subst",begin:/#\{/,end:/}/,keywords:n},s={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:n},o=[e.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:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,s]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[a,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{begin:"@"+i},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];a.contains=o;var l={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(o)}]};return{aliases:["ls"],keywords:n,illegal:/\/\*/,contains:o.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,{className:"function",contains:[r,l],returnBegin:!0,variants:[{begin:"("+i+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?",end:"\\->\\*?"},{begin:"("+i+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+i+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[r]},r]},{begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}),G1}var V1,vD;function EDe(){return vD||(vD=1,V1=function(e){var n="([-a-zA-Z$._][\\w\\-$.]*)";return{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:[{className:"keyword",begin:"i\\d+"},e.COMMENT(";","\\n",{relevance:0}),e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:'"',end:'[^\\\\]"'}],relevance:0},{className:"title",variants:[{begin:"@"+n},{begin:"@\\d+"},{begin:"!"+n},{begin:"!\\d+"+n}]},{className:"symbol",variants:[{begin:"%"+n},{begin:"%\\d+"},{begin:"#\\d+"}]},{className:"number",variants:[{begin:"0[xX][a-fA-F0-9]+"},{begin:"-?\\d+(?:[.]\\d+)?(?:[eE][-+]?\\d+(?:[.]\\d+)?)?"}],relevance:0}]}}),V1}var W1,bD;function ADe(){return bD||(bD=1,W1=function(e){var n={className:"subst",begin:/\\[tn"\\]/},i={className:"string",begin:'"',end:'"',contains:[n]},r={className:"number",begin:e.C_NUMBER_RE},a={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_ON_REZ|NAME|DESC|POS|PRIM_(?:COUNT|EQUIVALENCE)|RETURN_(?:PARCEL(?:_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP|CREATOR|ATTACHED_POINT|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_(?: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)|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|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)|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"}]},s={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|(?: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{illegal:":",contains:[i,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")]},r,{className:"section",variants:[{begin:"\\b(?:state|default)\\b"},{begin:"\\b(?:state_(?:entry|exit)|touch(?:_(?:start|end))?|(?:land_)?collision(?:_(?:start|end))?|timer|listen|(?:no_)?sensor|control|(?:not_)?at_(?:rot_)?target|money|email|experience_permissions(?:_denied)?|run_time_permissions|changed|attach|dataserver|moving_(?:start|end)|link_message|(?:on|object)_rez|remote_data|http_re(?:sponse|quest)|path_update|transaction_result)\\b"}]},s,a,{className:"type",begin:"\\b(?:integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}),W1}var Q1,yD;function wDe(){return yD||(yD=1,Q1=function(e){var n="\\[=*\\[",i="\\]=*\\]",r={begin:n,end:i,contains:["self"]},a=[e.COMMENT("--(?!"+n+")","$"),e.COMMENT("--"+n,i,{contains:[r],relevance:10})];return{lexemes:e.UNDERSCORE_IDENT_RE,keywords:{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 loadstringmodule next pairs pcall print rawequal rawget rawset require select setfenvsetmetatable tonumber tostring type unpack xpcall arg selfcoroutine 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:a.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:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:n,end:i,contains:[r],relevance:5}])}}),Q1}var j1,_D;function xDe(){return _D||(_D=1,j1=function(e){var n={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},c={className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]};return{aliases:["m","moo"],keywords:n,contains:[l,c,i,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,a,s,{begin:/:-/}]}}),Z1}var J1,SD;function NDe(){return SD||(SD=1,J1=function(e){return{case_insensitive:!0,aliases:["mips"],lexemes:"\\.?"+e.IDENT_RE,keywords:{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("[;#]","$"),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:"/"}}),J1}var ey,TD;function IDe(){return TD||(TD=1,ey=function(e){return{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("::","$")]}}),ey}var ty,kD;function MDe(){return kD||(kD=1,ty=function(e){var n="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:n},r={begin:"->{",end:"}"},a={variants:[{begin:/\$\d/},{begin:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{begin:/[\$%@][^\s\w{]/,relevance:0}]},s=[e.BACKSLASH_ESCAPE,i,a],o=[a,e.HASH_COMMENT_MODE,e.COMMENT("^\\=\\w","\\=cut",{endsWithParent:!0}),r,{className:"string",contains:s,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+}",contains:[],relevance:0},{begin:"-?\\w+\\s*\\=\\>",contains:[],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",begin:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{className:"regexp",begin:"(m|qr)?/",end:"/[a-z]*",contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{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 i.contains=o,r.contains=o,{aliases:["pl","pm"],lexemes:/[\w\.]+/,keywords:n,contains:o}}),ty}var ny,DD;function LDe(){return DD||(DD=1,ny=function(e){return{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}]}}),ny}var iy,ND;function ODe(){return ND||(ND=1,iy=function(e){var n={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]};return{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",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 and or shl shr mod"},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,n]}}),iy}var ry,ID;function RDe(){return ID||(ID=1,ry=function(e){var n={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"},i="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/}/,keywords:n},a=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=a;var s=e.inherit(e.TITLE_MODE,{begin:i}),o="(\\(.*\\))?\\s*\\B[-=]>",l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(a)}]};return{aliases:["moon"],keywords:n,illegal:/\/\*/,contains:a.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[s,l]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}),ry}var ay,MD;function PDe(){return MD||(MD=1,ay=function(e){return{case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,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],relevance:0},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE],relevance:2},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}),ay}var sy,LD;function BDe(){return LD||(LD=1,sy=function(e){var n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/}/},{begin:"[\\$\\@]"+e.UNDERSCORE_IDENT_RE}]},i={endsWithParent:!0,lexemes:"[a-z/_]+",keywords:{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,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],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},n]};return{aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+{",returnBegin:!0,end:"{",contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}]"}}),sy}var oy,OD;function FDe(){return OD||(OD=1,oy=function(e){return{aliases:["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 generic 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 shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"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"},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]}}),oy}var ly,RD;function HDe(){return RD||(RD=1,ly=function(e){var n={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"},i={className:"subst",begin:/\$\{/,end:/}/,keywords:n},r={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]},a={className:"string",contains:[i],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},s=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,r];return i.contains=s,{aliases:["nixos"],keywords:n,contains:s}}),ly}var cy,PD;function zDe(){return PD||(PD=1,cy=function(e){var n={className:"variable",begin:/\$(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={className:"variable",begin:/\$+{[\w\.:-]+}/},r={className:"variable",begin:/\$+\w+/,illegal:/\(\){}/},a={className:"variable",begin:/\$+\([\w\^\.:-]+\)/},s={className:"params",begin:"(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)"},o={className:"keyword",begin:/\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)/},l={className:"subst",begin:/\$(\\[nrt]|\$)/},c={className:"class",begin:/\w+\:\:\w+/},u={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[l,n,i,r,a]};return{case_insensitive:!1,keywords:{keyword:"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 ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText IntCmp IntCmpU IntFmt IntOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd 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 WriteRegStr WriteUninstaller XPStyle",literal:"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"},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},u,o,i,r,a,s,c,e.NUMBER_MODE]}}),cy}var uy,BD;function qDe(){return BD||(BD=1,uy=function(e){var n={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+"},i={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar 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:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,a="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],keywords:i,lexemes:r,illegal:""}]}]},{className:"class",begin:"("+a.split(" ").join("|")+")\\b",end:"({|$)",excludeEnd:!0,keywords:a,lexemes:r,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}),uy}var dy,FD;function UDe(){return FD||(FD=1,dy=function(e){return{aliases:["ml"],keywords:{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:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",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:/[-=]>/}]}}),dy}var hy,HD;function GDe(){return HD||(HD=1,hy=function(e){var n={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},o={className:"params",begin:"\\(",end:"\\)",contains:["self",r,a,n,i]},l={begin:"[*!#%]",relevance:0},c={className:"function",beginKeywords:"module function",end:"\\=|\\{",contains:[o,e.UNDERSCORE_TITLE_MODE]};return{aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,s,a,n,l,c]}}),hy}var fy,zD;function VDe(){return zD||(zD=1,fy=function(e){var n="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",i=e.COMMENT("{","}",{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),a={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},o={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:n,contains:[a,s]},i,r]};return{case_insensitive:!0,lexemes:/\.?\w+/,keywords:n,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[i,r,e.C_LINE_COMMENT_MODE,a,s,e.NUMBER_MODE,o,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:n,contains:[a,s,i,r,e.C_LINE_COMMENT_MODE,o]}]}}),fy}var py,qD;function WDe(){return qD||(qD=1,py=function(e){var n=e.COMMENT("{","}",{contains:["self"]});return{subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT("\\^rem{","}",{relevance:10,contains:[n]}),{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]}}),py}var my,UD;function QDe(){return UD||(UD=1,my=function(e){var n={className:"variable",begin:/\$[\w\d#@][\w\d_]*/},i={className:"variable",begin:/<(?!\/)/,end:/>/};return{aliases:["pf.conf"],lexemes:/[a-z0-9_<>-]+/,keywords:{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 routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|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,n,i]}}),my}var gy,GD;function jDe(){return GD||(GD=1,gy=function(e){var n={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},i={className:"meta",begin:/<\?(php)?|\?>/},r={className:"string",contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php3","php4","php5","php6"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[i]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},i,{className:"keyword",begin:/\$this\b/},n,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",n,e.C_BLOCK_COMMENT_MODE,r,a]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},r,a]}}),gy}var vy,VD;function YDe(){return VD||(VD=1,vy=function(e){var n={keyword:"actor addressof and as be break class compile_error compile_intrinsicconsume continue delegate digestof do else elseif embed end errorfor fun if ifdef in interface is isnt lambda let match new not objector 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"},i={className:"string",begin:'"""',end:'"""',relevance:10},r={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},a={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},s={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},o={begin:e.IDENT_RE+"'",relevance:0},l={className:"class",beginKeywords:"class actor",end:"$",contains:[e.TITLE_MODE,e.C_LINE_COMMENT_MODE]},c={className:"function",beginKeywords:"new fun",end:"=>",contains:[e.TITLE_MODE,{begin:/\(/,end:/\)/,contains:[s,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:/:/,endsWithParent:!0,contains:[s]},e.C_LINE_COMMENT_MODE]};return{keywords:n,contains:[l,c,s,i,r,a,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}),vy}var by,WD;function KDe(){return WD||(WD=1,by=function(e){var n={begin:"`[\\s\\S]",relevance:0},i={className:"variable",variants:[{begin:/\$[\w\d][\w\d_:]*/}]},r={className:"literal",begin:/\$(null|true|false)\b/},a={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[n,i,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},s={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},o={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},l=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[o]});return{aliases:["ps"],lexemes:/-?[A-z\.\-]+/,case_insensitive:!0,keywords:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch",built_in:"Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning Add-MDTPersistentDrive Disable-MDTMonitorService Enable-MDTMonitorService Get-MDTDeploymentShareStatistics Get-MDTMonitorData Get-MDTOperatingSystemCatalog Get-MDTPersistentDrive Import-MDTApplication Import-MDTDriver Import-MDTOperatingSystem Import-MDTPackage Import-MDTTaskSequence New-MDTDatabase Remove-MDTMonitorData Remove-MDTPersistentDrive Restore-MDTPersistentDrive Set-MDTMonitorData Test-MDTDeploymentShare Test-MDTMonitorData Update-MDTDatabaseSchema Update-MDTDeploymentShare Update-MDTLinkedDS Update-MDTMedia Update-MDTMedia Add-VamtProductKey Export-VamtData Find-VamtManagedMachine Get-VamtConfirmationId Get-VamtProduct Get-VamtProductKey Import-VamtData Initialize-VamtData Install-VamtConfirmationId Install-VamtProductActivation Install-VamtProductKey Update-VamtProduct",nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},contains:[n,e.NUMBER_MODE,a,s,r,i,l]}}),by}var yy,QD;function XDe(){return QD||(QD=1,yy=function(e){return{keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML 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 break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"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"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}),yy}var _y,jD;function $De(){return jD||(jD=1,_y=function(e){return{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}]}}),_y}var Ey,YD;function ZDe(){return YD||(YD=1,Ey=function(e){var n={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},i={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},l={className:"string",begin:/0\'(\\\'|.)/},c={className:"string",begin:/0\'\\s/},u={begin:/:-/},d=[n,i,r,u,a,s,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,l,c,e.C_NUMBER_MODE];return r.contains=d,a.contains=d,{contains:d.concat([{begin:/\.$/}])}}),Ey}var Ay,KD;function JDe(){return KD||(KD=1,Ay=function(e){return{keywords:{keyword:"package import option optional required repeated group",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/;/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+/,end:/\s*=/,excludeEnd:!0}]}}),Ay}var wy,XD;function eNe(){return XD||(XD=1,wy=function(e){var n={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"},i=e.COMMENT("#","$"),r="([A-Za-z_]|::)(\\w|::)*",a=e.inherit(e.TITLE_MODE,{begin:r}),s={className:"variable",begin:"\\$"+r},o={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{aliases:["pp"],contains:[i,s,o,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,i]},{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},{begin:/\{/,end:/\}/,keywords:n,relevance:0,contains:[o,i,{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},s]}],relevance:0}]}}),wy}var xy,$D;function tNe(){return $D||($D=1,xy=function(e){var n={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},i={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{aliases:["pb","pbi"],keywords:"And As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect Continue Data DataSection EndDataSection Debug DebugLevel Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndEnumeration EndIf EndImport EndInterface EndMacro EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration Extends FakeReturn For Next ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface Macro NewList Not Or ProcedureReturn Protected Prototype PrototypeC Read ReDim Repeat Until Restore Return Select Shared Static Step Structure StructureUnion Swap To Wend While With XIncludeFile XOr Procedure ProcedureC ProcedureCDLL ProcedureDLL Declare DeclareC DeclareCDLL DeclareDLL",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]},n,i]}}),xy}var Cy,ZD;function nNe(){return ZD||(ZD=1,Cy=function(e){var n={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,end:/\}/,keywords:n,illegal:/#/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[i],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[i],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[i,r]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[i,r]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[r]},{begin:/(fr|rf|f)"/,end:/"/,contains:[r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},s={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},o={className:"params",begin:/\(/,end:/\)/,contains:["self",i,s,a]};return r.contains=[a,s,i],{aliases:["py","gyp"],keywords:n,illegal:/(<\/|->|\?)|=>/,contains:[i,s,a,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,o,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}),Cy}var Sy,JD;function iNe(){return JD||(JD=1,Sy=function(e){var n={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"};return{aliases:["k","kdb"],keywords:n,lexemes:/(`?)[A-Za-z0-9_]+\b/,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}),Sy}var Ty,eN;function rNe(){return eN||(eN=1,Ty=function(e){var n={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 vector4dPromise"},i="[a-zA-Z_][a-zA-Z0-9\\._]*",r={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},s={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:i,returnEnd:!1}},o={begin:i+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:i,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},l={begin:i+"\\s*{",end:"{",returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:i})]};return{aliases:["qt"],case_insensitive:!1,keywords:n,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},a,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},s,o,l],illegal:/#/}}),Ty}var ky,tN;function aNe(){return tN||(tN=1,ky=function(e){var n="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{contains:[e.HASH_COMMENT_MODE,{begin:n,lexemes:n,keywords:{keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{begin:"`",end:"`",relevance:0},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]}]}}),ky}var Dy,nN;function sNe(){return nN||(nN=1,Dy=function(e){return{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:"\]$/},{begin:/<\//,end:/>/},{begin:/^facet /,end:/\}/},{begin:"^1\\.\\.(\\d+)$",end:/$/}],illegal:/./},e.COMMENT("^#","$"),l,c,o,{begin:/[\w-]+\=([^\s\{\}\[\]\(\)]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[l,c,o,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s\{\}\[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+r.split(" ").join("|")+")([\\s[(]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+s.split(" ").join("|")+");?\\s)+",relevance:10},{begin:/\.\./}]}]}}),Iy}var My,aN;function cNe(){return aN||(aN=1,My=function(e){return{keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"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"},illegal:""}]}}),Oy}var Ry,lN;function hNe(){return lN||(lN=1,Ry=function(e){var n={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:"\\${",end:"}"}]},r={className:"string",variants:[{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'"""',end:'"""',relevance:10},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},a={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={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:[{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s]},o]},c={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[o]};return{keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,a,s,c,l,e.C_NUMBER_MODE,n]}}),Ry}var Py,cN;function fNe(){return cN||(cN=1,Py=function(e){var n="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",i="(\\-|\\+)?\\d+([./]\\d+)?",r=i+"[+\\-]"+i+"i",a={"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},s={className:"meta",begin:"^#!",end:"$"},o={className:"literal",begin:"(#t|#f|#\\\\"+n+"|#\\\\.)"},l={className:"number",variants:[{begin:i,relevance:0},{begin:r,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},c=e.QUOTE_STRING_MODE,u=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],d={begin:n,relevance:0},h={className:"symbol",begin:"'"+n},m={endsWithParent:!0,relevance:0},f={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,c,l,d,h]}]},g={className:"name",begin:n,lexemes:n,keywords:a},v={begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[g,{begin:/\(/,end:/\)/,endsParent:!0,contains:[d]}]},T={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[v,g,m]};return m.contains=[o,l,c,d,h,f,T].concat(u),{illegal:/\S/,contains:[s,l,c,h,f,T].concat(u)}}),Py}var By,uN;function pNe(){return uN||(uN=1,By=function(e){var n=[e.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{aliases:["sci"],lexemes:/%?\w+/,keywords:{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]*('+[\\.']*|[\\.']+)",end:"",relevance:0},{begin:"\\[",end:"\\]'*[\\.']*",relevance:0,contains:n},e.COMMENT("//","$")].concat(n)}}),By}var Fy,dN;function mNe(){return dN||(dN=1,Fy=function(e){var n="[a-zA-Z-][a-zA-Z0-9_-]*",i={className:"variable",begin:"(\\$"+n+")\\b"},r={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},i,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{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:";",contains:[i,r,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[i,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,r,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}),Fy}var Hy,hN;function gNe(){return hN||(hN=1,Hy=function(e){return{aliases:["console"],contains:[{className:"meta",begin:"^\\s{0,3}[\\w\\d\\[\\]()@-]*[>%$#]",starts:{end:"$",subLanguage:"bash"}}]}}),Hy}var zy,fN;function vNe(){return fN||(fN=1,zy=function(e){var n=["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"],i=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],r=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{aliases:["smali"],contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+r.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+n.join("|")+")\\s"},{begin:"\\s("+n.join("|")+")((\\-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+i.join("|")+")((\\-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: -]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}),zy}var qy,pN;function bNe(){return pN||(pN=1,qy=function(e){var n="[a-z][a-zA-Z0-9_]*",i={className:"string",begin:"\\$.{1}"},r={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{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:n+":",relevance:0},e.C_NUMBER_MODE,r,i,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"\\#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,i,e.C_NUMBER_MODE,r]}]}}),qy}var Uy,mN;function yNe(){return mN||(mN=1,Uy=function(e){return{aliases:["ml"],keywords:{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:/\/\/|>>/,lexemes:"[a-z_]\\w*!?",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:/[-=]>/}]}}),Uy}var Gy,gN;function _Ne(){return gN||(gN=1,Gy=function(e){var n=e.getLanguage("cpp").exports,i={className:"variable",begin:/\b_+[a-zA-Z_]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},a={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]};return{aliases:["sqf"],case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if switch then throw to try waitUntil while with",built_in:"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler 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 addOwnedMine addPlayerScores addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem addWeaponPool addWeaponTurret agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airportSide AISFinishHeal alive all3DENEntities allControls allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSites allTurrets allUnits allUnitsUAV allVariables ammo and animate animateDoor animateSource animationNames animationPhase animationSourcePhase animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular blufor boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode 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 canFire canMove canSlingLoad canStand canSuspend canUnloadInCombat canVehicleCargo captive captiveNum cbChecked cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility civilian className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configNull configProperties configSourceAddonList configSourceMod configSourceModList connectTerminalToUAV controlNull controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked 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 ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlType ctrlVisible curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts diag_captureFrame diag_captureSlowFrame diag_codePerformance diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayNull displayParent displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle driver drop east echo edit3DENMissionAttributes editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAimPrecision enableAttack enableAudioFeature enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableStamina enableTeamSwitch enableUAVConnectability enableUAVWaypoints enableVehicleCargo endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagOwner flagSide flagTexture fleeing floor flyInHeight flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllHitPointsDamage getAllOwnedMines getAmmoCargo getAnimAimPrecision getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState getClientStateNumber getConnectedUAV getCustomAimingCoef getDammage getDescription getDir getDirVisual getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getFatigue getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSpeed getStamina getStatValue getSuppression getTerrainHeightASL getText getUnitLoadout getUnitTrait getVariable getVehicleCargo getWeaponCargo getWeaponSway getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit grpNull gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit 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 independent inflame inflamed inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDedicated isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUniformAllowed isVehicleCargo isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbCurSel lbData lbDelete lbIsSelected lbPicture lbSelection lbSetColor lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineBreak lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationNull locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockIdentity 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 markerColor markerDir markerPos markerShape markerSize markerText markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual modParams moonIntensity moonPhase morale move move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberToDate objectCurators objectFromNetId objectParent objNull objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openYoutubeVideo opfor or orderGetIn overcast overcastForecast owner param params parseNumber parseText parsingNamespace particlesQuality pi pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority private processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall remove3DENConnection remove3DENEventHandler remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea 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 removeVest removeWeapon removeWeaponGlobal removeWeaponTurret requiredVersion resetCamShake resetSubgroupDirection resistance resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scriptNull scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer set3DENLinesVisible set3DENMissionAttributes set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setAirportSide setAmmo setAmmoCargo setAnimSpeedCoef setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTi setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDropInterval setEditorMode setEditorObjectScope setEffectCondition setFace setFaceAnimation setFatigue setFlagOwner setFlagSide setFlagTexture setFog setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect setPitch setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setShadowDistance setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits setTargetAge setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat setUserActionText setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId setVehicleLock setVehiclePosition setVehicleTiPars setVehicleVarName setVelocity setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side sideAmbientLife sideChat sideEmpty sideEnemy sideFriendly sideLogic sideRadio sideUnknown 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 speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan targetKnowledge targetsAggregate targetsQuery taskAlwaysVisible taskChildren taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskNull taskParent taskResult taskState taskType teamMember teamMemberNull teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL text textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent useAudioTimeForMoves vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorMultiply vectorNormalized vectorUp vectorUpVisual vehicle vehicleCargoEnabled vehicleChat vehicleRadio 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 waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD west WFSideText wind",literal:"true false nil"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,i,r,a,n.preprocessor],illegal:/#/}}),Gy}var Vy,vN;function ENe(){return vN||(vN=1,Vy=function(e){var n=e.COMMENT("--","$");return{case_insensitive:!0,illegal:/[<>{}*#]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment",end:/;/,endsWithParent:!0,lexemes:/[\w\.]+/,keywords:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}]},{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n]},e.C_BLOCK_COMMENT_MODE,n]}}),Vy}var Wy,bN;function ANe(){return bN||(bN=1,Wy=function(e){return{contains:[e.HASH_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE,lexemes:e.UNDERSCORE_IDENT_RE,keywords:{name:"for in while repeat until if then else",symbol:"bernoulli bernoulli_logit binomial binomial_logit beta_binomial hypergeometric categorical categorical_logit ordered_logistic neg_binomial neg_binomial_2 neg_binomial_2_log poisson poisson_log multinomial normal exp_mod_normal skew_normal student_t cauchy double_exponential logistic gumbel lognormal chi_square inv_chi_square scaled_inv_chi_square exponential inv_gamma weibull frechet rayleigh wiener pareto pareto_type_2 von_mises uniform multi_normal multi_normal_prec multi_normal_cholesky multi_gp multi_gp_cholesky multi_student_t gaussian_dlm_obs dirichlet lkj_corr lkj_corr_cholesky wishart inv_wishart","selector-tag":"int real vector simplex unit_vector ordered positive_ordered row_vector matrix cholesky_factor_corr cholesky_factor_cov corr_matrix cov_matrix",title:"functions model data parameters quantities transformed generated",literal:"true false"},relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"0[xX][0-9a-fA-F]+[Li]?\\b",relevance:0},{className:"number",begin:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",relevance:0},{className:"number",begin:"\\d+\\.(?!\\d)(?:i\\b)?",relevance:0},{className:"number",begin:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0},{className:"number",begin:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",relevance:0}]}}),Wy}var Qy,yN;function wNe(){return yN||(yN=1,Qy=function(e){return{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 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 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 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 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 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 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 meqparse mer merg merge 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 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_]+\}?/},{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]}}),Qy}var jy,_N;function xNe(){return _N||(_N=1,jy=function(e){var n="[A-Z_][A-Z0-9_.]*",i={keyword:"HEADER ENDSEC DATA"},r={className:"meta",begin:"ISO-10303-21;",relevance:10},a={className:"meta",begin:"END-ISO-10303-21;",relevance:10};return{aliases:["p21","step","stp"],case_insensitive:!0,lexemes:n,keywords:i,contains:[r,a,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"}]}]}}),jy}var Yy,EN;function CNe(){return EN||(EN=1,Yy=function(e){var n={className:"variable",begin:"\\$"+e.IDENT_RE},i={className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},r=["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"],a=["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"],s=["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","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"],o="[\\.\\s\\n\\[\\:,]",l=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","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-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","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","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-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"],c=["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"];return{aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+c.join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+o,returnBegin:!0,contains:[{className:"selector-class",begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*"+o,returnBegin:!0,contains:[{className:"selector-id",begin:"\\#[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"\\b("+s.join("|")+")"+o,returnBegin:!0,contains:[{className:"selector-tag",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"}]},{begin:"&?:?:\\b("+a.join("|")+")"+o},{begin:"@("+r.join("|")+")\\b"},n,e.CSS_NUMBER_MODE,e.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:[i,n,e.APOS_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+l.reverse().join("|")+")\\b",starts:{end:/;|$/,contains:[i,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/\./,relevance:0}}]}}),Yy}var Ky,AN;function SNe(){return AN||(AN=1,Ky=function(e){var n={className:"string",begin:`\\[ -(multipart)?`,end:`\\] -`},i={className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},r={className:"string",begin:"(\\+|-)\\d+"},a={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{case_insensitive:!0,contains:[n,i,r,a]}}),Ky}var Xy,wN;function TNe(){return wN||(wN=1,Xy=function(e){var n={keyword:"__COLUMN__ __FILE__ __FUNCTION__ __LINE__ as as! as? associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},i={className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},r=e.COMMENT("/\\*","\\*/",{contains:["self"]}),a={className:"subst",begin:/\\\(/,end:"\\)",keywords:n,contains:[]},s={className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{contains:[a,e.BACKSLASH_ESCAPE]});return a.contains=[s],{keywords:n,contains:[o,e.C_LINE_COMMENT_MODE,r,i,s,{className:"function",beginKeywords:"func",end:"{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin://},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,contains:["self",s,o,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:n,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{className:"meta",begin:"(@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain)"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,r]}]}}),Xy}var $y,xN;function kNe(){return xN||(xN=1,$y=function(e){var n={className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},i={className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},r={className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},a={className:"symbol",begin:/\\./};return{contains:[n,i,r,a]}}),$y}var Zy,CN;function DNe(){return CN||(CN=1,Zy=function(e){var n="true false yes no null",i="^[ \\-]*",r="[a-zA-Z_][\\w\\-]*",a={className:"attr",variants:[{begin:i+r+":"},{begin:i+'"'+r+'":'},{begin:i+"'"+r+"':"}]},s={className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]};return{case_insensitive:!0,aliases:["yml","YAML","yaml"],contains:[a,{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>] *$",returnEnd:!0,contains:o.contains,end:a.variants[0].begin},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!!"+e.UNDERSCORE_IDENT_RE},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"^ *-",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},e.C_NUMBER_MODE,o]}}),Zy}var Jy,SN;function NNe(){return SN||(SN=1,Jy=function(e){return{case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:"(s+)?---$",end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}),Jy}var e_,TN;function INe(){return TN||(TN=1,e_=function(e){return{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}]},{excludeEnd:!0,variants:[{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",end:"[^a-zA-Z0-9_\\}\\$]"},{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},{className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]}]}}),e_}var t_,kN;function MNe(){return kN||(kN=1,t_=function(e){var n={className:"tag",begin:/\\/,relevance:0,contains:[{className:"name",variants:[{begin:/[a-zA-Zа-яА-я]+[*]?/},{begin:/[^a-zA-Zа-яА-я0-9]/}],starts:{endsWithParent:!0,relevance:0,contains:[{className:"string",variants:[{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/}]},{begin:/\s*=\s*/,endsWithParent:!0,relevance:0,contains:[{className:"number",begin:/-?\d*\.?\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?/}]}]}}]};return{contains:[n,{className:"formula",contains:[n],relevance:0,variants:[{begin:/\$\$/,end:/\$\$/},{begin:/\$/,end:/\$/}]},e.COMMENT("%","$",{relevance:0})]}}),t_}var n_,DN;function LNe(){return DN||(DN=1,n_=function(e){var n="bool byte i16 i32 i64 double string binary";return{keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:n,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*<",end:">",keywords:n,contains:["self"]}]}}),n_}var i_,NN;function ONe(){return NN||(NN=1,i_=function(e){var n={className:"number",begin:"[1-9][0-9]*",relevance:0},i={className:"symbol",begin:":[^\\]]+"},r={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER| TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",n,i]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",n,e.QUOTE_STRING_MODE,i]};return{keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[r,a,{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_]+"}]}}),i_}var r_,IN;function RNe(){return IN||(IN=1,r_=function(e){var n={className:"params",begin:"\\(",end:"\\)"},i="attribute block constant cycle date dump include max min parent random range source template_from_string",r={beginKeywords:i,keywords:{name:i},relevance:0,contains:[n]},a={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize convert_encoding date date_modify default escape first format join json_encode keys last length lower merge nl2br number_format raw replace reverse round slice sort split striptags title trim upper url_encode",contains:[r]},s="autoescape block do embed extends filter flush for if import include macro sandbox set spaceless use verbatim";return s=s+" "+s.split(" ").map(function(o){return"end"+o}).join(" "),{aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#}/),{className:"template-tag",begin:/\{%/,end:/%}/,contains:[{className:"name",begin:/\w+/,keywords:s,starts:{endsWithParent:!0,contains:[a,r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/}}/,contains:["self",a,r]}]}}),r_}var a_,MN;function PNe(){return MN||(MN=1,a_=function(e){var n={keyword:"in 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 class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",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 any number boolean string void Promise"};return{aliases:["ts"],keywords:n,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},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,{className:"function",begin:"(\\(.*?\\)|"+e.IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.IDENT_RE},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}]}],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:n,contains:["self",e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/["'\(]/}],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0,contains:["self",{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/["'\(]/}]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0},{className:"meta",begin:"@[A-Za-z]+"}]}}),a_}var s_,LN;function BNe(){return LN||(LN=1,s_=function(e){return{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:"$",relevance:2}]}}),s_}var o_,ON;function FNe(){return ON||(ON=1,o_=function(e){return{aliases:["vb"],case_insensitive:!0,keywords:{keyword:"addhandler addressof alias and andalso aggregate ansi as 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 is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem 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 xor",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},illegal:"//|{|}|endif|gosub|variant|wend",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT("'","$",{returnBegin:!0,contains:[{className:"doctag",begin:"'''|",contains:[e.PHRASAL_WORDS_MODE]},{className:"doctag",begin:"",contains:[e.PHRASAL_WORDS_MODE]}]}),e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end region externalsource"}}]}}),o_}var l_,RN;function HNe(){return RN||(RN=1,l_=function(e){return{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:"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 scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},illegal:"//",contains:[e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}),l_}var c_,PN;function zNe(){return PN||(PN=1,c_=function(e){return{subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}),c_}var u_,BN;function qNe(){return BN||(BN=1,u_=function(e){var n={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"};return{aliases:["v","sv","svh"],case_insensitive:!1,keywords:n,lexemes:/[\w\$]+/,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}),u_}var d_,FN;function UNe(){return FN||(FN=1,d_=function(e){var n="\\d(_|\\d)*",i="[eE][-+]?"+n,r=n+"(\\."+n+")?("+i+")?",a="\\w+",s=n+"#"+a+"(\\."+a+")?#("+i+")?",o="\\b("+s+"|"+r+")";return{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 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 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_signedreal_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:o,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]}]}}),d_}var h_,HN;function GNe(){return HN||(HN=1,h_=function(e){return{lexemes:/[!#@\w]+/,keywords:{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,e.APOS_STRING_MODE,{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}),h_}var f_,zN;function VNe(){return zN||(zN=1,f_=function(e){return{case_insensitive:!0,lexemes:"[.%]?"+e.IDENT_RE,keywords:{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_-]+/}]}}),f_}var p_,qN;function WNe(){return qN||(qN=1,p_=function(e){var n="ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts",i={keyword:"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",literal:"true false nil",built_in:"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 "+n},r={className:"string",begin:'"',end:'"',illegal:"\\n"},a={className:"string",begin:"'",end:"'",illegal:"\\n"},s={className:"string",begin:"<<",end:">>"},o={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},l={beginKeywords:"import",end:"$",keywords:i,contains:[r]},c={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:i}})]};return{aliases:["tao"],lexemes:/[a-zA-Z][a-zA-Z0-9_?]*/,keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,a,s,c,l,o,e.NUMBER_MODE]}}),p_}var m_,UN;function QNe(){return UN||(UN=1,m_=function(e){var n="for let if while then else return where group by xquery encoding versionmodule namespace boundary-space preserve strip default collation base-uri orderingcopy-namespaces order declare import schema namespace function option in allowing emptyat tumbling window sliding window start when only end when previous next stable ascendingdescending empty greatest least some every satisfies switch case typeswitch try catch andor to union intersect instance of treat as castable cast map array delete insert intoreplace value rename copy modify update",i="false true xs:string xs:integer element item xs:date xs:datetime xs:float xs:double xs:decimal QName xs:anyURI xs:long xs:int xs:short xs:byte attribute",r={begin:/\$[a-zA-Z0-9\-]+/},a={className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},o={className:"meta",begin:"%\\w+"},l={className:"comment",begin:"\\(:",end:":\\)",relevance:10,contains:[{className:"doctag",begin:"@\\w+"}]},c={begin:"{",end:"}"},u=[r,s,a,l,o,c];return c.contains=u,{aliases:["xpath","xq"],case_insensitive:!1,lexemes:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{keyword:n,literal:i},contains:u}}),m_}var g_,GN;function jNe(){return GN||(GN=1,g_=function(e){var n={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["zep"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var let while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally int uint long ulong char uchar double float bool boolean stringlikely unlikely",contains:[e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{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",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",e.C_BLOCK_COMMENT_MODE,n,i]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},n,i]}}),g_}var je=BL;je.registerLanguage("1c",OTe());je.registerLanguage("abnf",RTe());je.registerLanguage("accesslog",PTe());je.registerLanguage("actionscript",BTe());je.registerLanguage("ada",FTe());je.registerLanguage("apache",HTe());je.registerLanguage("applescript",zTe());je.registerLanguage("cpp",qTe());je.registerLanguage("arduino",UTe());je.registerLanguage("armasm",GTe());je.registerLanguage("xml",VTe());je.registerLanguage("asciidoc",WTe());je.registerLanguage("aspectj",QTe());je.registerLanguage("autohotkey",jTe());je.registerLanguage("autoit",YTe());je.registerLanguage("avrasm",KTe());je.registerLanguage("awk",XTe());je.registerLanguage("axapta",$Te());je.registerLanguage("bash",ZTe());je.registerLanguage("basic",JTe());je.registerLanguage("bnf",eke());je.registerLanguage("brainfuck",tke());je.registerLanguage("cal",nke());je.registerLanguage("capnproto",ike());je.registerLanguage("ceylon",rke());je.registerLanguage("clean",ake());je.registerLanguage("clojure",ske());je.registerLanguage("clojure-repl",oke());je.registerLanguage("cmake",lke());je.registerLanguage("coffeescript",cke());je.registerLanguage("coq",uke());je.registerLanguage("cos",dke());je.registerLanguage("crmsh",hke());je.registerLanguage("crystal",fke());je.registerLanguage("cs",pke());je.registerLanguage("csp",mke());je.registerLanguage("css",gke());je.registerLanguage("d",vke());je.registerLanguage("markdown",bke());je.registerLanguage("dart",yke());je.registerLanguage("delphi",_ke());je.registerLanguage("diff",Eke());je.registerLanguage("django",Ake());je.registerLanguage("dns",wke());je.registerLanguage("dockerfile",xke());je.registerLanguage("dos",Cke());je.registerLanguage("dsconfig",Ske());je.registerLanguage("dts",Tke());je.registerLanguage("dust",kke());je.registerLanguage("ebnf",Dke());je.registerLanguage("elixir",Nke());je.registerLanguage("elm",Ike());je.registerLanguage("ruby",Mke());je.registerLanguage("erb",Lke());je.registerLanguage("erlang-repl",Oke());je.registerLanguage("erlang",Rke());je.registerLanguage("excel",Pke());je.registerLanguage("fix",Bke());je.registerLanguage("flix",Fke());je.registerLanguage("fortran",Hke());je.registerLanguage("fsharp",zke());je.registerLanguage("gams",qke());je.registerLanguage("gauss",Uke());je.registerLanguage("gcode",Gke());je.registerLanguage("gherkin",Vke());je.registerLanguage("glsl",Wke());je.registerLanguage("go",Qke());je.registerLanguage("golo",jke());je.registerLanguage("gradle",Yke());je.registerLanguage("groovy",Kke());je.registerLanguage("haml",Xke());je.registerLanguage("handlebars",$ke());je.registerLanguage("haskell",Zke());je.registerLanguage("haxe",Jke());je.registerLanguage("hsp",eDe());je.registerLanguage("htmlbars",tDe());je.registerLanguage("http",nDe());je.registerLanguage("hy",iDe());je.registerLanguage("inform7",rDe());je.registerLanguage("ini",aDe());je.registerLanguage("irpf90",sDe());je.registerLanguage("java",oDe());je.registerLanguage("javascript",lDe());je.registerLanguage("jboss-cli",cDe());je.registerLanguage("json",uDe());je.registerLanguage("julia",dDe());je.registerLanguage("julia-repl",hDe());je.registerLanguage("kotlin",fDe());je.registerLanguage("lasso",pDe());je.registerLanguage("ldif",mDe());je.registerLanguage("leaf",gDe());je.registerLanguage("less",vDe());je.registerLanguage("lisp",bDe());je.registerLanguage("livecodeserver",yDe());je.registerLanguage("livescript",_De());je.registerLanguage("llvm",EDe());je.registerLanguage("lsl",ADe());je.registerLanguage("lua",wDe());je.registerLanguage("makefile",xDe());je.registerLanguage("mathematica",CDe());je.registerLanguage("matlab",SDe());je.registerLanguage("maxima",TDe());je.registerLanguage("mel",kDe());je.registerLanguage("mercury",DDe());je.registerLanguage("mipsasm",NDe());je.registerLanguage("mizar",IDe());je.registerLanguage("perl",MDe());je.registerLanguage("mojolicious",LDe());je.registerLanguage("monkey",ODe());je.registerLanguage("moonscript",RDe());je.registerLanguage("n1ql",PDe());je.registerLanguage("nginx",BDe());je.registerLanguage("nimrod",FDe());je.registerLanguage("nix",HDe());je.registerLanguage("nsis",zDe());je.registerLanguage("objectivec",qDe());je.registerLanguage("ocaml",UDe());je.registerLanguage("openscad",GDe());je.registerLanguage("oxygene",VDe());je.registerLanguage("parser3",WDe());je.registerLanguage("pf",QDe());je.registerLanguage("php",jDe());je.registerLanguage("pony",YDe());je.registerLanguage("powershell",KDe());je.registerLanguage("processing",XDe());je.registerLanguage("profile",$De());je.registerLanguage("prolog",ZDe());je.registerLanguage("protobuf",JDe());je.registerLanguage("puppet",eNe());je.registerLanguage("purebasic",tNe());je.registerLanguage("python",nNe());je.registerLanguage("q",iNe());je.registerLanguage("qml",rNe());je.registerLanguage("r",aNe());je.registerLanguage("rib",sNe());je.registerLanguage("roboconf",oNe());je.registerLanguage("routeros",lNe());je.registerLanguage("rsl",cNe());je.registerLanguage("ruleslanguage",uNe());je.registerLanguage("rust",dNe());je.registerLanguage("scala",hNe());je.registerLanguage("scheme",fNe());je.registerLanguage("scilab",pNe());je.registerLanguage("scss",mNe());je.registerLanguage("shell",gNe());je.registerLanguage("smali",vNe());je.registerLanguage("smalltalk",bNe());je.registerLanguage("sml",yNe());je.registerLanguage("sqf",_Ne());je.registerLanguage("sql",ENe());je.registerLanguage("stan",ANe());je.registerLanguage("stata",wNe());je.registerLanguage("step21",xNe());je.registerLanguage("stylus",CNe());je.registerLanguage("subunit",SNe());je.registerLanguage("swift",TNe());je.registerLanguage("taggerscript",kNe());je.registerLanguage("yaml",DNe());je.registerLanguage("tap",NNe());je.registerLanguage("tcl",INe());je.registerLanguage("tex",MNe());je.registerLanguage("thrift",LNe());je.registerLanguage("tp",ONe());je.registerLanguage("twig",RNe());je.registerLanguage("typescript",PNe());je.registerLanguage("vala",BNe());je.registerLanguage("vbnet",FNe());je.registerLanguage("vbscript",HNe());je.registerLanguage("vbscript-html",zNe());je.registerLanguage("verilog",qNe());je.registerLanguage("vhdl",UNe());je.registerLanguage("vim",GNe());je.registerLanguage("x86asm",VNe());je.registerLanguage("xl",WNe());je.registerLanguage("xquery",QNe());je.registerLanguage("zephir",jNe());var YNe=je;const KNe=vr(YNe),XNe=e=>{e.renderer.rules.fence=(n,i)=>{const r=n[i],a=r.content.trim(),s=r.info?[r.info]:void 0;return`
${KNe.highlightAuto(a,s).value}
`}};var v_={exports:{}},VN;function FL(){return VN||(VN=1,function(e,n){(function(r,a){e.exports=a()})(typeof self<"u"?self:Go,function(){return function(){var i={};(function(){i.d=function(X,b){for(var w in b)i.o(b,w)&&!i.o(X,w)&&Object.defineProperty(X,w,{enumerable:!0,get:b[w]})}})(),function(){i.o=function(X,b){return Object.prototype.hasOwnProperty.call(X,b)}}();var r={};i.d(r,{default:function(){return q8}});var a=function X(b,w){this.position=void 0;var k="KaTeX parse error: "+b,O,U=w&&w.loc;if(U&&U.start<=U.end){var K=U.lexer.input;O=U.start;var le=U.end;O===K.length?k+=" at end of input: ":k+=" at position "+(O+1)+": ";var me=K.slice(O,le).replace(/[^]/g,"$&̲"),we;O>15?we="…"+K.slice(O-15,O):we=K.slice(0,O);var Le;le+15":">","<":"<",'"':""","'":"'"},h=/[&><"']/g;function m(X){return String(X).replace(h,function(b){return d[b]})}var f=function X(b){return b.type==="ordgroup"||b.type==="color"?b.body.length===1?X(b.body[0]):b:b.type==="font"?X(b.body):b},g=function(b){var w=f(b);return w.type==="mathord"||w.type==="textord"||w.type==="atom"},v=function(b){if(!b)throw new Error("Expected non-null, but got "+String(b));return b},T=function(b){var w=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(b);return w!=null?w[1]:"_relative"},y={contains:o,deflt:l,escape:m,hyphenate:u,getBaseElem:f,isCharacterBox:g,protocolFromUrl:T},C=function(){function X(w){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,w=w||{},this.displayMode=y.deflt(w.displayMode,!1),this.output=y.deflt(w.output,"htmlAndMathml"),this.leqno=y.deflt(w.leqno,!1),this.fleqn=y.deflt(w.fleqn,!1),this.throwOnError=y.deflt(w.throwOnError,!0),this.errorColor=y.deflt(w.errorColor,"#cc0000"),this.macros=w.macros||{},this.minRuleThickness=Math.max(0,y.deflt(w.minRuleThickness,0)),this.colorIsTextColor=y.deflt(w.colorIsTextColor,!1),this.strict=y.deflt(w.strict,"warn"),this.trust=y.deflt(w.trust,!1),this.maxSize=Math.max(0,y.deflt(w.maxSize,1/0)),this.maxExpand=Math.max(0,y.deflt(w.maxExpand,1e3)),this.globalGroup=y.deflt(w.globalGroup,!1)}var b=X.prototype;return b.reportNonstrict=function(k,O,U){var K=this.strict;if(typeof K=="function"&&(K=K(k,O,U)),!(!K||K==="ignore")){if(K===!0||K==="error")throw new s("LaTeX-incompatible input and strict mode is set to 'error': "+(O+" ["+k+"]"),U);K==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(O+" ["+k+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+K+"': "+O+" ["+k+"]"))}},b.useStrictBehavior=function(k,O,U){var K=this.strict;if(typeof K=="function")try{K=K(k,O,U)}catch{K="error"}return!K||K==="ignore"?!1:K===!0||K==="error"?!0:K==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(O+" ["+k+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+K+"': "+O+" ["+k+"]")),!1)},b.isTrusted=function(k){k.url&&!k.protocol&&(k.protocol=y.protocolFromUrl(k.url));var O=typeof this.trust=="function"?this.trust(k):this.trust;return!!O},X}(),I=function(){function X(w,k,O){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=w,this.size=k,this.cramped=O}var b=X.prototype;return b.sup=function(){return Y[se[this.id]]},b.sub=function(){return Y[q[this.id]]},b.fracNum=function(){return Y[p[this.id]]},b.fracDen=function(){return Y[N[this.id]]},b.cramp=function(){return Y[z[this.id]]},b.text=function(){return Y[j[this.id]]},b.isTight=function(){return this.size>=2},X}(),M=0,R=1,B=2,A=3,W=4,ne=5,ee=6,de=7,Y=[new I(M,0,!1),new I(R,0,!0),new I(B,1,!1),new I(A,1,!0),new I(W,2,!1),new I(ne,2,!0),new I(ee,3,!1),new I(de,3,!0)],se=[W,ne,W,ne,ee,de,ee,de],q=[ne,ne,ne,ne,de,de,de,de],p=[B,A,W,ne,ee,de,ee,de],N=[A,A,ne,ne,de,de,de,de],z=[R,R,A,A,ne,ne,de,de],j=[M,R,B,A,B,A,B,A],re={DISPLAY:Y[M],TEXT:Y[B],SCRIPT:Y[W],SCRIPTSCRIPT:Y[ee]},ue=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function ae(X){for(var b=0;b=O[0]&&X<=O[1])return w.name}return null}var Ee=[];ue.forEach(function(X){return X.blocks.forEach(function(b){return Ee.push.apply(Ee,b)})});function ze(X){for(var b=0;b=Ee[b]&&X<=Ee[b+1])return!0;return!1}var Oe=80,Qe=function(b,w){return"M95,"+(622+b+w)+` -c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 -c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 -c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 -s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 -c69,-144,104.5,-217.7,106.5,-221 -l`+b/2.075+" -"+b+` -c5.3,-9.3,12,-14,20,-14 -H400000v`+(40+b)+`H845.2724 -s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 -c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+b)+" "+w+"h400000v"+(40+b)+"h-400000z"},Ge=function(b,w){return"M263,"+(601+b+w)+`c0.7,0,18,39.7,52,119 -c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 -c340,-704.7,510.7,-1060.3,512,-1067 -l`+b/2.084+" -"+b+` -c4.7,-7.3,11,-11,19,-11 -H40000v`+(40+b)+`H1012.3 -s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 -c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 -s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 -c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+b)+" "+w+"h400000v"+(40+b)+"h-400000z"},rt=function(b,w){return"M983 "+(10+b+w)+` -l`+b/3.13+" -"+b+` -c4,-6.7,10,-10,18,-10 H400000v`+(40+b)+` -H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 -s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 -c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 -c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 -c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 -c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+b)+" "+w+"h400000v"+(40+b)+"h-400000z"},ht=function(b,w){return"M424,"+(2398+b+w)+` -c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 -c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 -s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 -s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 -l`+b/4.223+" -"+b+`c4,-6.7,10,-10,18,-10 H400000 -v`+(40+b)+`H1014.6 -s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 -c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2z M`+(1001+b)+" "+w+` -h400000v`+(40+b)+"h-400000z"},bt=function(b,w){return"M473,"+(2713+b+w)+` -c339.3,-1799.3,509.3,-2700,510,-2702 l`+b/5.298+" -"+b+` -c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+b)+`H1017.7 -s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 -c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 -s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+b)+" "+w+"h400000v"+(40+b)+"H1017.7z"},St=function(b){var w=b/2;return"M400000 "+b+" H0 L"+w+" 0 l65 45 L145 "+(b-80)+" H400000z"},gt=function(b,w,k){var O=k-54-w-b;return"M702 "+(b+w)+"H400000"+(40+b)+` -H742v`+O+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 -h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 -c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+w+"H400000v"+(40+b)+"H742z"},Vt=function(b,w,k){w=1e3*w;var O="";switch(b){case"sqrtMain":O=Qe(w,Oe);break;case"sqrtSize1":O=Ge(w,Oe);break;case"sqrtSize2":O=rt(w,Oe);break;case"sqrtSize3":O=ht(w,Oe);break;case"sqrtSize4":O=bt(w,Oe);break;case"sqrtTall":O=gt(w,Oe,k)}return O},Qt=function(b,w){switch(b){case"⎜":return"M291 0 H417 V"+w+" H291z M291 0 H417 V"+w+" H291z";case"∣":return"M145 0 H188 V"+w+" H145z M145 0 H188 V"+w+" H145z";case"∥":return"M145 0 H188 V"+w+" H145z M145 0 H188 V"+w+" H145z"+("M367 0 H410 V"+w+" H367z M367 0 H410 V"+w+" H367z");case"⎟":return"M457 0 H583 V"+w+" H457z M457 0 H583 V"+w+" H457z";case"⎢":return"M319 0 H403 V"+w+" H319z M319 0 H403 V"+w+" H319z";case"⎥":return"M263 0 H347 V"+w+" H263z M263 0 H347 V"+w+" H263z";case"⎪":return"M384 0 H504 V"+w+" H384z M384 0 H504 V"+w+" H384z";case"⏐":return"M312 0 H355 V"+w+" H312z M312 0 H355 V"+w+" H312z";case"‖":return"M257 0 H300 V"+w+" H257z M257 0 H300 V"+w+" H257z"+("M478 0 H521 V"+w+" H478z M478 0 H521 V"+w+" H478z");default:return""}},te={doubleleftarrow:`M262 157 -l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 - 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 - 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 -c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 - 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 --86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 --2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z -m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l --10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 - 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 --33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 --17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 --13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 -c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 --107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 - 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 --5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 -c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 - 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 - 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 - l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 --45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 - 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 - 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 - 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 --331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 -H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 - 435 0h399565z`,leftgroupunder:`M400000 262 -H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 - 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 --3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 --18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 --196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 - 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 --4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 --10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z -m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 - 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 - 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 --152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 - 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 --2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 -v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 --83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 --68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z -M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z -M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 --.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 -c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z -M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 -c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 --53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 - 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 - 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 -c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 - 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 - 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 --5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 --320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z -m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 -60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 --451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z -m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 -c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 --480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z -m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 -85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 --707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z -m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 -c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 --16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 - 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 - 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 --40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 - 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l --6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 -s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 -c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 - 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 --174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 - 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 - 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 --3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 --10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 - 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 --18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 - 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z -m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 - 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 --7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 --27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 - 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 - 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 --64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z -m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 - 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 --13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z -M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 - 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 --52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 --167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 - 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 --70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 --40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 --37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 - 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 -c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 - 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 - 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 --19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 - 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 --2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 - 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 - 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 --68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 --8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 - 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 -c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 - 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 --11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 - 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 - 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 - -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 --11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 - 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 - 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 - -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 -3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 -10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 --1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 --7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 -H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 -c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 -c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, --5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 -c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 -c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 -s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 -121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 -s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 -c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z -M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 --27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 -13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 --84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 --119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 -151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 -c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 -c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 -c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z -M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, -1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, --152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z -M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ze=function(){function X(w){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=w,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var b=X.prototype;return b.hasClass=function(k){return y.contains(this.classes,k)},b.toNode=function(){for(var k=document.createDocumentFragment(),O=0;O=5?b=0:X>=3?b=1:b=2,!Ke[b]){var w=Ke[b]={cssEmPerMu:Se.quad[b]/18};for(var k in Se)Se.hasOwnProperty(k)&&(w[k]=Se[k][b])}return Ke[b]}var st=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],at=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],et=function(b,w){return w.size<2?b:st[b-1][w.size-1]},Ht=function(){function X(w){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=w.style,this.color=w.color,this.size=w.size||X.BASESIZE,this.textSize=w.textSize||this.size,this.phantom=!!w.phantom,this.font=w.font||"",this.fontFamily=w.fontFamily||"",this.fontWeight=w.fontWeight||"",this.fontShape=w.fontShape||"",this.sizeMultiplier=at[this.size-1],this.maxSize=w.maxSize,this.minRuleThickness=w.minRuleThickness,this._fontMetrics=void 0}var b=X.prototype;return b.extend=function(k){var O={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var U in k)k.hasOwnProperty(U)&&(O[U]=k[U]);return new X(O)},b.havingStyle=function(k){return this.style===k?this:this.extend({style:k,size:et(this.textSize,k)})},b.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},b.havingSize=function(k){return this.size===k&&this.textSize===k?this:this.extend({style:this.style.text(),size:k,textSize:k,sizeMultiplier:at[k-1]})},b.havingBaseStyle=function(k){k=k||this.style.text();var O=et(X.BASESIZE,k);return this.size===O&&this.textSize===X.BASESIZE&&this.style===k?this:this.extend({style:k,size:O})},b.havingBaseSizing=function(){var k;switch(this.style.id){case 4:case 5:k=3;break;case 6:case 7:k=1;break;default:k=6}return this.extend({style:this.style.text(),size:k})},b.withColor=function(k){return this.extend({color:k})},b.withPhantom=function(){return this.extend({phantom:!0})},b.withFont=function(k){return this.extend({font:k})},b.withTextFontFamily=function(k){return this.extend({fontFamily:k,font:""})},b.withTextFontWeight=function(k){return this.extend({fontWeight:k,font:""})},b.withTextFontShape=function(k){return this.extend({fontShape:k,font:""})},b.sizingClasses=function(k){return k.size!==this.size?["sizing","reset-size"+k.size,"size"+this.size]:[]},b.baseSizingClasses=function(){return this.size!==X.BASESIZE?["sizing","reset-size"+this.size,"size"+X.BASESIZE]:[]},b.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Pe(this.size)),this._fontMetrics},b.getColor=function(){return this.phantom?"transparent":this.color},X}();Ht.BASESIZE=6;var vn=Ht,on={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Rn={ex:!0,em:!0,mu:!0},Cr=function(b){return typeof b!="string"&&(b=b.unit),b in on||b in Rn||b==="ex"},un=function(b,w){var k;if(b.unit in on)k=on[b.unit]/w.fontMetrics().ptPerEm/w.sizeMultiplier;else if(b.unit==="mu")k=w.fontMetrics().cssEmPerMu;else{var O;if(w.style.isTight()?O=w.havingStyle(w.style.text()):O=w,b.unit==="ex")k=O.fontMetrics().xHeight;else if(b.unit==="em")k=O.fontMetrics().quad;else throw new s("Invalid unit: '"+b.unit+"'");O!==w&&(k*=O.sizeMultiplier/w.sizeMultiplier)}return Math.min(b.number*k,w.maxSize)},wt=function(b){return+b.toFixed(4)+"em"},dn=function(b){return b.filter(function(w){return w}).join(" ")},ot=function(b,w,k){if(this.classes=b||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=k||{},w){w.style.isTight()&&this.classes.push("mtight");var O=w.getColor();O&&(this.style.color=O)}},jt=function(b){var w=document.createElement(b);w.className=dn(this.classes);for(var k in this.style)this.style.hasOwnProperty(k)&&(w.style[k]=this.style[k]);for(var O in this.attributes)this.attributes.hasOwnProperty(O)&&w.setAttribute(O,this.attributes[O]);for(var U=0;U",w},xn=function(){function X(w,k,O,U){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ot.call(this,w,O,U),this.children=k||[]}var b=X.prototype;return b.setAttribute=function(k,O){this.attributes[k]=O},b.hasClass=function(k){return y.contains(this.classes,k)},b.toNode=function(){return jt.call(this,"span")},b.toMarkup=function(){return Zt.call(this,"span")},X}(),Dn=function(){function X(w,k,O,U){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ot.call(this,k,U),this.children=O||[],this.setAttribute("href",w)}var b=X.prototype;return b.setAttribute=function(k,O){this.attributes[k]=O},b.hasClass=function(k){return y.contains(this.classes,k)},b.toNode=function(){return jt.call(this,"a")},b.toMarkup=function(){return Zt.call(this,"a")},X}(),Pi=function(){function X(w,k,O){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=k,this.src=w,this.classes=["mord"],this.style=O}var b=X.prototype;return b.hasClass=function(k){return y.contains(this.classes,k)},b.toNode=function(){var k=document.createElement("img");k.src=this.src,k.alt=this.alt,k.className="mord";for(var O in this.style)this.style.hasOwnProperty(O)&&(k.style[O]=this.style[O]);return k},b.toMarkup=function(){var k=""+this.alt+"0&&(O=document.createElement("span"),O.style.marginRight=wt(this.italic)),this.classes.length>0&&(O=O||document.createElement("span"),O.className=dn(this.classes));for(var U in this.style)this.style.hasOwnProperty(U)&&(O=O||document.createElement("span"),O.style[U]=this.style[U]);return O?(O.appendChild(k),O):k},b.toMarkup=function(){var k=!1,O="0&&(U+="margin-right:"+this.italic+"em;");for(var K in this.style)this.style.hasOwnProperty(K)&&(U+=y.hyphenate(K)+":"+this.style[K]+";");U&&(k=!0,O+=' style="'+y.escape(U)+'"');var le=y.escape(this.text);return k?(O+=">",O+=le,O+="",O):le},X}(),ii=function(){function X(w,k){this.children=void 0,this.attributes=void 0,this.children=w||[],this.attributes=k||{}}var b=X.prototype;return b.toNode=function(){var k="http://www.w3.org/2000/svg",O=document.createElementNS(k,"svg");for(var U in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,U)&&O.setAttribute(U,this.attributes[U]);for(var K=0;K":""},X}(),Or=function(){function X(w){this.attributes=void 0,this.attributes=w||{}}var b=X.prototype;return b.toNode=function(){var k="http://www.w3.org/2000/svg",O=document.createElementNS(k,"line");for(var U in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,U)&&O.setAttribute(U,this.attributes[U]);return O},b.toMarkup=function(){var k=" but got "+String(X)+".")}var Ss={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ts={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Rr={math:{},text:{}},si=Rr;function V(X,b,w,k,O,U){Rr[X][O]={font:b,group:w,replace:k},U&&k&&(Rr[X][k]=Rr[X][O])}var $="math",xt="text",ce="main",ke="ams",ci="accent-token",$t="bin",Bn="close",ks="inner",pn="mathord",Ci="op-token",br="open",Ta="punct",De="rel",jr="spacing",Be="textord";V($,ce,De,"≡","\\equiv",!0),V($,ce,De,"≺","\\prec",!0),V($,ce,De,"≻","\\succ",!0),V($,ce,De,"∼","\\sim",!0),V($,ce,De,"⊥","\\perp"),V($,ce,De,"⪯","\\preceq",!0),V($,ce,De,"⪰","\\succeq",!0),V($,ce,De,"≃","\\simeq",!0),V($,ce,De,"∣","\\mid",!0),V($,ce,De,"≪","\\ll",!0),V($,ce,De,"≫","\\gg",!0),V($,ce,De,"≍","\\asymp",!0),V($,ce,De,"∥","\\parallel"),V($,ce,De,"⋈","\\bowtie",!0),V($,ce,De,"⌣","\\smile",!0),V($,ce,De,"⊑","\\sqsubseteq",!0),V($,ce,De,"⊒","\\sqsupseteq",!0),V($,ce,De,"≐","\\doteq",!0),V($,ce,De,"⌢","\\frown",!0),V($,ce,De,"∋","\\ni",!0),V($,ce,De,"∝","\\propto",!0),V($,ce,De,"⊢","\\vdash",!0),V($,ce,De,"⊣","\\dashv",!0),V($,ce,De,"∋","\\owns"),V($,ce,Ta,".","\\ldotp"),V($,ce,Ta,"⋅","\\cdotp"),V($,ce,Be,"#","\\#"),V(xt,ce,Be,"#","\\#"),V($,ce,Be,"&","\\&"),V(xt,ce,Be,"&","\\&"),V($,ce,Be,"ℵ","\\aleph",!0),V($,ce,Be,"∀","\\forall",!0),V($,ce,Be,"ℏ","\\hbar",!0),V($,ce,Be,"∃","\\exists",!0),V($,ce,Be,"∇","\\nabla",!0),V($,ce,Be,"♭","\\flat",!0),V($,ce,Be,"ℓ","\\ell",!0),V($,ce,Be,"♮","\\natural",!0),V($,ce,Be,"♣","\\clubsuit",!0),V($,ce,Be,"℘","\\wp",!0),V($,ce,Be,"♯","\\sharp",!0),V($,ce,Be,"♢","\\diamondsuit",!0),V($,ce,Be,"ℜ","\\Re",!0),V($,ce,Be,"♡","\\heartsuit",!0),V($,ce,Be,"ℑ","\\Im",!0),V($,ce,Be,"♠","\\spadesuit",!0),V($,ce,Be,"§","\\S",!0),V(xt,ce,Be,"§","\\S"),V($,ce,Be,"¶","\\P",!0),V(xt,ce,Be,"¶","\\P"),V($,ce,Be,"†","\\dag"),V(xt,ce,Be,"†","\\dag"),V(xt,ce,Be,"†","\\textdagger"),V($,ce,Be,"‡","\\ddag"),V(xt,ce,Be,"‡","\\ddag"),V(xt,ce,Be,"‡","\\textdaggerdbl"),V($,ce,Bn,"⎱","\\rmoustache",!0),V($,ce,br,"⎰","\\lmoustache",!0),V($,ce,Bn,"⟯","\\rgroup",!0),V($,ce,br,"⟮","\\lgroup",!0),V($,ce,$t,"∓","\\mp",!0),V($,ce,$t,"⊖","\\ominus",!0),V($,ce,$t,"⊎","\\uplus",!0),V($,ce,$t,"⊓","\\sqcap",!0),V($,ce,$t,"∗","\\ast"),V($,ce,$t,"⊔","\\sqcup",!0),V($,ce,$t,"◯","\\bigcirc",!0),V($,ce,$t,"∙","\\bullet"),V($,ce,$t,"‡","\\ddagger"),V($,ce,$t,"≀","\\wr",!0),V($,ce,$t,"⨿","\\amalg"),V($,ce,$t,"&","\\And"),V($,ce,De,"⟵","\\longleftarrow",!0),V($,ce,De,"⇐","\\Leftarrow",!0),V($,ce,De,"⟸","\\Longleftarrow",!0),V($,ce,De,"⟶","\\longrightarrow",!0),V($,ce,De,"⇒","\\Rightarrow",!0),V($,ce,De,"⟹","\\Longrightarrow",!0),V($,ce,De,"↔","\\leftrightarrow",!0),V($,ce,De,"⟷","\\longleftrightarrow",!0),V($,ce,De,"⇔","\\Leftrightarrow",!0),V($,ce,De,"⟺","\\Longleftrightarrow",!0),V($,ce,De,"↦","\\mapsto",!0),V($,ce,De,"⟼","\\longmapsto",!0),V($,ce,De,"↗","\\nearrow",!0),V($,ce,De,"↩","\\hookleftarrow",!0),V($,ce,De,"↪","\\hookrightarrow",!0),V($,ce,De,"↘","\\searrow",!0),V($,ce,De,"↼","\\leftharpoonup",!0),V($,ce,De,"⇀","\\rightharpoonup",!0),V($,ce,De,"↙","\\swarrow",!0),V($,ce,De,"↽","\\leftharpoondown",!0),V($,ce,De,"⇁","\\rightharpoondown",!0),V($,ce,De,"↖","\\nwarrow",!0),V($,ce,De,"⇌","\\rightleftharpoons",!0),V($,ke,De,"≮","\\nless",!0),V($,ke,De,"","\\@nleqslant"),V($,ke,De,"","\\@nleqq"),V($,ke,De,"⪇","\\lneq",!0),V($,ke,De,"≨","\\lneqq",!0),V($,ke,De,"","\\@lvertneqq"),V($,ke,De,"⋦","\\lnsim",!0),V($,ke,De,"⪉","\\lnapprox",!0),V($,ke,De,"⊀","\\nprec",!0),V($,ke,De,"⋠","\\npreceq",!0),V($,ke,De,"⋨","\\precnsim",!0),V($,ke,De,"⪹","\\precnapprox",!0),V($,ke,De,"≁","\\nsim",!0),V($,ke,De,"","\\@nshortmid"),V($,ke,De,"∤","\\nmid",!0),V($,ke,De,"⊬","\\nvdash",!0),V($,ke,De,"⊭","\\nvDash",!0),V($,ke,De,"⋪","\\ntriangleleft"),V($,ke,De,"⋬","\\ntrianglelefteq",!0),V($,ke,De,"⊊","\\subsetneq",!0),V($,ke,De,"","\\@varsubsetneq"),V($,ke,De,"⫋","\\subsetneqq",!0),V($,ke,De,"","\\@varsubsetneqq"),V($,ke,De,"≯","\\ngtr",!0),V($,ke,De,"","\\@ngeqslant"),V($,ke,De,"","\\@ngeqq"),V($,ke,De,"⪈","\\gneq",!0),V($,ke,De,"≩","\\gneqq",!0),V($,ke,De,"","\\@gvertneqq"),V($,ke,De,"⋧","\\gnsim",!0),V($,ke,De,"⪊","\\gnapprox",!0),V($,ke,De,"⊁","\\nsucc",!0),V($,ke,De,"⋡","\\nsucceq",!0),V($,ke,De,"⋩","\\succnsim",!0),V($,ke,De,"⪺","\\succnapprox",!0),V($,ke,De,"≆","\\ncong",!0),V($,ke,De,"","\\@nshortparallel"),V($,ke,De,"∦","\\nparallel",!0),V($,ke,De,"⊯","\\nVDash",!0),V($,ke,De,"⋫","\\ntriangleright"),V($,ke,De,"⋭","\\ntrianglerighteq",!0),V($,ke,De,"","\\@nsupseteqq"),V($,ke,De,"⊋","\\supsetneq",!0),V($,ke,De,"","\\@varsupsetneq"),V($,ke,De,"⫌","\\supsetneqq",!0),V($,ke,De,"","\\@varsupsetneqq"),V($,ke,De,"⊮","\\nVdash",!0),V($,ke,De,"⪵","\\precneqq",!0),V($,ke,De,"⪶","\\succneqq",!0),V($,ke,De,"","\\@nsubseteqq"),V($,ke,$t,"⊴","\\unlhd"),V($,ke,$t,"⊵","\\unrhd"),V($,ke,De,"↚","\\nleftarrow",!0),V($,ke,De,"↛","\\nrightarrow",!0),V($,ke,De,"⇍","\\nLeftarrow",!0),V($,ke,De,"⇏","\\nRightarrow",!0),V($,ke,De,"↮","\\nleftrightarrow",!0),V($,ke,De,"⇎","\\nLeftrightarrow",!0),V($,ke,De,"△","\\vartriangle"),V($,ke,Be,"ℏ","\\hslash"),V($,ke,Be,"▽","\\triangledown"),V($,ke,Be,"◊","\\lozenge"),V($,ke,Be,"Ⓢ","\\circledS"),V($,ke,Be,"®","\\circledR"),V(xt,ke,Be,"®","\\circledR"),V($,ke,Be,"∡","\\measuredangle",!0),V($,ke,Be,"∄","\\nexists"),V($,ke,Be,"℧","\\mho"),V($,ke,Be,"Ⅎ","\\Finv",!0),V($,ke,Be,"⅁","\\Game",!0),V($,ke,Be,"‵","\\backprime"),V($,ke,Be,"▲","\\blacktriangle"),V($,ke,Be,"▼","\\blacktriangledown"),V($,ke,Be,"■","\\blacksquare"),V($,ke,Be,"⧫","\\blacklozenge"),V($,ke,Be,"★","\\bigstar"),V($,ke,Be,"∢","\\sphericalangle",!0),V($,ke,Be,"∁","\\complement",!0),V($,ke,Be,"ð","\\eth",!0),V(xt,ce,Be,"ð","ð"),V($,ke,Be,"╱","\\diagup"),V($,ke,Be,"╲","\\diagdown"),V($,ke,Be,"□","\\square"),V($,ke,Be,"□","\\Box"),V($,ke,Be,"◊","\\Diamond"),V($,ke,Be,"¥","\\yen",!0),V(xt,ke,Be,"¥","\\yen",!0),V($,ke,Be,"✓","\\checkmark",!0),V(xt,ke,Be,"✓","\\checkmark"),V($,ke,Be,"ℶ","\\beth",!0),V($,ke,Be,"ℸ","\\daleth",!0),V($,ke,Be,"ℷ","\\gimel",!0),V($,ke,Be,"ϝ","\\digamma",!0),V($,ke,Be,"ϰ","\\varkappa"),V($,ke,br,"┌","\\@ulcorner",!0),V($,ke,Bn,"┐","\\@urcorner",!0),V($,ke,br,"└","\\@llcorner",!0),V($,ke,Bn,"┘","\\@lrcorner",!0),V($,ke,De,"≦","\\leqq",!0),V($,ke,De,"⩽","\\leqslant",!0),V($,ke,De,"⪕","\\eqslantless",!0),V($,ke,De,"≲","\\lesssim",!0),V($,ke,De,"⪅","\\lessapprox",!0),V($,ke,De,"≊","\\approxeq",!0),V($,ke,$t,"⋖","\\lessdot"),V($,ke,De,"⋘","\\lll",!0),V($,ke,De,"≶","\\lessgtr",!0),V($,ke,De,"⋚","\\lesseqgtr",!0),V($,ke,De,"⪋","\\lesseqqgtr",!0),V($,ke,De,"≑","\\doteqdot"),V($,ke,De,"≓","\\risingdotseq",!0),V($,ke,De,"≒","\\fallingdotseq",!0),V($,ke,De,"∽","\\backsim",!0),V($,ke,De,"⋍","\\backsimeq",!0),V($,ke,De,"⫅","\\subseteqq",!0),V($,ke,De,"⋐","\\Subset",!0),V($,ke,De,"⊏","\\sqsubset",!0),V($,ke,De,"≼","\\preccurlyeq",!0),V($,ke,De,"⋞","\\curlyeqprec",!0),V($,ke,De,"≾","\\precsim",!0),V($,ke,De,"⪷","\\precapprox",!0),V($,ke,De,"⊲","\\vartriangleleft"),V($,ke,De,"⊴","\\trianglelefteq"),V($,ke,De,"⊨","\\vDash",!0),V($,ke,De,"⊪","\\Vvdash",!0),V($,ke,De,"⌣","\\smallsmile"),V($,ke,De,"⌢","\\smallfrown"),V($,ke,De,"≏","\\bumpeq",!0),V($,ke,De,"≎","\\Bumpeq",!0),V($,ke,De,"≧","\\geqq",!0),V($,ke,De,"⩾","\\geqslant",!0),V($,ke,De,"⪖","\\eqslantgtr",!0),V($,ke,De,"≳","\\gtrsim",!0),V($,ke,De,"⪆","\\gtrapprox",!0),V($,ke,$t,"⋗","\\gtrdot"),V($,ke,De,"⋙","\\ggg",!0),V($,ke,De,"≷","\\gtrless",!0),V($,ke,De,"⋛","\\gtreqless",!0),V($,ke,De,"⪌","\\gtreqqless",!0),V($,ke,De,"≖","\\eqcirc",!0),V($,ke,De,"≗","\\circeq",!0),V($,ke,De,"≜","\\triangleq",!0),V($,ke,De,"∼","\\thicksim"),V($,ke,De,"≈","\\thickapprox"),V($,ke,De,"⫆","\\supseteqq",!0),V($,ke,De,"⋑","\\Supset",!0),V($,ke,De,"⊐","\\sqsupset",!0),V($,ke,De,"≽","\\succcurlyeq",!0),V($,ke,De,"⋟","\\curlyeqsucc",!0),V($,ke,De,"≿","\\succsim",!0),V($,ke,De,"⪸","\\succapprox",!0),V($,ke,De,"⊳","\\vartriangleright"),V($,ke,De,"⊵","\\trianglerighteq"),V($,ke,De,"⊩","\\Vdash",!0),V($,ke,De,"∣","\\shortmid"),V($,ke,De,"∥","\\shortparallel"),V($,ke,De,"≬","\\between",!0),V($,ke,De,"⋔","\\pitchfork",!0),V($,ke,De,"∝","\\varpropto"),V($,ke,De,"◀","\\blacktriangleleft"),V($,ke,De,"∴","\\therefore",!0),V($,ke,De,"∍","\\backepsilon"),V($,ke,De,"▶","\\blacktriangleright"),V($,ke,De,"∵","\\because",!0),V($,ke,De,"⋘","\\llless"),V($,ke,De,"⋙","\\gggtr"),V($,ke,$t,"⊲","\\lhd"),V($,ke,$t,"⊳","\\rhd"),V($,ke,De,"≂","\\eqsim",!0),V($,ce,De,"⋈","\\Join"),V($,ke,De,"≑","\\Doteq",!0),V($,ke,$t,"∔","\\dotplus",!0),V($,ke,$t,"∖","\\smallsetminus"),V($,ke,$t,"⋒","\\Cap",!0),V($,ke,$t,"⋓","\\Cup",!0),V($,ke,$t,"⩞","\\doublebarwedge",!0),V($,ke,$t,"⊟","\\boxminus",!0),V($,ke,$t,"⊞","\\boxplus",!0),V($,ke,$t,"⋇","\\divideontimes",!0),V($,ke,$t,"⋉","\\ltimes",!0),V($,ke,$t,"⋊","\\rtimes",!0),V($,ke,$t,"⋋","\\leftthreetimes",!0),V($,ke,$t,"⋌","\\rightthreetimes",!0),V($,ke,$t,"⋏","\\curlywedge",!0),V($,ke,$t,"⋎","\\curlyvee",!0),V($,ke,$t,"⊝","\\circleddash",!0),V($,ke,$t,"⊛","\\circledast",!0),V($,ke,$t,"⋅","\\centerdot"),V($,ke,$t,"⊺","\\intercal",!0),V($,ke,$t,"⋒","\\doublecap"),V($,ke,$t,"⋓","\\doublecup"),V($,ke,$t,"⊠","\\boxtimes",!0),V($,ke,De,"⇢","\\dashrightarrow",!0),V($,ke,De,"⇠","\\dashleftarrow",!0),V($,ke,De,"⇇","\\leftleftarrows",!0),V($,ke,De,"⇆","\\leftrightarrows",!0),V($,ke,De,"⇚","\\Lleftarrow",!0),V($,ke,De,"↞","\\twoheadleftarrow",!0),V($,ke,De,"↢","\\leftarrowtail",!0),V($,ke,De,"↫","\\looparrowleft",!0),V($,ke,De,"⇋","\\leftrightharpoons",!0),V($,ke,De,"↶","\\curvearrowleft",!0),V($,ke,De,"↺","\\circlearrowleft",!0),V($,ke,De,"↰","\\Lsh",!0),V($,ke,De,"⇈","\\upuparrows",!0),V($,ke,De,"↿","\\upharpoonleft",!0),V($,ke,De,"⇃","\\downharpoonleft",!0),V($,ce,De,"⊶","\\origof",!0),V($,ce,De,"⊷","\\imageof",!0),V($,ke,De,"⊸","\\multimap",!0),V($,ke,De,"↭","\\leftrightsquigarrow",!0),V($,ke,De,"⇉","\\rightrightarrows",!0),V($,ke,De,"⇄","\\rightleftarrows",!0),V($,ke,De,"↠","\\twoheadrightarrow",!0),V($,ke,De,"↣","\\rightarrowtail",!0),V($,ke,De,"↬","\\looparrowright",!0),V($,ke,De,"↷","\\curvearrowright",!0),V($,ke,De,"↻","\\circlearrowright",!0),V($,ke,De,"↱","\\Rsh",!0),V($,ke,De,"⇊","\\downdownarrows",!0),V($,ke,De,"↾","\\upharpoonright",!0),V($,ke,De,"⇂","\\downharpoonright",!0),V($,ke,De,"⇝","\\rightsquigarrow",!0),V($,ke,De,"⇝","\\leadsto"),V($,ke,De,"⇛","\\Rrightarrow",!0),V($,ke,De,"↾","\\restriction"),V($,ce,Be,"‘","`"),V($,ce,Be,"$","\\$"),V(xt,ce,Be,"$","\\$"),V(xt,ce,Be,"$","\\textdollar"),V($,ce,Be,"%","\\%"),V(xt,ce,Be,"%","\\%"),V($,ce,Be,"_","\\_"),V(xt,ce,Be,"_","\\_"),V(xt,ce,Be,"_","\\textunderscore"),V($,ce,Be,"∠","\\angle",!0),V($,ce,Be,"∞","\\infty",!0),V($,ce,Be,"′","\\prime"),V($,ce,Be,"△","\\triangle"),V($,ce,Be,"Γ","\\Gamma",!0),V($,ce,Be,"Δ","\\Delta",!0),V($,ce,Be,"Θ","\\Theta",!0),V($,ce,Be,"Λ","\\Lambda",!0),V($,ce,Be,"Ξ","\\Xi",!0),V($,ce,Be,"Π","\\Pi",!0),V($,ce,Be,"Σ","\\Sigma",!0),V($,ce,Be,"Υ","\\Upsilon",!0),V($,ce,Be,"Φ","\\Phi",!0),V($,ce,Be,"Ψ","\\Psi",!0),V($,ce,Be,"Ω","\\Omega",!0),V($,ce,Be,"A","Α"),V($,ce,Be,"B","Β"),V($,ce,Be,"E","Ε"),V($,ce,Be,"Z","Ζ"),V($,ce,Be,"H","Η"),V($,ce,Be,"I","Ι"),V($,ce,Be,"K","Κ"),V($,ce,Be,"M","Μ"),V($,ce,Be,"N","Ν"),V($,ce,Be,"O","Ο"),V($,ce,Be,"P","Ρ"),V($,ce,Be,"T","Τ"),V($,ce,Be,"X","Χ"),V($,ce,Be,"¬","\\neg",!0),V($,ce,Be,"¬","\\lnot"),V($,ce,Be,"⊤","\\top"),V($,ce,Be,"⊥","\\bot"),V($,ce,Be,"∅","\\emptyset"),V($,ke,Be,"∅","\\varnothing"),V($,ce,pn,"α","\\alpha",!0),V($,ce,pn,"β","\\beta",!0),V($,ce,pn,"γ","\\gamma",!0),V($,ce,pn,"δ","\\delta",!0),V($,ce,pn,"ϵ","\\epsilon",!0),V($,ce,pn,"ζ","\\zeta",!0),V($,ce,pn,"η","\\eta",!0),V($,ce,pn,"θ","\\theta",!0),V($,ce,pn,"ι","\\iota",!0),V($,ce,pn,"κ","\\kappa",!0),V($,ce,pn,"λ","\\lambda",!0),V($,ce,pn,"μ","\\mu",!0),V($,ce,pn,"ν","\\nu",!0),V($,ce,pn,"ξ","\\xi",!0),V($,ce,pn,"ο","\\omicron",!0),V($,ce,pn,"π","\\pi",!0),V($,ce,pn,"ρ","\\rho",!0),V($,ce,pn,"σ","\\sigma",!0),V($,ce,pn,"τ","\\tau",!0),V($,ce,pn,"υ","\\upsilon",!0),V($,ce,pn,"ϕ","\\phi",!0),V($,ce,pn,"χ","\\chi",!0),V($,ce,pn,"ψ","\\psi",!0),V($,ce,pn,"ω","\\omega",!0),V($,ce,pn,"ε","\\varepsilon",!0),V($,ce,pn,"ϑ","\\vartheta",!0),V($,ce,pn,"ϖ","\\varpi",!0),V($,ce,pn,"ϱ","\\varrho",!0),V($,ce,pn,"ς","\\varsigma",!0),V($,ce,pn,"φ","\\varphi",!0),V($,ce,$t,"∗","*",!0),V($,ce,$t,"+","+"),V($,ce,$t,"−","-",!0),V($,ce,$t,"⋅","\\cdot",!0),V($,ce,$t,"∘","\\circ"),V($,ce,$t,"÷","\\div",!0),V($,ce,$t,"±","\\pm",!0),V($,ce,$t,"×","\\times",!0),V($,ce,$t,"∩","\\cap",!0),V($,ce,$t,"∪","\\cup",!0),V($,ce,$t,"∖","\\setminus"),V($,ce,$t,"∧","\\land"),V($,ce,$t,"∨","\\lor"),V($,ce,$t,"∧","\\wedge",!0),V($,ce,$t,"∨","\\vee",!0),V($,ce,Be,"√","\\surd"),V($,ce,br,"⟨","\\langle",!0),V($,ce,br,"∣","\\lvert"),V($,ce,br,"∥","\\lVert"),V($,ce,Bn,"?","?"),V($,ce,Bn,"!","!"),V($,ce,Bn,"⟩","\\rangle",!0),V($,ce,Bn,"∣","\\rvert"),V($,ce,Bn,"∥","\\rVert"),V($,ce,De,"=","="),V($,ce,De,":",":"),V($,ce,De,"≈","\\approx",!0),V($,ce,De,"≅","\\cong",!0),V($,ce,De,"≥","\\ge"),V($,ce,De,"≥","\\geq",!0),V($,ce,De,"←","\\gets"),V($,ce,De,">","\\gt",!0),V($,ce,De,"∈","\\in",!0),V($,ce,De,"","\\@not"),V($,ce,De,"⊂","\\subset",!0),V($,ce,De,"⊃","\\supset",!0),V($,ce,De,"⊆","\\subseteq",!0),V($,ce,De,"⊇","\\supseteq",!0),V($,ke,De,"⊈","\\nsubseteq",!0),V($,ke,De,"⊉","\\nsupseteq",!0),V($,ce,De,"⊨","\\models"),V($,ce,De,"←","\\leftarrow",!0),V($,ce,De,"≤","\\le"),V($,ce,De,"≤","\\leq",!0),V($,ce,De,"<","\\lt",!0),V($,ce,De,"→","\\rightarrow",!0),V($,ce,De,"→","\\to"),V($,ke,De,"≱","\\ngeq",!0),V($,ke,De,"≰","\\nleq",!0),V($,ce,jr," ","\\ "),V($,ce,jr," ","\\space"),V($,ce,jr," ","\\nobreakspace"),V(xt,ce,jr," ","\\ "),V(xt,ce,jr," "," "),V(xt,ce,jr," ","\\space"),V(xt,ce,jr," ","\\nobreakspace"),V($,ce,jr,null,"\\nobreak"),V($,ce,jr,null,"\\allowbreak"),V($,ce,Ta,",",","),V($,ce,Ta,";",";"),V($,ke,$t,"⊼","\\barwedge",!0),V($,ke,$t,"⊻","\\veebar",!0),V($,ce,$t,"⊙","\\odot",!0),V($,ce,$t,"⊕","\\oplus",!0),V($,ce,$t,"⊗","\\otimes",!0),V($,ce,Be,"∂","\\partial",!0),V($,ce,$t,"⊘","\\oslash",!0),V($,ke,$t,"⊚","\\circledcirc",!0),V($,ke,$t,"⊡","\\boxdot",!0),V($,ce,$t,"△","\\bigtriangleup"),V($,ce,$t,"▽","\\bigtriangledown"),V($,ce,$t,"†","\\dagger"),V($,ce,$t,"⋄","\\diamond"),V($,ce,$t,"⋆","\\star"),V($,ce,$t,"◃","\\triangleleft"),V($,ce,$t,"▹","\\triangleright"),V($,ce,br,"{","\\{"),V(xt,ce,Be,"{","\\{"),V(xt,ce,Be,"{","\\textbraceleft"),V($,ce,Bn,"}","\\}"),V(xt,ce,Be,"}","\\}"),V(xt,ce,Be,"}","\\textbraceright"),V($,ce,br,"{","\\lbrace"),V($,ce,Bn,"}","\\rbrace"),V($,ce,br,"[","\\lbrack",!0),V(xt,ce,Be,"[","\\lbrack",!0),V($,ce,Bn,"]","\\rbrack",!0),V(xt,ce,Be,"]","\\rbrack",!0),V($,ce,br,"(","\\lparen",!0),V($,ce,Bn,")","\\rparen",!0),V(xt,ce,Be,"<","\\textless",!0),V(xt,ce,Be,">","\\textgreater",!0),V($,ce,br,"⌊","\\lfloor",!0),V($,ce,Bn,"⌋","\\rfloor",!0),V($,ce,br,"⌈","\\lceil",!0),V($,ce,Bn,"⌉","\\rceil",!0),V($,ce,Be,"\\","\\backslash"),V($,ce,Be,"∣","|"),V($,ce,Be,"∣","\\vert"),V(xt,ce,Be,"|","\\textbar",!0),V($,ce,Be,"∥","\\|"),V($,ce,Be,"∥","\\Vert"),V(xt,ce,Be,"∥","\\textbardbl"),V(xt,ce,Be,"~","\\textasciitilde"),V(xt,ce,Be,"\\","\\textbackslash"),V(xt,ce,Be,"^","\\textasciicircum"),V($,ce,De,"↑","\\uparrow",!0),V($,ce,De,"⇑","\\Uparrow",!0),V($,ce,De,"↓","\\downarrow",!0),V($,ce,De,"⇓","\\Downarrow",!0),V($,ce,De,"↕","\\updownarrow",!0),V($,ce,De,"⇕","\\Updownarrow",!0),V($,ce,Ci,"∐","\\coprod"),V($,ce,Ci,"⋁","\\bigvee"),V($,ce,Ci,"⋀","\\bigwedge"),V($,ce,Ci,"⨄","\\biguplus"),V($,ce,Ci,"⋂","\\bigcap"),V($,ce,Ci,"⋃","\\bigcup"),V($,ce,Ci,"∫","\\int"),V($,ce,Ci,"∫","\\intop"),V($,ce,Ci,"∬","\\iint"),V($,ce,Ci,"∭","\\iiint"),V($,ce,Ci,"∏","\\prod"),V($,ce,Ci,"∑","\\sum"),V($,ce,Ci,"⨂","\\bigotimes"),V($,ce,Ci,"⨁","\\bigoplus"),V($,ce,Ci,"⨀","\\bigodot"),V($,ce,Ci,"∮","\\oint"),V($,ce,Ci,"∯","\\oiint"),V($,ce,Ci,"∰","\\oiiint"),V($,ce,Ci,"⨆","\\bigsqcup"),V($,ce,Ci,"∫","\\smallint"),V(xt,ce,ks,"…","\\textellipsis"),V($,ce,ks,"…","\\mathellipsis"),V(xt,ce,ks,"…","\\ldots",!0),V($,ce,ks,"…","\\ldots",!0),V($,ce,ks,"⋯","\\@cdots",!0),V($,ce,ks,"⋱","\\ddots",!0),V($,ce,Be,"⋮","\\varvdots"),V($,ce,ci,"ˊ","\\acute"),V($,ce,ci,"ˋ","\\grave"),V($,ce,ci,"¨","\\ddot"),V($,ce,ci,"~","\\tilde"),V($,ce,ci,"ˉ","\\bar"),V($,ce,ci,"˘","\\breve"),V($,ce,ci,"ˇ","\\check"),V($,ce,ci,"^","\\hat"),V($,ce,ci,"⃗","\\vec"),V($,ce,ci,"˙","\\dot"),V($,ce,ci,"˚","\\mathring"),V($,ce,pn,"","\\@imath"),V($,ce,pn,"","\\@jmath"),V($,ce,Be,"ı","ı"),V($,ce,Be,"ȷ","ȷ"),V(xt,ce,Be,"ı","\\i",!0),V(xt,ce,Be,"ȷ","\\j",!0),V(xt,ce,Be,"ß","\\ss",!0),V(xt,ce,Be,"æ","\\ae",!0),V(xt,ce,Be,"œ","\\oe",!0),V(xt,ce,Be,"ø","\\o",!0),V(xt,ce,Be,"Æ","\\AE",!0),V(xt,ce,Be,"Œ","\\OE",!0),V(xt,ce,Be,"Ø","\\O",!0),V(xt,ce,ci,"ˊ","\\'"),V(xt,ce,ci,"ˋ","\\`"),V(xt,ce,ci,"ˆ","\\^"),V(xt,ce,ci,"˜","\\~"),V(xt,ce,ci,"ˉ","\\="),V(xt,ce,ci,"˘","\\u"),V(xt,ce,ci,"˙","\\."),V(xt,ce,ci,"¸","\\c"),V(xt,ce,ci,"˚","\\r"),V(xt,ce,ci,"ˇ","\\v"),V(xt,ce,ci,"¨",'\\"'),V(xt,ce,ci,"˝","\\H"),V(xt,ce,ci,"◯","\\textcircled");var Ja={"--":!0,"---":!0,"``":!0,"''":!0};V(xt,ce,Be,"–","--",!0),V(xt,ce,Be,"–","\\textendash"),V(xt,ce,Be,"—","---",!0),V(xt,ce,Be,"—","\\textemdash"),V(xt,ce,Be,"‘","`",!0),V(xt,ce,Be,"‘","\\textquoteleft"),V(xt,ce,Be,"’","'",!0),V(xt,ce,Be,"’","\\textquoteright"),V(xt,ce,Be,"“","``",!0),V(xt,ce,Be,"“","\\textquotedblleft"),V(xt,ce,Be,"”","''",!0),V(xt,ce,Be,"”","\\textquotedblright"),V($,ce,Be,"°","\\degree",!0),V(xt,ce,Be,"°","\\degree"),V(xt,ce,Be,"°","\\textdegree",!0),V($,ce,Be,"£","\\pounds"),V($,ce,Be,"£","\\mathsterling",!0),V(xt,ce,Be,"£","\\pounds"),V(xt,ce,Be,"£","\\textsterling",!0),V($,ke,Be,"✠","\\maltese"),V(xt,ke,Be,"✠","\\maltese");for(var gc='0123456789/@."',vc=0;vcw&&(w=K.height),K.depth>k&&(k=K.depth),K.maxFontSize>O&&(O=K.maxFontSize)}b.height=w,b.depth=k,b.maxFontSize=O},Vi=function(b,w,k,O){var U=new xn(b,w,k,O);return To(U),U},_c=function(b,w,k,O){return new xn(b,w,k,O)},Cu=function(b,w,k){var O=Vi([b],[],w);return O.height=Math.max(k||w.fontMetrics().defaultRuleThickness,w.minRuleThickness),O.style.borderBottomWidth=wt(O.height),O.maxFontSize=1,O},ns=function(b,w,k,O){var U=new Dn(b,w,k,O);return To(U),U},Da=function(b){var w=new Ze(b);return To(w),w},gl=function(b,w){return b instanceof Ze?Vi([],[b],w):b},vl=function(b){if(b.positionType==="individualShift"){for(var w=b.children,k=[w[0]],O=-w[0].shift-w[0].elem.depth,U=O,K=1;K0&&(U.push(El(K,b)),K=[]),U.push(k[le]));K.length>0&&U.push(El(K,b));var we;w?(we=El(tr(w,b,!0)),we.classes=["tag"],U.push(we)):O&&U.push(O);var Le=la(["katex-html"],U);if(Le.setAttribute("aria-hidden","true"),we){var tt=we.children[0];tt.style.height=wt(Le.height+Le.depth),Le.depth&&(tt.style.verticalAlign=wt(-Le.depth))}return Le}function S(X){return new Ze(X)}var P=function(){function X(w,k,O){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=w,this.attributes={},this.children=k||[],this.classes=O||[]}var b=X.prototype;return b.setAttribute=function(k,O){this.attributes[k]=O},b.getAttribute=function(k){return this.attributes[k]},b.toNode=function(){var k=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var O in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,O)&&k.setAttribute(O,this.attributes[O]);this.classes.length>0&&(k.className=dn(this.classes));for(var U=0;U0&&(k+=' class ="'+y.escape(dn(this.classes))+'"'),k+=">";for(var U=0;U",k},b.toText=function(){return this.children.map(function(k){return k.toText()}).join("")},X}(),G=function(){function X(w){this.text=void 0,this.text=w}var b=X.prototype;return b.toNode=function(){return document.createTextNode(this.text)},b.toMarkup=function(){return y.escape(this.toText())},b.toText=function(){return this.text},X}(),Q=function(){function X(w){this.width=void 0,this.character=void 0,this.width=w,w>=.05555&&w<=.05556?this.character=" ":w>=.1666&&w<=.1667?this.character=" ":w>=.2222&&w<=.2223?this.character=" ":w>=.2777&&w<=.2778?this.character="  ":w>=-.05556&&w<=-.05555?this.character=" ⁣":w>=-.1667&&w<=-.1666?this.character=" ⁣":w>=-.2223&&w<=-.2222?this.character=" ⁣":w>=-.2778&&w<=-.2777?this.character=" ⁣":this.character=null}var b=X.prototype;return b.toNode=function(){if(this.character)return document.createTextNode(this.character);var k=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return k.setAttribute("width",wt(this.width)),k},b.toMarkup=function(){return this.character?""+this.character+"":''},b.toText=function(){return this.character?this.character:" "},X}(),J={MathNode:P,TextNode:G,SpaceNode:Q,newDocumentFragment:S},oe=function(b,w,k){return si[w][b]&&si[w][b].replace&&b.charCodeAt(0)!==55349&&!(Ja.hasOwnProperty(b)&&k&&(k.fontFamily&&k.fontFamily.substr(4,2)==="tt"||k.font&&k.font.substr(4,2)==="tt"))&&(b=si[w][b].replace),new J.TextNode(b)},he=function(b){return b.length===1?b[0]:new J.MathNode("mrow",b)},Ie=function(b,w){if(w.fontFamily==="texttt")return"monospace";if(w.fontFamily==="textsf")return w.fontShape==="textit"&&w.fontWeight==="textbf"?"sans-serif-bold-italic":w.fontShape==="textit"?"sans-serif-italic":w.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(w.fontShape==="textit"&&w.fontWeight==="textbf")return"bold-italic";if(w.fontShape==="textit")return"italic";if(w.fontWeight==="textbf")return"bold";var k=w.font;if(!k||k==="mathnormal")return null;var O=b.mode;if(k==="mathit")return"italic";if(k==="boldsymbol")return b.type==="textord"?"bold":"bold-italic";if(k==="mathbf")return"bold";if(k==="mathbb")return"double-struck";if(k==="mathfrak")return"fraktur";if(k==="mathscr"||k==="mathcal")return"script";if(k==="mathsf")return"sans-serif";if(k==="mathtt")return"monospace";var U=b.text;if(y.contains(["\\imath","\\jmath"],U))return null;si[O][U]&&si[O][U].replace&&(U=si[O][U].replace);var K=Je.fontMap[k].fontName;return Ue(U,K,O)?Je.fontMap[k].variant:null},Te=function(b,w,k){if(b.length===1){var O=Xe(b[0],w);return k&&O instanceof P&&O.type==="mo"&&(O.setAttribute("lspace","0em"),O.setAttribute("rspace","0em")),[O]}for(var U=[],K,le=0;le0&&(Dt.text=Dt.text.slice(0,1)+"̸"+Dt.text.slice(1),U.pop())}}}U.push(me),K=me}return U},He=function(b,w,k){return he(Te(b,w,k))},Xe=function(b,w){if(!b)return new J.MathNode("mrow");if(yl[b.type]){var k=yl[b.type](b,w);return k}else throw new s("Got group of unknown type: '"+b.type+"'")};function mt(X,b,w,k,O){var U=Te(X,w),K;U.length===1&&U[0]instanceof P&&y.contains(["mrow","mtable"],U[0].type)?K=U[0]:K=new J.MathNode("mrow",U);var le=new J.MathNode("annotation",[new J.TextNode(b)]);le.setAttribute("encoding","application/x-tex");var me=new J.MathNode("semantics",[K,le]),we=new J.MathNode("math",[me]);we.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),k&&we.setAttribute("display","block");var Le=O?"katex":"katex-mathml";return Je.makeSpan([Le],[we])}var nt=function(b){return new vn({style:b.displayMode?re.DISPLAY:re.TEXT,maxSize:b.maxSize,minRuleThickness:b.minRuleThickness})},It=function(b,w){if(w.displayMode){var k=["katex-display"];w.leqno&&k.push("leqno"),w.fleqn&&k.push("fleqn"),b=Je.makeSpan(k,[b])}return b},Sn=function(b,w,k){var O=nt(k),U;if(k.output==="mathml")return mt(b,w,O,k.displayMode,!0);if(k.output==="html"){var K=Cc(b,O);U=Je.makeSpan(["katex"],[K])}else{var le=mt(b,w,O,k.displayMode,!1),me=Cc(b,O);U=Je.makeSpan(["katex"],[le,me])}return It(U,k)},Fn=function(b,w,k){var O=nt(k),U=Cc(b,O),K=Je.makeSpan(["katex"],[U]);return It(K,k)},In={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},nr=function(b){var w=new J.MathNode("mo",[new J.TextNode(In[b.replace(/^\\/,"")])]);return w.setAttribute("stretchy","true"),w},Wi={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},ca=function(b){return b.type==="ordgroup"?b.body.length:1},ua=function(b,w){function k(){var me=4e5,we=b.label.substr(1);if(y.contains(["widehat","widecheck","widetilde","utilde"],we)){var Le=b,tt=ca(Le.base),yt,Tt,Dt;if(tt>5)we==="widehat"||we==="widecheck"?(yt=420,me=2364,Dt=.42,Tt=we+"4"):(yt=312,me=2340,Dt=.34,Tt="tilde4");else{var Gt=[1,1,2,2,3,3][tt];we==="widehat"||we==="widecheck"?(me=[0,1062,2364,2364,2364][Gt],yt=[0,239,300,360,420][Gt],Dt=[0,.24,.3,.3,.36,.42][Gt],Tt=we+Gt):(me=[0,600,1033,2339,2340][Gt],yt=[0,260,286,306,312][Gt],Dt=[0,.26,.286,.3,.306,.34][Gt],Tt="tilde"+Gt)}var Wt=new ki(Tt),sn=new ii([Wt],{width:"100%",height:wt(Dt),viewBox:"0 0 "+me+" "+yt,preserveAspectRatio:"none"});return{span:Je.makeSvgSpan([],[sn],w),minWidth:0,height:Dt}}else{var ln=[],bn=Wi[we],$n=bn[0],di=bn[1],Fi=bn[2],li=Fi/1e3,hi=$n.length,ir,Si;if(hi===1){var La=bn[3];ir=["hide-tail"],Si=[La]}else if(hi===2)ir=["halfarrow-left","halfarrow-right"],Si=["xMinYMin","xMaxYMin"];else if(hi===3)ir=["brace-left","brace-center","brace-right"],Si=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+hi+" children.");for(var Oa=0;Oa0&&(U.style.minWidth=wt(K)),U},Pn=function(b,w,k,O,U){var K,le=b.height+b.depth+k+O;if(/fbox|color|angl/.test(w)){if(K=Je.makeSpan(["stretchy",w],[],U),w==="fbox"){var me=U.color&&U.getColor();me&&(K.style.borderColor=me)}}else{var we=[];/^[bx]cancel$/.test(w)&&we.push(new Or({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(w)&&we.push(new Or({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Le=new ii(we,{width:"100%",height:wt(le)});K=Je.makeSvgSpan([],[Le],U)}return K.height=le,K.style.height=wt(le),K},ur={encloseSpan:Pn,mathMLnode:nr,svgSpan:ua};function Yt(X,b){if(!X||X.type!==b)throw new Error("Expected node of type "+b+", but got "+(X?"node of type "+X.type:String(X)));return X}function mi(X){var b=is(X);if(!b)throw new Error("Expected node of symbol group type, but got "+(X?"node of type "+X.type:String(X)));return b}function is(X){return X&&(X.type==="atom"||Ts.hasOwnProperty(X.type))?X:null}var Do=function(b,w){var k,O,U;b&&b.type==="supsub"?(O=Yt(b.base,"accent"),k=O.base,b.base=k,U=xi(Un(b,w)),b.base=O):(O=Yt(b,"accent"),k=O.base);var K=Un(k,w.havingCrampedStyle()),le=O.isShifty&&y.isCharacterBox(k),me=0;if(le){var we=y.getBaseElem(k),Le=Un(we,w.havingCrampedStyle());me=Bi(Le).skew}var tt=O.label==="\\c",yt=tt?K.height+K.depth:Math.min(K.height,w.fontMetrics().xHeight),Tt;if(O.isStretchy)Tt=ur.svgSpan(O,w),Tt=Je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:K},{type:"elem",elem:Tt,wrapperClasses:["svg-align"],wrapperStyle:me>0?{width:"calc(100% - "+wt(2*me)+")",marginLeft:wt(2*me)}:void 0}]},w);else{var Dt,Gt;O.label==="\\vec"?(Dt=Je.staticSvg("vec",w),Gt=Je.svgData.vec[1]):(Dt=Je.makeOrd({mode:O.mode,text:O.label},w,"textord"),Dt=Bi(Dt),Dt.italic=0,Gt=Dt.width,tt&&(yt+=Dt.depth)),Tt=Je.makeSpan(["accent-body"],[Dt]);var Wt=O.label==="\\textcircled";Wt&&(Tt.classes.push("accent-full"),yt=K.height);var sn=me;Wt||(sn-=Gt/2),Tt.style.left=wt(sn),O.label==="\\textcircled"&&(Tt.style.top=".2em"),Tt=Je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:K},{type:"kern",size:-yt},{type:"elem",elem:Tt}]},w)}var ln=Je.makeSpan(["mord","accent"],[Tt],w);return U?(U.children[0]=ln,U.height=Math.max(ln.height,U.height),U.classes[0]="mord",U):ln},$r=function(b,w){var k=b.isStretchy?ur.mathMLnode(b.label):new J.MathNode("mo",[oe(b.label,b.mode)]),O=new J.MathNode("mover",[Xe(b.base,w),k]);return O.setAttribute("accent","true"),O},No=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(X){return"\\"+X}).join("|"));Kt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(b,w){var k=to(w[0]),O=!No.test(b.funcName),U=!O||b.funcName==="\\widehat"||b.funcName==="\\widetilde"||b.funcName==="\\widecheck";return{type:"accent",mode:b.parser.mode,label:b.funcName,isStretchy:O,isShifty:U,base:k}},htmlBuilder:Do,mathmlBuilder:$r}),Kt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(b,w){var k=w[0],O=b.parser.mode;return O==="math"&&(b.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+b.funcName+" works only in text mode"),O="text"),{type:"accent",mode:O,label:b.funcName,isStretchy:!1,isShifty:!0,base:k}},htmlBuilder:Do,mathmlBuilder:$r}),Kt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(b,w){var k=b.parser,O=b.funcName,U=w[0];return{type:"accentUnder",mode:k.mode,label:O,base:U}},htmlBuilder:function(b,w){var k=Un(b.base,w),O=ur.svgSpan(b,w),U=b.label==="\\utilde"?.12:0,K=Je.makeVList({positionType:"top",positionData:k.height,children:[{type:"elem",elem:O,wrapperClasses:["svg-align"]},{type:"kern",size:U},{type:"elem",elem:k}]},w);return Je.makeSpan(["mord","accentunder"],[K],w)},mathmlBuilder:function(b,w){var k=ur.mathMLnode(b.label),O=new J.MathNode("munder",[Xe(b.base,w),k]);return O.setAttribute("accentunder","true"),O}});var Tr=function(b){var w=new J.MathNode("mpadded",b?[b]:[]);return w.setAttribute("width","+0.6em"),w.setAttribute("lspace","0.3em"),w};Kt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(b,w,k){var O=b.parser,U=b.funcName;return{type:"xArrow",mode:O.mode,label:U,body:w[0],below:k[0]}},htmlBuilder:function(b,w){var k=w.style,O=w.havingStyle(k.sup()),U=Je.wrapFragment(Un(b.body,O,w),w),K=b.label.slice(0,2)==="\\x"?"x":"cd";U.classes.push(K+"-arrow-pad");var le;b.below&&(O=w.havingStyle(k.sub()),le=Je.wrapFragment(Un(b.below,O,w),w),le.classes.push(K+"-arrow-pad"));var me=ur.svgSpan(b,w),we=-w.fontMetrics().axisHeight+.5*me.height,Le=-w.fontMetrics().axisHeight-.5*me.height-.111;(U.depth>.25||b.label==="\\xleftequilibrium")&&(Le-=U.depth);var tt;if(le){var yt=-w.fontMetrics().axisHeight+le.height+.5*me.height+.111;tt=Je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:U,shift:Le},{type:"elem",elem:me,shift:we},{type:"elem",elem:le,shift:yt}]},w)}else tt=Je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:U,shift:Le},{type:"elem",elem:me,shift:we}]},w);return tt.children[0].children[0].children[1].classes.push("svg-align"),Je.makeSpan(["mrel","x-arrow"],[tt],w)},mathmlBuilder:function(b,w){var k=ur.mathMLnode(b.label);k.setAttribute("minsize",b.label.charAt(0)==="x"?"1.75em":"3.0em");var O;if(b.body){var U=Tr(Xe(b.body,w));if(b.below){var K=Tr(Xe(b.below,w));O=new J.MathNode("munderover",[k,K,U])}else O=new J.MathNode("mover",[k,U])}else if(b.below){var le=Tr(Xe(b.below,w));O=new J.MathNode("munder",[k,le])}else O=Tr(),O=new J.MathNode("mover",[k,O]);return O}});var rs={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Na=function(){return{type:"styling",body:[],mode:"math",style:"display"}},kr=function(b){return b.type==="textord"&&b.text==="@"},Sc=function(b,w){return(b.type==="mathord"||b.type==="atom")&&b.text===w};function Ia(X,b,w){var k=rs[X];switch(k){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return w.callFunction(k,[b[0]],[b[1]]);case"\\uparrow":case"\\downarrow":{var O=w.callFunction("\\\\cdleft",[b[0]],[]),U={type:"atom",text:k,mode:"math",family:"rel"},K=w.callFunction("\\Big",[U],[]),le=w.callFunction("\\\\cdright",[b[1]],[]),me={type:"ordgroup",mode:"math",body:[O,K,le]};return w.callFunction("\\\\cdparent",[me],[])}case"\\\\cdlongequal":return w.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var we={type:"textord",text:"\\Vert",mode:"math"};return w.callFunction("\\Big",[we],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Ma(X){var b=[];for(X.gullet.beginGroup(),X.gullet.macros.set("\\cr","\\\\\\relax"),X.gullet.beginGroup();;){b.push(X.parseExpression(!1,"\\\\")),X.gullet.endGroup(),X.gullet.beginGroup();var w=X.fetch().text;if(w==="&"||w==="\\\\")X.consume();else if(w==="\\end"){b[b.length-1].length===0&&b.pop();break}else throw new s("Expected \\\\ or \\cr or \\end",X.nextToken)}for(var k=[],O=[k],U=0;U-1))if("<>AV".indexOf(we)>-1)for(var tt=0;tt<2;tt++){for(var yt=!0,Tt=me+1;TtAV=|." after @',K[me]);var Dt=Ia(we,Le,X),Gt={type:"styling",body:[Dt],mode:"math",style:"display"};k.push(Gt),le=Na()}U%2===0?k.push(le):k.shift(),k=[],O.push(k)}X.gullet.endGroup(),X.gullet.endGroup();var Wt=new Array(O[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:O,arraystretch:1,addJot:!0,rowGaps:[null],cols:Wt,colSeparationType:"CD",hLinesBeforeRow:new Array(O.length+1).fill([])}}Kt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(b,w){var k=b.parser,O=b.funcName;return{type:"cdlabel",mode:k.mode,side:O.slice(4),label:w[0]}},htmlBuilder:function(b,w){var k=w.havingStyle(w.style.sup()),O=Je.wrapFragment(Un(b.label,k,w),w);return O.classes.push("cd-label-"+b.side),O.style.bottom=wt(.8-O.depth),O.height=0,O.depth=0,O},mathmlBuilder:function(b,w){var k=new J.MathNode("mrow",[Xe(b.label,w)]);return k=new J.MathNode("mpadded",[k]),k.setAttribute("width","0"),b.side==="left"&&k.setAttribute("lspace","-1width"),k.setAttribute("voffset","0.7em"),k=new J.MathNode("mstyle",[k]),k.setAttribute("displaystyle","false"),k.setAttribute("scriptlevel","1"),k}}),Kt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(b,w){var k=b.parser;return{type:"cdlabelparent",mode:k.mode,fragment:w[0]}},htmlBuilder:function(b,w){var k=Je.wrapFragment(Un(b.fragment,w),w);return k.classes.push("cd-vert-arrow"),k},mathmlBuilder:function(b,w){return new J.MathNode("mrow",[Xe(b.fragment,w)])}}),Kt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(b,w){for(var k=b.parser,O=Yt(w[0],"ordgroup"),U=O.body,K="",le=0;le=1114111)throw new s("\\@char with invalid code point "+K);return we<=65535?Le=String.fromCharCode(we):(we-=65536,Le=String.fromCharCode((we>>10)+55296,(we&1023)+56320)),{type:"textord",mode:k.mode,text:Le}}});var Iu=function(b,w){var k=tr(b.body,w.withColor(b.color),!1);return Je.makeFragment(k)},Mu=function(b,w){var k=Te(b.body,w.withColor(b.color)),O=new J.MathNode("mstyle",k);return O.setAttribute("mathcolor",b.color),O};Kt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(b,w){var k=b.parser,O=Yt(w[0],"color-token").color,U=w[1];return{type:"color",mode:k.mode,color:O,body:pi(U)}},htmlBuilder:Iu,mathmlBuilder:Mu}),Kt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(b,w){var k=b.parser,O=b.breakOnTokenText,U=Yt(w[0],"color-token").color;k.gullet.macros.set("\\current@color",U);var K=k.parseExpression(!0,O);return{type:"color",mode:k.mode,color:U,body:K}},htmlBuilder:Iu,mathmlBuilder:Mu}),Kt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(b,w,k){var O=b.parser,U=k[0],K=!O.settings.displayMode||!O.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:O.mode,newLine:K,size:U&&Yt(U,"size").value}},htmlBuilder:function(b,w){var k=Je.makeSpan(["mspace"],[],w);return b.newLine&&(k.classes.push("newline"),b.size&&(k.style.marginTop=wt(un(b.size,w)))),k},mathmlBuilder:function(b,w){var k=new J.MathNode("mspace");return b.newLine&&(k.setAttribute("linebreak","newline"),b.size&&k.setAttribute("height",wt(un(b.size,w)))),k}});var Tc={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Yn=function(b){var w=b.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(w))throw new s("Expected a control sequence",b);return w},Al=function(b){var w=b.gullet.popToken();return w.text==="="&&(w=b.gullet.popToken(),w.text===" "&&(w=b.gullet.popToken())),w},Fr=function(b,w,k,O){var U=b.gullet.macros.get(k.text);U==null&&(k.noexpand=!0,U={tokens:[k],numArgs:0,unexpandable:!b.gullet.isExpandable(k.text)}),b.gullet.macros.set(w,U,O)};Kt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(b){var w=b.parser,k=b.funcName;w.consumeSpaces();var O=w.fetch();if(Tc[O.text])return(k==="\\global"||k==="\\\\globallong")&&(O.text=Tc[O.text]),Yt(w.parseFunction(),"internal");throw new s("Invalid token after macro prefix",O)}}),Kt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(b){var w=b.parser,k=b.funcName,O=w.gullet.popToken(),U=O.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(U))throw new s("Expected a control sequence",O);for(var K=0,le,me=[[]];w.gullet.future().text!=="{";)if(O=w.gullet.popToken(),O.text==="#"){if(w.gullet.future().text==="{"){le=w.gullet.future(),me[K].push("{");break}if(O=w.gullet.popToken(),!/^[1-9]$/.test(O.text))throw new s('Invalid argument number "'+O.text+'"');if(parseInt(O.text)!==K+1)throw new s('Argument number "'+O.text+'" out of order');K++,me.push([])}else{if(O.text==="EOF")throw new s("Expected a macro definition");me[K].push(O.text)}var we=w.gullet.consumeArg(),Le=we.tokens;return le&&Le.unshift(le),(k==="\\edef"||k==="\\xdef")&&(Le=w.gullet.expandTokens(Le),Le.reverse()),w.gullet.macros.set(U,{tokens:Le,numArgs:K,delimiters:me},k===Tc[k]),{type:"internal",mode:w.mode}}}),Kt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(b){var w=b.parser,k=b.funcName,O=Yn(w.gullet.popToken());w.gullet.consumeSpaces();var U=Al(w);return Fr(w,O,U,k==="\\\\globallet"),{type:"internal",mode:w.mode}}}),Kt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(b){var w=b.parser,k=b.funcName,O=Yn(w.gullet.popToken()),U=w.gullet.popToken(),K=w.gullet.popToken();return Fr(w,O,K,k==="\\\\globalfuture"),w.gullet.pushToken(K),w.gullet.pushToken(U),{type:"internal",mode:w.mode}}});var _=function(b,w,k){var O=si.math[b]&&si.math[b].replace,U=Ue(O||b,w,k);if(!U)throw new Error("Unsupported symbol "+b+" and font size "+w+".");return U},E=function(b,w,k,O){var U=k.havingBaseStyle(w),K=Je.makeSpan(O.concat(U.sizingClasses(k)),[b],k),le=U.sizeMultiplier/k.sizeMultiplier;return K.height*=le,K.depth*=le,K.maxFontSize=U.sizeMultiplier,K},x=function(b,w,k){var O=w.havingBaseStyle(k),U=(1-w.sizeMultiplier/O.sizeMultiplier)*w.fontMetrics().axisHeight;b.classes.push("delimcenter"),b.style.top=wt(U),b.height-=U,b.depth+=U},L=function(b,w,k,O,U,K){var le=Je.makeSymbol(b,"Main-Regular",U,O),me=E(le,w,O,K);return k&&x(me,O,w),me},D=function(b,w,k,O){return Je.makeSymbol(b,"Size"+w+"-Regular",k,O)},F=function(b,w,k,O,U,K){var le=D(b,w,U,O),me=E(Je.makeSpan(["delimsizing","size"+w],[le],O),re.TEXT,O,K);return k&&x(me,O,re.TEXT),me},Z=function(b,w,k){var O;w==="Size1-Regular"?O="delim-size1":O="delim-size4";var U=Je.makeSpan(["delimsizinginner",O],[Je.makeSpan([],[Je.makeSymbol(b,w,k)])]);return{type:"elem",elem:U}},fe=function(b,w,k){var O=Ye["Size4-Regular"][b.charCodeAt(0)]?Ye["Size4-Regular"][b.charCodeAt(0)][4]:Ye["Size1-Regular"][b.charCodeAt(0)][4],U=new ki("inner",Qt(b,Math.round(1e3*w))),K=new ii([U],{width:wt(O),height:wt(w),style:"width:"+wt(O),viewBox:"0 0 "+1e3*O+" "+Math.round(1e3*w),preserveAspectRatio:"xMinYMin"}),le=Je.makeSvgSpan([],[K],k);return le.height=w,le.style.height=wt(w),le.style.width=wt(O),{type:"elem",elem:le}},Ae=.008,ye={type:"kern",size:-1*Ae},_e=["|","\\lvert","\\rvert","\\vert"],it=["\\|","\\lVert","\\rVert","\\Vert"],Nt=function(b,w,k,O,U,K){var le,me,we,Le;le=we=Le=b,me=null;var tt="Size1-Regular";b==="\\uparrow"?we=Le="⏐":b==="\\Uparrow"?we=Le="‖":b==="\\downarrow"?le=we="⏐":b==="\\Downarrow"?le=we="‖":b==="\\updownarrow"?(le="\\uparrow",we="⏐",Le="\\downarrow"):b==="\\Updownarrow"?(le="\\Uparrow",we="‖",Le="\\Downarrow"):y.contains(_e,b)?we="∣":y.contains(it,b)?we="∥":b==="["||b==="\\lbrack"?(le="⎡",we="⎢",Le="⎣",tt="Size4-Regular"):b==="]"||b==="\\rbrack"?(le="⎤",we="⎥",Le="⎦",tt="Size4-Regular"):b==="\\lfloor"||b==="⌊"?(we=le="⎢",Le="⎣",tt="Size4-Regular"):b==="\\lceil"||b==="⌈"?(le="⎡",we=Le="⎢",tt="Size4-Regular"):b==="\\rfloor"||b==="⌋"?(we=le="⎥",Le="⎦",tt="Size4-Regular"):b==="\\rceil"||b==="⌉"?(le="⎤",we=Le="⎥",tt="Size4-Regular"):b==="("||b==="\\lparen"?(le="⎛",we="⎜",Le="⎝",tt="Size4-Regular"):b===")"||b==="\\rparen"?(le="⎞",we="⎟",Le="⎠",tt="Size4-Regular"):b==="\\{"||b==="\\lbrace"?(le="⎧",me="⎨",Le="⎩",we="⎪",tt="Size4-Regular"):b==="\\}"||b==="\\rbrace"?(le="⎫",me="⎬",Le="⎭",we="⎪",tt="Size4-Regular"):b==="\\lgroup"||b==="⟮"?(le="⎧",Le="⎩",we="⎪",tt="Size4-Regular"):b==="\\rgroup"||b==="⟯"?(le="⎫",Le="⎭",we="⎪",tt="Size4-Regular"):b==="\\lmoustache"||b==="⎰"?(le="⎧",Le="⎭",we="⎪",tt="Size4-Regular"):(b==="\\rmoustache"||b==="⎱")&&(le="⎫",Le="⎩",we="⎪",tt="Size4-Regular");var yt=_(le,tt,U),Tt=yt.height+yt.depth,Dt=_(we,tt,U),Gt=Dt.height+Dt.depth,Wt=_(Le,tt,U),sn=Wt.height+Wt.depth,ln=0,bn=1;if(me!==null){var $n=_(me,tt,U);ln=$n.height+$n.depth,bn=2}var di=Tt+sn+ln,Fi=Math.max(0,Math.ceil((w-di)/(bn*Gt))),li=di+Fi*bn*Gt,hi=O.fontMetrics().axisHeight;k&&(hi*=O.sizeMultiplier);var ir=li/2-hi,Si=[];if(Si.push(Z(Le,tt,U)),Si.push(ye),me===null){var La=li-Tt-sn+2*Ae;Si.push(fe(we,La,O))}else{var Oa=(li-Tt-sn-ln)/2+2*Ae;Si.push(fe(we,Oa,O)),Si.push(ye),Si.push(Z(me,tt,U)),Si.push(ye),Si.push(fe(we,Oa,O))}Si.push(ye),Si.push(Z(le,tt,U));var xl=O.havingBaseStyle(re.TEXT),no=Je.makeVList({positionType:"bottom",positionData:ir,children:Si},xl);return E(Je.makeSpan(["delimsizing","mult"],[no],xl),re.TEXT,O,K)},Pt=80,Ve=.08,Mt=function(b,w,k,O,U){var K=Vt(b,O,k),le=new ki(b,K),me=new ii([le],{width:"400em",height:wt(w),viewBox:"0 0 400000 "+k,preserveAspectRatio:"xMinYMin slice"});return Je.makeSvgSpan(["hide-tail"],[me],U)},qt=function(b,w){var k=w.havingBaseSizing(),O=dt("\\surd",b*k.sizeMultiplier,lt,k),U=k.sizeMultiplier,K=Math.max(0,w.minRuleThickness-w.fontMetrics().sqrtRuleThickness),le,me=0,we=0,Le=0,tt;return O.type==="small"?(Le=1e3+1e3*K+Pt,b<1?U=1:b<1.4&&(U=.7),me=(1+K+Ve)/U,we=(1+K)/U,le=Mt("sqrtMain",me,Le,K,w),le.style.minWidth="0.853em",tt=.833/U):O.type==="large"?(Le=(1e3+Pt)*be[O.size],we=(be[O.size]+K)/U,me=(be[O.size]+K+Ve)/U,le=Mt("sqrtSize"+O.size,me,Le,K,w),le.style.minWidth="1.02em",tt=1/U):(me=b+K+Ve,we=b+K,Le=Math.floor(1e3*b+K)+Pt,le=Mt("sqrtTall",me,Le,K,w),le.style.minWidth="0.742em",tt=1.056),le.height=we,le.style.height=wt(me),{span:le,advanceWidth:tt,ruleWidth:(w.fontMetrics().sqrtRuleThickness+K)*U}},Ct=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],zt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],pe=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],be=[0,1.2,1.8,2.4,3],Me=function(b,w,k,O,U){if(b==="<"||b==="\\lt"||b==="⟨"?b="\\langle":(b===">"||b==="\\gt"||b==="⟩")&&(b="\\rangle"),y.contains(Ct,b)||y.contains(pe,b))return F(b,w,!1,k,O,U);if(y.contains(zt,b))return Nt(b,be[w],!1,k,O,U);throw new s("Illegal delimiter: '"+b+"'")},Fe=[{type:"small",style:re.SCRIPTSCRIPT},{type:"small",style:re.SCRIPT},{type:"small",style:re.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],We=[{type:"small",style:re.SCRIPTSCRIPT},{type:"small",style:re.SCRIPT},{type:"small",style:re.TEXT},{type:"stack"}],lt=[{type:"small",style:re.SCRIPTSCRIPT},{type:"small",style:re.SCRIPT},{type:"small",style:re.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ft=function(b){if(b.type==="small")return"Main-Regular";if(b.type==="large")return"Size"+b.size+"-Regular";if(b.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+b.type+"' here.")},dt=function(b,w,k,O){for(var U=Math.min(2,3-O.style.size),K=U;Kw)return k[K]}return k[k.length-1]},vt=function(b,w,k,O,U,K){b==="<"||b==="\\lt"||b==="⟨"?b="\\langle":(b===">"||b==="\\gt"||b==="⟩")&&(b="\\rangle");var le;y.contains(pe,b)?le=Fe:y.contains(Ct,b)?le=lt:le=We;var me=dt(b,w,le,O);return me.type==="small"?L(b,me.style,k,O,U,K):me.type==="large"?F(b,me.size,k,O,U,K):Nt(b,w,k,O,U,K)},en=function(b,w,k,O,U,K){var le=O.fontMetrics().axisHeight*O.sizeMultiplier,me=901,we=5/O.fontMetrics().ptPerEm,Le=Math.max(w-le,k+le),tt=Math.max(Le/500*me,2*Le-we);return vt(b,tt,!0,O,U,K)},Ut={sqrtImage:qt,sizedDelim:Me,sizeToMaxHeight:be,customSizedDelim:vt,leftRightDelim:en},cn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},gn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Jt(X,b){var w=is(X);if(w&&y.contains(gn,w.text))return w;throw w?new s("Invalid delimiter '"+w.text+"' after '"+b.funcName+"'",X):new s("Invalid delimiter type '"+X.type+"'",X)}Kt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(b,w){var k=Jt(w[0],b);return{type:"delimsizing",mode:b.parser.mode,size:cn[b.funcName].size,mclass:cn[b.funcName].mclass,delim:k.text}},htmlBuilder:function(b,w){return b.delim==="."?Je.makeSpan([b.mclass]):Ut.sizedDelim(b.delim,b.size,w,b.mode,[b.mclass])},mathmlBuilder:function(b){var w=[];b.delim!=="."&&w.push(oe(b.delim,b.mode));var k=new J.MathNode("mo",w);b.mclass==="mopen"||b.mclass==="mclose"?k.setAttribute("fence","true"):k.setAttribute("fence","false"),k.setAttribute("stretchy","true");var O=wt(Ut.sizeToMaxHeight[b.size]);return k.setAttribute("minsize",O),k.setAttribute("maxsize",O),k}});function Tn(X){if(!X.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Kt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(b,w){var k=b.parser.gullet.macros.get("\\current@color");if(k&&typeof k!="string")throw new s("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:b.parser.mode,delim:Jt(w[0],b).text,color:k}}}),Kt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(b,w){var k=Jt(w[0],b),O=b.parser;++O.leftrightDepth;var U=O.parseExpression(!1);--O.leftrightDepth,O.expect("\\right",!1);var K=Yt(O.parseFunction(),"leftright-right");return{type:"leftright",mode:O.mode,body:U,left:k.text,right:K.delim,rightColor:K.color}},htmlBuilder:function(b,w){Tn(b);for(var k=tr(b.body,w,!0,["mopen","mclose"]),O=0,U=0,K=!1,le=0;le-1?"mpadded":"menclose",[Xe(b.body,w)]);switch(b.label){case"\\cancel":O.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":O.setAttribute("notation","downdiagonalstrike");break;case"\\phase":O.setAttribute("notation","phasorangle");break;case"\\sout":O.setAttribute("notation","horizontalstrike");break;case"\\fbox":O.setAttribute("notation","box");break;case"\\angl":O.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(k=w.fontMetrics().fboxsep*w.fontMetrics().ptPerEm,O.setAttribute("width","+"+2*k+"pt"),O.setAttribute("height","+"+2*k+"pt"),O.setAttribute("lspace",k+"pt"),O.setAttribute("voffset",k+"pt"),b.label==="\\fcolorbox"){var U=Math.max(w.fontMetrics().fboxrule,w.minRuleThickness);O.setAttribute("style","border: "+U+"em solid "+String(b.borderColor))}break;case"\\xcancel":O.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return b.backgroundColor&&O.setAttribute("mathbackground",b.backgroundColor),O};Kt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(b,w,k){var O=b.parser,U=b.funcName,K=Yt(w[0],"color-token").color,le=w[1];return{type:"enclose",mode:O.mode,label:U,backgroundColor:K,body:le}},htmlBuilder:Di,mathmlBuilder:Ni}),Kt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(b,w,k){var O=b.parser,U=b.funcName,K=Yt(w[0],"color-token").color,le=Yt(w[1],"color-token").color,me=w[2];return{type:"enclose",mode:O.mode,label:U,backgroundColor:le,borderColor:K,body:me}},htmlBuilder:Di,mathmlBuilder:Ni}),Kt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(b,w){var k=b.parser;return{type:"enclose",mode:k.mode,label:"\\fbox",body:w[0]}}}),Kt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(b,w){var k=b.parser,O=b.funcName,U=w[0];return{type:"enclose",mode:k.mode,label:O,body:U}},htmlBuilder:Di,mathmlBuilder:Ni}),Kt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(b,w){var k=b.parser;return{type:"enclose",mode:k.mode,label:"\\angl",body:w[0]}}});var Ei={};function Ai(X){for(var b=X.type,w=X.names,k=X.props,O=X.handler,U=X.htmlBuilder,K=X.mathmlBuilder,le={type:b,numArgs:k.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:O},me=0;me1||!Le)&&Gt.pop(),sn.length0&&(bn+=.25),we.push({pos:bn,isDashed:fC[pp]})}for($n(K[0]),k=0;k0&&(La+=ln,li=le)){var Fu=void 0;(O>0||b.hskipBeforeAndAfter)&&(Fu=y.deflt(Lo.pregap,yt),Fu!==0&&(Ra=Je.makeSpan(["arraycolsep"],[]),Ra.style.width=wt(Fu),no.push(Ra)));var Hu=[];for(k=0;k0){for(var W8=Je.makeLineSpan("hline",w,Le),Q8=Je.makeLineSpan("hdashline",w,Le),lv=[{type:"elem",elem:me,shift:0}];we.length>0;){var dC=we.pop(),hC=dC.pos-Oa;dC.isDashed?lv.push({type:"elem",elem:Q8,shift:hC}):lv.push({type:"elem",elem:W8,shift:hC})}me=Je.makeVList({positionType:"individualShift",children:lv},w)}if(b.addEqnNum){var cv=Je.makeVList({positionType:"individualShift",children:lC},w);return cv=Je.makeSpan(["tag"],[cv],w),Je.makeFragment([me,cv])}else return Je.makeSpan(["mord"],[me],w)},gi={c:"center ",l:"left ",r:"right "},yr=function(b,w){for(var k=[],O=new J.MathNode("mtd",[],["mtr-glue"]),U=new J.MathNode("mtd",[],["mml-eqn-num"]),K=0;K0){var Dt=b.cols,Gt="",Wt=!1,sn=0,ln=Dt.length;Dt[0].type==="separator"&&(yt+="top ",sn=1),Dt[Dt.length-1].type==="separator"&&(yt+="bottom ",ln-=1);for(var bn=sn;bn0?"left ":"",yt+=hi[hi.length-1].length>0?"right ":"";for(var ir=1;ir-1?"alignat":"align",U=Zr(b.parser,{cols:k,addJot:!0,addEqnNum:b.envName==="align"||b.envName==="alignat",emptySingleRow:!0,colSeparationType:O,maxNumCols:b.envName==="split"?2:void 0,leqno:b.parser.settings.leqno},"display"),K,le=0,me={type:"ordgroup",mode:b.mode,body:[]};if(w[0]&&w[0].type==="ordgroup"){for(var we="",Le=0;Le0&&yt&&(Gt=1),k[Tt]={type:"align",align:Dt,pregap:Gt,postgap:0}}return U.colSeparationType=yt?"align":"alignat",U};Ai({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(b,w){var k=is(w[0]),O=k?[w[0]]:Yt(w[0],"ordgroup").body,U=O.map(function(le){var me=mi(le),we=me.text;if("lcr".indexOf(we)!==-1)return{type:"align",align:we};if(we==="|")return{type:"separator",separator:"|"};if(we===":")return{type:"separator",separator:":"};throw new s("Unknown column alignment: "+we,le)}),K={cols:U,hskipBeforeAndAfter:!0,maxNumCols:U.length};return Zr(b.parser,K,Lu(b.envName))},htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(b){var w={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[b.envName.replace("*","")],k="c",O={hskipBeforeAndAfter:!1,cols:[{type:"align",align:k}]};if(b.envName.charAt(b.envName.length-1)==="*"){var U=b.parser;if(U.consumeSpaces(),U.fetch().text==="["){if(U.consume(),U.consumeSpaces(),k=U.fetch().text,"lcr".indexOf(k)===-1)throw new s("Expected l or c or r",U.nextToken);U.consume(),U.consumeSpaces(),U.expect("]"),U.consume(),O.cols=[{type:"align",align:k}]}}var K=Zr(b.parser,O,Lu(b.envName)),le=Math.max.apply(Math,[0].concat(K.body.map(function(me){return me.length})));return K.cols=new Array(le).fill({type:"align",align:k}),w?{type:"leftright",mode:b.mode,body:[K],left:w[0],right:w[1],rightColor:void 0}:K},htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(b){var w={arraystretch:.5},k=Zr(b.parser,w,"script");return k.colSeparationType="small",k},htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["subarray"],props:{numArgs:1},handler:function(b,w){var k=is(w[0]),O=k?[w[0]]:Yt(w[0],"ordgroup").body,U=O.map(function(le){var me=mi(le),we=me.text;if("lc".indexOf(we)!==-1)return{type:"align",align:we};throw new s("Unknown column alignment: "+we,le)});if(U.length>1)throw new s("{subarray} can contain only one column");var K={cols:U,hskipBeforeAndAfter:!1,arraystretch:.5};if(K=Zr(b.parser,K,"script"),K.body.length>0&&K.body[0].length>1)throw new s("{subarray} can contain only one column");return K},htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(b){var w={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},k=Zr(b.parser,w,Lu(b.envName));return{type:"leftright",mode:b.mode,body:[k],left:b.envName.indexOf("r")>-1?".":"\\{",right:b.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:as,htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(b){y.contains(["gather","gather*"],b.envName)&&ui(b);var w={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",addEqnNum:b.envName==="gather",emptySingleRow:!0,leqno:b.parser.settings.leqno};return Zr(b.parser,w,"display")},htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:as,htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(b){ui(b);var w={addEqnNum:b.envName==="equation",emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:b.parser.settings.leqno};return Zr(b.parser,w,"display")},htmlBuilder:Ft,mathmlBuilder:yr}),Ai({type:"array",names:["CD"],props:{numArgs:0},handler:function(b){return ui(b),Ma(b.parser)},htmlBuilder:Ft,mathmlBuilder:yr}),Kt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(b,w){throw new s(b.funcName+" valid only within array environment")}});var up=Ei,Io=up;Kt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(b,w){var k=b.parser,O=b.funcName,U=w[0];if(U.type!=="ordgroup")throw new s("Invalid environment name",U);for(var K="",le=0;le=re.SCRIPT.id?k.text():re.DISPLAY:b==="text"&&k.size===re.DISPLAY.size?k=re.TEXT:b==="script"?k=re.SCRIPT:b==="scriptscript"&&(k=re.SCRIPTSCRIPT),k},Kg=function(b,w){var k=O2(b.size,w.style),O=k.fracNum(),U=k.fracDen(),K;K=w.havingStyle(O);var le=Un(b.numer,K,w);if(b.continued){var me=8.5/w.fontMetrics().ptPerEm,we=3.5/w.fontMetrics().ptPerEm;le.height=le.height0?Gt=3*Tt:Gt=7*Tt,Wt=w.fontMetrics().denom1):(yt>0?(Dt=w.fontMetrics().num2,Gt=Tt):(Dt=w.fontMetrics().num3,Gt=3*Tt),Wt=w.fontMetrics().denom2);var sn;if(tt){var bn=w.fontMetrics().axisHeight;Dt-le.depth-(bn+.5*yt)0&&(w=b,w=w==="."?null:w),w};Kt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(b,w){var k=b.parser,O=w[4],U=w[5],K=to(w[0]),le=K.type==="atom"&&K.family==="open"?P2(K.text):null,me=to(w[1]),we=me.type==="atom"&&me.family==="close"?P2(me.text):null,Le=Yt(w[2],"size"),tt,yt=null;Le.isBlank?tt=!0:(yt=Le.value,tt=yt.number>0);var Tt="auto",Dt=w[3];if(Dt.type==="ordgroup"){if(Dt.body.length>0){var Gt=Yt(Dt.body[0],"textord");Tt=R2[Number(Gt.text)]}}else Dt=Yt(Dt,"textord"),Tt=R2[Number(Dt.text)];return{type:"genfrac",mode:k.mode,numer:O,denom:U,continued:!1,hasBarLine:tt,barSize:yt,leftDelim:le,rightDelim:we,size:Tt}},htmlBuilder:Kg,mathmlBuilder:Xg}),Kt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(b,w){var k=b.parser;b.funcName;var O=b.token;return{type:"infix",mode:k.mode,replaceWith:"\\\\abovefrac",size:Yt(w[0],"size").value,token:O}}}),Kt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(b,w){var k=b.parser;b.funcName;var O=w[0],U=v(Yt(w[1],"infix").size),K=w[2],le=U.number>0;return{type:"genfrac",mode:k.mode,numer:O,denom:K,continued:!1,hasBarLine:le,barSize:U,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Kg,mathmlBuilder:Xg});var B2=function(b,w){var k=w.style,O,U;b.type==="supsub"?(O=b.sup?Un(b.sup,w.havingStyle(k.sup()),w):Un(b.sub,w.havingStyle(k.sub()),w),U=Yt(b.base,"horizBrace")):U=Yt(b,"horizBrace");var K=Un(U.base,w.havingBaseStyle(re.DISPLAY)),le=ur.svgSpan(U,w),me;if(U.isOver?(me=Je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:K},{type:"kern",size:.1},{type:"elem",elem:le}]},w),me.children[0].children[0].children[1].classes.push("svg-align")):(me=Je.makeVList({positionType:"bottom",positionData:K.depth+.1+le.height,children:[{type:"elem",elem:le},{type:"kern",size:.1},{type:"elem",elem:K}]},w),me.children[0].children[0].children[0].classes.push("svg-align")),O){var we=Je.makeSpan(["mord",U.isOver?"mover":"munder"],[me],w);U.isOver?me=Je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:we},{type:"kern",size:.2},{type:"elem",elem:O}]},w):me=Je.makeVList({positionType:"bottom",positionData:we.depth+.2+O.height+O.depth,children:[{type:"elem",elem:O},{type:"kern",size:.2},{type:"elem",elem:we}]},w)}return Je.makeSpan(["mord",U.isOver?"mover":"munder"],[me],w)},b8=function(b,w){var k=ur.mathMLnode(b.label);return new J.MathNode(b.isOver?"mover":"munder",[Xe(b.base,w),k])};Kt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(b,w){var k=b.parser,O=b.funcName;return{type:"horizBrace",mode:k.mode,label:O,isOver:/^\\over/.test(O),base:w[0]}},htmlBuilder:B2,mathmlBuilder:b8}),Kt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(b,w){var k=b.parser,O=w[1],U=Yt(w[0],"url").url;return k.settings.isTrusted({command:"\\href",url:U})?{type:"href",mode:k.mode,href:U,body:pi(O)}:k.formatUnsupportedCmd("\\href")},htmlBuilder:function(b,w){var k=tr(b.body,w,!1);return Je.makeAnchor(b.href,[],k,w)},mathmlBuilder:function(b,w){var k=He(b.body,w);return k instanceof P||(k=new P("mrow",[k])),k.setAttribute("href",b.href),k}}),Kt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(b,w){var k=b.parser,O=Yt(w[0],"url").url;if(!k.settings.isTrusted({command:"\\url",url:O}))return k.formatUnsupportedCmd("\\url");for(var U=[],K=0;K0&&(O=un(b.totalheight,w)-k);var U=0;b.width.number>0&&(U=un(b.width,w));var K={height:wt(k+O)};U>0&&(K.width=wt(U)),O>0&&(K.verticalAlign=wt(-O));var le=new Pi(b.src,b.alt,K);return le.height=k,le.depth=O,le},mathmlBuilder:function(b,w){var k=new J.MathNode("mglyph",[]);k.setAttribute("alt",b.alt);var O=un(b.height,w),U=0;if(b.totalheight.number>0&&(U=un(b.totalheight,w)-O,k.setAttribute("valign",wt(-U))),k.setAttribute("height",wt(O+U)),b.width.number>0){var K=un(b.width,w);k.setAttribute("width",wt(K))}return k.setAttribute("src",b.src),k}}),Kt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(b,w){var k=b.parser,O=b.funcName,U=Yt(w[0],"size");if(k.settings.strict){var K=O[1]==="m",le=U.value.unit==="mu";K?(le||k.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+O+" supports only mu units, "+("not "+U.value.unit+" units")),k.mode!=="math"&&k.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+O+" works only in math mode")):le&&k.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+O+" doesn't support mu units")}return{type:"kern",mode:k.mode,dimension:U.value}},htmlBuilder:function(b,w){return Je.makeGlue(b.dimension,w)},mathmlBuilder:function(b,w){var k=un(b.dimension,w);return new J.SpaceNode(k)}}),Kt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(b,w){var k=b.parser,O=b.funcName,U=w[0];return{type:"lap",mode:k.mode,alignment:O.slice(5),body:U}},htmlBuilder:function(b,w){var k;b.alignment==="clap"?(k=Je.makeSpan([],[Un(b.body,w)]),k=Je.makeSpan(["inner"],[k],w)):k=Je.makeSpan(["inner"],[Un(b.body,w)]);var O=Je.makeSpan(["fix"],[]),U=Je.makeSpan([b.alignment],[k,O],w),K=Je.makeSpan(["strut"]);return K.style.height=wt(U.height+U.depth),U.depth&&(K.style.verticalAlign=wt(-U.depth)),U.children.unshift(K),U=Je.makeSpan(["thinbox"],[U],w),Je.makeSpan(["mord","vbox"],[U],w)},mathmlBuilder:function(b,w){var k=new J.MathNode("mpadded",[Xe(b.body,w)]);if(b.alignment!=="rlap"){var O=b.alignment==="llap"?"-1":"-0.5";k.setAttribute("lspace",O+"width")}return k.setAttribute("width","0px"),k}}),Kt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(b,w){var k=b.funcName,O=b.parser,U=O.mode;O.switchMode("math");var K=k==="\\("?"\\)":"$",le=O.parseExpression(!1,K);return O.expect(K),O.switchMode(U),{type:"styling",mode:O.mode,style:"text",body:le}}}),Kt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(b,w){throw new s("Mismatched "+b.funcName)}});var F2=function(b,w){switch(w.style.size){case re.DISPLAY.size:return b.display;case re.TEXT.size:return b.text;case re.SCRIPT.size:return b.script;case re.SCRIPTSCRIPT.size:return b.scriptscript;default:return b.text}};Kt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(b,w){var k=b.parser;return{type:"mathchoice",mode:k.mode,display:pi(w[0]),text:pi(w[1]),script:pi(w[2]),scriptscript:pi(w[3])}},htmlBuilder:function(b,w){var k=F2(b,w),O=tr(k,w,!1);return Je.makeFragment(O)},mathmlBuilder:function(b,w){var k=F2(b,w);return He(k,w)}});var H2=function(b,w,k,O,U,K,le){b=Je.makeSpan([],[b]);var me=k&&y.isCharacterBox(k),we,Le;if(w){var tt=Un(w,O.havingStyle(U.sup()),O);Le={elem:tt,kern:Math.max(O.fontMetrics().bigOpSpacing1,O.fontMetrics().bigOpSpacing3-tt.depth)}}if(k){var yt=Un(k,O.havingStyle(U.sub()),O);we={elem:yt,kern:Math.max(O.fontMetrics().bigOpSpacing2,O.fontMetrics().bigOpSpacing4-yt.height)}}var Tt;if(Le&&we){var Dt=O.fontMetrics().bigOpSpacing5+we.elem.height+we.elem.depth+we.kern+b.depth+le;Tt=Je.makeVList({positionType:"bottom",positionData:Dt,children:[{type:"kern",size:O.fontMetrics().bigOpSpacing5},{type:"elem",elem:we.elem,marginLeft:wt(-K)},{type:"kern",size:we.kern},{type:"elem",elem:b},{type:"kern",size:Le.kern},{type:"elem",elem:Le.elem,marginLeft:wt(K)},{type:"kern",size:O.fontMetrics().bigOpSpacing5}]},O)}else if(we){var Gt=b.height-le;Tt=Je.makeVList({positionType:"top",positionData:Gt,children:[{type:"kern",size:O.fontMetrics().bigOpSpacing5},{type:"elem",elem:we.elem,marginLeft:wt(-K)},{type:"kern",size:we.kern},{type:"elem",elem:b}]},O)}else if(Le){var Wt=b.depth+le;Tt=Je.makeVList({positionType:"bottom",positionData:Wt,children:[{type:"elem",elem:b},{type:"kern",size:Le.kern},{type:"elem",elem:Le.elem,marginLeft:wt(K)},{type:"kern",size:O.fontMetrics().bigOpSpacing5}]},O)}else return b;var sn=[Tt];if(we&&K!==0&&!me){var ln=Je.makeSpan(["mspace"],[],O);ln.style.marginRight=wt(K),sn.unshift(ln)}return Je.makeSpan(["mop","op-limits"],sn,O)},z2=["\\smallint"],Ru=function(b,w){var k,O,U=!1,K;b.type==="supsub"?(k=b.sup,O=b.sub,K=Yt(b.base,"op"),U=!0):K=Yt(b,"op");var le=w.style,me=!1;le.size===re.DISPLAY.size&&K.symbol&&!y.contains(z2,K.name)&&(me=!0);var we;if(K.symbol){var Le=me?"Size2-Regular":"Size1-Regular",tt="";if((K.name==="\\oiint"||K.name==="\\oiiint")&&(tt=K.name.substr(1),K.name=tt==="oiint"?"\\iint":"\\iiint"),we=Je.makeSymbol(K.name,Le,"math",w,["mop","op-symbol",me?"large-op":"small-op"]),tt.length>0){var yt=we.italic,Tt=Je.staticSvg(tt+"Size"+(me?"2":"1"),w);we=Je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:we,shift:0},{type:"elem",elem:Tt,shift:me?.08:0}]},w),K.name="\\"+tt,we.classes.unshift("mop"),we.italic=yt}}else if(K.body){var Dt=tr(K.body,w,!0);Dt.length===1&&Dt[0]instanceof ni?(we=Dt[0],we.classes[0]="mop"):we=Je.makeSpan(["mop"],Dt,w)}else{for(var Gt=[],Wt=1;Wt0){for(var me=K.body.map(function(yt){var Tt=yt.text;return typeof Tt=="string"?{type:"textord",mode:yt.mode,text:Tt}:yt}),we=tr(me,w.withFont("mathrm"),!0),Le=0;Le=0?me.setAttribute("height",wt(U)):(me.setAttribute("height",wt(U)),me.setAttribute("depth",wt(-U))),me.setAttribute("voffset",wt(U)),me}});function G2(X,b,w){for(var k=tr(X,b,!1),O=b.sizeMultiplier/w.sizeMultiplier,U=0;Uk.height+k.depth+le&&(le=(le+Tt-k.height-k.depth)/2);var Dt=Le.height-k.height-le-tt;k.style.paddingLeft=wt(yt);var Gt=Je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k,wrapperClasses:["svg-align"]},{type:"kern",size:-(k.height+Dt)},{type:"elem",elem:Le},{type:"kern",size:tt}]},w);if(b.index){var Wt=w.havingStyle(re.SCRIPTSCRIPT),sn=Un(b.index,Wt,w),ln=.6*(Gt.height-Gt.depth),bn=Je.makeVList({positionType:"shift",positionData:-ln,children:[{type:"elem",elem:sn}]},w),$n=Je.makeSpan(["root"],[bn]);return Je.makeSpan(["mord","sqrt"],[$n,Gt],w)}else return Je.makeSpan(["mord","sqrt"],[Gt],w)},mathmlBuilder:function(b,w){var k=b.body,O=b.index;return O?new J.MathNode("mroot",[Xe(k,w),Xe(O,w)]):new J.MathNode("msqrt",[Xe(k,w)])}});var W2={display:re.DISPLAY,text:re.TEXT,script:re.SCRIPT,scriptscript:re.SCRIPTSCRIPT};Kt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(b,w){var k=b.breakOnTokenText,O=b.funcName,U=b.parser,K=U.parseExpression(!0,k),le=O.slice(1,O.length-5);return{type:"styling",mode:U.mode,style:le,body:K}},htmlBuilder:function(b,w){var k=W2[b.style],O=w.havingStyle(k).withFont("");return G2(b.body,O,w)},mathmlBuilder:function(b,w){var k=W2[b.style],O=w.havingStyle(k),U=Te(b.body,O),K=new J.MathNode("mstyle",U),le={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},me=le[b.style];return K.setAttribute("scriptlevel",me[0]),K.setAttribute("displaystyle",me[1]),K}});var w8=function(b,w){var k=b.base;if(k)if(k.type==="op"){var O=k.limits&&(w.style.size===re.DISPLAY.size||k.alwaysHandleSupSub);return O?Ru:null}else if(k.type==="operatorname"){var U=k.alwaysHandleSupSub&&(w.style.size===re.DISPLAY.size||k.limits);return U?U2:null}else{if(k.type==="accent")return y.isCharacterBox(k.base)?Do:null;if(k.type==="horizBrace"){var K=!b.sub;return K===k.isOver?B2:null}else return null}else return null};Ns({type:"supsub",htmlBuilder:function(b,w){var k=w8(b,w);if(k)return k(b,w);var O=b.base,U=b.sup,K=b.sub,le=Un(O,w),me,we,Le=w.fontMetrics(),tt=0,yt=0,Tt=O&&y.isCharacterBox(O);if(U){var Dt=w.havingStyle(w.style.sup());me=Un(U,Dt,w),Tt||(tt=le.height-Dt.fontMetrics().supDrop*Dt.sizeMultiplier/w.sizeMultiplier)}if(K){var Gt=w.havingStyle(w.style.sub());we=Un(K,Gt,w),Tt||(yt=le.depth+Gt.fontMetrics().subDrop*Gt.sizeMultiplier/w.sizeMultiplier)}var Wt;w.style===re.DISPLAY?Wt=Le.sup1:w.style.cramped?Wt=Le.sup3:Wt=Le.sup2;var sn=w.sizeMultiplier,ln=wt(.5/Le.ptPerEm/sn),bn=null;if(we){var $n=b.base&&b.base.type==="op"&&b.base.name&&(b.base.name==="\\oiint"||b.base.name==="\\oiiint");(le instanceof ni||$n)&&(bn=wt(-le.italic))}var di;if(me&&we){tt=Math.max(tt,Wt,me.depth+.25*Le.xHeight),yt=Math.max(yt,Le.sub2);var Fi=Le.defaultRuleThickness,li=4*Fi;if(tt-me.depth-(we.height-yt)0&&(tt+=hi,yt-=hi)}var ir=[{type:"elem",elem:we,shift:yt,marginRight:ln,marginLeft:bn},{type:"elem",elem:me,shift:-tt,marginRight:ln}];di=Je.makeVList({positionType:"individualShift",children:ir},w)}else if(we){yt=Math.max(yt,Le.sub1,we.height-.8*Le.xHeight);var Si=[{type:"elem",elem:we,marginLeft:bn,marginRight:ln}];di=Je.makeVList({positionType:"shift",positionData:yt,children:Si},w)}else if(me)tt=Math.max(tt,Wt,me.depth+.25*Le.xHeight),di=Je.makeVList({positionType:"shift",positionData:-tt,children:[{type:"elem",elem:me,marginRight:ln}]},w);else throw new Error("supsub must have either sup or sub.");var La=_l(le,"right")||"mord";return Je.makeSpan([La],[le,Je.makeSpan(["msupsub"],[di])],w)},mathmlBuilder:function(b,w){var k=!1,O,U;b.base&&b.base.type==="horizBrace"&&(U=!!b.sup,U===b.base.isOver&&(k=!0,O=b.base.isOver)),b.base&&(b.base.type==="op"||b.base.type==="operatorname")&&(b.base.parentIsSupSub=!0);var K=[Xe(b.base,w)];b.sub&&K.push(Xe(b.sub,w)),b.sup&&K.push(Xe(b.sup,w));var le;if(k)le=O?"mover":"munder";else if(b.sub)if(b.sup){var Le=b.base;Le&&Le.type==="op"&&Le.limits&&w.style===re.DISPLAY||Le&&Le.type==="operatorname"&&Le.alwaysHandleSupSub&&(w.style===re.DISPLAY||Le.limits)?le="munderover":le="msubsup"}else{var we=b.base;we&&we.type==="op"&&we.limits&&(w.style===re.DISPLAY||we.alwaysHandleSupSub)||we&&we.type==="operatorname"&&we.alwaysHandleSupSub&&(we.limits||w.style===re.DISPLAY)?le="munder":le="msub"}else{var me=b.base;me&&me.type==="op"&&me.limits&&(w.style===re.DISPLAY||me.alwaysHandleSupSub)||me&&me.type==="operatorname"&&me.alwaysHandleSupSub&&(me.limits||w.style===re.DISPLAY)?le="mover":le="msup"}return new J.MathNode(le,K)}}),Ns({type:"atom",htmlBuilder:function(b,w){return Je.mathsym(b.text,b.mode,w,["m"+b.family])},mathmlBuilder:function(b,w){var k=new J.MathNode("mo",[oe(b.text,b.mode)]);if(b.family==="bin"){var O=Ie(b,w);O==="bold-italic"&&k.setAttribute("mathvariant",O)}else b.family==="punct"?k.setAttribute("separator","true"):(b.family==="open"||b.family==="close")&&k.setAttribute("stretchy","false");return k}});var Q2={mi:"italic",mn:"normal",mtext:"normal"};Ns({type:"mathord",htmlBuilder:function(b,w){return Je.makeOrd(b,w,"mathord")},mathmlBuilder:function(b,w){var k=new J.MathNode("mi",[oe(b.text,b.mode,w)]),O=Ie(b,w)||"italic";return O!==Q2[k.type]&&k.setAttribute("mathvariant",O),k}}),Ns({type:"textord",htmlBuilder:function(b,w){return Je.makeOrd(b,w,"textord")},mathmlBuilder:function(b,w){var k=oe(b.text,b.mode,w),O=Ie(b,w)||"normal",U;return b.mode==="text"?U=new J.MathNode("mtext",[k]):/[0-9]/.test(b.text)?U=new J.MathNode("mn",[k]):b.text==="\\prime"?U=new J.MathNode("mo",[k]):U=new J.MathNode("mi",[k]),O!==Q2[U.type]&&U.setAttribute("mathvariant",O),U}});var Zg={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Jg={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ns({type:"spacing",htmlBuilder:function(b,w){if(Jg.hasOwnProperty(b.text)){var k=Jg[b.text].className||"";if(b.mode==="text"){var O=Je.makeOrd(b,w,"textord");return O.classes.push(k),O}else return Je.makeSpan(["mspace",k],[Je.mathsym(b.text,b.mode,w)],w)}else{if(Zg.hasOwnProperty(b.text))return Je.makeSpan(["mspace",Zg[b.text]],[],w);throw new s('Unknown type of space "'+b.text+'"')}},mathmlBuilder:function(b,w){var k;if(Jg.hasOwnProperty(b.text))k=new J.MathNode("mtext",[new J.TextNode(" ")]);else{if(Zg.hasOwnProperty(b.text))return new J.MathNode("mspace");throw new s('Unknown type of space "'+b.text+'"')}return k}});var j2=function(){var b=new J.MathNode("mtd",[]);return b.setAttribute("width","50%"),b};Ns({type:"tag",mathmlBuilder:function(b,w){var k=new J.MathNode("mtable",[new J.MathNode("mtr",[j2(),new J.MathNode("mtd",[He(b.body,w)]),j2(),new J.MathNode("mtd",[He(b.tag,w)])])]);return k.setAttribute("width","100%"),k}});var Y2={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},K2={"\\textbf":"textbf","\\textmd":"textmd"},x8={"\\textit":"textit","\\textup":"textup"},X2=function(b,w){var k=b.font;return k?Y2[k]?w.withTextFontFamily(Y2[k]):K2[k]?w.withTextFontWeight(K2[k]):w.withTextFontShape(x8[k]):w};Kt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(b,w){var k=b.parser,O=b.funcName,U=w[0];return{type:"text",mode:k.mode,body:pi(U),font:O}},htmlBuilder:function(b,w){var k=X2(b,w),O=tr(b.body,k,!0);return Je.makeSpan(["mord","text"],O,k)},mathmlBuilder:function(b,w){var k=X2(b,w);return He(b.body,k)}}),Kt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(b,w){var k=b.parser;return{type:"underline",mode:k.mode,body:w[0]}},htmlBuilder:function(b,w){var k=Un(b.body,w),O=Je.makeLineSpan("underline-line",w),U=w.fontMetrics().defaultRuleThickness,K=Je.makeVList({positionType:"top",positionData:k.height,children:[{type:"kern",size:U},{type:"elem",elem:O},{type:"kern",size:3*U},{type:"elem",elem:k}]},w);return Je.makeSpan(["mord","underline"],[K],w)},mathmlBuilder:function(b,w){var k=new J.MathNode("mo",[new J.TextNode("‾")]);k.setAttribute("stretchy","true");var O=new J.MathNode("munder",[Xe(b.body,w),k]);return O.setAttribute("accentunder","true"),O}}),Kt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(b,w){var k=b.parser;return{type:"vcenter",mode:k.mode,body:w[0]}},htmlBuilder:function(b,w){var k=Un(b.body,w),O=w.fontMetrics().axisHeight,U=.5*(k.height-O-(k.depth+O));return Je.makeVList({positionType:"shift",positionData:U,children:[{type:"elem",elem:k}]},w)},mathmlBuilder:function(b,w){return new J.MathNode("mpadded",[Xe(b.body,w)],["vcenter"])}}),Kt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(b,w,k){throw new s("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(b,w){for(var k=$2(b),O=[],U=w.havingStyle(w.style.text()),K=0;K0;)this.endGroup()},b.has=function(k){return this.current.hasOwnProperty(k)||this.builtins.hasOwnProperty(k)},b.get=function(k){return this.current.hasOwnProperty(k)?this.current[k]:this.builtins[k]},b.set=function(k,O,U){if(U===void 0&&(U=!1),U){for(var K=0;K0&&(this.undefStack[this.undefStack.length-1][k]=O)}else{var le=this.undefStack[this.undefStack.length-1];le&&!le.hasOwnProperty(k)&&(le[k]=this.current[k])}this.current[k]=O},X}(),L8=q2,O8=L8;ge("\\noexpand",function(X){var b=X.popToken();return X.isExpandable(b.text)&&(b.noexpand=!0,b.treatAsRelax=!0),{tokens:[b],numArgs:0}}),ge("\\expandafter",function(X){var b=X.popToken();return X.expandOnce(!0),{tokens:[b],numArgs:0}}),ge("\\@firstoftwo",function(X){var b=X.consumeArgs(2);return{tokens:b[0],numArgs:0}}),ge("\\@secondoftwo",function(X){var b=X.consumeArgs(2);return{tokens:b[1],numArgs:0}}),ge("\\@ifnextchar",function(X){var b=X.consumeArgs(3);X.consumeSpaces();var w=X.future();return b[0].length===1&&b[0][0].text===w.text?{tokens:b[1],numArgs:0}:{tokens:b[2],numArgs:0}}),ge("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),ge("\\TextOrMath",function(X){var b=X.consumeArgs(2);return X.mode==="text"?{tokens:b[0],numArgs:0}:{tokens:b[1],numArgs:0}});var eC={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ge("\\char",function(X){var b=X.popToken(),w,k="";if(b.text==="'")w=8,b=X.popToken();else if(b.text==='"')w=16,b=X.popToken();else if(b.text==="`")if(b=X.popToken(),b.text[0]==="\\")k=b.text.charCodeAt(1);else{if(b.text==="EOF")throw new s("\\char` missing argument");k=b.text.charCodeAt(0)}else w=10;if(w){if(k=eC[b.text],k==null||k>=w)throw new s("Invalid base-"+w+" digit "+b.text);for(var O;(O=eC[X.future().text])!=null&&O":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ge("\\dots",function(X){var b="\\dotso",w=X.expandAfterFuture().text;return w in tC?b=tC[w]:(w.substr(0,4)==="\\not"||w in si.math&&y.contains(["bin","rel"],si.math[w].group))&&(b="\\dotsb"),b});var nv={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ge("\\dotso",function(X){var b=X.future().text;return b in nv?"\\ldots\\,":"\\ldots"}),ge("\\dotsc",function(X){var b=X.future().text;return b in nv&&b!==","?"\\ldots\\,":"\\ldots"}),ge("\\cdots",function(X){var b=X.future().text;return b in nv?"\\@cdots\\,":"\\@cdots"}),ge("\\dotsb","\\cdots"),ge("\\dotsm","\\cdots"),ge("\\dotsi","\\!\\cdots"),ge("\\dotsx","\\ldots\\,"),ge("\\DOTSI","\\relax"),ge("\\DOTSB","\\relax"),ge("\\DOTSX","\\relax"),ge("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),ge("\\,","\\tmspace+{3mu}{.1667em}"),ge("\\thinspace","\\,"),ge("\\>","\\mskip{4mu}"),ge("\\:","\\tmspace+{4mu}{.2222em}"),ge("\\medspace","\\:"),ge("\\;","\\tmspace+{5mu}{.2777em}"),ge("\\thickspace","\\;"),ge("\\!","\\tmspace-{3mu}{.1667em}"),ge("\\negthinspace","\\!"),ge("\\negmedspace","\\tmspace-{4mu}{.2222em}"),ge("\\negthickspace","\\tmspace-{5mu}{.277em}"),ge("\\enspace","\\kern.5em "),ge("\\enskip","\\hskip.5em\\relax"),ge("\\quad","\\hskip1em\\relax"),ge("\\qquad","\\hskip2em\\relax"),ge("\\tag","\\@ifstar\\tag@literal\\tag@paren"),ge("\\tag@paren","\\tag@literal{({#1})}"),ge("\\tag@literal",function(X){if(X.macros.get("\\df@tag"))throw new s("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),ge("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),ge("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),ge("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),ge("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),ge("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),ge("\\newline","\\\\\\relax"),ge("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var nC=wt(Ye["Main-Regular"]["T".charCodeAt(0)][1]-.7*Ye["Main-Regular"]["A".charCodeAt(0)][1]);ge("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+nC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),ge("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+nC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),ge("\\hspace","\\@ifstar\\@hspacer\\@hspace"),ge("\\@hspace","\\hskip #1\\relax"),ge("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),ge("\\ordinarycolon",":"),ge("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),ge("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),ge("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),ge("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),ge("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),ge("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),ge("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),ge("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),ge("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),ge("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),ge("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),ge("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),ge("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),ge("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),ge("∷","\\dblcolon"),ge("∹","\\eqcolon"),ge("≔","\\coloneqq"),ge("≕","\\eqqcolon"),ge("⩴","\\Coloneqq"),ge("\\ratio","\\vcentcolon"),ge("\\coloncolon","\\dblcolon"),ge("\\colonequals","\\coloneqq"),ge("\\coloncolonequals","\\Coloneqq"),ge("\\equalscolon","\\eqqcolon"),ge("\\equalscoloncolon","\\Eqqcolon"),ge("\\colonminus","\\coloneq"),ge("\\coloncolonminus","\\Coloneq"),ge("\\minuscolon","\\eqcolon"),ge("\\minuscoloncolon","\\Eqcolon"),ge("\\coloncolonapprox","\\Colonapprox"),ge("\\coloncolonsim","\\Colonsim"),ge("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ge("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ge("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ge("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ge("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),ge("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),ge("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),ge("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),ge("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),ge("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),ge("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),ge("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),ge("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),ge("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),ge("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),ge("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),ge("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),ge("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),ge("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),ge("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),ge("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),ge("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),ge("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),ge("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),ge("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),ge("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),ge("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),ge("\\imath","\\html@mathml{\\@imath}{ı}"),ge("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),ge("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),ge("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),ge("⟦","\\llbracket"),ge("⟧","\\rrbracket"),ge("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),ge("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),ge("⦃","\\lBrace"),ge("⦄","\\rBrace"),ge("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),ge("⦵","\\minuso"),ge("\\darr","\\downarrow"),ge("\\dArr","\\Downarrow"),ge("\\Darr","\\Downarrow"),ge("\\lang","\\langle"),ge("\\rang","\\rangle"),ge("\\uarr","\\uparrow"),ge("\\uArr","\\Uparrow"),ge("\\Uarr","\\Uparrow"),ge("\\N","\\mathbb{N}"),ge("\\R","\\mathbb{R}"),ge("\\Z","\\mathbb{Z}"),ge("\\alef","\\aleph"),ge("\\alefsym","\\aleph"),ge("\\Alpha","\\mathrm{A}"),ge("\\Beta","\\mathrm{B}"),ge("\\bull","\\bullet"),ge("\\Chi","\\mathrm{X}"),ge("\\clubs","\\clubsuit"),ge("\\cnums","\\mathbb{C}"),ge("\\Complex","\\mathbb{C}"),ge("\\Dagger","\\ddagger"),ge("\\diamonds","\\diamondsuit"),ge("\\empty","\\emptyset"),ge("\\Epsilon","\\mathrm{E}"),ge("\\Eta","\\mathrm{H}"),ge("\\exist","\\exists"),ge("\\harr","\\leftrightarrow"),ge("\\hArr","\\Leftrightarrow"),ge("\\Harr","\\Leftrightarrow"),ge("\\hearts","\\heartsuit"),ge("\\image","\\Im"),ge("\\infin","\\infty"),ge("\\Iota","\\mathrm{I}"),ge("\\isin","\\in"),ge("\\Kappa","\\mathrm{K}"),ge("\\larr","\\leftarrow"),ge("\\lArr","\\Leftarrow"),ge("\\Larr","\\Leftarrow"),ge("\\lrarr","\\leftrightarrow"),ge("\\lrArr","\\Leftrightarrow"),ge("\\Lrarr","\\Leftrightarrow"),ge("\\Mu","\\mathrm{M}"),ge("\\natnums","\\mathbb{N}"),ge("\\Nu","\\mathrm{N}"),ge("\\Omicron","\\mathrm{O}"),ge("\\plusmn","\\pm"),ge("\\rarr","\\rightarrow"),ge("\\rArr","\\Rightarrow"),ge("\\Rarr","\\Rightarrow"),ge("\\real","\\Re"),ge("\\reals","\\mathbb{R}"),ge("\\Reals","\\mathbb{R}"),ge("\\Rho","\\mathrm{P}"),ge("\\sdot","\\cdot"),ge("\\sect","\\S"),ge("\\spades","\\spadesuit"),ge("\\sub","\\subset"),ge("\\sube","\\subseteq"),ge("\\supe","\\supseteq"),ge("\\Tau","\\mathrm{T}"),ge("\\thetasym","\\vartheta"),ge("\\weierp","\\wp"),ge("\\Zeta","\\mathrm{Z}"),ge("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),ge("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),ge("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),ge("\\bra","\\mathinner{\\langle{#1}|}"),ge("\\ket","\\mathinner{|{#1}\\rangle}"),ge("\\braket","\\mathinner{\\langle{#1}\\rangle}"),ge("\\Bra","\\left\\langle#1\\right|"),ge("\\Ket","\\left|#1\\right\\rangle"),ge("\\angln","{\\angl n}"),ge("\\blue","\\textcolor{##6495ed}{#1}"),ge("\\orange","\\textcolor{##ffa500}{#1}"),ge("\\pink","\\textcolor{##ff00af}{#1}"),ge("\\red","\\textcolor{##df0030}{#1}"),ge("\\green","\\textcolor{##28ae7b}{#1}"),ge("\\gray","\\textcolor{gray}{#1}"),ge("\\purple","\\textcolor{##9d38bd}{#1}"),ge("\\blueA","\\textcolor{##ccfaff}{#1}"),ge("\\blueB","\\textcolor{##80f6ff}{#1}"),ge("\\blueC","\\textcolor{##63d9ea}{#1}"),ge("\\blueD","\\textcolor{##11accd}{#1}"),ge("\\blueE","\\textcolor{##0c7f99}{#1}"),ge("\\tealA","\\textcolor{##94fff5}{#1}"),ge("\\tealB","\\textcolor{##26edd5}{#1}"),ge("\\tealC","\\textcolor{##01d1c1}{#1}"),ge("\\tealD","\\textcolor{##01a995}{#1}"),ge("\\tealE","\\textcolor{##208170}{#1}"),ge("\\greenA","\\textcolor{##b6ffb0}{#1}"),ge("\\greenB","\\textcolor{##8af281}{#1}"),ge("\\greenC","\\textcolor{##74cf70}{#1}"),ge("\\greenD","\\textcolor{##1fab54}{#1}"),ge("\\greenE","\\textcolor{##0d923f}{#1}"),ge("\\goldA","\\textcolor{##ffd0a9}{#1}"),ge("\\goldB","\\textcolor{##ffbb71}{#1}"),ge("\\goldC","\\textcolor{##ff9c39}{#1}"),ge("\\goldD","\\textcolor{##e07d10}{#1}"),ge("\\goldE","\\textcolor{##a75a05}{#1}"),ge("\\redA","\\textcolor{##fca9a9}{#1}"),ge("\\redB","\\textcolor{##ff8482}{#1}"),ge("\\redC","\\textcolor{##f9685d}{#1}"),ge("\\redD","\\textcolor{##e84d39}{#1}"),ge("\\redE","\\textcolor{##bc2612}{#1}"),ge("\\maroonA","\\textcolor{##ffbde0}{#1}"),ge("\\maroonB","\\textcolor{##ff92c6}{#1}"),ge("\\maroonC","\\textcolor{##ed5fa6}{#1}"),ge("\\maroonD","\\textcolor{##ca337c}{#1}"),ge("\\maroonE","\\textcolor{##9e034e}{#1}"),ge("\\purpleA","\\textcolor{##ddd7ff}{#1}"),ge("\\purpleB","\\textcolor{##c6b9fc}{#1}"),ge("\\purpleC","\\textcolor{##aa87ff}{#1}"),ge("\\purpleD","\\textcolor{##7854ab}{#1}"),ge("\\purpleE","\\textcolor{##543b78}{#1}"),ge("\\mintA","\\textcolor{##f5f9e8}{#1}"),ge("\\mintB","\\textcolor{##edf2df}{#1}"),ge("\\mintC","\\textcolor{##e0e5cc}{#1}"),ge("\\grayA","\\textcolor{##f6f7f7}{#1}"),ge("\\grayB","\\textcolor{##f0f1f2}{#1}"),ge("\\grayC","\\textcolor{##e3e5e6}{#1}"),ge("\\grayD","\\textcolor{##d6d8da}{#1}"),ge("\\grayE","\\textcolor{##babec2}{#1}"),ge("\\grayF","\\textcolor{##888d93}{#1}"),ge("\\grayG","\\textcolor{##626569}{#1}"),ge("\\grayH","\\textcolor{##3b3e40}{#1}"),ge("\\grayI","\\textcolor{##21242c}{#1}"),ge("\\kaBlue","\\textcolor{##314453}{#1}"),ge("\\kaGreen","\\textcolor{##71B307}{#1}");var iC={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},R8=function(){function X(w,k,O){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=k,this.expansionCount=0,this.feed(w),this.macros=new M8(O8,k.macros),this.mode=O,this.stack=[]}var b=X.prototype;return b.feed=function(k){this.lexer=new J2(k,this.settings)},b.switchMode=function(k){this.mode=k},b.beginGroup=function(){this.macros.beginGroup()},b.endGroup=function(){this.macros.endGroup()},b.endGroups=function(){this.macros.endGroups()},b.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},b.popToken=function(){return this.future(),this.stack.pop()},b.pushToken=function(k){this.stack.push(k)},b.pushTokens=function(k){var O;(O=this.stack).push.apply(O,k)},b.scanArgument=function(k){var O,U,K;if(k){if(this.consumeSpaces(),this.future().text!=="[")return null;O=this.popToken();var le=this.consumeArg(["]"]);K=le.tokens,U=le.end}else{var me=this.consumeArg();K=me.tokens,O=me.start,U=me.end}return this.pushToken(new Dc("EOF",U.loc)),this.pushTokens(K),O.range(U,"")},b.consumeSpaces=function(){for(;;){var k=this.future();if(k.text===" ")this.stack.pop();else break}},b.consumeArg=function(k){var O=[],U=k&&k.length>0;U||this.consumeSpaces();var K=this.future(),le,me=0,we=0;do{if(le=this.popToken(),O.push(le),le.text==="{")++me;else if(le.text==="}"){if(--me,me===-1)throw new s("Extra }",le)}else if(le.text==="EOF")throw new s("Unexpected end of input in a macro argument, expected '"+(k&&U?k[we]:"}")+"'",le);if(k&&U)if((me===0||me===1&&k[we]==="{")&&le.text===k[we]){if(++we,we===k.length){O.splice(-we,we);break}}else we=0}while(me!==0||U);return K.text==="{"&&O[O.length-1].text==="}"&&(O.pop(),O.shift()),O.reverse(),{tokens:O,start:K,end:le}},b.consumeArgs=function(k,O){if(O){if(O.length!==k+1)throw new s("The length of delimiters doesn't match the number of args!");for(var U=O[0],K=0;Kthis.settings.maxExpand)throw new s("Too many expansions: infinite loop or need to increase maxExpand setting");var le=K.tokens,me=this.consumeArgs(K.numArgs,K.delimiters);if(K.numArgs){le=le.slice();for(var we=le.length-1;we>=0;--we){var Le=le[we];if(Le.text==="#"){if(we===0)throw new s("Incomplete placeholder at end of macro body",Le);if(Le=le[--we],Le.text==="#")le.splice(we+1,1);else if(/^[1-9]$/.test(Le.text)){var tt;(tt=le).splice.apply(tt,[we,2].concat(me[+Le.text-1]))}else throw new s("Not a valid argument number",Le)}}}return this.pushTokens(le),le},b.expandAfterFuture=function(){return this.expandOnce(),this.future()},b.expandNextToken=function(){for(;;){var k=this.expandOnce();if(k instanceof Dc)if(k.text==="\\relax"||k.treatAsRelax)this.stack.pop();else return this.stack.pop()}throw new Error},b.expandMacro=function(k){return this.macros.has(k)?this.expandTokens([new Dc(k)]):void 0},b.expandTokens=function(k){var O=[],U=this.stack.length;for(this.pushTokens(k);this.stack.length>U;){var K=this.expandOnce(!0);K instanceof Dc&&(K.treatAsRelax&&(K.noexpand=!1,K.treatAsRelax=!1),O.push(this.stack.pop()))}return O},b.expandMacroAsText=function(k){var O=this.expandMacro(k);return O&&O.map(function(U){return U.text}).join("")},b._getExpansion=function(k){var O=this.macros.get(k);if(O==null)return O;if(k.length===1){var U=this.lexer.catcodes[k];if(U!=null&&U!==13)return}var K=typeof O=="function"?O(this):O;if(typeof K=="string"){var le=0;if(K.indexOf("#")!==-1)for(var me=K.replace(/##/g,"");me.indexOf("#"+(le+1))!==-1;)++le;for(var we=new J2(K,this.settings),Le=[],tt=we.lex();tt.text!=="EOF";)Le.push(tt),tt=we.lex();Le.reverse();var yt={tokens:Le,numArgs:le};return yt}return K},b.isDefined=function(k){return this.macros.has(k)||wl.hasOwnProperty(k)||si.math.hasOwnProperty(k)||si.text.hasOwnProperty(k)||iC.hasOwnProperty(k)},b.isExpandable=function(k){var O=this.macros.get(k);return O!=null?typeof O=="string"||typeof O=="function"||!O.unexpandable:wl.hasOwnProperty(k)&&!wl[k].primitive},X}(),iv={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},rC={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},aC=function(){function X(w,k){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new R8(w,k,this.mode),this.settings=k,this.leftrightDepth=0}var b=X.prototype;return b.expect=function(k,O){if(O===void 0&&(O=!0),this.fetch().text!==k)throw new s("Expected '"+k+"', got '"+this.fetch().text+"'",this.fetch());O&&this.consume()},b.consume=function(){this.nextToken=null},b.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},b.switchMode=function(k){this.mode=k,this.gullet.switchMode(k)},b.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var k=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),k}finally{this.gullet.endGroups()}},b.parseExpression=function(k,O){for(var U=[];;){this.mode==="math"&&this.consumeSpaces();var K=this.fetch();if(X.endOfExpression.indexOf(K.text)!==-1||O&&K.text===O||k&&wl[K.text]&&wl[K.text].infix)break;var le=this.parseAtom(O);if(le){if(le.type==="internal")continue}else break;U.push(le)}return this.mode==="text"&&this.formLigatures(U),this.handleInfixNodes(U)},b.handleInfixNodes=function(k){for(var O=-1,U,K=0;K=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+O[0]+'" used in math mode',k);var we=si[this.mode][O].group,Le=Ms.range(k),tt;if(Ss.hasOwnProperty(we)){var yt=we;tt={type:"atom",mode:this.mode,family:yt,loc:Le,text:O}}else tt={type:we,mode:this.mode,loc:Le,text:O};me=tt}else if(O.charCodeAt(0)>=128)this.settings.strict&&(ze(O.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+O[0]+'" used in math mode',k):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+O[0]+'"'+(" ("+O.charCodeAt(0)+")"),k)),me={type:"textord",mode:"text",loc:Ms.range(k),text:O};else return null;if(this.consume(),le)for(var Tt=0;Tt${a.toString()}`}}function JNe(e){e.inline.ruler.before("escape","math",(n,i)=>{let r=null,a=null,s=!0;const o=[["$","$"],["\\(","\\)"]],l=[["$$","$$"],["\\[","\\]"]];for(const h of l)if(n.src.startsWith(h[0],n.pos)){[r,a]=h;break}if(!r){for(const h of o)if(n.src.startsWith(h[0],n.pos)){[r,a]=h,s=!1;break}}if(!r)return!1;let c=null,u=-1,d=n.pos+r.length;for(;d=0)c=n.src.slice(n.pos+r.length,u);else return!1;if(c&&!i){const h=n.push("math");return h.content=c.trim(),h.openTag=r,h.closeTag=a,h.displayMode=s,n.pos+=c.length+r.length+a.length,!0}else return!1}),e.renderer.rules.math=(n,i)=>{const r=n[i]?n[i].content:null;return ZNe(r,n[i].openTag,n[i].closeTag,n[i].displayMode)}}function hl(){this.__highest_alphabet__=0,this.__match_alphabets__={},this.__initial_state__=0,this.__accept_states__={},this.__transitions__={},this.__actions__={}}hl.prototype.set_highest_alphabet=function(e){this.__highest_alphabet__=e};hl.prototype.set_match_alphabets=function(e){this.__match_alphabets__=e};hl.prototype.set_initial_state=function(e){this.__initial_state__=e};hl.prototype.set_accept_states=function(e){for(var n=0;n0&&!(i&a&&this.__match_alphabets__[a].call(this,r,i,a));a>>=4);if(this.__actions__(r,i,a),a===0)break;i=this.__transitions__[i][a]||0}return!!this.__accept_states__[i]};var e3e=hl,t3e=e3e,n3e=function(n,i){var r={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};i=n.utils.assign({},r,i||{});function a(d,h){var m=d.bMarks[h]+d.sCount[h],f=d.bMarks[h]+d.blkIndent,g=d.skipSpacesBack(d.eMarks[h],f),v=[],T,y,C=!1,I=!1,M=0;for(T=m;TT?(I||(M===0?M=y-T:M===y-T&&(M=0)),T=y):(I||!C&&!M)&&(I=!I),C=!1;break;case 124:!I&&!C&&v.push(T),C=!1;break;default:C=!1;break}return v.length===0||(v[0]>f&&v.unshift(f-1),v[v.length-1]=4||g.length===0)return!1;for(T=0;Tm||(C=new d.Token("table_open","table",1),C.meta={sep:null,cap:null,tr:[]},g.set_highest_alphabet(65536),g.set_initial_state(65792),g.set_accept_states([65552,65553,0]),g.set_match_alphabets({65536:s.bind(this,d,!0),4096:l.bind(this,d,!0),256:o.bind(this,d,!0),16:o.bind(this,d,!0),1:c.bind(this,d,!0)}),g.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}}),i.headerless&&(g.set_initial_state(69888),g.update_transition(69888,{65536:4352,4096:65552,256:4352}),I=new d.Token("tr_placeholder","tr",0),I.meta=Object()),i.multibody||g.update_transition(65552,{65536:0,16:65552}),g.set_actions(function(ue,ae,Ee){switch(Ee){case 65536:if(C.meta.cap)break;C.meta.cap=s(d,!1,ue),C.meta.cap.map=[ue,ue+1],C.meta.cap.first=ue===h;break;case 4096:C.meta.sep=l(d,!1,ue),C.meta.sep.map=[ue,ue+1],I.meta.grp|=1,v=16;break;case 256:case 16:I=new d.Token("tr_open","tr",1),I.map=[ue,ue+1],I.meta=o(d,!1,ue),I.meta.type=Ee,I.meta.grp=v,v=0,C.meta.tr.push(I),i.multiline&&(I.meta.multiline&&T<0?T=C.meta.tr.length-1:!I.meta.multiline&&T>=0&&(y=C.meta.tr[T],y.meta.mbounds=C.meta.tr.slice(T).map(function(ze){return ze.meta.bounds}),y.map[1]=I.map[1],C.meta.tr=C.meta.tr.slice(0,T+1),T=-1));break;case 1:I.meta.grp|=1,v=16;break}}),g.execute(h,m)===!1)||!C.meta.tr.length)return!1;if(f)return!0;if(C.meta.tr[C.meta.tr.length-1].meta.grp|=1,C.map=W=[h,0],C.block=!0,C.level=d.level++,d.tokens.push(C),C.meta.cap){y=d.push("caption_open","caption",1),y.map=C.meta.cap.map;var j=[],re=C.meta.cap.first?"top":"bottom";C.meta.cap.label!==null&&j.push(["id",C.meta.cap.label]),re!=="top"&&j.push(["style","caption-side: "+re]),y.attrs=j,y=d.push("inline","",0),y.content=C.meta.cap.text,y.map=C.meta.cap.map,y.children=[],y=d.push("caption_close","caption",-1)}for(se=0;seI.meta.mbounds[p].length-2||(Y=[I.meta.mbounds[p][q]+1,I.meta.mbounds[p][q+1]],de.push(d.src.slice.apply(d.src,Y).trimRight()));for(z=new d.md.block.State(de.join(` -`),d.md,d.env,[]),z.level=I.level+1,d.md.block.tokenize(z,I.map[0],z.lineMax),N=0;N:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!c.test(C[y-1])||y+T.lengthg&&(f=new m("text","",0),f.content=d.slice(g,y),v.push(f)),f=new m("emoji","",0),f.markup=I,f.content=i[I],v.push(f),g=y+T.length}),g=0;m--)T=v[m],(T.type==="link_open"||T.type==="link_close")&&T.info==="auto"&&(C-=T.nesting),T.type==="text"&&C===0&&a.test(T.content)&&(y[f].children=v=o(v,m,u(T.content,T.level,h.Token)))}};function b$e(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var y$e=function(n){var i=n.defs,r;n.enabled.length&&(i=Object.keys(i).reduce(function(l,c){return n.enabled.indexOf(c)>=0&&(l[c]=i[c]),l},{})),r=Object.keys(n.shortcuts).reduce(function(l,c){return i[c]?Array.isArray(n.shortcuts[c])?(n.shortcuts[c].forEach(function(u){l[u]=c}),l):(l[n.shortcuts[c]]=c,l):l},{});var a=Object.keys(i).map(function(l){return":"+l+":"}).concat(Object.keys(r)).sort().reverse().map(function(l){return b$e(l)}).join("|"),s=RegExp(a),o=RegExp(a,"g");return{defs:i,shortcuts:r,scanRE:s,replaceRE:o}},_$e=p$e,E$e=m$e,A$e=g$e,w$e=v$e,x$e=y$e,C$e=function(n,i){var r={defs:_$e,shortcuts:E$e,enabled:[]},a=x$e(n.utils.assign({},r,i||{}));n.renderer.rules.emoji=A$e,n.core.ruler.push("emoji",w$e(n,a.defs,a.shortcuts,a.scanRE,a.replaceRE))};const S$e=vr(C$e);var T$e=function(n){function i(a,s){var o,l,c,u,d,h=a.pos,m=a.src.charCodeAt(h);if(s||m!==61||(l=a.scanDelims(a.pos,!0),u=l.length,d=String.fromCharCode(m),u<2))return!1;for(u%2&&(c=a.push("text","",0),c.content=d,u--),o=0;o?@[\]^_`{|}~-])/g;function N$e(e,n){var i,r,a,s=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==126||n||o+2>=s)return!1;for(e.pos=o+1;e.pos?@[\]^_`{|}~-])/g;function O$e(e,n){var i,r,a,s=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==94||n||o+2>=s)return!1;for(e.pos=o+1;e.pos^`|~",s=n.utils.lib.ucmicro.P.source,o=n.utils.lib.ucmicro.Z.source;function l(u,d,h,m){var f,g,v,T,y,C=u.bMarks[d]+u.tShift[d],I=u.eMarks[d];if(C+2>=I||u.src.charCodeAt(C++)!==42||u.src.charCodeAt(C++)!==91)return!1;for(T=C;C"u"&&(u.env.abbreviations[":"+f]=g),u.line=d+1,!0))}function c(u){var d,h,m,f,g,v,T,y,C,I,M,R,B,A=u.tokens;if(u.env.abbreviations){for(R=new RegExp("(?:"+Object.keys(u.env.abbreviations).map(function(W){return W.substr(1)}).sort(function(W,ne){return ne.length-W.length}).map(i).join("|")+")"),M="(^|"+s+"|"+o+"|["+a.split("").map(i).join("")+"])("+Object.keys(u.env.abbreviations).map(function(W){return W.substr(1)}).sort(function(W,ne){return ne.length-W.length}).map(i).join("|")+")($|"+s+"|"+o+"|["+a.split("").map(i).join("")+"])",C=new RegExp(M,"g"),h=0,m=A.length;h=0;d--)if(B=f[d],B.type==="text"&&(y=0,v=B.content,C.lastIndex=0,T=[],!!R.test(v))){for(;I=C.exec(v);)(I.index>0||I[1].length>0)&&(g=new u.Token("text","",0),g.content=v.slice(y,I.index+I[1].length),T.push(g)),g=new u.Token("abbr_open","abbr",1),g.attrs=[["title",u.env.abbreviations[":"+I[2]]]],T.push(g),g=new u.Token("text","",0),g.content=I[2],T.push(g),g=new u.Token("abbr_close","abbr",-1),T.push(g),C.lastIndex-=I[3].length,y=C.lastIndex;T.length&&(y?@[\]^_`{|}~-])/g;function q$e(e,n){var i,r,a,s=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==42||n||o+2>=s)return!1;for(e.pos=o+1;e.pos"'=]/,a=" ",s="=",o=".",l="#",c=[];let u="",d="",h=!0,m=!1;for(let f=n+i.leftDelimiter.length;f=r+1:d.length>=r}let s,o,l,c,u=r-n.rightDelimiter.length;switch(e){case"start":l=i.slice(0,n.leftDelimiter.length),s=l===n.leftDelimiter?0:-1,o=s===-1?-1:i.indexOf(n.rightDelimiter,u),c=i.charAt(o+n.rightDelimiter.length),c&&n.rightDelimiter.indexOf(c)!==-1&&(o=-1);break;case"end":s=i.lastIndexOf(n.leftDelimiter),o=s===-1?-1:i.indexOf(n.rightDelimiter,s+u),o=o===i.length-n.rightDelimiter.length?o:-1;break;case"only":l=i.slice(0,n.leftDelimiter.length),s=l===n.leftDelimiter?0:-1,l=i.slice(i.length-n.rightDelimiter.length),o=l===n.rightDelimiter?i.length-n.rightDelimiter.length:-1;break}return s!==-1&&o!==-1&&a(i.substring(s,o+n.rightDelimiter.length))}};cc.removeDelimiter=function(e,n){const i=fA(n.leftDelimiter),r=fA(n.rightDelimiter);let a=new RegExp("[ \\n]?"+i+"[^"+i+r+"]+"+r+"$"),s=e.search(a);return s!==-1?e.slice(0,s):e};function fA(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}cc.escapeRegExp=fA;cc.getMatchingOpeningToken=function(e,n){if(e[n].type==="softbreak")return!1;if(e[n].nesting===0)return e[n];let i=e[n].level,r=e[n].type.replace("_close","_open");for(;n>=0;--n)if(e[n].type===r&&e[n].level===i)return e[n]};let G$e=/[&<>"]/,V$e=/[&<>"]/g,W$e={"&":"&","<":"<",">":">",'"':"""};function Q$e(e){return W$e[e]}cc.escapeHtml=function(e){return G$e.test(e)?e.replace(V$e,Q$e):e};const Vn=cc;var j$e=e=>{const n=new RegExp("^ {0,3}[-*_]{3,} ?"+Vn.escapeRegExp(e.leftDelimiter)+"[^"+Vn.escapeRegExp(e.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:Vn.hasDelimiters("end",e)}],transform:(i,r)=>{let a=i[r],s=a.info.lastIndexOf(e.leftDelimiter),o=Vn.getAttrs(a.info,s,e);Vn.addAttrs(o,a),a.info=Vn.removeDelimiter(a.info,e)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:i=>i==="image"||i==="code_inline"},{shift:0,type:"text",content:Vn.hasDelimiters("start",e)}]}],transform:(i,r,a)=>{let s=i[r].children[a],o=s.content.indexOf(e.rightDelimiter),l=i[r].children[a-1],c=Vn.getAttrs(s.content,0,e);Vn.addAttrs(c,l),s.content.length===o+e.rightDelimiter.length?i[r].children.splice(a,1):s.content=s.content.slice(o+e.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Vn.hasDelimiters("only",e)}],transform:(i,r)=>{let a=i[r+2],s=Vn.getMatchingOpeningToken(i,r),o=Vn.getAttrs(a.content,0,e);Vn.addAttrs(o,s),i.splice(r+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:Vn.hasDelimiters("start",e)}]}],transform:(i,r,a)=>{let s=i[r].children[a],o=s.content,l=Vn.getAttrs(o,0,e),c=Vn.getMatchingOpeningToken(i[r].children,a-1);Vn.addAttrs(l,c),s.content=o.slice(o.indexOf(e.rightDelimiter)+e.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:Vn.hasDelimiters("only",e)}]}],transform:(i,r,a)=>{let o=i[r].children[a].content,l=Vn.getAttrs(o,0,e),c=r-2;for(;i[c-1]&&i[c-1].type!=="ordered_list_open"&&i[c-1].type!=="bullet_list_open";)c--;Vn.addAttrs(l,i[c-1]),i[r].children=i[r].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:i=>i==="bullet_list_close"||i==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Vn.hasDelimiters("only",e),children:i=>i.length===1},{shift:3,type:"paragraph_close"}],transform:(i,r)=>{let s=i[r+2].content,o=Vn.getAttrs(s,0,e),l=Vn.getMatchingOpeningToken(i,r);Vn.addAttrs(o,l),i.splice(r+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:Vn.hasDelimiters("end",e)}]}],transform:(i,r,a)=>{let s=i[r].children[a],o=s.content,l=Vn.getAttrs(o,o.lastIndexOf(e.leftDelimiter),e);Vn.addAttrs(l,i[r-2]);let c=o.slice(0,o.lastIndexOf(e.leftDelimiter));s.content=WN(c)!==" "?c:c.slice(0,-1)}},{name:` -{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Vn.hasDelimiters("only",e)}]}],transform:(i,r,a)=>{let s=i[r].children[a],o=Vn.getAttrs(s.content,0,e),l=r+1;for(;i[l+1]&&i[l+1].nesting===-1;)l++;let c=Vn.getMatchingOpeningToken(i,l);Vn.addAttrs(o,c),i[r].children=i[r].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:i=>i.length===1,content:i=>i.match(n)!==null},{shift:2,type:"paragraph_close"}],transform:(i,r)=>{let a=i[r];a.type="hr",a.tag="hr",a.nesting=0;let s=i[r+1].content,o=s.lastIndexOf(e.leftDelimiter);a.attrs=Vn.getAttrs(s,o,e),a.markup=s,i.splice(r+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:Vn.hasDelimiters("end",e),type:i=>i!=="code_inline"}]}],transform:(i,r,a)=>{let s=i[r].children[a],o=s.content,l=Vn.getAttrs(o,o.lastIndexOf(e.leftDelimiter),e),c=r+1;for(;i[c+1]&&i[c+1].nesting===-1;)c++;let u=Vn.getMatchingOpeningToken(i,c);Vn.addAttrs(l,u);let d=o.slice(0,o.lastIndexOf(e.leftDelimiter));s.content=WN(d)!==" "?d:d.slice(0,-1)}}]};function WN(e){return e.slice(-1)[0]}const Y$e=j$e,K$e={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var X$e=function(n,i){let r=Object.assign({},K$e);r=Object.assign(r,i);const a=Y$e(r);function s(o){let l=o.tokens;for(let c=0;c{let g=pA(l,c,f);return g.j!==null&&(h=g.j),g.match})&&(d.transform(l,c,h),(d.name==="inline attributes"||d.name==="inline nesting 0")&&u--)}}n.core.ruler.before("linkify","curly_attributes",s)};function pA(e,n,i){let r={match:!1,j:null},a=i.shift!==void 0?n+i.shift:i.position,s=J$e(e,a);if(s===void 0)return r;for(let o in i)if(!(o==="shift"||o==="position")){if(s[o]===void 0)return r;if(o==="children"&&$$e(i.children)){if(s.children.length===0)return r;let l,c=i.children,u=s.children;if(c.every(d=>d.position!==void 0)){if(l=c.every(d=>pA(u,d.position,d).match),l){let d=eZe(c).position;r.j=d>=0?d:u.length+d}}else for(let d=0;dpA(u,d,h).match),l){r.j=d;break}if(l===!1)return r;continue}switch(typeof i[o]){case"boolean":case"number":case"string":if(s[o]!==i[o])return r;break;case"function":if(!i[o](s[o]))return r;break;case"object":if(Z$e(i[o])){if(i[o].every(c=>c(s[o]))===!1)return r;break}default:throw new Error(`Unknown type of pattern test (key: ${o}). Test should be of type boolean, number, string, function or array of functions.`)}}return r.match=!0,r}function $$e(e){return Array.isArray(e)&&e.length&&e.every(n=>typeof n=="object")}function Z$e(e){return Array.isArray(e)&&e.length&&e.every(n=>typeof n=="function")}function J$e(e,n){return n>=0?e[n]:e[e.length+n]}function eZe(e){return e.slice(-1)[0]||{}}const tZe=vr(X$e);var nZe=function(n){function i(r){var a=r.posMax;if(r.src.charCodeAt(r.pos)!==91)return!1;var s=r.pos+1,o=r.md.helpers.parseLinkLabel(r,r.pos,!0);if(o<0)return!1;var l=o+1;return l=v||(ee=f.bMarks[C]+f.tShift[C],de=f.eMarks[C],ee=4)){for(y=ee+1;y<=de&&l[(y-ee)%u]===f.src[y];y++);if(!(Math.floor((y-ee)/u){n.core.ruler.after("inline","replace-src-link",({tokens:i,env:r})=>{for(let a of i)if(a.type==="inline"&&a.children.length){for(let s of a.children)if(s.tag==="img")for(let o of s.attrs){const l=e(o[0],o[1],r);l!=null&&(o[1]=l)}}})}}kg.__defineMacro("\\ce",function(e){return HL(e.consumeArgs(1)[0],"ce")});kg.__defineMacro("\\pu",function(e){return HL(e.consumeArgs(1)[0],"pu")});kg.__defineMacro("\\tripledash","{\\vphantom{-}\\raisebox{2.56mu}{$\\mkern2mu\\tiny\\text{-}\\mkern1mu\\text{-}\\mkern1mu\\text{-}\\mkern2mu$}}");function HL(e,n){for(var i="",r=e[e.length-1].loc.start,a=e.length-1;a>=0;a--)e[a].loc.start>r&&(i+=" ",r=e[a].loc.start),i+=e[a].text,r+=e[a].text.length;var s=wi.go(Et.go(i,n));return s}var Et={go:function(e,n){if(!e)return[];n===void 0&&(n="ce");var i="0",r={};r.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var a,s=10,o=[];;){a!==e?(s=10,a=e):s--;var l=Et.stateMachines[n],c=l.transitions[i]||l.transitions["*"];e:for(var u=0;u0){if(h.revisit||(e=d.remainder),!h.toContinue)break e}else return o}}if(s<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,n){if(n)if(Array.isArray(n))for(var i=0;i":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return Et.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return Et.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return Et.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return Et.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return Et.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return Et.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return Et.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return Et.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return Et.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return Et.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return Et.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return Et.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var n;if(n=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),n)return{match_:n[0],remainder:e.substr(n[0].length)};var i=Et.patterns.findObserveGroups(e,"","$","$","");return i&&(n=i.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),n)?{match_:n[0],remainder:e.substr(n[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var n=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return n?{match_:n[0],remainder:e.substr(n[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,n,i,r,a,s,o,l,c,u){var d=function(y,C){if(typeof C=="string")return y.indexOf(C)!==0?null:C;var I=y.match(C);return I?I[0]:null},h=function(y,C,I){for(var M=0;C0,null},m=d(e,n);if(m===null||(e=e.substr(m.length),m=d(e,i),m===null))return null;var f=h(e,m.length,r||a);if(f===null)return null;var g=e.substring(0,r?f.endMatchEnd:f.endMatchBegin);if(s||o){var v=this.findObserveGroups(e.substr(f.endMatchEnd),s,o,l,c);if(v===null)return null;var T=[g,v.match_];return{match_:u?T.join(""):T,remainder:v.remainder}}else return{match_:g,remainder:e.substr(f.endMatchEnd)}},match_:function(e,n){var i=Et.patterns.patterns[e];if(i===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof i=="function")return Et.patterns.patterns[e](n);var r=n.match(i);if(r){var a;return r[2]?a=[r[1],r[2]]:r[1]?a=r[1]:a=r[0],{match_:a,remainder:n.substr(r[0].length)}}return null}},actions:{"a=":function(e,n){e.a=(e.a||"")+n},"b=":function(e,n){e.b=(e.b||"")+n},"p=":function(e,n){e.p=(e.p||"")+n},"o=":function(e,n){e.o=(e.o||"")+n},"q=":function(e,n){e.q=(e.q||"")+n},"d=":function(e,n){e.d=(e.d||"")+n},"rm=":function(e,n){e.rm=(e.rm||"")+n},"text=":function(e,n){e.text_=(e.text_||"")+n},insert:function(e,n,i){return{type_:i}},"insert+p1":function(e,n,i){return{type_:i,p1:n}},"insert+p1+p2":function(e,n,i){return{type_:i,p1:n[0],p2:n[1]}},copy:function(e,n){return n},rm:function(e,n){return{type_:"rm",p1:n||""}},text:function(e,n){return Et.go(n,"text")},"{text}":function(e,n){var i=["{"];return Et.concatArray(i,Et.go(n,"text")),i.push("}"),i},"tex-math":function(e,n){return Et.go(n,"tex-math")},"tex-math tight":function(e,n){return Et.go(n,"tex-math tight")},bond:function(e,n,i){return{type_:"bond",kind_:i||n}},"color0-output":function(e,n){return{type_:"color0",color:n[0]}},ce:function(e,n){return Et.go(n)},"1/2":function(e,n){var i=[];n.match(/^[+\-]/)&&(i.push(n.substr(0,1)),n=n.substr(1));var r=n.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return r[1]=r[1].replace(/\$/g,""),i.push({type_:"frac",p1:r[1],p2:r[2]}),r[3]&&(r[3]=r[3].replace(/\$/g,""),i.push({type_:"tex-math",p1:r[3]})),i},"9,9":function(e,n){return Et.go(n,"9,9")}},createTransitions:function(e){var n,i,r,a,s={};for(n in e)for(i in e[n])for(r=i.split("|"),e[n][i].stateArray=r,a=0;a":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,n){var i;if((e.d||"").match(/^[0-9]+$/)){var r=e.d;e.d=void 0,i=this.output(e),e.b=r}else i=this.output(e);return Et.actions["o="](e,n),i},"d= kv":function(e,n){e.d=n,e.dType="kv"},"charge or bond":function(e,n){if(e.beginsWithBond){var i=[];return Et.concatArray(i,this.output(e)),Et.concatArray(i,Et.actions.bond(e,n,"-")),i}else e.d=n},"- after o/d":function(e,n,i){var r=Et.patterns.match_("orbital",e.o||""),a=Et.patterns.match_("one lowercase greek letter $",e.o||""),s=Et.patterns.match_("one lowercase latin letter $",e.o||""),o=Et.patterns.match_("$one lowercase latin letter$ $",e.o||""),l=n==="-"&&(r&&r.remainder===""||a||s||o);l&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!r&&s&&(e.o="$"+e.o+"$");var c=[];return l?(Et.concatArray(c,this.output(e)),c.push({type_:"hyphen"})):(r=Et.patterns.match_("digits",e.d||""),i&&r&&r.remainder===""?(Et.concatArray(c,Et.actions["d="](e,n)),Et.concatArray(c,this.output(e))):(Et.concatArray(c,this.output(e)),Et.concatArray(c,Et.actions.bond(e,n,"-")))),c},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,n){return{type_:"state of aggregation",p1:Et.go(n,"o")}},comma:function(e,n){var i=n.replace(/\s*$/,""),r=i!==n;return r&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:i}:{type_:"comma enumeration M",p1:i}},output:function(e,n,i){var r;if(!e.r)r=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!i||(e.sb&&r.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&i!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&Et.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),r.push({type_:"chemfive",a:Et.go(e.a,"a"),b:Et.go(e.b,"bd"),p:Et.go(e.p,"pq"),o:Et.go(e.o,"o"),q:Et.go(e.q,"pq"),d:Et.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var a;e.rdt==="M"?a=Et.go(e.rd,"tex-math"):e.rdt==="T"?a=[{type_:"text",p1:e.rd||""}]:a=Et.go(e.rd);var s;e.rqt==="M"?s=Et.go(e.rq,"tex-math"):e.rqt==="T"?s=[{type_:"text",p1:e.rq||""}]:s=Et.go(e.rq),r={type_:"arrow",r:e.r,rd:a,rq:s}}for(var o in e)o!=="parenthesisLevel"&&o!=="beginsWithBond"&&delete e[o];return r},"oxidation-output":function(e,n){var i=["{"];return Et.concatArray(i,Et.go(n,"oxidation")),i.push("}"),i},"frac-output":function(e,n){return{type_:"frac-ce",p1:Et.go(n[0]),p2:Et.go(n[1])}},"overset-output":function(e,n){return{type_:"overset",p1:Et.go(n[0]),p2:Et.go(n[1])}},"underset-output":function(e,n){return{type_:"underset",p1:Et.go(n[0]),p2:Et.go(n[1])}},"underbrace-output":function(e,n){return{type_:"underbrace",p1:Et.go(n[0]),p2:Et.go(n[1])}},"color-output":function(e,n){return{type_:"color",color1:n[0],color2:Et.go(n[1])}},"r=":function(e,n){e.r=n},"rdt=":function(e,n){e.rdt=n},"rd=":function(e,n){e.rd=n},"rqt=":function(e,n){e.rqt=n},"rq=":function(e,n){e.rq=n},operator:function(e,n,i){return{type_:"operator",kind_:i||n}}}},a:{transitions:Et.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:Et.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:Et.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var n={type_:"text",p1:e.text_};for(var i in e)delete e[i];return n}}}},pq:{transitions:Et.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,n){return{type_:"state of aggregation subscript",p1:Et.go(n,"o")}},"color-output":function(e,n){return{type_:"color",color1:n[0],color2:Et.go(n[1],"pq")}}}},bd:{transitions:Et.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,n){return{type_:"color",color1:n[0],color2:Et.go(n[1],"bd")}}}},oxidation:{transitions:Et.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,n){return{type_:"roman numeral",p1:n||""}}}},"tex-math":{transitions:Et.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var n={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return n}}}},"tex-math tight":{transitions:Et.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,n){e.o=(e.o||"")+"{"+n+"}"},output:function(e){if(e.o){var n={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return n}}}},"9,9":{transitions:Et.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Et.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,n){var i=[];return n[0]==="+-"||n[0]==="+/-"?i.push("\\pm "):n[0]&&i.push(n[0]),n[1]&&(Et.concatArray(i,Et.go(n[1],"pu-9,9")),n[2]&&(n[2].match(/[,.]/)?Et.concatArray(i,Et.go(n[2],"pu-9,9")):i.push(n[2])),n[3]=n[4]||n[3],n[3]&&(n[3]=n[3].trim(),n[3]==="e"||n[3].substr(0,1)==="*"?i.push({type_:"cdot"}):i.push({type_:"times"}))),n[3]&&i.push("10^{"+n[5]+"}"),i},"number^":function(e,n){var i=[];return n[0]==="+-"||n[0]==="+/-"?i.push("\\pm "):n[0]&&i.push(n[0]),Et.concatArray(i,Et.go(n[1],"pu-9,9")),i.push("^{"+n[2]+"}"),i},operator:function(e,n,i){return{type_:"operator",kind_:i||n}},space:function(){return{type_:"pu-space-1"}},output:function(e){var n,i=Et.patterns.match_("{(...)}",e.d||"");i&&i.remainder===""&&(e.d=i.match_);var r=Et.patterns.match_("{(...)}",e.q||"");if(r&&r.remainder===""&&(e.q=r.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var a={d:Et.go(e.d,"pu"),q:Et.go(e.q,"pu")};e.o==="//"?n={type_:"pu-frac",p1:a.d,p2:a.q}:(n=a.d,a.d.length>1||a.q.length>1?n.push({type_:" / "}):n.push({type_:"/"}),Et.concatArray(n,a.q))}else n=Et.go(e.d,"pu-2");for(var s in e)delete e[s];return n}}},"pu-2":{transitions:Et.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,n){e.rm+="^{"+n+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var n=[];if(e.rm){var i=Et.patterns.match_("{(...)}",e.rm||"");i&&i.remainder===""?n=Et.go(i.match_,"pu"):n={type_:"rm",p1:e.rm}}for(var r in e)delete e[r];return n}}},"pu-9,9":{transitions:Et.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var n=[];if(e.text_=e.text_||"",e.text_.length>4){var i=e.text_.length%3;i===0&&(i=3);for(var r=e.text_.length-3;r>0;r-=3)n.push(e.text_.substr(r,3)),n.push({type_:"1000 separator"});n.push(e.text_.substr(0,i)),n.reverse()}else n.push(e.text_);for(var a in e)delete e[a];return n},"output-o":function(e){var n=[];if(e.text_=e.text_||"",e.text_.length>4){for(var i=e.text_.length-3,r=0;r":return"rightarrow";case"→":return"rightarrow";case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"rightleftarrows";case"<=>":return"rightleftharpoons";case"⇌":return"rightleftharpoons";case"<=>>":return"rightequilibrium";case"<<=>":return"leftequilibrium";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\mathrlap{\\raisebox{-.1em}{$-$}}\\raisebox{.1em}{$\\tripledash$}}";case"~=":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";case"~--":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";case"-~-":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$-$}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}},bi=new LTe({html:!0,linkify:!0,breaks:!0});bi.disable("emphasis");var sZe=bi.renderer.rules.link_open||function(e,n,i,r,a){return a.renderToken(e,n,i)};bi.renderer.rules.link_open=function(e,n,i,r,a){return e[n].attrPush(["tabIndex","-1"]),e[n].attrPush(["contenteditable",!1]),sZe(e,n,i,r,a)};const oZe=bi.validateLink;bi.validateLink=e=>/^data:image\/.*?;/.test(e)||oZe(e);bi.use(aZe((e,n,i)=>{if(e==="src")return n}));bi.use(XNe);bi.use(JNe);bi.use(i3e,{multiline:!0,rowspan:!0,headerless:!0});bi.use(Gp,"warning",{validate:function(e){return e.trim()==="warning"},render:(e,n)=>e[n].nesting===1?'
':"
"}).use(Gp,"info",{validate:function(e){return e.trim()==="info"},render:(e,n)=>e[n].nesting===1?'
':"
"}).use(Gp,"success",{validate:function(e){return e.trim()==="success"},render:(e,n)=>e[n].nesting===1?'
':"
"}).use(Gp,"error",{validate:function(e){return e.trim()==="error"},render:(e,n)=>e[n].nesting===1?'
':"
"});bi.use(S$e);bi.use(k$e);bi.use(M$e);bi.use(P$e);bi.use(F$e);bi.use(H$e);bi.use(U$e);bi.use(iZe).use(tZe,{leftDelimiter:"{{",rightDelimiter:"}}"});bi.makeHtml||(bi.makeHtml=bi.render);var lZe=require("path");let cZe='',uZe='';function b_(e){if(window.getSelection){e.focus();var n=window.getSelection();try{n.selectAllChildren(e),n.collapseToEnd()}catch{}}}let qi=class{constructor(n,i){ie(this,"containEl");ie(this,"contentEl");ie(this,"assistDom");ie(this,"editDom");ie(this,"plgDom");ie(this,"annotateDom");ie(this,"box",{x:0,y:0,width:0,height:0});ie(this,"mindmap");ie(this,"name","node");ie(this,"data");ie(this,"isExpand",!0);ie(this,"isSelect",!1);ie(this,"_oldText");ie(this,"parent");ie(this,"isRoot");ie(this,"children",[]);ie(this,"boundingRect");ie(this,"direct");ie(this,"isHide",!1);ie(this,"stroke");ie(this,"isEdit",!1);ie(this,"_barDom",null);ie(this,"callout",null);ie(this,"wireFrames",[]);ie(this,"summaries",[]);ie(this,"induce",null);ie(this,"wireFrame",null);ie(this,"layout",null);ie(this,"nodeType");ie(this,"topLayout");ie(this,"wfs",[]);ie(this,"induces",[]);ie(this,"belongInduce",null);ie(this,"relateLink");ie(this,"_wireFrames",[]);ie(this,"_summaries",[]);ie(this,"_removeLink",null);ie(this,"shapeSvg");ie(this,"_isRoot");ie(this,"shouldRender",!0);ie(this,"containBar",!1);ie(this,"containBox");ie(this,"style");ie(this,"tNode",null);ie(this,"_shapeDom",null);ie(this,"_mathTime",null);ie(this,"_noteTab",null);ie(this,"coverDom",null);ie(this,"_hasImage",null);ie(this,"_hasLink","");this.data=n,this.mindmap=i,this.data.stroke&&(this.stroke=this.data.stroke),this.data.style&&(this.style=Object.assign({},this.style,this.data.style)),this.initDom()}getId(){return this.data.id}getParent(){return this.parent||null}initDom(){this.containEl=document.createElement("div"),this.containEl.classList.add("mm-node"),this.containEl.setAttribute("contentEditable","false"),this.containEl.setAttribute("tabIndex","-1"),this.containEl.setAttribute("data-id",this.data.id),this.containEl.setAttribute("draggable","false"),this.assistDom=document.createElement("div"),this.assistDom.classList.add("mm-node-assist"),this.contentEl=document.createElement("div"),this.contentEl.classList.add("mm-node-content"),this.containEl.appendChild(this.contentEl),this.contentEl.appendChild(this.assistDom),this.editDom=document.createElement("div"),this.editDom.classList.add("mm-node-edit"),this.contentEl.appendChild(this.editDom),this.plgDom=document.createElement("div"),this.plgDom.classList.add("mm-note-dom"),this.contentEl.appendChild(this.plgDom),this.initNodeBar(),this.updateAnnotate(),this.data.note&&this.updateNote(),this.data.isRoot&&(this.containEl.classList.add("mm-root"),this.isRoot=!0),this.setStyle(),this.parseText(),this.data.cover&&this.createCoverDom()}createCoverDom(){var n=document.createElement("div");this.containEl.appendChild(n),n.classList.add("mm-node-cover"),this.coverDom=n}setCoverText(n){n?(this.data.cover=!0,this.coverDom||this.createCoverDom()):(this.data.cover=!1,this.containEl.contains(this.coverDom)&&(this.containEl.removeChild(this.coverDom),this.coverDom=null))}initNodeBar(){this._barDom=document.createElement("div"),this._barDom.classList.add("mm-node-bar"),this.containEl.appendChild(this._barDom)}_parseRelateLink(n){var i=/\!\[\[(.*?)\]\]/g,r=/\[\[(.*?)\]\]/g,a=n.match(i);a&&a.forEach(o=>{if(o){var l=o.substring(3,o.length-2),c=l.split("|"),u=l,d="";if(c.length>2&&(u=c[0],d=c[1]),u.toLowerCase().endsWith("png")||u.toLowerCase().endsWith("jpg")||u.toLowerCase().endsWith("gif")||u.toLowerCase().endsWith("svg"))var h='';else var h=''+(d||u)+"";n=n.replaceAll(o,h)}});var s=n.match(r);return s&&s.forEach(o=>{if(o&&o.trim()){var l=o.substring(2,o.length-2),c=l.split("|"),u=l,d="";c.length>=2&&(u=c[0],d=c[1]);var h=lZe.extname(u);if(!h||h==".md")var m=''+(d||u)+"";else var m=''+(d||u)+"";n=n.replaceAll(o,m)}}),n}parseText(){var n=bi.makeHtml(this.data.text);try{n=this._parseRelateLink(n)}catch{}this.editDom.innerHTML=n,this.data.mdText=this.editDom.innerHTML,this.refreshBox(),this._delay()}isMindmap(n){if(n&&n.frontmatter){var i=n.frontmatter["mindmap-plugin"];return i=="rich"||i=="basic"}else return!1}isMindmapRichMode(n){return!!(n&&n.frontmatter&&n.frontmatter["mindmap-plugin"]&&n.frontmatter["mindmap-plugin"]=="rich")}_deleyRefreshLayout(n,i){if(n&&i){n=n.tNode?n.tNode:n;var r=n.getRootLayout()||i.mmLayout,a=i._delayRefresh.filter(s=>s.layout==r);if(a&&a.length)a[0].timeOut&&clearTimeout(a[0].timeOut),a[0].timeOut=setTimeout(()=>{i.emit("renderEditNode",{node:n})},800);else{if(!r)return;i._delayRefresh.push({node:n,layout:r,timeOut:setTimeout(()=>{i.emit("renderEditNode",{node:n})},800)})}i._delayRefresh.length>20&&(i._delayRefresh=[])}}_refreshImage(n,i){var r=n.querySelectorAll("span.mm-link-internal");for(let u=0;u{var m;u.onload||(u.onload=()=>{var v;var f=(v=u.closest(".mm-node"))==null?void 0:v.getAttribute("data-id");if(f){var g=i.getNodeById(f);g&&(g.clearCacheData(),g.refreshBox(),this._deleyRefreshLayout(g,i))}}),u.setAttribute("draggble","false");var d=(m=u.closest(".mm-node"))==null?void 0:m.getAttribute("data-id");if(d){var h=i.getNodeById(d);h&&(h.clearCacheData(),h.refreshBox(),this._deleyRefreshLayout(h,i))}})}_createHandDrawFill(){var n=this.getLevel();if(this.mindmap&&this.mindmap.useHandMode&&n<=1){var i=this.mindmap._rc||jc.svg(this.mindmap.draw),r=!!document.querySelector(".theme-dark")||!1;this.shapeSvg&&this.mindmap.draw.node.removeChild(this.shapeSvg);var a=this.getBox(),s=n==0?"solid":"sunburst",o=n==0?"1":"2",l=r?"#fff":"rgb(0, 170, 255)",c=r?"#333":"#000";this.shapeSvg=i.rectangle(a.x,a.y,a.width,a.height,{fill:this.stroke||this.data.stroke||l,fillStyle:s,stroke:this.stroke||this.data.stroke||c,fillWeight:o}),this.mindmap.draw.node.appendChild(this.shapeSvg)}}getImage(){return this._hasImage}getLink(){var n="",i=!1,r=this.editDom.querySelectorAll("a");for(let a=0;a{this._refreshImage(this.editDom,this.mindmap);var i=this.editDom.querySelector("code")||this.editDom.querySelector(".MathJax")||this.editDom.querySelector(".callout");i&&setTimeout(()=>{this.clearCacheData(),this.refreshBox(),this._deleyRefreshLayout(n,this.mindmap),this._createHandDrawFill()},200);var r=this.editDom.querySelectorAll("a.external-link");r.length&&setTimeout(()=>{this.clearCacheData(),this.refreshBox(),this._createHandDrawFill(),this.mindmap&&(this.mindmap._initTime&&clearTimeout(this.mindmap._initTime),this.mindmap._initTime=setTimeout(()=>{this._deleyRefreshLayout(n,this.mindmap)},600))},300),setTimeout(()=>{this.refreshBox(),this._createHandDrawFill()},1500)},280)}_delayRefresh(){}getRootLayout(){for(var n=this,i=null;n;)i=n.layout,n.belongInduce?n=n.belongInduce.node:n=n.parent;return i}select(){this.isSelect=!0,this.nodeType=="relateLink"||this.nodeType=="callout"?this.containEl.setAttribute("draggable","false"):this.containEl.setAttribute("draggable","true"),Object.assign(window,{myNode:this}),this.containEl.classList.contains("mm-node-select")||this.containEl.classList.add("mm-node-select"),this.mindmap.selectNode=this,this.tNode&&this.tNode.select()}unSelect(){this.isSelect=!1,this.containEl.setAttribute("draggable","false"),this.containEl.classList.contains("mm-node-select")&&this.containEl.classList.remove("mm-node-select")}edit(){this.editDom.innerText="",this._oldText=this.data.text,this.editDom.innerText=this._oldText,this.editDom.setAttribute("contentEditable","true"),this.containEl.setAttribute("draggable","false"),this.editDom.focus(),this.mindmap.editNode=this,this.isEdit=!0,this.data.cover&&this.coverDom&&(this.coverDom.style.display="none"),b_(this.editDom),(this.editDom.innerText==kt("Sub title")||this.editDom.innerText=="callout")&&this.selectText(),this.containEl.classList.contains("mm-edit-node")||this.containEl.classList.add("mm-edit-node")}selectText(){var n=this.editDom;if(window.getSelection){var i=window.getSelection(),r=document.createRange();r.selectNodeContents(n),i.removeAllRanges(),i.addRange(r)}}cancelEdit(){if(this.shouldRender){var n=this.editDom.innerText.trim()||"";this.data.text=n,this.editDom.innerText="",this.data.cover&&this.coverDom&&(this.coverDom.style.display="");var i=bi.makeHtml(this.data.text);try{i=this._parseRelateLink(i)}catch{}this.editDom.innerHTML=i,this.data.mdText=this.editDom.innerHTML,this.refreshBox(),this._delay(),n!=this._oldText&&(this.mindmap.execute("changeNodeText",{node:this.tNode?this.tNode:this,text:n,oldText:this._oldText}),this.callout&&this.callout.refresh()),this.editDom.setAttribute("contentEditable","false"),this.isEdit=!1,this.containEl.classList.contains("mm-edit-node")&&this.containEl.classList.remove("mm-edit-node"),this.mindmap.appEl.focus(),this.mindmap.editNode=null}}getLevel(){for(var n=0,i=this.parent;i;)n++,i=i.parent;return n}getChildren(){return this.children}setPosition(n,i){this.box.x=n,this.box.y=i,this.containEl.style.left=n+"px",this.containEl.style.top=i+"px",this.data.x=n,this.data.y=i}getPosition(){return{x:this.box.x,y:this.box.y}}move(n,i){var r=this.getPosition();this.setPosition(r.x+n,r.y+i)}getStyle(){return Object.assign({},this.style)}setStyle(n,i){i&&n?this.style=n:n&&(this.style=Object.assign({},this.style,n));var r=this.style,a="";for(var s in this.style)s=="font-size"||s=="border-width"?a+=`${s}:${r[s]}px;`:a+=`${s}:${r[s]};`;this.contentEl.setAttribute("style",a),this.nodeType&&this.nodeType=="callout"&&this.callout&&(this.callout.color=this.style["background-color"]||this.callout.color,this.callout.refresh())}isEmptyObject(n){for(var i in n)return!1;return!0}getData(){var n={...this.data};if(n.mdText&&delete n.mdText,this.layout?n.layout={layoutName:this.layout.layoutName,direct:this.layout.direct}:n.layout=null,this.nodeType=="freeNode"){n.main=!1;var i=this.getPosition();n.x=i.x,n.y=i.y}return this.isExpand&&(n.isExpand=!0),this.parent&&(n.pid=this.parent.getId()),n.children&&delete n.children,n.stroke=this.stroke||"",this.isEmptyObject(this.style)||(n.style=Object.assign({},this.style)),this.belongInduce&&(n.direct=this.direct),JSON.parse(JSON.stringify(n))}refreshBox(){this.box=this.getDomBox()}getBox(){return{...this.box}}refreshCBox(){this.box=this.getCBox()}getContainBox(){return this.containBar?this.containBox:this.box}getCBox(n){var i=this.getBox(),r=0,a=0;if(this.callout){var s=this.callout.getBox();s.yi.y+i.height&&(a=s.y+s.height-i.y-i.height)}if(n&&this.wfs.length){var o=0;this.wfs.forEach(l=>{if(l.data&&l.data.text){var c=l.getTextBox().height;o+=c}}),r+=o+3,a+=3}return{...i,th:r,bh:a}}getContainDomBox(){var n=parseInt(this.containEl.style.top),i=parseInt(this.containEl.style.left),r=Math.ceil(this.containEl.offsetWidth),a=Math.ceil(this.containEl.offsetHeight);return{x:i,y:n,width:r,height:a,th:0,bh:0}}getDomBox(){var n=parseInt(this.containEl.style.top),i=parseInt(this.containEl.style.left),r=Math.ceil(this.contentEl.offsetWidth),a=Math.ceil(this.contentEl.offsetHeight);return{x:i||0,y:n||0,width:r,height:a,th:0,bh:0}}getNodeList(){var n=[];return function i(r){n.push(r),r.children.forEach(a=>{i(a)})}(this),n}getShowNodeList(){var n=[];return function i(r){r.isShow()&&n.push(r),r.children.forEach(a=>{i(a)})}(this),n}getSiblings(){return this.parent?this.parent.children.filter(n=>n!=this):[]}isLeaf(){return!this.children.length}isShow(){return this.containEl.style.display!="none"}show(){this.containEl.style.display="block",this.isHide=!1}hide(){this.containEl.style.display="none",this.isHide=!0}clearCacheData(){for(var n=this;n;)n.boundingRect=null,n=n.parent||n.belongInduce&&n.belongInduce.node}addChild(n,i){this.children.indexOf(n)==-1&&(i>-1?(i>this.children.length&&(i=this.children.length),this.children.splice(i,0,n)):this.children.push(n),n.parent=this)}removeChild(n){var i=this.children.indexOf(n);return i>-1&&this.children.splice(i,1),i}setText(n){this.data.text=n,this.editDom.innerHTML="",this.parseText()}expand(){this.isExpand=!0,this.data.isExpand=!0;function n(r){r.show(),r.boundingRect=null,r.induces.length&&r.induces.forEach(a=>{n(a.root)}),r.isExpand&&(r.layout&&(r.layout.svgDom&&(r.layout.svgDom.show(),r.layout.isShow=!0),r.layout.group&&(r.layout.group.show(),r.layout.isShow=!0),r.layout.tableDom&&(r.layout.tableDom.style.display="")),r.children.forEach(a=>{n(a)}))}n(this);function i(r){r.isShow()||r.show(),r.refreshBox(),r.isExpand&&r.children.forEach(a=>{i(a)}),r.wfs.length&&r.wfs.forEach(a=>{a.show(),a.refreshItems()}),r.induces.length&&r.induces.forEach(a=>{a.show(),a.refreshItems(),i(a.root)})}i(this),this.containEl.classList.contains("mm-node-collapse")&&this.containEl.classList.remove("mm-node-collapse")}collapse(){function n(i){i.hide(),i.setPosition(10,10),i.induces.length&&i.induces.forEach(r=>{n(r.root)}),i.layout&&(i.layout.tableDom&&(i.layout.tableDom.style.display="none"),i.layout.svgDom&&(i.layout.svgDom.hide(),i.layout.isShow=!1),i.layout.group&&(i.layout.group.hide(),i.layout.isShow=!1)),i.isExpand&&i.children.forEach(r=>{n(r)})}this.children.forEach(i=>{n(i)}),this.isExpand=!1,this.data.isExpand=!1,this.containEl.classList.contains("mm-node-collapse")||this.containEl.classList.add("mm-node-collapse"),this.layout&&(this.layout.tableDom&&(this.layout.tableDom.style.display="none"),this.layout.svgDom&&(this.layout.svgDom.hide(),this.layout.isShow=!1),this.layout.group&&(this.layout.group.hide(),this.layout.isShow=!1)),this.getMind().updateAllAssist()}isFirst(){if(this.parent){var n=this.parent.getChildren();return n&&n.indexOf(this)==0}else return!0}isLast(){if(this.parent){var n=this.parent.getChildren();return n.length&&n.indexOf(this)==n.length-1}else return!0}getNodeLayout(){return this.layout}getLayout(){for(var n=this,i=null;n;){if(n.layout){i=n.layout;break}n=n.parent}return i}getTopLayout(){if(!this.parent)return this.layout||null;var n=this,i=null,r=this.layout;for(this.layout=null;n;){if(n.layout){i=n.layout;break}n=n.parent}return this.layout=r,this.topLayout=i,i}getMind(){return this.mindmap||null}setAnnotate(n){n.type=="highlight"?(this.editDom.innerHTML=n.selectText,this.editDom.focus(),b_(this.editDom)):(this.editDom.innerHTML=`![[${n.path}]]`,this.editDom.focus(),b_(this.editDom)),this.data.annotate=n,this.updateAnnotate()}updateAnnotate(){!this.annotateDom&&this.data.annotate&&(this.annotateDom=document.createElement("div"),this.annotateDom.innerHTML=cZe,this.annotateDom.classList.add("mm-node-annotate"),this.assistDom.appendChild(this.annotateDom))}deleteAnnotate(){this.annotateDom&&(this.assistDom.removeChild(this.annotateDom),this.annotateDom=null,this.data.annotate=null)}getAnnotateId(){return this.data.annotate?this.data.annotate.id:null}getAnnotate(){return this.data.annotate?JSON.parse(JSON.stringify(this.data.annotate)):null}updateNote(){if(this.plgDom.innerHTML="",this.data.note){var n=document.createElement("span");this.plgDom.appendChild(n),n.innerHTML=uZe,n.style.display="flex",n.style.alignItems="center",n.style.margin="0 4px",n.style.cursor="pointer",n.classList.add("mm-note-span")}}setNote(n){this.data.note=n,this.updateNote()}};class dd{constructor(n,i){ie(this,"data");ie(this,"parent");ie(this,"isRoot");ie(this,"tdDom");ie(this,"trDom");ie(this,"mindmap");ie(this,"children",[]);ie(this,"hasInit",!1);ie(this,"iNode");ie(this,"isSelect",!1);ie(this,"isExpand",!0);ie(this,"isEdit",!1);ie(this,"layout",null);ie(this,"induces",[]);ie(this,"wireFrames",[]);ie(this,"wfs",[]);ie(this,"summaries",[]);ie(this,"callout",null);ie(this,"_tableDom",null);ie(this,"style",{});ie(this,"isHide",!1);ie(this,"nodeType","");this.data=n,i&&(this.mindmap=i),n.style&&(this.style=n.style),this.iNode=new qi(n,i),this.iNode.tNode=this}init(n){if(!this.hasInit){var i=this.getLevel();i==0?(this.tdDom=document.createElement("th"),this.tdDom.setAttribute("colspan",n)):this.tdDom=document.createElement("td"),this.tdDom.appendChild(this.iNode.containEl),this.tdDom.setAttribute("data-id",this.data.id),this.hasInit=!0,this.setStyle()}}_initTdDom(n){if(!this.hasInit){var i=this.getLevel();i==0?(this.tdDom=document.createElement("th"),this.tdDom.setAttribute("colspan",n)):this.tdDom=document.createElement("td"),this.tdDom.innerText=this.data.text,this.tdDom.setAttribute("data-id",this.data.id),this.hasInit=!0}}getLevel(){for(var n=0,i=this.parent;i;)n++,i=i.parent;return n}isLeaf(){return!this.children.length}isFirst(){if(this.parent){var n=this.parent.getChildren();return n&&n.indexOf(this)==0}else return!0}isLast(){if(this.parent){var n=this.parent.getChildren();return n.length&&n.indexOf(this)==n.length-1}else return!0}getChildren(){return this.children}getId(){return this.data.id}unSelect(){this.isSelect=!1}select(){this.isSelect=!0,this.mindmap.selectNode=this}getOffset(n,i){for(var r=0,a=0;n&&n!=i;)r+=n.offsetLeft,a+=n.offsetTop,n=n.offsetParent||n.parentElement||n.parentNode;return{x:r,y:a}}getBox(n){if(this._tableDom)var i=parseInt(this._tableDom.style.left),r=parseInt(this._tableDom.style.top),a=this.getOffset(this.iNode.containEl,this._tableDom);else var i=parseInt(this.mindmap.tableDom.style.left),r=parseInt(this.mindmap.tableDom.style.top),a=this.getOffset(this.iNode.containEl,this.mindmap.tableDom);return{x:a.x+i,y:a.y+r,width:this.iNode.containEl.clientWidth,height:this.iNode.containEl.clientHeight}}getDomBox(){return this.getBox()}clearCacheData(){for(var n=this;n;)n.boundingRect=null,n=n.parent||n.belongInduce&&n.belongInduce.node}expand(){this.isExpand=!0,this.data.isExpand=!0,this.layout&&this.layout.tableDom&&(this.layout.tableDom.style.display="")}hide(){this.isHide=!0,this.layout&&this.layout.tableDom&&(this.layout.tableDom.style.display="none")}show(){this.isHide=!1,this.layout&&this.layout.tableDom&&(this.layout.tableDom.style.display="")}isShow(){return!this.isHide}collapse(){this.isExpand=!1,this.data.isExpand=!1,this.layout&&this.layout.tableDom&&(this.layout.tableDom.style.display="none")}refreshBox(){}getAnnotateId(){}addChild(n,i){this.children.indexOf(n)==-1&&(i>-1?(i>this.children.length&&(i=this.children.length),this.children.splice(i,0,n)):this.children.push(n),n.parent=this)}removeChild(n){var i=this.children.indexOf(n);return i>-1&&this.children.splice(i,1),i}getData(){var n={...this.data};return n.mdText&&delete n.mdText,n.isExpand=this.isExpand,this.parent&&(n.pid=this.parent.getId()),n.children&&delete n.children,this.style&&(n.style={...this.style}),this.layout&&(n.layout={layoutName:"table",direct:""}),JSON.parse(JSON.stringify(n))}setStyle(n,i){i&&n?this.style=n:n&&(this.style={...this.style,...n});var r=this.style,a="";for(var s in this.style)s=="font-size"||s=="border-width"?a+=`${s}:${r[s]}px;`:a+=`${s}:${r[s]};`;this.tdDom.setAttribute("style",a),this.iNode.setStyle(this.style),this.nodeType&&this.nodeType=="callout"&&this.callout&&(this.callout.color=this.style["background-color"]||this.callout.color,this.callout.refresh())}getStyle(){return this.style}setNote(n){this.data.note=n,this.iNode.setNote(n)}edit(){this.isEdit=!0,this.iNode.edit()}cancelEdit(){this.isEdit=!1,this.iNode.cancelEdit()}setText(n){this.data.text=n}selectText(){this.iNode.selectText()}getMind(){return this.mindmap}getShowNodeList(){var n=[];return this.layout&&this.layout.layoutName=="table"&&n.push(this),n}setPosition(n,i){this.data.x=n,this.data.y=i,this.layout&&this.layout.setPosition(n,i)}getPosition(){return this.getBox()}move(n,i){var r=this.getPosition();this.setPosition(r.x+n,r.y+i)}getLayout(){for(var n=this,i=null;n;){if(n.layout){i=n.layout;break}n=n.parent}return i}getNodeLayout(){return this.layout}getRootLayout(){for(var n=this,i=null;n;)i=n.layout,n.belongInduce?n=n.belongInduce.node:n=n.parent;return i}getTopLayout(){if(!this.parent)return this.layout||null;var n=this,i=null,r=this.layout;for(this.layout=null;n;){if(n.layout){i=n.layout;break}n=n.parent}return this.layout=r,this.topLayout=i,i}refreshCBox(){this.box=this.getCBox()}getContainBox(){return this.containBar?this.containBox:this.box}getCBox(n){var i=this.getBox(),r=0,a=0;if(this.callout){var s=this.callout.getBox();s.yi.y+i.height&&(a=s.y+s.height-i.y-i.height)}if(n&&this.wfs.length){var o=0;this.wfs.forEach(l=>{if(l.data&&l.data.text){var c=l.getTextBox().height;on!=this):[]}getLink(){return this.iNode?this.iNode.getLink():""}getImage(){return this.iNode?this.iNode.getImage():""}}var mA={exports:{}};(function(e,n){(function(i,r){{var a=r();e&&e.exports&&(n=e.exports=a),n.randomColor=a}})(Go,function(){var i=null,r={};y();var a=[],s=function(A){if(A=A||{},A.seed!==void 0&&A.seed!==null&&A.seed===parseInt(A.seed,10))i=A.seed;else if(typeof A.seed=="string")i=R(A.seed);else{if(A.seed!==void 0&&A.seed!==null)throw new TypeError("The seed value must be an integer or string");i=null}var W,ne,ee;if(A.count!==null&&A.count!==void 0){for(var de=A.count,Y=[],se=0;seY.length;){var q=s(A);i!==null&&(A.seed=i),Y.push(q)}return A.count=de,Y}return W=o(A),ne=l(W,A),ee=c(W,ne,A),u([W,ne,ee],A)};function o(A){if(a.length>0){var W=B(A.hue),ne=g(W),ee=(W[1]-W[0])/a.length,de=parseInt((ne-W[0])/ee);a[de]===!0?de=(de+2)%a.length:a[de]=!0;var Y=(W[0]+de*ee)%359,se=(W[0]+(de+1)*ee)%359;return W=[Y,se],ne=g(W),ne<0&&(ne=360+ne),ne}else{var W=h(A.hue);return ne=g(W),ne<0&&(ne=360+ne),ne}}function l(A,W){if(W.hue==="monochrome")return 0;if(W.luminosity==="random")return g([0,100]);var ne=m(A),ee=ne[0],de=ne[1];switch(W.luminosity){case"bright":ee=55;break;case"dark":ee=de-10;break;case"light":de=55;break}return g([ee,de])}function c(A,W,ne){var ee=d(A,W),de=100;switch(ne.luminosity){case"dark":de=ee+20;break;case"light":ee=(de+ee)/2;break;case"random":ee=0,de=100;break}return g([ee,de])}function u(A,W){switch(W.format){case"hsvArray":return A;case"hslArray":return M(A);case"hsl":var ne=M(A);return"hsl("+ne[0]+", "+ne[1]+"%, "+ne[2]+"%)";case"hsla":var ee=M(A),se=W.alpha||Math.random();return"hsla("+ee[0]+", "+ee[1]+"%, "+ee[2]+"%, "+se+")";case"rgbArray":return C(A);case"rgb":var de=C(A);return"rgb("+de.join(", ")+")";case"rgba":var Y=C(A),se=W.alpha||Math.random();return"rgba("+Y.join(", ")+", "+se+")";default:return v(A)}}function d(A,W){for(var ne=f(A).lowerBounds,ee=0;ee=de&&W<=se){var p=(q-Y)/(se-de),N=Y-p*de;return p*W+N}}return 0}function h(A){if(typeof parseInt(A)=="number"){var W=parseInt(A);if(W<360&&W>0)return[W,W]}if(typeof A=="string"){if(r[A]){var ne=r[A];if(ne.hueRange)return ne.hueRange}else if(A.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var ee=I(A)[0];return[ee,ee]}}return[0,360]}function m(A){return f(A).saturationRange}function f(A){A>=334&&A<=360&&(A-=360);for(var W in r){var ne=r[W];if(ne.hueRange&&A>=ne.hueRange[0]&&A<=ne.hueRange[1])return r[W]}return"Color not found"}function g(A){if(i===null){var W=.618033988749895,ne=Math.random();return ne+=W,ne%=1,Math.floor(A[0]+ne*(A[1]+1-A[0]))}else{var ee=A[1]||1,de=A[0]||0;i=(i*9301+49297)%233280;var Y=i/233280;return Math.floor(de+Y*(ee-de))}}function v(A){var W=C(A);function ne(de){var Y=de.toString(16);return Y.length==1?"0"+Y:Y}var ee="#"+ne(W[0])+ne(W[1])+ne(W[2]);return ee}function T(A,W,ne){var ee=ne[0][0],de=ne[ne.length-1][0],Y=ne[ne.length-1][1],se=ne[0][1];r[A]={hueRange:W,lowerBounds:ne,saturationRange:[ee,de],brightnessRange:[Y,se]}}function y(){T("monochrome",null,[[0,0],[100,0]]),T("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),T("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),T("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),T("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),T("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),T("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),T("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function C(A){var W=A[0];W===0&&(W=1),W===360&&(W=359),W=W/360;var ne=A[1]/100,ee=A[2]/100,de=Math.floor(W*6),Y=W*6-de,se=ee*(1-ne),q=ee*(1-Y*ne),p=ee*(1-(1-Y)*ne),N=256,z=256,j=256;switch(de){case 0:N=ee,z=p,j=se;break;case 1:N=q,z=ee,j=se;break;case 2:N=se,z=ee,j=p;break;case 3:N=se,z=q,j=ee;break;case 4:N=p,z=se,j=ee;break;case 5:N=ee,z=se,j=q;break}var re=[Math.floor(N*255),Math.floor(z*255),Math.floor(j*255)];return re}function I(A){A=A.replace(/^#/,""),A=A.length===3?A.replace(/(.)/g,"$1$1"):A;var W=parseInt(A.substr(0,2),16)/255,ne=parseInt(A.substr(2,2),16)/255,ee=parseInt(A.substr(4,2),16)/255,de=Math.max(W,ne,ee),Y=de-Math.min(W,ne,ee),se=de?Y/de:0;switch(de){case W:return[60*((ne-ee)/Y%6)||0,se,de];case ne:return[60*((ee-W)/Y+2)||0,se,de];case ee:return[60*((W-ne)/Y+4)||0,se,de]}}function M(A){var W=A[0],ne=A[1]/100,ee=A[2]/100,de=(2-ne)*ee;return[W,Math.round(ne*ee/(de<1?de:2-de)*1e4)/100,de/2*100]}function R(A){for(var W=0,ne=0;ne!==A.length&&!(W>=Number.MAX_SAFE_INTEGER);ne++)W+=A.charCodeAt(ne);return W}function B(A){if(isNaN(A)){if(typeof A=="string"){if(r[A]){var ne=r[A];if(ne.hueRange)return ne.hueRange}else if(A.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var ee=I(A)[0];return f(ee).hueRange}}}else{var W=parseInt(A);if(W<360&&W>0)return f(A).hueRange}return[0,360]}return s})})(mA,mA.exports);var dZe=mA.exports;const Jn=vr(dZe);class mu{constructor(n){ie(this,"name");ie(this,"type");ie(this,"edges",[]);ie(this,"isShow",!0);ie(this,"lineWeight",!0);ie(this,"root");ie(this,"direct");ie(this,"svgDom",null);ie(this,"topInfo");this.name=n}layout(n,i){}refresh(){}addEdge(n){this.edges.push(n)}removeEdge(n){var i=this.edges.indexOf(n);i>-1&&this.edges.splice(i,i)}moveNode(n,i,r){n&&n.move(i,r),n.callout&&n.callout.refresh(),n.wfs&&n.wfs.forEach(a=>{a.move(i,r)}),n.induces&&n.induces.forEach(a=>{a.move(i,r),this.moveNode(a.root,i,r)}),n&&n.children.forEach(a=>{this.moveNode(a,i,r)})}linePoint(n,i){let r=0;var a=Math.ceil;i%2==1&&(r=.5,a=parseInt);var s=n.map(o=>[a(o[0])+r,a(o[1])+r]);return s}_updateNodeAssist(n,i){for(var r=n;r;){r.callout&&r.callout.refresh();var a=r.wireFrames,s=r.summaries;if(a.length&&a.forEach(o=>{o.items.indexOf(n)>-1&&(o.refreshNode(),o.refresh())}),s.length&&s.forEach(o=>{o.items.indexOf(n)>-1&&(o.refreshNode(),o.refresh())}),i)if(r!=i)r=r.parent;else break;else r=r.parent}}_updateRootAssist(){this.root.induce&&(this.root.induce.refreshItems(),this.root.induce.refresh()),this.root.wireFrame&&(this.root.wireFrame.refreshItems(),this.root.wireFrame.refresh())}}class hZe extends mu{constructor(i,r,a){super("mindmap");ie(this,"layoutName","mindmap");ie(this,"direct","");ie(this,"root");ie(this,"mind");ie(this,"levelDis",50);ie(this,"nodeDis",6);ie(this,"firstLevelDis",80);ie(this,"firstNodeDis",20);ie(this,"svgDom");ie(this,"isCache",!0);ie(this,"lefts",[]);ie(this,"rights",[]);ie(this,"colors",[]);ie(this,"lineWidth",2);this.root=i||null,this.mind=(i==null?void 0:i.mindmap)||null,this.direct=r||"mindmap",this.colors=a||[],this.svgDom||(this.svgDom=this.mind.edgeGroup.group()),this.layout()}setDirect(){var i=this,r=this.root.children.length,a=this.root;this.rights=[],this.lefts=[],this.direct=="right"?(this.rights=a.children,this.rights.forEach(s=>{this._setDirect(s,"right")})):this.direct=="left"?(this.lefts=a.children,this.lefts.forEach(s=>{this._setDirect(s,"left")})):a.children.forEach(function(s,o){o{this._setDirect(s,r)})}layout(i,r){i&&(this.root=i),r&&(this.direct=r),this.setDirect(),this.direct=="right"?this.layoutRight():this.direct=="left"?this.layoutLeft():this.layoutMindMap(),this._dolayout(),this._doRefresh(),this.root&&this.root.mindmap.useHandMode?this.createHandDrawLink():this.createLink()}layoutMindMap(){this.layoutRight(),this.layoutLeft()}layoutRight(i,r){var a=i||this.rights,s=r||this.root,o=s.getPosition(),l=s.getBox(),c=s.getLevel();if(c==0)var u=this.firstLevelDis,d=this.firstNodeDis;else var u=this.levelDis,d=this.nodeDis;var{disHeight:h,height:m}=this._getNodesHeight(a),f=m/a.length;if(c==0)var g=[parseInt(o.x+l.width+u+""),parseInt(o.y+l.height/2-h/2+"")];else if(c==1)var g=[parseInt(o.x+l.width+u+""),parseInt(o.y+l.height/2-h/2-f/2-this.lineWidth/2+"")];else var g=[parseInt(o.x+l.width+u+""),parseInt(o.y+l.height-h/2-f/2+"")];a.forEach(v=>{v.setPosition(g[0],g[1]);var T=v.getBox();g[1]+=parseInt(T.height+d+"")}),a.forEach(v=>{v.isExpand&&this.layoutRight(v.children,v)})}layoutLeft(i,r){var a=i||this.lefts,s=r||this.root,o=s.getPosition(),l=s.getBox(),c=s.getLevel();if(c==0)var u=this.firstLevelDis,d=this.firstNodeDis;else var u=this.levelDis,d=this.nodeDis;var{disHeight:h,height:m}=this._getNodesHeight(a),f=m/a.length;if(c==0)var g=[parseInt(o.x-u+""),parseInt(o.y+l.height/2-h/2+"")];else if(c==1)var g=[parseInt(o.x-u+""),parseInt(o.y+l.height/2-h/2-f/2-this.lineWidth/2+"")];else var g=[parseInt(o.x-u+""),parseInt(o.y+l.height-h/2-f/2+"")];a.forEach(v=>{var T=v.getBox();v.setPosition(parseInt(g[0]-T.width+""),parseInt(g[1]+"")),g[1]+=T.height+d}),a.forEach(v=>{v.isExpand&&this.layoutLeft(v.children,v)})}_getNodesHeight(i){if(i[0]&&i[0].getLevel()==1)var r=this.firstNodeDis;else var r=this.nodeDis;var a=0,s=0;if(i.length==1){var a=i[0].getBox().height;return{disHeight:a,height:a}}return i.forEach((o,l)=>{var c=o.getBox().height;a+=c,s+=c,l!=i.length-1&&(a+=r)}),{disHeight:a,height:s}}_doRefresh(){var i=this.root,r=i.getPosition(),a=i.getBox(),s=r.y+a.height/2,o=this.rights,l=this.lefts;if(o.length>=2){var c=o[0],u=o[o.length-1],d=c.getPosition(),h=u.getPosition(),m=u.getBox(),f=h.y+m.height-s,g=s-d.y;if(Math.abs(f)!=Math.abs(g)){var v=Math.abs(Math.abs(f)-Math.abs(g))/2+"";Math.abs(f)>Math.abs(g)?o.forEach(T=>{this.moveNode(T,0,-parseInt(v))}):o.forEach(T=>{this.moveNode(T,0,parseInt(v))})}}if(l.length>=2){var c=l[0],u=l[l.length-1],d=c.getPosition(),h=u.getPosition(),m=u.getBox(),f=h.y+m.height-s,g=s-d.y;if(Math.abs(f)!=Math.abs(g)){var v=Math.abs(Math.abs(f)-Math.abs(g))/2+"";Math.abs(f)>Math.abs(g)?l.forEach(W=>{this.moveNode(W,0,-parseInt(v))}):l.forEach(W=>{this.moveNode(W,0,parseInt(v))})}}}moveNode(i,r,a){i.move(r,a),i&&i.children&&i.children.forEach(s=>{this.moveNode(s,r,a)})}linePoint(i,r){let a=0;var s;r%2==1?(a=.5,s=parseInt):s=Math.ceil;var o=i.map(l=>[s(l[0])+a,s(l[1])+a]);return o}_dolayout(){var i=this,r=this.mind;r.traverseDF(a=>{if(a!=i.root&&a.isExpand){var s=a.getCBox();if(i.isCache&&a.boundingRect)var o=a.boundingRect;else{var l=a.getShowNodeList();l.length&&(o=r.getBoundingRect(l))}if(o){if(a.boundingRect&&i.isCache)var c=o.topDy,u=o.downDy;else c=Math.abs(o.y-s.y),u=Math.abs(o.y+o.height-s.y-s.height),o.topDy=c,o.downDy=u,a.boundingRect=o;i._adjustNode(a,0,c,u)}}})}_adjustNode(i,r,a,s){if(i){var o=i.direct;if(i&&i!=this.root){var l=i.getSiblings(),c=i.getPosition();l.forEach(u=>{if(u.direct==o){var d=u.getPosition();d.y>c.y?this.moveNode(u,r,s):this.moveNode(u,r,-a)}})}}}refresh(i,r){this.layout(i,r)}createHandDrawLink(){var i=this;this.svgDom&&this.svgDom.clear();var r=jc.svg(this.root.mindmap.draw);if(this.root.getChildren().length==0)return;var a=this.levelDis,s=this.root,o=this.lineWidth,l=this.root.getLevel();function c(u){if(u.isExpand){var d=u.getChildren(),h=u.getPosition(),m=u.getBox();m.height=m.height+o;var f=u.getLevel();d.length&&d.forEach(function(g){var v=g.direct,T=g.getPosition(),y={...g.getBox()};y.height=y.height+o;let C=u.stroke?u.stroke:g.stroke?g.stroke:Jn();if(g.stroke||(g.stroke=C),g._barDom&&(g._barDom.style.backgroundColor=C,g._barDom.style.borderColor=C),f==l)var I={x:h.x+m.width/2,y:h.y+m.height/2};else f==1+l?v=="right"?I={x:h.x+m.width,y:h.y+m.height/2}:I={x:h.x,y:h.y+m.height/2}:v=="right"?I={x:h.x+m.width,y:h.y+m.height}:I={x:h.x,y:h.y+m.height};if(f==l)if(v=="right")var M={x:T.x,y:y.height/2+T.y};else M={x:T.x+y.width,y:y.height/2+T.y};else v=="right"?M={x:T.x,y:y.height+T.y}:M={x:T.x+y.width,y:y.height+T.y};if(o%2==1)var R=parseInt(I.x+"")-.5,B=parseInt(M.x+"")-.5,A=parseInt(I.y+"")-.5,W=parseInt(M.y+"")-.5;else var R=parseInt(I.x+""),A=parseInt(I.y+""),B=parseInt(M.x+""),W=parseInt(M.y+"");if(o%2==1)var ne=parseInt(T.x+"")-.5,ee=parseInt(T.x+y.width+"")-.5,de=W,Y=W;else var ne=parseInt(T.x+""),de=parseInt(y.height+T.y+""),ee=parseInt(T.x+y.width+""),Y=parseInt(y.height+T.y+"");if(f==l){var se=parseInt(I.x+"")+(M.x-I.x)/9,q=parseInt(I.y+"")+(M.y-I.y)/9*8,p=parseInt(I.x+(M.x-I.x)/9*8+""),N=parseInt(M.y+""),z=`M${R} ${A} C ${se} ${q}, ${p} ${N}, ${B} ${W}`,j=r.path(z,{stroke:C,strokeWidth:o+1,fill:"none"});i.svgDom.node.appendChild(j)}else{var re={x:I.x+a/2,y:I.y},ue={x:I.x+a/2,y:M.y};v=="left"&&(re.x=I.x-a/2,ue.x=I.x-a/2),re.x=parseInt(re.x+""),re.y=parseInt(re.y+""),ue.x=parseInt(ue.x+""),ue.y=parseInt(ue.y+"");var ae=`M${R} ${A} C${re.x} ${re.y}, ${ue.x} ${ue.y}, ${B} ${W}`,Ee=r.path(ae,{stroke:C,strokeWidth:f==l?o+1:o,fill:"none",roughness:.4}),j=r.line(ne-1,de,ee+1,Y,{stroke:C,strokeWidth:f==l?o+1:o,fill:"none",roughness:.8});i.svgDom.node.appendChild(j),i.svgDom.node.appendChild(Ee)}c(g)})}}this.root.children.forEach((u,d)=>{u.stroke=this.colors[d]||Jn()}),c(s)}createLink(){var i=this;if(this.svgDom&&this.svgDom.clear(),this.root.getChildren().length==0)return;var r=this.levelDis,a=this.root,s=this.lineWidth,o=this.root.getLevel();function l(c){if(c.isExpand){var u=c.getChildren(),d=c.getPosition(),h=c.getBox();h.height=h.height+s;var m=c.getLevel();u.length&&u.forEach(function(f){var g=f.direct,v=f.getPosition(),T={...f.getBox()};T.height=T.height+s;let y=c.stroke?c.stroke:f.stroke?f.stroke:Jn();if(f.stroke||(f.stroke=y),f._barDom&&(f._barDom.style.backgroundColor=y,f._barDom.style.borderColor=y),m==o)var C={x:d.x+h.width/2,y:d.y+h.height/2};else m==1+o?g=="right"?C={x:d.x+h.width,y:d.y+h.height/2}:C={x:d.x,y:d.y+h.height/2}:g=="right"?C={x:d.x+h.width,y:d.y+h.height}:C={x:d.x,y:d.y+h.height};if(m==o)if(g=="right")var I={x:v.x,y:T.height/2+v.y};else I={x:v.x+T.width,y:T.height/2+v.y};else g=="right"?I={x:v.x,y:T.height+v.y}:I={x:v.x+T.width,y:T.height+v.y};if(s%2==1)var M=parseInt(C.x+"")-.5,R=parseInt(I.x+"")-.5,B=parseInt(C.y+"")-.5,A=parseInt(I.y+"")-.5;else var M=parseInt(C.x+""),B=parseInt(C.y+""),R=parseInt(I.x+""),A=parseInt(I.y+"");if(m==o)var W=i.svgDom.path().stroke({color:y,width:s+1,linecap:"round",linejoin:"round"}).fill("none");else var W=i.svgDom.path().stroke({color:y,width:s,linecap:"round",linejoin:"round"}).fill("none");if(s%2==1)var ne=parseInt(v.x+"")-.5,ee=parseInt(v.x+T.width+"")-.5,de=A,Y=A;else var ne=parseInt(v.x+""),de=parseInt(T.height+v.y+""),ee=parseInt(v.x+T.width+""),Y=parseInt(T.height+v.y+"");if(m==o){var se=parseInt(C.x+"")+(I.x-C.x)/9,q=parseInt(C.y+"")+(I.y-C.y)/9*8,p=parseInt(C.x+(I.x-C.x)/9*8+""),N=parseInt(I.y+""),z=`M${M} ${B} C ${se} ${q}, ${p} ${N}, ${R} ${A}`;W.plot(z)}else{i.svgDom.line(ne,de,ee,Y).stroke({color:y,width:s,linecap:"miter",linejoin:"miter"}).fill("none");var j={x:C.x+r/2,y:C.y},re={x:C.x+r/2,y:I.y};g=="left"&&(j.x=C.x-r/2,re.x=C.x-r/2),j.x=parseInt(j.x+""),j.y=parseInt(j.y+""),re.x=parseInt(re.x+""),re.y=parseInt(re.y+"");var ue=`M${M} ${B} C ${j.x} ${j.y}, ${re.x} ${re.y}, ${R} ${A}`;W.plot(ue)}l(f)})}}this.root.children.forEach((c,u)=>{c.stroke=this.colors[u]||Jn()}),l(a)}}class zL extends mu{constructor(i,r,a){super("minder");ie(this,"layoutName","mindmap");ie(this,"direct","");ie(this,"root");ie(this,"mind");ie(this,"levelDis",40);ie(this,"nodeDis",8);ie(this,"firstLevelDis",80);ie(this,"firstNodeDis",20);ie(this,"svgDom");ie(this,"isCache",!0);ie(this,"lefts",[]);ie(this,"rights",[]);ie(this,"colors",[]);ie(this,"lineWidth",2);ie(this,"topInfo");this.root=i,this.mind=this.root.mindmap,this.direct=r||"mindmap",this.colors=a||[],this.svgDom=this.mind.edgeGroup.group()}layout(i,r){i&&(this.root=i),this.root.isExpand&&(this.svgDom||(this.svgDom=this.root.mindmap.edgeGroup.group()),this.root.layout=this,r&&(this.direct=r),this.root.nodeType&&this.root.nodeType=="induce"&&(this.firstLevelDis=20,this.firstNodeDis=10),this.root.nodeType&&this.root.nodeType=="freeNode"&&(this.root.containEl.classList.contains("mm-root")||this.root.containEl.classList.add("mm-root")),this.lefts=[],this.rights=[],this.root.isShow()&&(this.setDirect(),this._layoutSecondLevelNode(this.root)),this.createLink())}setDirect(){var i=this,r=this.root.children.length,a=this.root;this.direct=="right"?(this.rights=a.children,this.rights.forEach(s=>{this._setDirect(s,"right")})):this.direct=="left"?(this.lefts=a.children,this.lefts.forEach(s=>{this._setDirect(s,"left")})):a.children.forEach(function(s,o){o{this._setDirect(s,r)})}_layoutSecondLevelNode(i){this._layoutMinder(),this.root.nodeType!="induce"&&this._doRefresh(),this._updateRootAssist()}_doRefresh(){var i=this.root,r=i.getPosition(),a=i.getBox(),s=r.y+a.height/2,o=i.getChildren(),l=o.filter(y=>y.direct=="right"),c=o.filter(y=>y.direct=="left");if(l.length>=2){var u=l[0],d=l[l.length-1],h=u.getPosition(),m=d.getPosition(),f=d.getBox(),g=m.y+f.height-s,v=s-h.y;if(Math.abs(g)!=Math.abs(v)){var T=Math.abs(Math.abs(g)-Math.abs(v))/2;Math.abs(g)>Math.abs(v)?l.forEach(y=>{this.moveNode(y,0,-parseInt(T+""))}):l.forEach(y=>{this.moveNode(y,0,parseInt(T+""))})}}if(c.length>=2){var u=c[0],d=c[c.length-1],h=u.getPosition(),m=d.getPosition(),f=d.getBox(),g=m.y+f.height-s,v=s-h.y;if(Math.abs(g)!=Math.abs(v)){var T=Math.abs(Math.abs(g)-Math.abs(v))/2;Math.abs(g)>Math.abs(v)?c.forEach(ne=>{this.moveNode(ne,0,-parseInt(T+""))}):c.forEach(ne=>{this.moveNode(ne,0,parseInt(T+""))})}}}updateRight(){var i=this.root.getPosition(),r=this.root.getBox(),a=this.rights,s=this._getNodesHeight(a),o=[parseInt(i.x+r.width+this.firstLevelDis+""),parseInt(i.y+r.height/2-s/2+"")];a.forEach(l=>{l.setPosition(o[0],o[1]);var c=l.getBox();o[1]+=parseInt(c.height+this.firstNodeDis+"")}),a.forEach(l=>{this._layoutRight(l)})}updateLeft(){var i=this.root.getPosition(),r=this.root.getBox(),a=this.lefts,s=this._getNodesHeight(a),o=[parseInt(i.x-this.firstLevelDis+""),parseInt(i.y+r.height/2-s/2+"")];a.forEach(l=>{var c=l.getBox();l.setPosition(parseInt(o[0]-c.width+""),parseInt(o[1]+"")),o[1]+=c.height+this.firstNodeDis}),a.forEach(l=>{this._layoutLeft(l)})}_layoutMinder(){this.updateRight(),this.updateLeft(),this._doLayout(this.root)}_getNodesHeight(i){if(i[0]&&i[0].getLevel()==1)var r=this.firstNodeDis;else var r=this.nodeDis;var a=0;return i.forEach((s,o)=>{a+=s.getBox().height,o!=i.length-1&&(a+=r)}),a}_layoutRight(i){if(i.isExpand){var r=i.getPosition(),a=i.getBox(),s=this._getNodesHeight(i.children);i.callout&&i.callout.refresh();var o=[r.x+a.width+this.levelDis,a.y+a.height/2-s/2];if(i.children.forEach(c=>{c.setPosition(o[0],o[1]);var u=c.getBox();o[1]+=u.height+this.nodeDis}),i.layout){if(i.layout.layoutName!="table"){i.layout.layout(i,i.layout.direct||"");var r=i.getPosition();a=i.mindmap.getBBox(i);var l=parseInt(Math.abs(r.x-a.x)+"");this.moveNode(i,l,0),i.boundingRect=null,i.direct="right"}else i.boundingRect=null,i.direct="right";return}i.children.forEach(c=>{this._layoutRight(c)})}}_updateNodeAssist(i){i.callout&&i.callout.refresh();var r=i.parent,a={};if(r){var s=r.wireFrames,o=r.summaries;s.length&&s.forEach(l=>{if(l.node==i&&(l.refresh(),l.data&&l.data.text))if(a[i.getId()])a[i.getId()].rangeNode=a[i.getId()].rangeNode.concat(l.rangeNode.slice()),a[i.getId()].rangeNode.unique();else{var c=l.getTextBox().height,u=l.rangeNode.slice();a[i.getId()]={node:i,wf:l,topDy:c+4,rangeNode:u}}}),o.length&&o.forEach(l=>{l.node==i&&l.refresh()})}this.topInfo=a}_doLayout(i){var r=this,a=i.mindmap;a.traverseDF(s=>{if(s!=r.root&&s.isShow()){if(s.layout){if(s.layout!=r&&s.getTopLayout()!=r)return}else if(s.getLayout()!=r)return;r._updateNodeAssist(s);var o=s.getCBox();if(r.isCache&&s.boundingRect)var l=s.boundingRect;else{var c=s.getShowNodeList(),u=[],d=[],h=[],m=[];if(c.forEach(C=>{C.callout&&C.callout.isShow&&h.push(C.callout);var I=C.wireFrames,M=C.summaries;M.forEach(R=>{R.isShow()&&d.indexOf(R)==-1&&d.push(R)}),I.forEach(R=>{R.isHide||u.indexOf(R)==-1&&u.push(R)})}),c=c.concat(u),d.forEach(C=>{c=c.concat(C.getAllItem()),m=m.concat(C.groups)}),c=c.concat(h),c.length)var l=a.getBoundingRect(c)}var f=s.parent;if(f)var g=f.wireFrames,v=f.summaries;if(s.boundingRect)var T=s.boundingRect.topDy,y=s.boundingRect.downDy;else T=Math.abs(l.y-o.y),y=Math.abs(l.y+l.height-o.y-o.height),g&&g.length&&g.forEach(C=>{var I=C.topNode,M=I.getCBox();if(C.node==s&&(T+=Math.abs(6+M.th),r.topInfo[s.getId()]&&(T+=r.topInfo[s.getId()].topDy)),C.endNode&&C.endNode==s){var R=C.bottomNode,B=R.getCBox();y+=Math.abs(6+B.bh)}}),l.topDy=T,l.downDy=y,s.boundingRect=l;r._adjustNode(s,0,T,y),g&&g.length&&g.forEach(C=>{C.endNode==s&&C.refresh()}),v&&v.length&&v.forEach(C=>{C.endNode==s&&C.refresh()})}},i)}_layoutLeft(i){if(i.isExpand){var r=i.getPosition(),a=i.getBox(),s=this._getNodesHeight(i.children);i.callout&&i.callout.refresh();var o=[r.x-this.levelDis,r.y+a.height/2-s/2];if(i.children.forEach(u=>{var d=u.getBox();u.setPosition(o[0]-d.width,o[1]),o[1]+=d.height+this.nodeDis}),i.layout){if(i.layout.layoutName!="table"){i.layout.layout(i,i.layout.direct||"");var r=i.getPosition(),l=i.mindmap.getBBox(i),c=Math.abs(r.x+a.width-l.x-l.width);this.moveNode(i,-c,0),i.direct="left",i.boundingRect=null}else i.direct="left",i.boundingRect=null;return}i.children.forEach(u=>{this._layoutLeft(u)})}}_adjustDoNode(i,r,a){if(i)for(var s=i.direct;i&&i!=this.root;){var o=i.getSiblings(),l=i.getPosition();o.forEach(c=>{if(c.direct==s){var u=c.getPosition();u.y>l.y?this.moveNode(c,0,a):this.moveNode(c,0,-r)}}),i=i.parent}}_adjustNode(i,r,a,s){if(i){var o=i.direct;if(i&&i!=this.root){var l=i.getSiblings(),c=i.getPosition();l.forEach(u=>{if(u.direct==o){var d=u.getPosition();d.y>c.y?this.moveNode(u,r,s):this.moveNode(u,r,-a)}})}}}refresh(i){this.layout(this.root,i||this.direct),this.createLink()}createLink(){var i=this,r=this.root.mindmap;if(this.svgDom&&this.svgDom.clear(),this.root.getChildren().length!=0&&!(!this.svgDom||!this.root.isShow())){var a=this.lineWidth;r.traverseBF(s=>{if(s.isExpand){var o=s.getChildren(),l=s.getBox(),c=s.getPosition(),u=s.getLevel(),d=o.length,h=2,m=1,f=2,g=1;d==1&&(h=4,m=1,f=4,g=3),o.forEach(v=>{var T=v.direct,y=v.getBox(),C=v.getPosition();let I=s.stroke?s.stroke:v.stroke?v.stroke:Jn();if(T=="right"){if(u==0||u==1){var M=[l.width+c.x,l.height/2+c.y];if(u==0)var R=[C.x,y.height/2+C.y];else var R=[y.width+C.x,y.height+C.y]}else var M=[l.width+c.x,l.height+c.y],R=[y.width+C.x,y.height+C.y];if(u==0)var B=[M[0]+this.firstLevelDis/h*m,M[1]],A=[B[0],R[1]];else var B=[M[0]+this.levelDis/h*m,M[1]],A=[M[0]+this.levelDis/f*g,R[1]]}else{if(u==0||u==1){var M=[c.x,l.height/2+c.y];if(u==0)var R=[C.x+y.width,y.height/2+C.y];else var R=[C.x,y.height+C.y]}else var M=[c.x,l.height+c.y],R=[C.x,y.height+C.y];if(u==0)var B=[M[0]-this.firstLevelDis/h*m,M[1]],A=[B[0],R[1]];else var B=[M[0]-this.levelDis/h*m,M[1]],A=[M[0]-this.levelDis/f*g,R[1]]}if(d==1)if(u==1)var W=[M,B,A,R];else if(Math.abs(M[1]-R[1])>2)var W=[M,A,R];else var W=[M,R];else if(s.getLevel()==0){var ne=[],ee=[],de=s.getChildren();if(de.forEach(p=>{p.direct=="right"?ne.push(p):ee.push(p)}),ne.length>=2&&ne.indexOf(v)==0||ne.length>=2&&ne.indexOf(v)==ne.length-1)if(T=="right"){if(R[1]>M[1])var Y=[B[0],R[1]-2],se=[B[0]+2,R[1]];else var Y=[B[0],R[1]+2],se=[B[0]+2,R[1]];var W=[M,B,Y,se,R]}else{if(R[1]>M[1])var Y=[B[0],R[1]-2],se=[B[0]-2,R[1]];else var Y=[B[0],R[1]+2],se=[B[0]-2,R[1]];var W=[M,B,Y,se,R]}else if(ee.length>=2&&ee.indexOf(v)==0||ee.length>=2&&ee.indexOf(v)==ee.length-1)if(T=="right"){if(R[1]>M[1])var Y=[B[0],R[1]-2],se=[B[0]+2,R[1]];else var Y=[B[0],R[1]+2],se=[B[0]+2,R[1]];var W=[M,B,Y,se,R]}else{if(R[1]>M[1])var Y=[B[0],R[1]-2],se=[B[0]-2,R[1]];else var Y=[B[0],R[1]+2],se=[B[0]-2,R[1]];var W=[M,B,Y,se,R]}else if(ne.length>=2&&ne.indexOf(v)!=0||ne.length>=2&&ne.indexOf(v)!=ne.length-1||ee.length>=2&&ee.indexOf(v)!=0||ee.length>=2&&ee.indexOf(v)!=ee.length-1)var W=[A,R];if(ne.length==1&&ee.length==1)var W=[M,R];if(ne.length>1&&ee.length==1)if(T=="right")var W=[M,A,R];else var W=[M,R]}else if(T=="right")if(v.isFirst()||v.isLast()){if(R[1]>M[1])var Y=[B[0],R[1]-2],se=[B[0]+2,R[1]];else var Y=[B[0],R[1]+2],se=[B[0]+2,R[1]];var W=[M,B,Y,se,R]}else var W=[A,R];else if(v.isFirst()||v.isLast()){if(R[1]>M[1])var Y=[B[0],R[1]-2],se=[B[0]-2,R[1]];else var Y=[B[0],R[1]+2],se=[B[0]-2,R[1]];var W=[M,B,Y,se,R]}else var W=[A,R];var q=i.svgDom.polyline(i.linePoint(W,a));q.fill("none"),q.stroke({color:I,width:a,linecap:"round",linejoin:"round"}),q.source=s,q.target=v})}},this.root)}}}class qL extends zL{constructor(n,i,r){super(n,i,r),this.firstLevelDis=50,this.levelDis=30,this.nodeDis=10,this.layoutName="mindmap1"}createLink(){var n=this,i=this.levelDis,r=this.direct;this.svgDom&&this.svgDom.clear();var a=this.root;if(!this.svgDom||!this.root.isShow())return;var s=this.root.getLevel();function o(c){if(c!=n.root){if(c.layout)return}if(c.isExpand){var u=c.getChildren(),d=u.length,h=c.getPosition(),m=c.getBox(),f=c.getLevel();u.length&&u.forEach(function(g){var v=g.direct,T=g.getPosition(),y=g.getBox();let C=c.stroke?c.stroke:g.stroke?g.stroke:Jn();if(g.stroke||(g.stroke=C),g._barDom&&(g._barDom.style.backgroundColor=C,g._barDom.style.borderColor=C),f==s)if(r=="minder")if(v=="right")var I={x:h.x+m.width/2,y:h.y+m.height/2},M={x:T.x,y:y.height/2+T.y};else var I={x:h.x+m.width/2,y:h.y+m.height/2},M={x:Number.parseInt(T.x+y.width+""),y:Number.parseInt(y.height/2+T.y+"")};else{var I={x:h.x+m.width/2,y:h.y+m.height/2};if(v=="right")var M={x:T.x,y:y.height/2+T.y};else var M={x:T.x+y.width,y:y.height/2+T.y}}else if(v=="right")var I={x:h.x+m.width,y:h.y+m.height/2},M={x:T.x,y:y.height/2+T.y};else var I={x:h.x,y:h.y+m.height/2},M={x:T.x+y.width,y:y.height/2+T.y};if(f==s)var R=n.svgDom.path();else var R=n.svgDom.polyline();if(R.fill("none"),R.stroke({color:C,width:n.lineWidth,linecap:"round",linejoin:"round"}),f==s)if(v=="right"){var B=parseInt((I.x+M.x)/2-30+""),A=parseInt(I.y+(M.y-I.y)/1.1+""),W=`M ${I.x} ${I.y} Q ${B} ${A},${M.x} ${M.y} `;R.plot(W)}else{var B=parseInt((I.x+M.x)/2+30+""),A=parseInt(I.y+(M.y-I.y)/1.1+""),W=`M ${I.x} ${I.y} Q ${B} ${A},${M.x} ${M.y} `;R.plot(W)}else{var ne=M.y{c.stroke||(c.stroke=this.colors[u]||Jn())}),o(a),a.children.forEach(c=>{l(c)});function l(c){if(c.isExpand){if(c.layout){c.layout.createLink();return}c.children.forEach(u=>{l(u)})}}}}class fZe extends zL{constructor(n,i,r){super(n,i,r),this.firstLevelDis=40,this.levelDis=30,this.nodeDis=10,this.type="minder",this.layoutName="mindmap2"}createLink(){var n=this,i=this.levelDis,r=this.root;if(this.svgDom&&this.svgDom.clear(),!this.svgDom||!this.root.isExpand||!this.root.isShow())return;var a=this.lineWidth,s=this.rights,o=this.lefts,l=r.getBox(),c=r.getPosition();s.length,o.length,r.children.forEach((m,f)=>{m.stroke||(m.stroke=this.colors[f]||Jn())});function u(){var m=[],f=[];s.forEach(W=>{W.getPosition().y+W.getBox().height/2>l.height/2+c.y?f.push(W):m.push(W)});var g=m.length,v=f.length,T=parseInt((l.width/2-6)/g+""),y=parseInt((l.width/2-6)/v+"");m.forEach((W,ne)=>{var ee=W.getBox(),de=W.getPosition(),Y=ee.height/2+de.y,se=Y-(l.height/2+c.y),q=[c.x+l.width/2+6+T*ne,c.y+l.height/2];if(Math.abs(se)>2)var p=[q[0],Y-5*se/Math.abs(se)],N=[q[0]+5,Y];else var p=[q[0],Y-se/2],N=[q[0]+Math.abs(se)/2,Y];var z=[de.x,Y];let j=r.stroke?r.stroke:W.stroke||Jn();W.stroke||(W.stroke=j),W._barDom&&(W._barDom.style.backgroundColor=j,W._barDom.style.borderColor=j);var re=n.linePoint([p],a)[0],ue=n.linePoint([N],a)[0],ae=`M${re[0]} ${re[1]},Q${re[0]} ${ue[1]},${ue[0]} ${ue[1]}`,Ee=n.svgDom.path().stroke({color:j,width:a+2,linecap:"round",linejoin:"round"});Ee.plot(ae),Ee.fill("none"),n.svgDom.line(n.linePoint([q,p],a+2)).stroke({color:j,width:a+2,linecap:"round",linejoin:"round"}).fill("none"),n.svgDom.line(n.linePoint([N,z],a+2)).stroke({color:j,width:a+2,linecap:"round",linejoin:"round"}).fill("none")}),f.reverse().forEach((W,ne)=>{var ee=W.getBox(),de=W.getPosition(),Y=ee.height/2+de.y,se=Y-(l.height/2+c.y),q=[c.x+l.width/2+6+y*ne,c.y+l.height/2];if(Math.abs(se)>2)var p=[q[0],Y-5*se/Math.abs(se)],N=[q[0]+5,Y];else var p=[q[0],Y-se/2],N=[q[0]+Math.abs(se)/2,Y];var z=[de.x,Y];let j=r.stroke?r.stroke:W.stroke||Jn();W.stroke||(W.stroke=j),W._barDom&&(W._barDom.style.backgroundColor=j,W._barDom.style.borderColor=j);var re=n.linePoint([p],a)[0],ue=n.linePoint([N],a)[0],ae=`M${re[0]} ${re[1]},Q${re[0]} ${ue[1]},${ue[0]} ${ue[1]}`,Ee=n.svgDom.path().stroke({color:j,width:a+2,linecap:"round",linejoin:"round"});Ee.plot(ae),Ee.fill("none"),n.svgDom.line(n.linePoint([q,p],a+2)).stroke({color:j,width:a+2,linecap:"round",linejoin:"round"}).fill("none"),n.svgDom.line(n.linePoint([N,z],a+2)).stroke({color:j,width:a+2,linecap:"round",linejoin:"round"}).fill("none")});var C=[],I=[];o.forEach(W=>{W.getPosition().y+W.getBox().height/2>l.height/2+c.y?I.push(W):C.push(W)});var M=C.length,R=I.length,B=parseInt((l.width/2-12)/M+""),A=parseInt((l.width/2-12)/R+"");C.forEach((W,ne)=>{var ee=W.getBox(),de=W.getPosition(),Y=ee.height/2+de.y,se=Y-(l.height/2+c.y),q=[c.x+l.width/2-6-B*ne,c.y+l.height/2];if(Math.abs(se)>2)var p=[q[0],Y-5*se/Math.abs(se)],N=[q[0]-5,Y];else var p=[q[0],Y-se/2],N=[q[0]-Math.abs(se)/2,Y];var z=[de.x+ee.width,Y];let j=r.stroke?r.stroke:W.stroke||Jn();W.stroke||(W.stroke=j),W._barDom&&(W._barDom.style.backgroundColor=j,W._barDom.style.borderColor=j);var re=n.linePoint([p],a)[0],ue=n.linePoint([N],a)[0],ae=`M${re[0]} ${re[1]},Q${re[0]} ${ue[1]},${ue[0]} ${ue[1]}`,Ee=n.svgDom.path().stroke({color:j,width:a+2,linecap:"round",linejoin:"round"});Ee.plot(ae),Ee.fill("none"),n.svgDom.line(n.linePoint([q,p],a+2)).stroke({color:j,width:a+2,linecap:"round",linejoin:"round"}).fill("none"),n.svgDom.line(n.linePoint([N,z],a+2)).stroke({color:j,width:a+2,linecap:"round",linejoin:"round"}).fill("none")}),I.reverse().forEach((W,ne)=>{var ee=W.getBox(),de=W.getPosition(),Y=ee.height/2+de.y,se=Y-(l.height/2+c.y),q=[c.x+l.width/2-6-A*ne,c.y+l.height/2];if(Math.abs(se)>2)var p=[q[0],Y-5*se/Math.abs(se)],N=[q[0]-5,Y];else var p=[q[0],Y-se/2],N=[q[0]-Math.abs(se)/2,Y];var z=[de.x+ee.width,Y];let j=r.stroke?r.stroke:W.stroke||Jn();W.stroke||(W.stroke=j),W._barDom&&(W._barDom.style.backgroundColor=j,W._barDom.style.borderColor=j);var re=n.linePoint([p],a)[0],ue=n.linePoint([N],a)[0],ae=`M${re[0]} ${re[1]},Q${re[0]} ${ue[1]},${ue[0]} ${ue[1]}`,Ee=n.svgDom.path().stroke({color:j,width:a+2,linecap:"round",linejoin:"round"});Ee.plot(ae),Ee.fill("none"),n.svgDom.line(n.linePoint([q,p],a+2)).stroke({color:j,width:a+2,linecap:"round",linejoin:"round"}).fill("none"),n.svgDom.line(n.linePoint([N,z],a+2)).stroke({color:j,width:a+2,linecap:"round",linejoin:"round"}).fill("none")})}u();function d(m){if(!m.layout&&m.isExpand){var f=m.getChildren(),g=f.length,v=m.getPosition(),T=m.getBox();f.length&&f.forEach(function(y){var C=y.direct,I=y.getPosition(),M=y.getBox();let R=m.stroke?m.stroke:y.stroke?y.stroke:Jn();if(y.stroke||(y.stroke=R),y._barDom&&(y._barDom.style.backgroundColor=R,y._barDom.style.borderColor=R),C=="right")var B={x:v.x+T.width,y:v.y+T.height/2},A={x:I.x,y:M.height/2+I.y};else var B={x:v.x,y:v.y+T.height/2},A={x:I.x+M.width,y:M.height/2+I.y};if(g==1)var W=[[B.x,B.y],[A.x,A.y]];else{var ne=A.y{d(m),h(m)});function h(m){if(m.isExpand){if(m.layout){m.layout.createLink();return}m.children.forEach(f=>{h(f)})}}}}class pZe extends mu{constructor(i,r,a){super("fish");ie(this,"root",null);ie(this,"tops",[]);ie(this,"bottoms",[]);ie(this,"dis",10);ie(this,"levelDis",20);ie(this,"firstLevelDis",20);ie(this,"layoutName","fish");ie(this,"type","fish");ie(this,"angle",Math.PI*7/18);ie(this,"isCache",!1);ie(this,"colors",[]);ie(this,"fishTail",null);ie(this,"stroke","");this.root=i,this.direct=r||"right",this.colors=a||[],this.stroke=Jn(),this.svgDom||(this.svgDom=this.root.getMind().edgeGroup.group())}layout(i,r){if(this.direct=r||"right",this.tops=[],this.bottoms=[],this.root=i||this.root,!!this.root.isExpand){this.svgDom||(this.svgDom=this.root.getMind().edgeGroup.group()),this.root.layout=this,!this.root.parent&&this.root.nodeType!="induce"&&this.root.containEl.classList.add("mm-root");var a=this.root.children.length;this.root.getChildren().forEach((s,o)=>{o{l.mark="up",l.containEl.classList=[],l.containEl.classList.add("mm-node"),l.containEl.classList.add("mm-node-"+this.direct),l.containEl.classList.add(`mm-${this.layoutName}-node`),l.direct=this.direct,l.isExpand||l.containEl.classList.add("mm-node-collapse"),l.isLeaf()&&!l.containEl.classList.contains("mm-node-leaf")?l.containEl.classList.add("mm-node-leaf"):l.containEl.classList.contains("mm-node-leaf")&&l.containEl.classList.remove("mm-node-leaf")})):(this.bottoms.push(s),s.getNodeList().forEach(l=>{l.mark="down",l.containEl.classList=[],l.containEl.classList.add("mm-node"),l.containEl.classList.add("mm-node-"+this.direct),l.containEl.classList.add(`mm-${this.layoutName}-node`),l.direct=this.direct,l.isExpand||l.containEl.classList.add("mm-node-collapse"),l.isLeaf()&&!l.containEl.classList.contains("mm-node-leaf")?l.containEl.classList.add("mm-node-leaf"):l.containEl.classList.contains("mm-node-leaf")&&l.containEl.classList.remove("mm-node-leaf")})),s.containEl.classList.add("mm-node-second"),s.refreshBox()}),this.direct=="left"?this._layoutRight():this.direct=="right"&&this._layoutLeft(),this.root.mindmap.useHandMode?this.createHandDrawLink():this.createLink()}}_layoutLeft(){var i=this,r=this.root,a=r.getMind(),s=r.getBox(),o=r.getPosition(),l=o.y+s.height/2,c=[];this.tops.forEach((u,d)=>{u.direct="up";var h=u.getCBox();d==0?(u.setPosition(s.width+o.x+40+i.dis/Math.tan(i.angle),l-i.dis-h.height),c=[s.width+o.x+40+i.dis/Math.tan(i.angle)+h.width+i.dis,0]):(u.setPosition(c[0]+i.dis/Math.tan(i.angle),l-i.dis-h.height),c=[c[0]+h.width+i.dis+40,0]),i._layout(u,"top")}),this.bottoms.forEach((u,d)=>{u.direct="down";var h=u.getBox();if(d==0){var m=s.width+50+(i.dis+h.height)/Math.tan(i.angle)+i.dis;u.setPosition(m+o.x,l+i.dis),c=[m+h.width+i.dis+40,0]}else u.setPosition(c[0]+(i.dis+h.height)/Math.tan(i.angle)+i.dis,l+i.dis),c=[c[0]+h.width+i.dis,0];i._layout(u,"bottom")}),this.tops.forEach((u,d)=>{if(d>0){var h=a.getBBox(this.tops[d-1]),m=u.getPosition(),f=h.right-m.x+this.dis+40;this.moveNode(u,f,0)}}),this.bottoms.forEach((u,d)=>{if(d>0){var h=a.getBBox(this.bottoms[d-1]),m=u.getPosition(),f=h.right-m.x+this.dis+40;this.moveNode(u,f,0)}}),this.tops.forEach(u=>{this._updateNodeAssist(u,this.root)}),this.bottoms.forEach(u=>{this._updateNodeAssist(u,this.root)}),this._updateRootAssist()}_layoutRight(){var i=this,r=this.root,a=r.getMind(),s=r.getBox(),o=r.getPosition(),l=o.y+s.height/2,c=[];this.tops.forEach((u,d)=>{u.direct="up";var h=u.getBox();d==0?(u.setPosition(o.x-h.width-i.dis-i.dis/Math.tan(i.angle)-40,l-i.dis-h.height),c=[o.x-h.width-i.dis-i.dis/Math.tan(i.angle)-40,0]):(u.setPosition(c[0]-h.width-i.dis-i.dis/Math.tan(i.angle)-40,l-i.dis-h.height),c=[c[0]-h.width-i.dis-i.dis/Math.tan(i.angle)-40,0]),i._layout1(u,"top")}),this.bottoms.forEach((u,d)=>{u.direct="down";var h=u.getBox();if(d==0){var m=o.x-h.width-i.dis-(i.dis+h.height)/Math.tan(i.angle)-40;u.setPosition(m,l+i.dis),c=[m,0]}else u.setPosition(c[0]-h.width-(i.dis+h.height)/Math.tan(i.angle)-i.dis-40,l+i.dis),c=[c[0]-(i.dis+h.height)/Math.tan(i.angle)-i.dis-40,0];i._layout1(u,"bottom")}),this.tops.forEach((u,d)=>{if(d>0){var h=a.getBBox(this.tops[d-1]),m=u.getPosition(),f=u.getBox(),g=m.x-h.x+this.dis+f.width+40;this.moveNode(u,-g,0)}}),this.bottoms.forEach((u,d)=>{if(d>0){var h=a.getBBox(this.bottoms[d-1]),m=u.getPosition(),f=u.getBox(),g=m.x-h.x+this.dis+f.width+40;this.moveNode(u,-g,0)}}),this.tops.forEach(u=>{this._updateNodeAssist(u)}),this.bottoms.forEach(u=>{this._updateNodeAssist(u)}),this._updateRootAssist()}_layout(i,r){if(i.isExpand){i.layout&&(i.layout.group&&(i.layout.group.clear(),i.layout.group.remove(),i.layout.group=null),i.layout.svgDom&&(i.layout.svgDom.clear(),i.layout.svgDom.remove(),i.layout.svgDom=null));var a=this,s=i.getMind();if(r=="top"){var o=i.getBox(),l=i.getPosition(),c=o.width+l.x+a.dis,u=i.getChildren(),d=0,h=0;u.forEach((m,f)=>{if(m.isShow()){m.callout&&m.callout.refresh();var g=m.getCBox();if(f==0)h=c+(a.dis+o.height+g.bh)/Math.tan(a.angle),d=l.y-g.height-g.bh-a.dis,m.setPosition(h,d);else{var v=s.getBBox(u[f-1]),T=u[f-1].getCBox(),y=T.y-v.y,C=(y+a.dis+g.bh+T.height)/Math.tan(a.angle),I=T.x+C,M=v.y-a.dis-g.height-g.bh;m.setPosition(I,M)}a._updateNodeAssist(m,a.root),a._layout(m,r)}})}else{var o=i.getBox(),l=i.getPosition(),c=o.width+l.x+a.dis,d=0,h=0,u=i.getChildren();i.getChildren().forEach((C,I)=>{if(C.isShow()){C.callout&&C.callout.refresh();var M=C.getCBox(),R=0;if(I==0){var B=(a.dis+M.th+M.height)/Math.tan(a.angle);h=c+B,d=l.y+o.height+a.dis+M.th+R,C.setPosition(h,d)}else{var A=s.getBBox(u[I-1]),W=u[I-1].getCBox(),ne=a.dis+M.th+M.height+A.y+A.height-W.y-W.height,B=ne/Math.tan(a.angle),ee=W.x+B,de=A.y+A.height+a.dis+M.th;C.setPosition(ee,de)}a._updateNodeAssist(C,a.root),a._layout(C,r)}})}}}_layout1(i,r){if(i.isExpand){i.layout&&(i.layout.group&&(i.layout.group.clear(),i.layout.group.remove(),i.layout.group=null),i.layout.svgDom&&(i.layout.svgDom.clear(),i.layout.svgDom.remove(),i.layout.svgDom=null));var a=this,s=i.getMind(),o=i.getChildren();if(r=="top"){var l=i.getBox(),c=i.getPosition(),u=c.x-a.dis;o.forEach((d,h)=>{if(d.isShow()){d.callout&&d.callout.refresh();var m=d.getCBox();if(h==0){var f=u-m.width-(l.height+a.dis+m.bh)/Math.tan(a.angle),g=c.y-m.height-m.bh-a.dis;d.setPosition(f,g)}else{var v=0,T=s.getBBox(o[h-1]),y=o[h-1].getBox(),C=y.y-T.y,I=(C+a.dis+y.height+m.bh+v)/Math.tan(a.angle),M=y.x+y.width-m.width-I,R=T.y-a.dis-m.height-m.bh-v;d.setPosition(M,R)}a._updateNodeAssist(d,a.root),a._layout1(d,r)}})}else{var l=i.getBox(),c=i.getPosition(),u=c.x-a.dis;i.getChildren().forEach((f,g)=>{if(f.isShow()){f.callout&&f.callout.refresh();var v=f.getCBox(),T=0;if(g==0){var y=u-v.width-(v.height+a.dis+v.th+T)/Math.tan(a.angle),C=c.y+l.height+a.dis+v.th+T;f.setPosition(y,C)}else{var I=s.getBBox(o[g-1]),M=o[g-1].getBox(),R=I.y+I.height-M.y-M.height,B=(R+a.dis+v.th+T+v.height)/Math.tan(a.angle),A=M.x+M.width-v.width-B,W=M.y+a.dis+R+v.th+T+M.height;f.setPosition(A,W)}a._updateNodeAssist(f,a.root),a._layout1(f,r)}})}}}adjustNode(i,r){var a=i.getPosition(),s=i.getBBox(),o=i.getParent(),l=o.getPosition(),c=o.getBBox();if(r=="top")var u=l.y-a.y;else var u=a.y-l.y-c.height+s.height;for(var d=u/Math.tan(this.angle);o.getLevel()>1;){l=o.getPosition();var h=o.getSiblings();h.forEach(m=>{var f=m.getPosition();r=="top"?f.yl.y&&this.moveNode(m,d,u)}),o=o.getParent()}}adjustNode1(i,r){var a=i.getPosition(),s=i.getBBox(),o=i.getParent(),l=o.getPosition(),c=o.getBBox();if(r=="top")var u=l.y-a.y;else var u=a.y-l.y-c.height+s.height;for(var d=u/Math.tan(this.angle);o.getLevel()>1;){l=o.getPosition();var h=o.getSiblings();h.forEach(m=>{var f=m.getPosition();r=="top"?f.yl.y&&this.moveNode(m,-d,u)}),o=o.getParent()}}createHandDrawLink(){if(this.svgDom&&this.svgDom.clear(),!this.svgDom||this.root.getChildren().length==0)return;if(this.direct=="left"){this.createHandDrawLink1();return}var i=jc.svg(this.root.mindmap.draw),r=this;this.dis;let a=1;var s=this.root.getLevel();function o(l,c){var u=l.getBox(),d=l.getPosition();let h=l.parent.stroke?l.parent.stroke:l.stroke?l.stroke:Jn();if(l.stroke||(l.stroke=h),l._barDom&&(l._barDom.style.backgroundColor=h,l._barDom.style.borderColor=h),l.getLevel()==s+1){if(c=="top"){var m=[d.x-r.dis/Math.tan(r.angle),parseInt(d.y+u.height+r.dis)],f=[d.x,d.y+u.height+1],g=[f[0]+u.width+1,f[1]];r.svgDom.node.appendChild(i.linearPath(r.linePoint([m,f,g],a),{stroke:h,strokeWidth:a,fill:"none",roughness:.6}))}else if(c=="bottom"){var m=[d.x-(r.dis+u.height)/Math.tan(r.angle),parseInt(d.y-r.dis)],f=[d.x,d.y+u.height+1],g=[f[0]+u.width+1,f[1]];r.svgDom.node.appendChild(i.linearPath(r.linePoint([m,f,g],a),{stroke:h,strokeWidth:a,fill:"none",roughness:.6}))}}else{var v=l.getParent(),T=v.getPosition(),y=v.getBox();if(l.isLast())var m=[T.x+y.width-1,T.y+y.height+1],C=[m[0]+r.dis,m[1]],I=[d.x,d.y+u.height+1],g=[I[0]+u.width,I[1]],M=[m,C,I,g];else var I=[d.x,d.y+u.height+1],g=[I[0]+u.width,I[1]],M=[I,g];r.svgDom.node.appendChild(i.linearPath(r.linePoint(M,a),{stroke:h,strokeWidth:a,fill:"none",roughness:.6}))}l.isExpand&&l.getChildren().forEach(R=>{o(R,c)})}this.root.children.forEach((l,c)=>{l.stroke||(l.stroke=this.colors[c]||Jn())}),this.tops.forEach(l=>{o(l,"top")}),this.bottoms.forEach(l=>{o(l,"bottom")}),this.createHandDrawBone()}createLink(){if(this.svgDom&&this.svgDom.clear(),!this.svgDom||this.root.getChildren().length==0)return;if(this.direct=="left"){this.createLink1();return}var i=this;this.dis;let r=2;var a=this.root.getLevel();function s(o,l){var c=o.getBox(),u=o.getPosition();let d=o.parent.stroke?o.parent.stroke:o.stroke?o.stroke:Jn();if(o.stroke||(o.stroke=d),o._barDom&&(o._barDom.style.backgroundColor=d,o._barDom.style.borderColor=d),o.getLevel()==a+1){if(l=="top"){var h=[u.x-i.dis/Math.tan(i.angle),parseInt(u.y+c.height+i.dis)],m=[u.x,u.y+c.height+1],f=[m[0]+c.width+1,m[1]],g=i.svgDom.polyline(i.linePoint([h,m,f],r));g.fill("none"),g.stroke({color:d,width:r,linecap:"round",linejoin:"round"})}else if(l=="bottom"){var h=[u.x-(i.dis+c.height)/Math.tan(i.angle),parseInt(u.y-i.dis)],m=[u.x,u.y+c.height+1],f=[m[0]+c.width+1,m[1]],g=i.svgDom.polyline(i.linePoint([h,m,f],r));g.fill("none"),g.stroke({color:d,width:r,linecap:"round",linejoin:"round"})}}else{var v=o.getParent(),T=v.getPosition(),y=v.getBox();if(o.isLast())var h=[T.x+y.width-1,T.y+y.height+1],C=[h[0]+i.dis,h[1]],I=[u.x,u.y+c.height+1],f=[I[0]+c.width,I[1]],M=[h,C,I,f];else var I=[u.x,u.y+c.height+1],f=[I[0]+c.width,I[1]],M=[I,f];var g=i.svgDom.polyline(i.linePoint(M,r));g.fill("none"),g.stroke({color:d,width:r,linecap:"round",linejoin:"round"})}o.isExpand&&o.getChildren().forEach(R=>{s(R,l)})}this.root.children.forEach((o,l)=>{o.stroke||(o.stroke=this.colors[l]||Jn())}),this.tops.forEach(o=>{s(o,"top")}),this.bottoms.forEach(o=>{s(o,"bottom")}),this.creatBone()}createHandDrawLink1(){var i=this;if(this.dis,!this.svgDom||(this.svgDom&&this.svgDom.clear(),this.root.getChildren().length==0))return;var r=jc.svg(this.root.mindmap.draw);let a=1;var s=this.root.getLevel();function o(l,c){var u=l.getBox(),d=l.getPosition();let h=l.parent.stroke?l.parent.stroke:l.stroke?l.stroke:Jn();if(l.stroke||(l.stroke=h),l._barDom&&(l._barDom.style.backgroundColor=h,l._barDom.style.borderColor=h),l.getChildren().length,l.getLevel()==s+1){if(c=="top"){var m=[d.x+u.width+i.dis/Math.tan(i.angle),parseInt(d.y+u.height+i.dis)],f=[d.x+u.width,d.y+u.height+1],g=[d.x-1,f[1]];i.svgDom.node.appendChild(r.linearPath(i.linePoint([m,f,g],a),{stroke:h,strokeWidth:a,fill:"none",roughness:.6}))}else if(c=="bottom"){var m=[d.x+u.width+(i.dis+u.height)/Math.tan(i.angle),parseInt(d.y-i.dis)],f=[d.x+u.width,d.y+u.height+1],g=[d.x-1,f[1]];i.svgDom.node.appendChild(r.linearPath(i.linePoint([m,f,g],a),{stroke:h,strokeWidth:a,fill:"none",roughness:.6}))}}else{var v=l.getParent(),T=v.getPosition(),y=v.getBox();if(l.isLast())var m=[T.x+1,T.y+y.height+1],C=[m[0]-i.dis,m[1]],I=[d.x+u.width,d.y+u.height+1],g=[d.x,I[1]],M=[m,C,I,g];else var I=[d.x+u.width,d.y+u.height+1],g=[d.x,I[1]],M=[I,g];i.svgDom.node.appendChild(r.linearPath(i.linePoint(M,a),{stroke:h,strokeWidth:a,fill:"none",roughness:.6}))}l.isExpand&&l.getChildren().forEach(R=>{o(R,c)})}this.root.children.forEach((l,c)=>{l.stroke||(l.stroke=this.colors[c]||Jn())}),this.tops.forEach(l=>{o(l,"top")}),this.bottoms.forEach(l=>{o(l,"bottom")}),this.createHandDrawBone1()}createLink1(){var i=this;if(this.dis,!this.svgDom||(this.svgDom&&this.svgDom.clear(),this.root.getChildren().length==0))return;let r=2;var a=this.root.getLevel();function s(o,l){var c=o.getBox(),u=o.getPosition();let d=o.parent.stroke?o.parent.stroke:o.stroke?o.stroke:Jn();if(o.stroke||(o.stroke=d),o._barDom&&(o._barDom.style.backgroundColor=d,o._barDom.style.borderColor=d),o.getChildren().length,o.getLevel()==a+1){if(l=="top"){var h=[u.x+c.width+i.dis/Math.tan(i.angle),parseInt(u.y+c.height+i.dis)],m=[u.x+c.width,u.y+c.height+1],f=[u.x-1,m[1]],g=i.svgDom.polyline(i.linePoint([h,m,f],r));g.fill("none"),g.stroke({color:d,width:r,linecap:"round",linejoin:"round"})}else if(l=="bottom"){var h=[u.x+c.width+(i.dis+c.height)/Math.tan(i.angle),parseInt(u.y-i.dis)],m=[u.x+c.width,u.y+c.height+1],f=[u.x-1,m[1]],g=i.svgDom.polyline(i.linePoint([h,m,f],r));g.fill("none"),g.stroke({color:d,width:r,linecap:"round",linejoin:"round"})}}else{var v=o.getParent(),T=v.getPosition(),y=v.getBox();if(o.isLast())var h=[T.x+1,T.y+y.height+1],C=[h[0]-i.dis,h[1]],I=[u.x+c.width,u.y+c.height+1],f=[u.x,I[1]],M=[h,C,I,f];else var I=[u.x+c.width,u.y+c.height+1],f=[u.x,I[1]],M=[I,f];var g=i.svgDom.polyline(i.linePoint(M,r));g.fill("none"),g.stroke({color:d,width:r,linecap:"round",linejoin:"round"})}o.isExpand&&o.getChildren().forEach(R=>{s(R,l)})}this.root.children.forEach((o,l)=>{o.stroke||(o.stroke=this.colors[l]||Jn())}),this.tops.forEach(o=>{s(o,"top")}),this.bottoms.forEach(o=>{s(o,"bottom")}),this.creatBone1()}createHandDrawBone(){var i=this;if(!this.isShow||!this.svgDom)return;var r=jc.svg(this.root.mindmap.draw),a=this.root.getMind(),s=this.root,o=s.getBox(),l=s.getPosition(),c=a.getBoundingRect(s.getShowNodeList());let u=1,d=this.stroke;var h,m,f,g,h=parseInt(l.x+o.width)+.5,m=parseInt(l.y+o.height/2)+.5,f=parseInt(l.x+c.width+30)+.5,g=m;i.svgDom.node.appendChild(r.polygon([[h,m-3],[f,g],[h,m+3]],{stroke:d,strokeWidth:u,fill:d,roughness:.4}));var v=[l.x+c.width+30,m],T=[v[0]+60,v[1]-30],y=[v[0]+60,v[1]+30];i.fishTail=r.polygon([v,T,y],{stroke:d,strokeWidth:u,fill:d,roughness:.6}),i.svgDom.node.appendChild(i.fishTail)}creatBone(){var i=this;if(!this.isShow||!this.svgDom)return;var r=this.root.getMind(),a=this.root,s=a.getBox(),o=a.getPosition(),l=r.getBoundingRect(a.getShowNodeList());let c=2,u=this.root.stroke||this.stroke;this.stroke;var d,h,m,f,d=parseInt(o.x+s.width),h=parseInt(o.y+s.height/2),m=parseInt(o.x+l.width+30),f=h;i.svgDom.line(d,h,m,f).stroke({color:u,width:c,linecap:"round",linejoin:"round"});var g=[o.x+l.width+30,h],v=[g[0]+60,g[1]-30],T=[g[0]+60,g[1]+30];i.fishTail=i.svgDom.polygon([g,v,T]).fill("lightskyblue").stroke({color:u,width:2,linecap:"round",linejoin:"round"})}createHandDrawBone1(){var i=this;if(!this.svgDom)return;var r=jc.svg(this.root.mindmap.draw),a=this.root,s=a.getMind(),o=a.getBox(),l=a.getPosition(),c=s.getBoundingRect(a.getShowNodeList());let u=1,d=this.stroke;var h,m,f,g,h=parseInt(l.x)+.5,m=parseInt(l.y+o.height/2)+.5,f=parseInt(c.x-40)+.5,g=m;i.svgDom.node.appendChild(r.polygon([[h,m-3],[f,g],[h,m+3]],{stroke:d,strokeWidth:u,fill:d,roughness:.4}));var v=[c.x-40,m],T=[v[0]-60,v[1]-30],y=[v[0]-60,v[1]+30];i.fishTail=r.polygon([v,T,y],{stroke:d,strokeWidth:u,fill:d,roughness:.6}),i.svgDom.node.appendChild(i.fishTail)}creatBone1(){var i=this;if(!this.svgDom)return;var r=this.root,a=r.getMind(),s=r.getBox(),o=r.getPosition(),l=a.getBoundingRect(r.getShowNodeList());let c=2,u=this.root.stroke||this.stroke;var d,h,m,f,d=parseInt(o.x),h=parseInt(o.y+s.height/2),m=parseInt(l.x-40),f=h;i.svgDom.line(d,h,m,f).stroke({color:u,width:c,linecap:"round",linejoin:"round"});var g=[l.x-40,h],v=[g[0]-60,g[1]-30],T=[g[0]-60,g[1]+30];i.fishTail=i.svgDom.polygon([g,v,T]).fill("lightskyblue").stroke({color:u,width:2,linecap:"round",linejoin:"round"})}refresh(){this.tops=[],this.bottoms=[],this.layout(this.root,this.direct)}}class mZe extends mu{constructor(i,r,a){super("tree");ie(this,"layoutName","tree");ie(this,"direct","down");ie(this,"root");ie(this,"mind");ie(this,"levelDis",20);ie(this,"dis",10);ie(this,"firstLevel",60);ie(this,"firstNodeDis",20);ie(this,"svgDom");ie(this,"isCache",!0);ie(this,"lefts",[]);ie(this,"rights",[]);ie(this,"colors",[]);ie(this,"lineWidth",2);ie(this,"cache",{});ie(this,"group",null);this.root=i,(r=="down"||r=="up")&&(this.direct=r),this.colors=a||[],this.mind=this.root.mindmap,this.group||(this.group=this.mind.edgeGroup.group())}layout(i,r){i&&(this.root=i),r?r=="down"||r=="up"?this.direct=r:this.direct="down":this.direct="down",i.layout=this,this.group||(this.group=this.root.getMind().edgeGroup.group()),this.svgDom=this.group,this.root.isShow()&&(i.children.forEach(a=>{this.setDirect(a)}),this._doLayout(i),this.doLayout(i),this.root.nodeType&&this.root.nodeType!="induce"&&this.refreshLayout(),this._updateRootAssist()),this.createLink()}setDirect(i){if(i.direct=this.direct,i.containEl){var r=i.containEl.classList.contains("mm-node-second");i.containEl.setAttribute("class",""),i.containEl.classList.add("mm-node"),i.containEl.classList.add("mm-node-"+this.direct),i.belongInduce&&i.containEl.classList.add("mm-node-induce"),i.isLeaf()&&!i.containEl.classList.contains("mm-node-leaf")?i.containEl.classList.add("mm-node-leaf"):i.containEl.classList.contains("mm-node-leaf")&&i.containEl.classList.remove("mm-node-leaf"),i.getLevel()==0&&this.root.nodeType&&this.root.nodeType!="induce"&&i.containEl.classList.add("mm-root"),i.getLevel()==1&&this.root.nodeType&&this.root.nodeType!="induce"&&(i.containEl.classList.add("mm-node-second"),i.refreshBox()),r&&i.refreshBox(),i.isExpand||i.containEl.classList.add("mm-node-collapse"),i.isSelect&&i.containEl.classList.add("mm-node-select"),(i===this.root||!i.layout&&i.isExpand)&&i.children.forEach(a=>{this.setDirect(a)})}}_doLayout(i){var r=this,a=this.levelDis,s=this.dis,o=i.getBox(),l=i.getPosition();i.getLevel()==0&&(a=this.firstLevel,s=this.firstNodeDis);var c=i.getChildren().length-1;let u=0;if(i.getChildren().forEach(function(f,g){let v=f.getBox();u=u+v.width,g!=c&&(u+=s)}),this.direct=="down"){let f=l.y+o.height+a,g=l.x+o.width/2-u/2,v=0;i.getChildren().forEach(function(T,y){T.callout&&T.callout.refresh();let C=T.getCBox();var I=f+C.th;y==0?(T.setPosition(g,I),v=g+C.width+s):(T.setPosition(v,I),v=v+C.width+s)})}else{let f=l.y-a,g=l.x+o.width/2-u/2,v=0;i.getChildren().forEach(function(T,y){T.callout&&T.callout.refresh(),T.wireFrame&&T.wireFrame.refresh();let C=T.getCBox();y==0?(T.setPosition(g,f-C.height-C.bh),v=g+C.width+s):(T.setPosition(v,f-C.height-C.bh),v=v+C.width+s)})}if(this.direct=="down"&&i.layout&&i!=this.root){if(i.layout.layoutName!="table"){i.layout.layout(i,i.layout.direct||"");var d=i.getMind();o=d.getBBox(i);var h=i.getCBox().th,m=Math.abs(Math.abs(l.y-o.y)-h);this.moveNode(i,0,m),i.boundingRect=null,i.direct="down"}else i.direct="down",i.boundingRect=null;return}i.isExpand&&i.getChildren().forEach(function(f,g){r._doLayout(f)})}doLayout(i){if(i&&i.isExpand){var r=this,a=i.getMind();a.traverseDF(s=>{if(s!=r.root&&s.isShow()){if(s.layout){if(s.layout!=r&&s.getTopLayout()!=r)return}else if(s.getLayout()!=r&&r.direct=="down")return;s.callout&&s.callout.isShow&&s.callout.refresh();var o={},l=s.parent;if(l){var c=l.wireFrames,u=l.summaries;c.length&&c.forEach(R=>{if(R.node==s&&(R.refreshNode(),R.refresh(),R.data&&R.data.text))if(o[s.getId()])o[s.getId()].rangeNode=o[s.getId()].rangeNode.concat(R.rangeNode.slice()),o[s.getId()].rangeNode.unique();else{var B=R.getTextBox().height,A=R.rangeNode.slice();o[s.getId()]={node:s,wf:R,topDy:B+4,rangeNode:A}}}),u.length&&u.forEach(R=>{R.node==s&&(R.refreshNode(),R.refresh())})}var d=s.getBox();if(r.isCache&&s.boundingRect)var h=s.boundingRect;else{var m=s.getShowNodeList(),f=[],g=[],v=[],T=[];if(m.forEach(R=>{R.callout&&R.callout.isShow&&v.indexOf(R)==-1&&v.push(R.callout),R.layout&&R.layout.isShow&&T.indexOf(R.layout)==-1&&T.push(R.layout);var B=R.wireFrames,A=R.summaries;A.forEach(W=>{W.isShow()&&g.indexOf(W)==-1&&g.push(W)}),B.forEach(W=>{W.isHide||f.indexOf(W)==-1&&f.push(W)})}),m=m.concat(f).concat(v),g.forEach(R=>{m=m.concat(R.getAllItem())}),m.length){var h=a.getBoundingRect(m);T.length&&T.forEach(B=>{if(B.layoutName=="fish"&&r.direct=="down"&&(B.direct=="right"?B.creatBone():B.creatBone1(),B.fishTail)){var A=B.fishTail.bbox();A.xh.right&&(h.right=A.x+A.width),A.y+A.height>h.bottom&&(h.bottom=A.y+A.height),h.width=h.right-h.x,h.height=h.bottom-h.y}})}}if(r.isCache&&s.boundingRect)var y=s.boundingRect.leftDx,C=s.boundingRect.rightDx;else{y=Math.abs(h.x-d.x),C=Math.abs(h.right-d.x-d.width);var I={},M={};c&&c.length&&c.forEach(R=>{var B=R.leftNode;if(R.node==s){if(I[B])return;I[B]=!0,y+=6}if(R.endNode&&R.endNode==s){var A=R.rightNode;if(M[A])return;M[A]=!0,C+=6}}),h.leftDx=y,h.rightDx=C,s.boundingRect=h}if(r.adjustNode(s,y,C,0),s.direct!=="top")for(let R in o)r.adjustNode(o[R].node,0,0,o[R].topDy,o[R]);c&&c.length&&c.forEach(R=>{R.endNode==s&&R.refresh()}),u&&u.length&&u.forEach(R=>{R.endNode==s&&R.refresh()})}},i,!1)}}adjustNode(i,r,a,s,o){var l=this;if(o){o.rangeNode.forEach(d=>{l.direct=="down"?l.moveNode(d,0,s):l.moveNode(d,0,-s)});return}if(i&&i!=this.root){var c=i.getPosition(),u=i.getSiblings();u.forEach(function(d){let h=d.getPosition();if(c.x>h.x){if(r==0)return;l.moveNode(d,-r,0)}else{if(a==0)return;l.moveNode(d,a,0)}})}}refreshLayout(){var i=this.root,r=i.getPosition(),a=i.getBox(),s=r.x+a.width/2,o=i.getChildren();if(o.length>=2){var l=o[0],c=o[o.length-1],u=l.getPosition(),d=c.getPosition(),h=c.getBox(),m=d.x+h.width-s,f=s-u.x;if(Math.abs(m)!=Math.abs(f)){var g=Math.abs(Math.abs(m)-Math.abs(f))/2;Math.abs(m)>Math.abs(f)?o.forEach(v=>{this.moveNode(v,-g,0)}):o.forEach(v=>{this.moveNode(v,g,0)})}}}createLink(){this.direct=="down"?this.createDownLink():this.createUpLink()}createDownLink(){var i=this,r=this.root;if(this.group&&this.group.clear(),this.root.getChildren().length==0||!this.group||!this.root.isShow())return;let a=this.lineWidth;function s(l){if(!(l.layout&&l!=i.root)&&l.isExpand){var c=l.getPosition(),u=l.getBox();l==i.root&&(u.height+=1),l.getChildren().forEach(function(d,h){let m=d.getBox(),f=d.getPosition(),g={x:c.x+u.width/2,y:c.y+u.height},v={x:f.x+m.width/2,y:f.y},T=l.stroke?l.stroke:d.stroke?d.stroke:i.colors[h]||Jn();if(d.stroke||(d.stroke=T),d._barDom&&(d._barDom.style.backgroundColor=T,d._barDom.style.borderColor=T),l.getChildren().length==1){if(a%2==1)var y=parseInt(g.x+"")+.5,C=g.y,I=parseInt(v.x+"")+.5,M=parseInt(v.y+"")+.5;else var y=parseInt(g.x+""),C=g.y,I=parseInt(v.x+""),M=parseInt(v.y+"");var R=i.group.line(y,C,I,M).stroke({color:T,width:a,linecap:"round",linejoin:"round"})}else{var B=[c.x+u.width/2,c.y+u.height],A=[f.x+m.width/2,f.y];if(l.getLevel()==0)var W=[B[0],B[1]+i.firstLevel/2];else var W=[B[0],B[1]+i.levelDis/2];if(f.x+m.width/2>c.x+u.width/2)var ne=[A[0]-4,W[1]],ee=[A[0],W[1]+4];else var ne=[A[0]+4,W[1]],ee=[A[0],W[1]+4];var de=[B,W,ne],Y=[ee,A];if(de.length>2){var R=i.group.polyline(i.linePoint(de,a));R.fill("none"),R.stroke({color:T,width:a,linecap:"round",linejoin:"round"});var se=i.linePoint([ee],a)[0],q=i.linePoint([ne],a)[0],p=`M${se[0]} ${se[1]},Q${se[0]} ${q[1]},${q[0]} ${q[1]}`,N=i.group.path().stroke({color:T,width:a,linecap:"round",linejoin:"round"});N.plot(p),N.fill("none");var R=i.group.polyline(i.linePoint(Y,a));R.fill("none"),R.stroke({color:T,width:a,linecap:"round",linejoin:"round"})}else{var R=i.group.polyline(i.linePoint(de,a));R.fill("none"),R.stroke({color:T,width:a,linecap:"round",linejoin:"round"})}}s(d)})}}s(r),r.children.forEach((l,c)=>{o(l)});function o(l){if(l.isExpand){if(l.layout){l.layout.createLink();return}l.children.forEach(c=>{o(c)})}}}createUpLink(){var i=this,a=this.root;if(this.group&&this.group.clear(),this.root.getChildren().length==0||!this.group||!this.root.isShow())return;let r=this.lineWidth;var a=this.root;function s(o){if(o.layout&&o!=i.root&&o.layout.group&&o.layout.group.clear(),!!o.isExpand){var l=o.getPosition(),c=o.getBox();o.getLevel(),o.getChildren().forEach(function(u,d){let h=u.getCBox(),m=u.getPosition(),f={x:parseInt(l.x+c.width/2+""),y:parseInt(l.y+"")},g={x:parseInt(m.x+h.width/2+""),y:parseInt(m.y+h.height+"")},v=o.stroke?o.stroke:u.stroke?u.stroke:Jn();if(u.stroke||(u.stroke=v),u._barDom&&(u._barDom.style.backgroundColor=v,u._barDom.style.borderColor=v),o.getChildren().length==1){if(r%2==1)var T=parseInt(f.x+"")+.5,y=parseInt(f.y+"")+.5,C=parseInt(g.x+"")+.5,I=parseInt(g.y+"")+.5;else var T=parseInt(f.x+""),y=parseInt(f.y+""),C=parseInt(g.x+""),I=parseInt(g.y+"");var M=i.group.line(T,y,C,I).stroke({color:v,width:r,linecap:"round",linejoin:"round"})}else{var R=[l.x+c.width/2,l.y],B=[m.x+h.width/2,m.y+h.height],A=[R[0],R[1]-i.levelDis/2];if(u.isFirst()||u.isLast()){if(m.x+h.width/2>l.x+c.width/2)var W=[B[0]-4,A[1]],ne=[B[0],A[1]-4];else var W=[B[0]+4,A[1]],ne=[B[0],A[1]-4];var ee=[R,A,W],de=[ne,B]}else var W=[B[0],A[1]],ee=[W,B];if(ee.length>2){var M=i.group.polyline(i.linePoint(ee,r));M.fill("none"),M.stroke({color:v,width:r,linecap:"round",linejoin:"round"});var Y=i.linePoint([ne],r)[0],se=i.linePoint([W],r)[0],q=`M${Y[0]} ${Y[1]},Q${Y[0]} ${se[1]},${se[0]} ${se[1]}`,p=i.group.path().stroke({color:v,width:r,linecap:"round",linejoin:"round"});p.plot(q),p.fill("none");var M=i.group.polyline(i.linePoint(de,r));M.fill("none"),M.stroke({color:v,width:r,linecap:"round",linejoin:"round"})}else{var M=i.group.polyline(i.linePoint(ee,r));M.fill("none"),M.stroke({color:v,width:r,linecap:"round",linejoin:"round"})}}s(u)})}}a.children.forEach((o,l)=>{o.stroke||(o.stroke=this.colors[l]||Jn())}),s(a)}refresh(){var i=this.root;this.layout(i,this.direct),this.createLink()}}class gZe extends mu{constructor(i,r,a){super("multipleTree");ie(this,"mind",null);ie(this,"colors",[]);ie(this,"layoutName","multipleTree");ie(this,"type","multipleTree");ie(this,"levelDis",20);ie(this,"firstLevelDis",40);ie(this,"nodeDis",18);ie(this,"root",null);ie(this,"rootLevel",0);ie(this,"rights",[]);ie(this,"lefts",[]);ie(this,"isCache",!1);ie(this,"name","multipleTree");ie(this,"lineWidth",2);this.root=i,this.mind=this.root.mindmap,this.colors=a||[],this.direct=r||"multipleTree",this.svgDom||(this.svgDom=this.mind.edgeGroup.group())}layout(i,r){if(this.rights=[],this.lefts=[],this.root=i||this.root,this.rootLevel=this.root.getLevel(),this.root.layout=this,this.direct=r,this.root.containEl.classList.contains("mm-multipleTree-node")||(this.root.containEl.classList.add("mm-node-down"),this.root.containEl.classList.add("mm-multipleTree-node")),this.svgDom||(this.svgDom=this.root.mindmap.edgeGroup.group()),this.direct=="right")this.root.children.forEach(s=>{this.rights.push(s),this.setDirect(s,"right")});else if(this.direct=="left")this.root.children.forEach(s=>{this.lefts.push(s),this.setDirect(s,"left")});else{var a=this.root.children.length;this.root.children.forEach((s,o)=>{o{this.setDirect(s,r)})}}_layoutTow(){this.root.isExpand&&this.root.isShow()&&(this._layoutRight(),this._layoutLeft())}_layoutRight(){var i=this.root.getCBox();this.rights.forEach((r,a)=>{r.callout&&r.callout.refresh(),this._layoutRightNode(r,a,i,!0,r.getLevel()-1)})}getParentPos(i){i.getLevel();var r=i.getDomBox(),a={x:r.x+r.width/2,y:r.y+r.height};return a}_layoutRightNode(i,r,a,s,o){var l=this.root.getMind(),c={x:a.x+a.width/2,y:a.y+a.height};if(r==0){var u=i.getCBox(!0);i.setPosition(c.x+this.levelDis,c.y+this.nodeDis+u.th+a.bh)}else{var d=i.getCBox(!0);if(s){let C=this.rights[r-1];if(this.isCache&&C.boundingRect)var h=C.boundingRect;else{var h=l.getBBox(C);C.boundingRect=h}var m=C.getPosition();if(C.layout){var{x:f}=this.getParentPos(C.parent);i.setPosition(f+this.levelDis,h.y+h.height+this.nodeDis+d.th)}else i.setPosition(m.x,h.y+h.height+this.nodeDis+d.th)}else{var g=i.parent.children[r-1];let C=g.getPosition();if(this.isCache&&g.boundingRect)var h=g.boundingRect;else{var h=l.getBBox(g);g.boundingRect=h}if(g.layout){var{x:f}=this.getParentPos(g.parent);i.setPosition(f+this.levelDis,h.y+h.height+this.nodeDis+d.th)}else i.setPosition(C.x,h.y+h.height+this.nodeDis+d.th)}}if(i.layout){if(i.layout.layoutName!="table"){i.layout.layout(i,i.layout.direct||"");let C=i.getPosition();var a=l.getBBox(i);i.boundingRect=a;var v=Math.abs(C.x-a.x);if(u)var T=Math.abs(C.y-a.y)-u.th;else var T=Math.abs(C.y-a.y);this.moveNode(i,v,T),i.direct="right",this._updateNodeAssist(i);return}else i.boundingRect=null,i.direct="right",this._updateNodeAssist(i);return}if(this._updateNodeAssist(i),i.isExpand){var y=i.getCBox(!0);i.children.forEach((C,I)=>{C.callout&&C.callout.refresh(),this._layoutRightNode(C,I,y)})}}_layoutLeft(){var i=this.root.getCBox();this.lefts.forEach((r,a)=>{r.callout&&r.callout.refresh(),this._layoutLeftNode(r,a,i,!0,r.getLevel()-1)})}_layoutLeftNode(i,r,a,s,o){var l=this.root.getMind(),c={x:a.x+a.width/2,y:a.y+a.height},{width:u,th:d}=i.getCBox(!0);if(r==0){var h=0;o==this.rootLevel&&(h=20),i.setPosition(c.x-u-this.levelDis,c.y+this.nodeDis+h+d+a.bh)}else{var m=i.getCBox(!0);if(s){var f=this.lefts[r-1];if(this.isCache&&f.boundingRect)var g=f.boundingRect;else{var g=l.getBBox(f);f.boundingRect=g}if(f.layout){var{x:v}=this.getParentPos(f.parent);i.setPosition(v-this.levelDis-u,g.y+g.height+this.nodeDis+m.th)}else{var T=f.getCBox(!0);i.setPosition(T.x+T.width-u,g.y+g.height+this.nodeDis+m.th)}}else{let R=i.parent.children[r-1];var g=l.getBBox(R);if(this.isCache&&R.boundingRect)var g=R.boundingRect;else{var g=l.getBBox(R);R.boundingRect=g}if(R.layout){var{x:v}=this.getParentPos(R.parent);i.setPosition(v-this.levelDis-u,g.y+g.height+this.nodeDis+m.th)}else{let A=R.getCBox(!0);i.setPosition(A.x+A.width-u,g.y+g.height+this.nodeDis+m.th)}}}if(i.layout){if(i.layout.layoutName!="table"){i.layout.layout(i,i.layout.direct||"");var y=i.getPosition(),a=l.getBBox(i),C=Math.abs(y.x+u-a.x-a.width),I=Math.abs(y.y-a.y)-d;this.moveNode(i,-C,I),i.direct="left",this._updateNodeAssist(i);return}else{var y=i.getPosition(),a=l.getBBox(i),C=Math.abs(y.x+u-a.x-a.width),I=Math.abs(y.y-a.y)-d;this.moveNode(i,-C,I),i.direct="left",i.boundingRect=null,this._updateNodeAssist(i)}return}if(this._updateNodeAssist(i),i.isExpand){var M=i.getCBox(!0);i.children.forEach((R,B)=>{R.callout&&R.callout.refresh(),this._layoutLeftNode(R,B,M)})}}createLink(){var i=this;if(this.svgDom&&this.svgDom.clear(),!this.svgDom||!this.root.isShow()||this.root.getChildren().length==0)return;var r=this.lineWidth;Jn();function a(o){if(o.isExpand){var l=6,c={...o.getBox()};o!=i.root&&(c.height+=1);var u=[c.x+c.width/2,c.y+c.height];o.children.forEach(d=>{var h={...d.getBox()};h.height+=1;var m=o.stroke?o.stroke:d.stroke?d.stroke:Jn();if(d.stroke||(d.stroke=m),d._barDom&&(d._barDom.style.backgroundColor=m,d._barDom.style.borderColor=m),d.direct=="right")var f=i.linePoint([[u[0],h.y+h.height-l]],r)[0],g=i.linePoint([[h.x+h.width,h.y+h.height]],r)[0],v=i.linePoint([[f[0]+l,g[1]]],r)[0],T=`M${f[0]} ${f[1]},Q${f[0]} ${f[1]+l},${v[0]} ${v[1]}`;else var f=i.linePoint([[u[0],h.y+h.height-l]],r)[0],g=i.linePoint([[h.x,h.y+h.height]],r)[0],v=i.linePoint([[f[0]-l,g[1]]],r)[0],T=`M${f[0]} ${f[1]},Q${f[0]} ${f[1]+l},${v[0]} ${v[1]} `;var y=i.svgDom.path().stroke({color:m,width:r,linecap:"round",linejoin:"round"});y.plot(T),y.fill("none");var C=i.svgDom.line(i.linePoint([u,f],r));C.fill("none"),C.stroke({color:m,width:r,linecap:"round",linejoin:"round"});var I=i.svgDom.line(i.linePoint([v,g],r));I.fill("none"),I.stroke({color:m,width:r,linecap:"round",linejoin:"round"}),!d.layout&&a(d)})}}this.root.children.forEach((o,l)=>{o.stroke||(o.stroke=this.colors[l]||Jn())}),a(this.root),this.root.children.forEach((o,l)=>{s(o)});function s(o){if(o.isExpand){if(o.layout){o.layout.createLink();return}o.children.forEach(l=>{s(l)})}}}refresh(){this.layout(this.root,this.direct),this.createLink()}}class vZe extends mu{constructor(i,r,a){super("vertical");ie(this,"layoutName","vertical");ie(this,"type","vertical");ie(this,"dis",40);ie(this,"direct","vertical");ie(this,"isCache",!0);ie(this,"root",null);ie(this,"colors",[]);ie(this,"svgDom",null);if(this.root=i,this.direct=r||"vertical",this.colors=a||[],!i.stroke){var s=Jn();i.data.stroke=s,i.stroke=s}}layout(i,r){this.direct=r||"vertical",this.root=i||this.root,this.root.parent||this.root.containEl.classList.contains("mm-root")||this.root.containEl.classList.add("mm-root"),this.svgDom||(this.svgDom=this.root.getMind().edgeGroup.group()),this.root.layout=this,this._layout(this.root,this.direct),this._updateRootAssist(),this.createLink()}_layout(i,r){var a=this;this.root=i,this.direct=r||"vertical";var s=this.root.mindmap,o=this.root.getPosition(),l=this.root.getBox(),c={x:o.x+l.width/2,y:o.y+l.height};this.root.isExpand&&(this.root.children.forEach((u,d)=>{var h="right";d%2==0&&(h="left");var m=[];if(u.stroke)var f=u.stroke;else f=this.colors[d]||Jn(),u.data.stroke=f,u.stroke=f;m=new Array(100).fill(f),!u.layout&&(u.layout=new qL(u,h,m)),u.layout.root=u;var C=u.getBox();if(d==0)u.setPosition(c.x-C.width/2,c.y+this.dis);else{var g=this.root.children[d-1],v=s.getBBox(g);u.boundingRect=v;var T=v.bottom;u.setPosition(c.x-C.width/2,T+this.dis)}u.layout.layout(u,h||this.direct||""),u.callout&&u.callout.refresh();var y=u.getPosition(),C=s.getBBox(u),I=Math.abs(y.y-C.y);this.moveNode(u,0,I),u.containEl.classList=[],u.containEl.classList.add("mm-node"),u.containEl.classList.add("mm-node-"+h),u.containEl.classList.add("mm-node-second"),u.containEl.classList.add("mm-vertical-node"),u.isLeaf()?u.containEl.classList.contains("mm-node-leaf")||u.containEl.classList.add("mm-node-leaf"):u.containEl.classList.contains("mm-node-leaf")&&u.containEl.classList.remove("mm-node-leaf"),this._updateNodeAssist(u,a.root)}),this._updateNodeAssist(this.root,this.root))}createLink(){var i=this.root.children,r=i.length;if(this.svgDom&&this.svgDom.clear(),!this.svgDom||!this.root.isShow()||r==0)return;let a=this.root.stroke?this.root.stroke:Jn();var s=i[r-1];let o=2;var l=this.root.getPosition(),c=this.root.getCBox();s.getCBox();var u=s.getPosition(),d=l.x+c.width/2,h=d,m=l.y+c.height,f=u.y;this.svgDom.line(d,m,h,f).stroke({color:a,width:o,linecap:"round",linejoin:"round"}),i.forEach(g=>{g.layout.createLink()})}refresh(){this.layout(this.root,this.direct)}}class bZe extends mu{constructor(i,r){super("table");ie(this,"layoutName","table");ie(this,"direct","");ie(this,"root");ie(this,"mind");ie(this,"data",null);ie(this,"levelDis",50);ie(this,"nodeDis",6);ie(this,"firstLevelDis",80);ie(this,"firstNodeDis",20);ie(this,"svgDom");ie(this,"isCache",!0);ie(this,"lefts",[]);ie(this,"rights",[]);ie(this,"colors",[]);ie(this,"lineWidth",2);ie(this,"tableDom",null);ie(this,"lastNode",null);ie(this,"x",0);ie(this,"y",0);this.root=i,this.direct=r||"right",this.mind=this.root.getMind();var a=this.getData(i),{x:s,y:o}=i.getPosition();this.x=s,this.y=o,this.initTableDom(),this.initTableNode(a),this.layout()}layout(i,r){var a=document.createElement("table");a.classList.add("mm-table"),a.classList.add("mm-table-bordered"),this.tableDom.innerHTML="",this.tableDom.appendChild(a);var s=this.getMaxlevel(),o=document.createElement("thead"),l=document.createElement("tr");a.appendChild(o),this.root.init(s),this.root.tdDom.setAttribute("colspan",s),l.appendChild(this.root.tdDom),o.appendChild(l);var c=[];this.root.children.forEach(u=>{this.mind.traverseDF(d=>{if(d.init(),d.isLeaf()&&d.getLevel()!=1){var h=document.createElement("tr");d.trDom=h,a.appendChild(h),h.appendChild(d.tdDom),c.push(d),d.tdDom.setAttribute("colspan",s-d.getLevel()+1),d.tdDom.setAttribute("rowspan",1)}},u)}),c.forEach(u=>{for(var d=u.parent;d&&d!=this.root&&!a.querySelector(`[data-id='${d.data.id}']`);){d.tdDom.setAttribute("colspan",1);var h=d.children[0].trDom;h.insertBefore(d.tdDom,h.firstChild),d.trDom=h;var m=this.getRowspan(d);d.tdDom.setAttribute("rowspan",m),d=d.parent}}),this.root.children.forEach((u,d)=>{if(!a.querySelector(`[data-id='${u.data.id}']`)){var h=document.createElement("tr");if(h.appendChild(u.tdDom),u.tdDom.setAttribute("colspan",s),u.tdDom.setAttribute("rowspan",1),u.trDom=h,d==0)Ho(h,o);else{var m=this.getLastNode(this.root.children[d-1]);m&&Ho(h,m.trDom)}}})}initTableDom(){if(!this.tableDom){var i=document.createElement("div");i.classList.add("mm-table-content"),i.style.position="absolute",i.style.left=this.x+"px",i.style.top=this.y+"px",this.tableDom=i,this.mind.contentEL.appendChild(i)}}initTableNode(i){var r=this;function a(s,o,l){var c=new dd(s,r.mind);c._tableDom=r.tableDom,o?(r.root=c,c.layout=r):(l.children.push(c),c.parent=l),c.direct=r.direct,r.lastNode=c,s.children&&s.children.length&&s.children.forEach(u=>{a(u,!1,c)})}a(i,!0),this.initTableDom()}getLastNode(i){function r(a){var s=a.children.length;return s?r(a.children[s-1]):a}return r(i)}getMaxlevel(i){var r=0;return this.mind.traverseDF(a=>{var s=a.getLevel();ru.children&&u.children.length);if(o.length){var l=[s];o.forEach(u=>{var d=r(u);l.push(d)});var c=0;return l.forEach(u=>{c+=u}),c-o.length}else return s}return r(i)}getData(i){var r=i.getData();return i.getChildren().length&&(r.children=[],i.getChildren().forEach(a=>{r.children.push(this.getData(a))})),r}createLink(){}refresh(){this.layout()}setPosition(i,r){this.x=i,this.y=r,this.tableDom&&(this.tableDom.style.left=i+"px",this.tableDom.style.top=r+"px")}getBox(){return this.tableDom?{x:this.x,y:this.y,width:this.tableDom.clientWidth,height:this.tableDom.clientHeight}:{x:this.x,y:this.y,width:0,height:0}}}var Qi={mindmap1:qL,mindmap2:fZe,mindmap:hZe,fish:pZe,tree:mZe,multipleTree:gZe,vertical:vZe,table:bZe},g0=navigator.userAgent.toLowerCase(),yZe=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,_Ze=/macintosh|mac os x/i.test(navigator.userAgent)&&!window.MSStream,EZe=/Android/.test(navigator.userAgent)&&!window.MSStream,za=!0,rc=!0,tp=!1;(g0.indexOf("win32")>=0||g0.indexOf("wow32")>=0)&&(za=!0,rc=!0);(g0.indexOf("win64")>=0||g0.indexOf("wow64")>=0)&&(za=!0,rc=!0);yZe&&(tp=!0,za=!1,rc=!1);_Ze&&(tp=!1,za=!0,rc=!0);EZe&&(tp=!0,za=!1,rc=!1);var UL={exports:{}};/*! -* svg.js - A lightweight library for manipulating and animating SVG. -* @version 2.7.1 -* https://svgdotjs.github.io/ -* -* @copyright Wout Fierens -* @license MIT -* -* BUILT: Fri Nov 30 2018 10:01:55 GMT+0100 (GMT+01:00) -*/(function(e,n){(function(i,r){e.exports=i.document?r(i,i.document):function(a){return r(a,a.document)}})(typeof window<"u"?window:Go,function(i,r){var a=typeof this<"u"?this:i,s=a.SVG=function(p){if(s.supported)return p=new s.Doc(p),s.parser.draw||s.prepare(),p};if(s.ns="http://www.w3.org/2000/svg",s.xmlns="http://www.w3.org/2000/xmlns/",s.xlink="http://www.w3.org/1999/xlink",s.svgjs="http://svgjs.com/svgjs",s.supported=function(){return!!r.createElementNS&&!!r.createElementNS(s.ns,"svg").createSVGRect}(),!s.supported)return!1;s.did=1e3,s.eid=function(p){return"Svgjs"+T(p)+s.did++},s.create=function(p){var N=r.createElementNS(this.ns,p);return N.setAttribute("id",this.eid(p)),N},s.extend=function(){var p,N,z,j;for(p=[].slice.call(arguments),N=p.pop(),j=p.length-1;j>=0;j--)if(p[j])for(z in N)p[j].prototype[z]=N[z];s.Set&&s.Set.inherit&&s.Set.inherit()},s.invent=function(p){var N=typeof p.create=="function"?p.create:function(){this.constructor.call(this,s.create(p.create))};return p.inherit&&(N.prototype=new p.inherit),p.extend&&s.extend(N,p.extend),p.construct&&s.extend(p.parent||s.Container,p.construct),N},s.adopt=function(p){if(!p)return null;if(p.instance)return p.instance;var N;return p.nodeName=="svg"?N=p.parentNode instanceof i.SVGElement?new s.Nested:new s.Doc:p.nodeName=="linearGradient"?N=new s.Gradient("linear"):p.nodeName=="radialGradient"?N=new s.Gradient("radial"):s[T(p.nodeName)]?N=new s[T(p.nodeName)]:N=new s.Element(p),N.type=p.nodeName,N.node=p,p.instance=N,N instanceof s.Doc&&N.namespace().defs(),N.setData(JSON.parse(p.getAttribute("svgjs:data"))||{}),N},s.prepare=function(){var p=r.getElementsByTagName("body")[0],N=(p?new s.Doc(p):s.adopt(r.documentElement).nested()).size(2,0);s.parser={body:p||r.documentElement,draw:N.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").attr("focusable","false").node,poly:N.polyline().node,path:N.path().node,native:s.create("svg")}},s.parser={native:s.create("svg")},r.addEventListener("DOMContentLoaded",function(){s.parser.draw||s.prepare()},!1),s.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},s.utils={map:function(p,N){var z,j=p.length,re=[];for(z=0;z1?1:p,new s.Color({r:~~(this.r+(this.destination.r-this.r)*p),g:~~(this.g+(this.destination.g-this.g)*p),b:~~(this.b+(this.destination.b-this.b)*p)})):this}}),s.Color.test=function(p){return p+="",s.regex.isHex.test(p)||s.regex.isRgb.test(p)},s.Color.isRgb=function(p){return p&&typeof p.r=="number"&&typeof p.g=="number"&&typeof p.b=="number"},s.Color.isColor=function(p){return s.Color.isRgb(p)||s.Color.test(p)},s.Array=function(p,N){p=(p||[]).valueOf(),p.length==0&&N&&(p=N.valueOf()),this.value=this.parse(p)},s.extend(s.Array,{morph:function(p){if(this.destination=this.parse(p),this.value.length!=this.destination.length){for(var N=this.value[this.value.length-1],z=this.destination[this.destination.length-1];this.value.length>this.destination.length;)this.destination.push(z);for(;this.value.length=0;j--)this.value[j]=[this.value[j][0]+p,this.value[j][1]+N];return this},size:function(p,N){var z,j=this.bbox();for(z=this.value.length-1;z>=0;z--)j.width&&(this.value[z][0]=(this.value[z][0]-j.x)*p/j.width+j.x),j.height&&(this.value[z][1]=(this.value[z][1]-j.y)*N/j.height+j.y);return this},bbox:function(){return s.parser.poly.setAttribute("points",this.toString()),s.parser.poly.getBBox()}});for(var o={M:function(p,N,z){return N.x=z.x=p[0],N.y=z.y=p[1],["M",N.x,N.y]},L:function(p,N){return N.x=p[0],N.y=p[1],["L",p[0],p[1]]},H:function(p,N){return N.x=p[0],["H",p[0]]},V:function(p,N){return N.y=p[0],["V",p[0]]},C:function(p,N){return N.x=p[4],N.y=p[5],["C",p[0],p[1],p[2],p[3],p[4],p[5]]},S:function(p,N){return N.x=p[2],N.y=p[3],["S",p[0],p[1],p[2],p[3]]},Q:function(p,N){return N.x=p[2],N.y=p[3],["Q",p[0],p[1],p[2],p[3]]},T:function(p,N){return N.x=p[0],N.y=p[1],["T",p[0],p[1]]},Z:function(p,N,z){return N.x=z.x,N.y=z.y,["Z"]},A:function(p,N){return N.x=p[5],N.y=p[6],["A",p[0],p[1],p[2],p[3],p[4],p[5],p[6]]}},l="mlhvqtcsaz".split(""),c=0,u=l.length;c=0;re--)j=this.value[re][0],j=="M"||j=="L"||j=="T"?(this.value[re][1]+=p,this.value[re][2]+=N):j=="H"?this.value[re][1]+=p:j=="V"?this.value[re][1]+=N:j=="C"||j=="S"||j=="Q"?(this.value[re][1]+=p,this.value[re][2]+=N,this.value[re][3]+=p,this.value[re][4]+=N,j=="C"&&(this.value[re][5]+=p,this.value[re][6]+=N)):j=="A"&&(this.value[re][6]+=p,this.value[re][7]+=N);return this},size:function(p,N){var z,j,re=this.bbox();for(z=this.value.length-1;z>=0;z--)j=this.value[z][0],j=="M"||j=="L"||j=="T"?(this.value[z][1]=(this.value[z][1]-re.x)*p/re.width+re.x,this.value[z][2]=(this.value[z][2]-re.y)*N/re.height+re.y):j=="H"?this.value[z][1]=(this.value[z][1]-re.x)*p/re.width+re.x:j=="V"?this.value[z][1]=(this.value[z][1]-re.y)*N/re.height+re.y:j=="C"||j=="S"||j=="Q"?(this.value[z][1]=(this.value[z][1]-re.x)*p/re.width+re.x,this.value[z][2]=(this.value[z][2]-re.y)*N/re.height+re.y,this.value[z][3]=(this.value[z][3]-re.x)*p/re.width+re.x,this.value[z][4]=(this.value[z][4]-re.y)*N/re.height+re.y,j=="C"&&(this.value[z][5]=(this.value[z][5]-re.x)*p/re.width+re.x,this.value[z][6]=(this.value[z][6]-re.y)*N/re.height+re.y)):j=="A"&&(this.value[z][1]=this.value[z][1]*p/re.width,this.value[z][2]=this.value[z][2]*N/re.height,this.value[z][6]=(this.value[z][6]-re.x)*p/re.width+re.x,this.value[z][7]=(this.value[z][7]-re.y)*N/re.height+re.y);return this},equalCommands:function(p){var N,z,j;for(p=new s.PathArray(p),j=this.value.length===p.value.length,N=0,z=this.value.length;j&&Nae);return j},bbox:function(){return s.parser.path.setAttribute("d",this.toString()),s.parser.path.getBBox()}}),s.Number=s.invent({create:function(p,N){this.value=0,this.unit=N||"",typeof p=="number"?this.value=isNaN(p)?0:isFinite(p)?p:p<0?-34e37:34e37:typeof p=="string"?(N=p.match(s.regex.numberAndUnit),N&&(this.value=parseFloat(N[1]),N[5]=="%"?this.value/=100:N[5]=="s"&&(this.value*=1e3),this.unit=N[5])):p instanceof s.Number&&(this.value=p.valueOf(),this.unit=p.unit)},extend:{toString:function(){return(this.unit=="%"?~~(this.value*1e8)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(p){return p=new s.Number(p),new s.Number(this+p,this.unit||p.unit)},minus:function(p){return p=new s.Number(p),new s.Number(this-p,this.unit||p.unit)},times:function(p){return p=new s.Number(p),new s.Number(this*p,this.unit||p.unit)},divide:function(p){return p=new s.Number(p),new s.Number(this/p,this.unit||p.unit)},to:function(p){var N=new s.Number(this);return typeof p=="string"&&(N.unit=p),N},morph:function(p){return this.destination=new s.Number(p),p.relative&&(this.destination.value+=this.value),this},at:function(p){return this.destination?new s.Number(this.destination).minus(this).times(p).plus(this):this}}}),s.Element=s.invent({create:function(p){this._stroke=s.defaults.attrs.stroke,this._event=null,this._events={},this.dom={},(this.node=p)&&(this.type=p.nodeName,this.node.instance=this,this._events=p._events||{},this._stroke=p.getAttribute("stroke")||this._stroke)},extend:{x:function(p){return this.attr("x",p)},y:function(p){return this.attr("y",p)},cx:function(p){return p==null?this.x()+this.width()/2:this.x(p-this.width()/2)},cy:function(p){return p==null?this.y()+this.height()/2:this.y(p-this.height()/2)},move:function(p,N){return this.x(p).y(N)},center:function(p,N){return this.cx(p).cy(N)},width:function(p){return this.attr("width",p)},height:function(p){return this.attr("height",p)},size:function(p,N){var z=I(this,p,N);return this.width(new s.Number(z.width)).height(new s.Number(z.height))},clone:function(p){this.writeDataToDom();var N=ne(this.node.cloneNode(!0));return p?p.add(N):this.after(N),N},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(p){return this.after(p).remove(),p},addTo:function(p){return p.put(this)},putIn:function(p){return p.add(this)},id:function(p){return this.attr("id",p)},inside:function(p,N){var z=this.bbox();return p>z.x&&N>z.y&&p/g,"<$1$2>")+"";for(var z=0,j=N.firstChild.childNodes.length;z/,"").replace(/<\/svg>$/,"");return this},writeDataToDom:function(){if(this.each||this.lines){var p=this.each?this:this.lines();p.each(function(){this.writeDataToDom()})}return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(p){return this.dom=p,this},is:function(p){return f(this,p)}}}),s.easing={"-":function(p){return p},"<>":function(p){return-Math.cos(p*Math.PI)/2+.5},">":function(p){return Math.sin(p*Math.PI/2)},"<":function(p){return-Math.cos(p*Math.PI/2)+1}},s.morph=function(p){return function(N,z){return new s.MorphObj(N,z).at(p)}},s.Situation=s.invent({create:function(p){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new s.Number(p.duration).valueOf(),this.delay=new s.Number(p.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=p.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),s.FX=s.invent({create:function(p){this._target=p,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(p,N,z){typeof p=="object"&&(N=p.ease,z=p.delay,p=p.duration);var j=new s.Situation({duration:p||1e3,delay:z||0,ease:s.easing[N||"-"]||N});return this.queue(j),this},delay:function(p){var N=new s.Situation({duration:p,delay:0,ease:s.easing["-"]});return this.queue(N)},target:function(p){return p&&p instanceof s.Element?(this._target=p,this):this._target},timeToAbsPos:function(p){return(p-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(p){return this.situation.duration/this._speed*p+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=i.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){i.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(p){return(typeof p=="function"||p instanceof s.Situation)&&this.situations.push(p),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof s.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var p,N,z,j=this.situation;if(j.init)return this;for(p in j.animations)for(z=this.target()[p](),Array.isArray(z)||(z=[z]),Array.isArray(j.animations[p])||(j.animations[p]=[j.animations[p]]),N=z.length;N--;)j.animations[p][N]instanceof s.Number&&(z[N]=new s.Number(z[N])),j.animations[p][N]=z[N].morph(j.animations[p][N]);for(p in j.attrs)j.attrs[p]=new s.MorphObj(this.target().attr(p),j.attrs[p]);for(p in j.styles)j.styles[p]=new s.MorphObj(this.target().style(p),j.styles[p]);return j.initialTransformation=this.target().matrixify(),j.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(p,N){var z=this.active;return this.active=!1,N&&this.clearQueue(),p&&this.situation&&(!z&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},reset:function(){if(this.situation){var p=this.situation;this.stop(),this.situation=p,this.atStart()}return this},finish:function(){for(this.stop(!0,!1);this.dequeue().situation&&this.stop(!0,!1););return this.clearQueue().clearCurrent(),this},atStart:function(){return this.at(0,!0)},atEnd:function(){return this.situation.loops===!0&&(this.situation.loops=this.situation.loop+1),typeof this.situation.loops=="number"?this.at(this.situation.loops,!0):this.at(1,!0)},at:function(p,N){var z=this.situation.duration/this._speed;return this.absPos=p,N||(this.situation.reversed&&(this.absPos=1-this.absPos),this.absPos+=this.situation.loop),this.situation.start=+new Date-this.absPos*z,this.situation.finish=this.situation.start+z,this.step(!0)},speed:function(p){return p===0?this.pause():p?(this._speed=p,this.at(this.absPos,!0)):this._speed},loop:function(p,N){var z=this.last();return z.loops=p??!0,z.loop=0,N&&(z.reversing=!0),this},pause:function(){return this.paused=!0,this.stopAnimFrame(),this},play:function(){return this.paused?(this.paused=!1,this.at(this.absPos,!0)):this},reverse:function(p){var N=this.last();return typeof p>"u"?N.reversed=!N.reversed:N.reversed=p,this},progress:function(p){return p?this.situation.ease(this.pos):this.pos},after:function(p){var N=this.last(),z=function j(re){re.detail.situation==N&&(p.call(this,N),this.off("finished.fx",j))};return this.target().on("finished.fx",z),this._callStart()},during:function(p){var N=this.last(),z=function(j){j.detail.situation==N&&p.call(this,j.detail.pos,s.morph(j.detail.pos),j.detail.eased,N)};return this.target().off("during.fx",z).on("during.fx",z),this.after(function(){this.off("during.fx",z)}),this._callStart()},afterAll:function(p){var N=function z(j){p.call(this),this.off("allfinished.fx",z)};return this.target().off("allfinished.fx",N).on("allfinished.fx",N),this._callStart()},duringAll:function(p){var N=function(z){p.call(this,z.detail.pos,s.morph(z.detail.pos),z.detail.eased,z.detail.situation)};return this.target().off("during.fx",N).on("during.fx",N),this.afterAll(function(){this.off("during.fx",N)}),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(p,N,z){return this.last()[z||"animations"][p]=N,this._callStart()},step:function(p){if(p||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1){var N,z,j;N=Math.max(this.absPos,0),z=Math.floor(N),this.situation.loops===!0||zthis.lastPos&&ue<=re&&(this.situation.once[ue].call(this.target(),this.pos,re),delete this.situation.once[ue]);return this.active&&this.target().fire("during",{pos:this.pos,eased:re,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=re,this):this},eachAt:function(){var p,N,z,j=this,re=this.target(),ue=this.situation;for(p in ue.animations)z=[].concat(ue.animations[p]).map(function(Ee){return typeof Ee!="string"&&Ee.at?Ee.at(ue.ease(j.pos),j.pos):Ee}),re[p].apply(re,z);for(p in ue.attrs)z=[p].concat(ue.attrs[p]).map(function(Ee){return typeof Ee!="string"&&Ee.at?Ee.at(ue.ease(j.pos),j.pos):Ee}),re.attr.apply(re,z);for(p in ue.styles)z=[p].concat(ue.styles[p]).map(function(Ee){return typeof Ee!="string"&&Ee.at?Ee.at(ue.ease(j.pos),j.pos):Ee}),re.style.apply(re,z);if(ue.transforms.length){for(z=ue.initialTransformation,p=0,N=ue.transforms.length;p=0;--N)this[se[N]]=p[se[N]]!=null?p[se[N]]:z[se[N]]},extend:{extract:function(){var p=M(this,0,1),N=M(this,1,0),z=180/Math.PI*Math.atan2(p.y,p.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(z*Math.PI/180)+this.f*Math.sin(z*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(z*Math.PI/180)+this.e*Math.sin(-z*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),skewX:-z,skewY:180/Math.PI*Math.atan2(N.y,N.x),scaleX:Math.sqrt(this.a*this.a+this.b*this.b),scaleY:Math.sqrt(this.c*this.c+this.d*this.d),rotation:z,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new s.Matrix(this)}},clone:function(){return new s.Matrix(this)},morph:function(p){return this.destination=new s.Matrix(p),this},at:function(p){if(!this.destination)return this;var N=new s.Matrix({a:this.a+(this.destination.a-this.a)*p,b:this.b+(this.destination.b-this.b)*p,c:this.c+(this.destination.c-this.c)*p,d:this.d+(this.destination.d-this.d)*p,e:this.e+(this.destination.e-this.e)*p,f:this.f+(this.destination.f-this.f)*p});return N},multiply:function(p){return new s.Matrix(this.native().multiply(B(p).native()))},inverse:function(){return new s.Matrix(this.native().inverse())},translate:function(p,N){return new s.Matrix(this.native().translate(p||0,N||0))},scale:function(p,N,z,j){return arguments.length==1?N=p:arguments.length==3&&(j=z,z=N,N=p),this.around(z,j,new s.Matrix(p,0,0,N,0,0))},rotate:function(p,N,z){return p=s.utils.radians(p),this.around(N,z,new s.Matrix(Math.cos(p),Math.sin(p),-Math.sin(p),Math.cos(p),0,0))},flip:function(p,N){return p=="x"?this.scale(-1,1,N,0):p=="y"?this.scale(1,-1,0,N):this.scale(-1,-1,p,N??p)},skew:function(p,N,z,j){return arguments.length==1?N=p:arguments.length==3&&(j=z,z=N,N=p),p=s.utils.radians(p),N=s.utils.radians(N),this.around(z,j,new s.Matrix(1,Math.tan(N),Math.tan(p),1,0,0))},skewX:function(p,N,z){return this.skew(p,0,N,z)},skewY:function(p,N,z){return this.skew(0,p,N,z)},around:function(p,N,z){return this.multiply(new s.Matrix(1,0,0,1,p||0,N||0)).multiply(z).multiply(new s.Matrix(1,0,0,1,-p||0,-N||0))},native:function(){for(var p=s.parser.native.createSVGMatrix(),N=se.length-1;N>=0;N--)p[se[N]]=this[se[N]];return p},toString:function(){return"matrix("+Y(this.a)+","+Y(this.b)+","+Y(this.c)+","+Y(this.d)+","+Y(this.e)+","+Y(this.f)+")"}},parent:s.Element,construct:{ctm:function(){return new s.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof s.Nested){var p=this.rect(1,1),N=p.node.getScreenCTM();return p.remove(),new s.Matrix(N)}return new s.Matrix(this.node.getScreenCTM())}}}),s.Point=s.invent({create:function(p,N){var z,j={x:0,y:0};z=Array.isArray(p)?{x:p[0],y:p[1]}:typeof p=="object"?{x:p.x,y:p.y}:p!=null?{x:p,y:N??p}:j,this.x=z.x,this.y=z.y},extend:{clone:function(){return new s.Point(this)},morph:function(p,N){return this.destination=new s.Point(p,N),this},at:function(p){if(!this.destination)return this;var N=new s.Point({x:this.x+(this.destination.x-this.x)*p,y:this.y+(this.destination.y-this.y)*p});return N},native:function(){var p=s.parser.native.createSVGPoint();return p.x=this.x,p.y=this.y,p},transform:function(p){return new s.Point(this.native().matrixTransform(p.native()))}}}),s.extend(s.Element,{point:function(p,N){return new s.Point(p,N).transform(this.screenCTM().inverse())}}),s.extend(s.Element,{attr:function(p,N,z){if(p==null){for(p={},N=this.node.attributes,z=N.length-1;z>=0;z--)p[N[z].nodeName]=s.regex.isNumber.test(N[z].nodeValue)?parseFloat(N[z].nodeValue):N[z].nodeValue;return p}else if(typeof p=="object")for(N in p)this.attr(N,p[N]);else if(N===null)this.node.removeAttribute(p);else{if(N==null)return N=this.node.getAttribute(p),N==null?s.defaults.attrs[p]:s.regex.isNumber.test(N)?parseFloat(N):N;p=="stroke-width"?this.attr("stroke",parseFloat(N)>0?this._stroke:null):p=="stroke"&&(this._stroke=N),(p=="fill"||p=="stroke")&&(s.regex.isImage.test(N)&&(N=this.doc().defs().image(N,0,0)),N instanceof s.Image&&(N=this.doc().defs().pattern(0,0,function(){this.add(N)}))),typeof N=="number"?N=new s.Number(N):s.Color.isColor(N)?N=new s.Color(N):Array.isArray(N)&&(N=new s.Array(N)),p=="leading"?this.leading&&this.leading(N):typeof z=="string"?this.node.setAttributeNS(z,p,N.toString()):this.node.setAttribute(p,N.toString()),this.rebuild&&(p=="font-size"||p=="x")&&this.rebuild(p,N)}return this}}),s.extend(s.Element,{transform:function(p,N){var z=this,j,re;if(typeof p!="object")return j=new s.Matrix(z).extract(),typeof p=="string"?j[p]:j;if(j=new s.Matrix(z),N=!!N||!!p.relative,p.a!=null)j=N?j.multiply(new s.Matrix(p)):new s.Matrix(p);else if(p.rotation!=null)A(p,z),j=N?j.rotate(p.rotation,p.cx,p.cy):j.rotate(p.rotation-j.extract().rotation,p.cx,p.cy);else if(p.scale!=null||p.scaleX!=null||p.scaleY!=null){if(A(p,z),p.scaleX=p.scale!=null?p.scale:p.scaleX!=null?p.scaleX:1,p.scaleY=p.scale!=null?p.scale:p.scaleY!=null?p.scaleY:1,!N){var ue=j.extract();p.scaleX=p.scaleX*1/ue.scaleX,p.scaleY=p.scaleY*1/ue.scaleY}j=j.scale(p.scaleX,p.scaleY,p.cx,p.cy)}else if(p.skew!=null||p.skewX!=null||p.skewY!=null){if(A(p,z),p.skewX=p.skew!=null?p.skew:p.skewX!=null?p.skewX:0,p.skewY=p.skew!=null?p.skew:p.skewY!=null?p.skewY:0,!N){var ue=j.extract();j=j.multiply(new s.Matrix().skew(ue.skewX,ue.skewY,p.cx,p.cy).inverse())}j=j.skew(p.skewX,p.skewY,p.cx,p.cy)}else p.flip?(p.flip=="x"||p.flip=="y"?p.offset=p.offset==null?z.bbox()["c"+p.flip]:p.offset:p.offset==null?(re=z.bbox(),p.flip=re.cx,p.offset=re.cy):p.flip=p.offset,j=new s.Matrix().flip(p.flip,p.offset)):(p.x!=null||p.y!=null)&&(N?j=j.translate(p.x,p.y):(p.x!=null&&(j.e=p.x),p.y!=null&&(j.f=p.y)));return this.attr("transform",j)}}),s.extend(s.FX,{transform:function(p,N){var z=this.target(),j,re;return typeof p!="object"?(j=new s.Matrix(z).extract(),typeof p=="string"?j[p]:j):(N=!!N||!!p.relative,p.a!=null?j=new s.Matrix(p):p.rotation!=null?(A(p,z),j=new s.Rotate(p.rotation,p.cx,p.cy)):p.scale!=null||p.scaleX!=null||p.scaleY!=null?(A(p,z),p.scaleX=p.scale!=null?p.scale:p.scaleX!=null?p.scaleX:1,p.scaleY=p.scale!=null?p.scale:p.scaleY!=null?p.scaleY:1,j=new s.Scale(p.scaleX,p.scaleY,p.cx,p.cy)):p.skewX!=null||p.skewY!=null?(A(p,z),p.skewX=p.skewX!=null?p.skewX:0,p.skewY=p.skewY!=null?p.skewY:0,j=new s.Skew(p.skewX,p.skewY,p.cx,p.cy)):p.flip?(p.flip=="x"||p.flip=="y"?p.offset=p.offset==null?z.bbox()["c"+p.flip]:p.offset:p.offset==null?(re=z.bbox(),p.flip=re.cx,p.offset=re.cy):p.flip=p.offset,j=new s.Matrix().flip(p.flip,p.offset)):(p.x!=null||p.y!=null)&&(j=new s.Translate(p.x,p.y)),j?(j.relative=N,this.last().transforms.push(j),this._callStart()):this)}}),s.extend(s.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){var p=(this.attr("transform")||"").split(s.regex.transforms).slice(0,-1).map(function(N){var z=N.trim().split("(");return[z[0],z[1].split(s.regex.delimiter).map(function(j){return parseFloat(j)})]}).reduce(function(N,z){return z[0]=="matrix"?N.multiply(R(z[1])):N[z[0]].apply(N,z[1])},new s.Matrix);return p},toParent:function(p){if(this==p)return this;var N=this.screenCTM(),z=p.screenCTM().inverse();return this.addTo(p).untransform().transform(z.multiply(N)),this},toDoc:function(){return this.toParent(this.doc())}}),s.Transformation=s.invent({create:function(p,N){if(arguments.length>1&&typeof N!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(p))for(var z=0,j=this.arguments.length;z"u"?0:p[this.arguments[N]];return p.cx=this.cx,p.cy=this.cy,this._undo=new s[T(this.method)](p,!0).at(1),this}}}),s.Translate=s.invent({parent:s.Matrix,inherit:s.Transformation,create:function(p,N){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),s.Rotate=s.invent({parent:s.Matrix,inherit:s.Transformation,create:function(p,N){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["rotation","cx","cy"],method:"rotate",at:function(p){var N=new s.Matrix().rotate(new s.Number().morph(this.rotation-(this._undo?this._undo.rotation:0)).at(p),this.cx,this.cy);return this.inversed?N.inverse():N},undo:function(p){return this._undo=p,this}}}),s.Scale=s.invent({parent:s.Matrix,inherit:s.Transformation,create:function(p,N){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["scaleX","scaleY","cx","cy"],method:"scale"}}),s.Skew=s.invent({parent:s.Matrix,inherit:s.Transformation,create:function(p,N){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["skewX","skewY","cx","cy"],method:"skew"}}),s.extend(s.Element,{style:function(p,N){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(typeof p=="object")for(N in p)this.style(N,p[N]);else if(s.regex.isCss.test(p))for(p=p.split(/\s*;\s*/).filter(function(z){return!!z}).map(function(z){return z.split(/\s*:\s*/)});N=p.pop();)this.style(N[0],N[1]);else return this.node.style[v(p)];else this.node.style[v(p)]=N===null||s.regex.isBlank.test(N)?"":N;return this}}),s.Parent=s.invent({create:function(p){this.constructor.call(this,p)},inherit:s.Element,extend:{children:function(){return s.utils.map(s.utils.filterSVGElements(this.node.childNodes),function(p){return s.adopt(p)})},add:function(p,N){return N==null?this.node.appendChild(p.node):p.node!=this.node.childNodes[N]&&this.node.insertBefore(p.node,this.node.childNodes[N]),this},put:function(p,N){return this.add(p,N),p},has:function(p){return this.index(p)>=0},index:function(p){return[].slice.call(this.node.childNodes).indexOf(p.node)},get:function(p){return s.adopt(this.node.childNodes[p])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(p,N){var z,j,re=this.children();for(z=0,j=re.length;zre/ue?this.height/ue:this.width/re,this.x=z,this.y=j,this.width=re,this.height=ue)}else p=typeof p=="string"?p.match(Ge).map(function(rt){return parseFloat(rt)}):Array.isArray(p)?p:typeof p=="object"?[p.x,p.y,p.width,p.height]:arguments.length==4?[].slice.call(arguments):N,this.x=p[0],this.y=p[1],this.width=p[2],this.height=p[3]},extend:{toString:function(){return this.x+" "+this.y+" "+this.width+" "+this.height},morph:function(p,N,z,j){return this.destination=new s.ViewBox(p,N,z,j),this},at:function(p){return this.destination?new s.ViewBox([this.x+(this.destination.x-this.x)*p,this.y+(this.destination.y-this.y)*p,this.width+(this.destination.width-this.width)*p,this.height+(this.destination.height-this.height)*p]):this}},parent:s.Container,construct:{viewbox:function(p,N,z,j){return arguments.length==0?new s.ViewBox(this):this.attr("viewBox",new s.ViewBox(p,N,z,j))}}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(p){s.Element.prototype[p]=function(N){return N==null?s.off(this,p):s.on(this,p,N),this}}),s.listenerId=0,s.on=function(p,N,z,j,re){var ue=z.bind(j||p),ae=p instanceof s.Element?p.node:p;ae.instance=ae.instance||{_events:{}};var Ee=ae.instance._events;z._svgjsListenerId||(z._svgjsListenerId=++s.listenerId),N.split(s.regex.delimiter).forEach(function(ze){var Oe=ze.split(".")[0],Qe=ze.split(".")[1]||"*";Ee[Oe]=Ee[Oe]||{},Ee[Oe][Qe]=Ee[Oe][Qe]||{},Ee[Oe][Qe][z._svgjsListenerId]=ue,ae.addEventListener(Oe,ue,re||!1)})},s.off=function(p,N,z,j){var re=p instanceof s.Element?p.node:p;if(re.instance&&!(typeof z=="function"&&(z=z._svgjsListenerId,!z))){var ue=re.instance._events;(N||"").split(s.regex.delimiter).forEach(function(ae){var Ee=ae&&ae.split(".")[0],ze=ae&&ae.split(".")[1],Oe,Qe;if(z)ue[Ee]&&ue[Ee][ze||"*"]&&(re.removeEventListener(Ee,ue[Ee][ze||"*"][z],j||!1),delete ue[Ee][ze||"*"][z]);else if(Ee&&ze){if(ue[Ee]&&ue[Ee][ze]){for(Qe in ue[Ee][ze])s.off(re,[Ee,ze].join("."),Qe);delete ue[Ee][ze]}}else if(ze)for(ae in ue)for(Oe in ue[ae])ze===Oe&&s.off(re,[ae,ze].join("."));else if(Ee){if(ue[Ee]){for(Oe in ue[Ee])s.off(re,[Ee,Oe].join("."));delete ue[Ee]}}else{for(ae in ue)s.off(re,ae);re.instance._events={}}})}},s.extend(s.Element,{on:function(p,N,z,j){return s.on(this,p,N,z,j),this},off:function(p,N){return s.off(this.node,p,N),this},fire:function(p,N){return p instanceof i.Event?this.node.dispatchEvent(p):this.node.dispatchEvent(p=new s.CustomEvent(p,{detail:N,cancelable:!0})),this._event=p,this},event:function(){return this._event}}),s.Defs=s.invent({create:"defs",inherit:s.Container}),s.G=s.invent({create:"g",inherit:s.Container,extend:{x:function(p){return p==null?this.transform("x"):this.transform({x:p-this.x()},!0)},y:function(p){return p==null?this.transform("y"):this.transform({y:p-this.y()},!0)},cx:function(p){return p==null?this.gbox().cx:this.x(p-this.gbox().width/2)},cy:function(p){return p==null?this.gbox().cy:this.y(p-this.gbox().height/2)},gbox:function(){var p=this.bbox(),N=this.transform();return p.x+=N.x,p.x2+=N.x,p.cx+=N.x,p.y+=N.y,p.y2+=N.y,p.cy+=N.y,p}},construct:{group:function(){return this.put(new s.G)}}}),s.Doc=s.invent({create:function(p){p&&(p=typeof p=="string"?r.getElementById(p):p,p.nodeName=="svg"?this.constructor.call(this,p):(this.constructor.call(this,s.create("svg")),p.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:s.Container,extend:{namespace:function(){return this.attr({xmlns:s.ns,version:"1.1"}).attr("xmlns:xlink",s.xlink,s.xmlns).attr("xmlns:svgjs",s.svgjs,s.xmlns)},defs:function(){if(!this._defs){var p;(p=this.node.getElementsByTagName("defs")[0])?this._defs=s.adopt(p):this._defs=new s.Defs,this.node.appendChild(this._defs.node)}return this._defs},parent:function(){return!this.node.parentNode||this.node.parentNode.nodeName=="#document"||this.node.parentNode.nodeName=="#document-fragment"?null:this.node.parentNode},spof:function(){var p=this.node.getScreenCTM();return p&&this.style("left",-p.e%1+"px").style("top",-p.f%1+"px"),this},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,s.parser.draw.parentNode||this.node.appendChild(s.parser.draw),this},clone:function(p){this.writeDataToDom();var N=this.node,z=ne(N.cloneNode(!0));return p?(p.node||p).appendChild(z.node):N.parentNode.insertBefore(z.node,N.nextSibling),z}}}),s.extend(s.Element,{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},previous:function(){return this.siblings()[this.position()-1]},forward:function(){var p=this.position()+1,N=this.parent();return N.removeElement(this).add(this,p),N instanceof s.Doc&&N.node.appendChild(N.defs().node),this},backward:function(){var p=this.position();return p>0&&this.parent().removeElement(this).add(this,p-1),this},front:function(){var p=this.parent();return p.node.appendChild(this.node),p instanceof s.Doc&&p.node.appendChild(p.defs().node),this},back:function(){return this.position()>0&&this.parent().removeElement(this).add(this,0),this},before:function(p){p.remove();var N=this.position();return this.parent().add(p,N),this},after:function(p){p.remove();var N=this.position();return this.parent().add(p,N+1),this}}),s.Mask=s.invent({create:function(){this.constructor.call(this,s.create("mask")),this.targets=[]},inherit:s.Container,extend:{remove:function(){for(var p=this.targets.length-1;p>=0;p--)this.targets[p]&&this.targets[p].unmask();return this.targets=[],s.Element.prototype.remove.call(this),this}},construct:{mask:function(){return this.defs().put(new s.Mask)}}}),s.extend(s.Element,{maskWith:function(p){return this.masker=p instanceof s.Mask?p:this.parent().mask().add(p),this.masker.targets.push(this),this.attr("mask",'url("#'+this.masker.attr("id")+'")')},unmask:function(){return delete this.masker,this.attr("mask",null)}}),s.ClipPath=s.invent({create:function(){this.constructor.call(this,s.create("clipPath")),this.targets=[]},inherit:s.Container,extend:{remove:function(){for(var p=this.targets.length-1;p>=0;p--)this.targets[p]&&this.targets[p].unclip();return this.targets=[],this.parent().removeElement(this),this}},construct:{clip:function(){return this.defs().put(new s.ClipPath)}}}),s.extend(s.Element,{clipWith:function(p){return this.clipper=p instanceof s.ClipPath?p:this.parent().clip().add(p),this.clipper.targets.push(this),this.attr("clip-path",'url("#'+this.clipper.attr("id")+'")')},unclip:function(){return delete this.clipper,this.attr("clip-path",null)}}),s.Gradient=s.invent({create:function(p){this.constructor.call(this,s.create(p+"Gradient")),this.type=p},inherit:s.Container,extend:{at:function(p,N,z){return this.put(new s.Stop).update(p,N,z)},update:function(p){return this.clear(),typeof p=="function"&&p.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(p,N,z){return p=="transform"&&(p="gradientTransform"),s.Container.prototype.attr.call(this,p,N,z)}},construct:{gradient:function(p,N){return this.defs().gradient(p,N)}}}),s.extend(s.Gradient,s.FX,{from:function(p,N){return(this._target||this).type=="radial"?this.attr({fx:new s.Number(p),fy:new s.Number(N)}):this.attr({x1:new s.Number(p),y1:new s.Number(N)})},to:function(p,N){return(this._target||this).type=="radial"?this.attr({cx:new s.Number(p),cy:new s.Number(N)}):this.attr({x2:new s.Number(p),y2:new s.Number(N)})}}),s.extend(s.Defs,{gradient:function(p,N){return this.put(new s.Gradient(p)).update(N)}}),s.Stop=s.invent({create:"stop",inherit:s.Element,extend:{update:function(p){return(typeof p=="number"||p instanceof s.Number)&&(p={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),p.opacity!=null&&this.attr("stop-opacity",p.opacity),p.color!=null&&this.attr("stop-color",p.color),p.offset!=null&&this.attr("offset",new s.Number(p.offset)),this}}}),s.Pattern=s.invent({create:"pattern",inherit:s.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(p){return this.clear(),typeof p=="function"&&p.call(this,this),this},toString:function(){return this.fill()},attr:function(p,N,z){return p=="transform"&&(p="patternTransform"),s.Container.prototype.attr.call(this,p,N,z)}},construct:{pattern:function(p,N,z){return this.defs().pattern(p,N,z)}}}),s.extend(s.Defs,{pattern:function(p,N,z){return this.put(new s.Pattern).update(z).attr({x:0,y:0,width:p,height:N,patternUnits:"userSpaceOnUse"})}}),s.Shape=s.invent({create:function(p){this.constructor.call(this,p)},inherit:s.Element}),s.Bare=s.invent({create:function(p,N){if(this.constructor.call(this,s.create(p)),N)for(var z in N.prototype)typeof N.prototype[z]=="function"&&(this[z]=N.prototype[z])},inherit:s.Element,extend:{words:function(p){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this.node.appendChild(r.createTextNode(p)),this}}}),s.extend(s.Parent,{element:function(p,N){return this.put(new s.Bare(p,N))}}),s.Symbol=s.invent({create:"symbol",inherit:s.Container,construct:{symbol:function(){return this.put(new s.Symbol)}}}),s.Use=s.invent({create:"use",inherit:s.Shape,extend:{element:function(p,N){return this.attr("href",(N||"")+"#"+p,s.xlink)}},construct:{use:function(p,N){return this.put(new s.Use).element(p,N)}}}),s.Rect=s.invent({create:"rect",inherit:s.Shape,construct:{rect:function(p,N){return this.put(new s.Rect).size(p,N)}}}),s.Circle=s.invent({create:"circle",inherit:s.Shape,construct:{circle:function(p){return this.put(new s.Circle).rx(new s.Number(p).divide(2)).move(0,0)}}}),s.extend(s.Circle,s.FX,{rx:function(p){return this.attr("r",p)},ry:function(p){return this.rx(p)}}),s.Ellipse=s.invent({create:"ellipse",inherit:s.Shape,construct:{ellipse:function(p,N){return this.put(new s.Ellipse).size(p,N).move(0,0)}}}),s.extend(s.Ellipse,s.Rect,s.FX,{rx:function(p){return this.attr("rx",p)},ry:function(p){return this.attr("ry",p)}}),s.extend(s.Circle,s.Ellipse,{x:function(p){return p==null?this.cx()-this.rx():this.cx(p+this.rx())},y:function(p){return p==null?this.cy()-this.ry():this.cy(p+this.ry())},cx:function(p){return p==null?this.attr("cx"):this.attr("cx",p)},cy:function(p){return p==null?this.attr("cy"):this.attr("cy",p)},width:function(p){return p==null?this.rx()*2:this.rx(new s.Number(p).divide(2))},height:function(p){return p==null?this.ry()*2:this.ry(new s.Number(p).divide(2))},size:function(p,N){var z=I(this,p,N);return this.rx(new s.Number(z.width).divide(2)).ry(new s.Number(z.height).divide(2))}}),s.Line=s.invent({create:"line",inherit:s.Shape,extend:{array:function(){return new s.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(p,N,z,j){return p==null?this.array():(typeof N<"u"?p={x1:p,y1:N,x2:z,y2:j}:p=new s.PointArray(p).toLine(),this.attr(p))},move:function(p,N){return this.attr(this.array().move(p,N).toLine())},size:function(p,N){var z=I(this,p,N);return this.attr(this.array().size(z.width,z.height).toLine())}},construct:{line:function(p,N,z,j){return s.Line.prototype.plot.apply(this.put(new s.Line),p!=null?[p,N,z,j]:[0,0,0,0])}}}),s.Polyline=s.invent({create:"polyline",inherit:s.Shape,construct:{polyline:function(p){return this.put(new s.Polyline).plot(p||new s.PointArray)}}}),s.Polygon=s.invent({create:"polygon",inherit:s.Shape,construct:{polygon:function(p){return this.put(new s.Polygon).plot(p||new s.PointArray)}}}),s.extend(s.Polyline,s.Polygon,{array:function(){return this._array||(this._array=new s.PointArray(this.attr("points")))},plot:function(p){return p==null?this.array():this.clear().attr("points",typeof p=="string"?p:this._array=new s.PointArray(p))},clear:function(){return delete this._array,this},move:function(p,N){return this.attr("points",this.array().move(p,N))},size:function(p,N){var z=I(this,p,N);return this.attr("points",this.array().size(z.width,z.height))}}),s.extend(s.Line,s.Polyline,s.Polygon,{morphArray:s.PointArray,x:function(p){return p==null?this.bbox().x:this.move(p,this.bbox().y)},y:function(p){return p==null?this.bbox().y:this.move(this.bbox().x,p)},width:function(p){var N=this.bbox();return p==null?N.width:this.size(p,N.height)},height:function(p){var N=this.bbox();return p==null?N.height:this.size(N.width,p)}}),s.Path=s.invent({create:"path",inherit:s.Shape,extend:{morphArray:s.PathArray,array:function(){return this._array||(this._array=new s.PathArray(this.attr("d")))},plot:function(p){return p==null?this.array():this.clear().attr("d",typeof p=="string"?p:this._array=new s.PathArray(p))},clear:function(){return delete this._array,this},move:function(p,N){return this.attr("d",this.array().move(p,N))},x:function(p){return p==null?this.bbox().x:this.move(p,this.bbox().y)},y:function(p){return p==null?this.bbox().y:this.move(this.bbox().x,p)},size:function(p,N){var z=I(this,p,N);return this.attr("d",this.array().size(z.width,z.height))},width:function(p){return p==null?this.bbox().width:this.size(p,this.bbox().height)},height:function(p){return p==null?this.bbox().height:this.size(this.bbox().width,p)}},construct:{path:function(p){return this.put(new s.Path).plot(p||new s.PathArray)}}}),s.Image=s.invent({create:"image",inherit:s.Shape,extend:{load:function(p){if(!p)return this;var N=this,z=new i.Image;return s.on(z,"load",function(){s.off(z);var j=N.parent(s.Pattern);j!==null&&(N.width()==0&&N.height()==0&&N.size(z.width,z.height),j&&j.width()==0&&j.height()==0&&j.size(N.width(),N.height()),typeof N._loaded=="function"&&N._loaded.call(N,{width:z.width,height:z.height,ratio:z.width/z.height,url:p}))}),s.on(z,"error",function(j){s.off(z),typeof N._error=="function"&&N._error.call(N,j)}),this.attr("href",z.src=this.src=p,s.xlink)},loaded:function(p){return this._loaded=p,this},error:function(p){return this._error=p,this}},construct:{image:function(p,N,z){return this.put(new s.Image).load(p).size(N||0,z||N||0)}}}),s.Text=s.invent({create:function(){this.constructor.call(this,s.create("text")),this.dom.leading=new s.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",s.defaults.attrs["font-family"])},inherit:s.Shape,extend:{x:function(p){return p==null?this.attr("x"):this.attr("x",p)},y:function(p){var N=this.attr("y"),z=typeof N=="number"?N-this.bbox().y:0;return p==null?typeof N=="number"?N-z:N:this.attr("y",typeof p.valueOf()=="number"?p+z:p)},cx:function(p){return p==null?this.bbox().cx:this.x(p-this.bbox().width/2)},cy:function(p){return p==null?this.bbox().cy:this.y(p-this.bbox().height/2)},text:function(p){if(typeof p>"u"){for(var p="",N=this.node.childNodes,z=0,j=N.length;z"u")return this;if(typeof j=="string"||s.Color.isRgb(j)||j&&typeof j.fill=="function")this.attr(p,j);else for(N=d[p].length-1;N>=0;N--)j[d[p][N]]!=null&&this.attr(d.prefix(p,d[p][N]),j[d[p][N]]);return this},s.extend(s.Element,s.FX,z)}),s.extend(s.Element,s.FX,{rotate:function(p,N,z){return this.transform({rotation:p,cx:N,cy:z})},skew:function(p,N,z,j){return arguments.length==1||arguments.length==3?this.transform({skew:p,cx:N,cy:z}):this.transform({skewX:p,skewY:N,cx:z,cy:j})},scale:function(p,N,z,j){return arguments.length==1||arguments.length==3?this.transform({scale:p,cx:N,cy:z}):this.transform({scaleX:p,scaleY:N,cx:z,cy:j})},translate:function(p,N){return this.transform({x:p,y:N})},flip:function(p,N){return N=typeof p=="number"?p:N,this.transform({flip:p||"both",offset:N})},matrix:function(p){return this.attr("transform",new s.Matrix(arguments.length==6?[].slice.call(arguments):p))},opacity:function(p){return this.attr("opacity",p)},dx:function(p){return this.x(new s.Number(p).plus(this instanceof s.FX?0:this.x()),!0)},dy:function(p){return this.y(new s.Number(p).plus(this instanceof s.FX?0:this.y()),!0)},dmove:function(p,N){return this.dx(p).dy(N)}}),s.extend(s.Rect,s.Ellipse,s.Circle,s.Gradient,s.FX,{radius:function(p,N){var z=(this._target||this).type;return z=="radial"||z=="circle"?this.attr("r",new s.Number(p)):this.rx(p).ry(N??p)}}),s.extend(s.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(p){return this.node.getPointAtLength(p)}}),s.extend(s.Parent,s.Text,s.Tspan,s.FX,{font:function(p,N){if(typeof p=="object")for(N in p)this.font(N,p[N]);return p=="leading"?this.leading(N):p=="anchor"?this.attr("text-anchor",N):p=="size"||p=="family"||p=="weight"||p=="stretch"||p=="variant"||p=="style"?this.attr("font-"+p,N):this.attr(p,N)}}),s.Set=s.invent({create:function(p){p instanceof s.Set?this.members=p.members.slice():Array.isArray(p)?this.members=p:this.clear()},extend:{add:function(){var p,N,z=[].slice.call(arguments);for(p=0,N=z.length;p-1&&this.members.splice(N,1),this},each:function(p){for(var N=0,z=this.members.length;N=0},index:function(p){return this.members.indexOf(p)},get:function(p){return this.members[p]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members},bbox:function(){if(this.members.length==0)return new s.RBox;var p=this.members[0].rbox(this.members[0].doc());return this.each(function(){p=p.merge(this.rbox(this.doc()))}),p}},construct:{set:function(p){return new s.Set(p)}}}),s.FX.Set=s.invent({create:function(p){this.set=p}}),s.Set.inherit=function(){var p,N=[];for(var p in s.Shape.prototype)typeof s.Shape.prototype[p]=="function"&&typeof s.Set.prototype[p]!="function"&&N.push(p);N.forEach(function(z){s.Set.prototype[z]=function(){for(var j=0,re=this.members.length;j=0;p--)delete this.memory()[arguments[p]];return this},memory:function(){return this._memory||(this._memory={})}}),s.get=function(p){var N=r.getElementById(de(p)||p);return s.adopt(N)},s.select=function(p,N){return new s.Set(s.utils.map((N||r).querySelectorAll(p),function(z){return s.adopt(z)}))},s.extend(s.Parent,{select:function(p){return s.select(p,this.node)}});function h(p,N,z,j){return z+j.replace(s.regex.dots," .")}function m(p){for(var N=p.slice(0),z=N.length;z--;)Array.isArray(N[z])&&(N[z]=m(N[z]));return N}function f(p,N){return p instanceof N}function g(p,N){return(p.matches||p.matchesSelector||p.msMatchesSelector||p.mozMatchesSelector||p.webkitMatchesSelector||p.oMatchesSelector).call(p,N)}function v(p){return p.toLowerCase().replace(/-(.)/g,function(N,z){return z.toUpperCase()})}function T(p){return p.charAt(0).toUpperCase()+p.slice(1)}function y(p){return p.length==4?["#",p.substring(1,2),p.substring(1,2),p.substring(2,3),p.substring(2,3),p.substring(3,4),p.substring(3,4)].join(""):p}function C(p){var N=p.toString(16);return N.length==1?"0"+N:N}function I(p,N,z){if(N==null||z==null){var j=p.bbox();N==null?N=j.width/j.height*z:z==null&&(z=j.height/j.width*N)}return{width:N,height:z}}function M(p,N,z){return{x:N*p.a+z*p.c+0,y:N*p.b+z*p.d+0}}function R(p){return{a:p[0],b:p[1],c:p[2],d:p[3],e:p[4],f:p[5]}}function B(p){return p instanceof s.Matrix||(p=new s.Matrix(p)),p}function A(p,N){p.cx=p.cx==null?N.bbox().cx:p.cx,p.cy=p.cy==null?N.bbox().cy:p.cy}function W(p){for(var N=0,z=p.length,j="";N=0;N--)p.childNodes[N]instanceof i.SVGElement&&ne(p.childNodes[N]);return s.adopt(p).id(s.eid(p.nodeName))}function ee(p){return p.x==null&&(p.x=0,p.y=0,p.width=0,p.height=0),p.w=p.width,p.h=p.height,p.x2=p.x+p.width,p.y2=p.y+p.height,p.cx=p.x+p.width/2,p.cy=p.y+p.height/2,p}function de(p){var N=(p||"").toString().match(s.regex.reference);if(N)return N[1]}function Y(p){return Math.abs(p)>1e-37?p:0}var se="abcdef".split("");if(typeof i.CustomEvent!="function"){var q=function(p,N){N=N||{bubbles:!1,cancelable:!1,detail:void 0};var z=r.createEvent("CustomEvent");return z.initCustomEvent(p,N.bubbles,N.cancelable,N.detail),z};q.prototype=i.Event.prototype,s.CustomEvent=q}else s.CustomEvent=i.CustomEvent;return function(p){for(var N=0,z=["moz","webkit"],j=0;j=this.limit&&this.undos.shift(),this.undos.push(n),this.change(n)}undo(){if(this.canUndo()){var n=this.undos.pop();this.redos.push(n),n.undo(),this.change(n)}}canUndo(){return!!this.undos.length}redo(){if(this.canRedo()){var n=this.redos.pop();this.undos.push(n),n.redo(),this.change(n)}}canRedo(){return!!this.redos.length}save(){this.saveCommand=this.undos[this.undos.length-1]}dirty(){return this.saveCommand!=this.undos[this.undos.length-1]}clearRedo(){this.redos=[]}clear(){this.undos=[],this.redos=[],this.saveCommand=null,this.change()}change(n){}}class wm{constructor(n,i,r="#666",a){this.name="induce",this.node=n,this.endNode=n,this.root=i||new qi,this.root.containEl.classList.add("mm-node-induce"),this.root.containEl.classList.add("mm-node-leaf"),this.root.direct=this.node.direct,this.root.box={width:48,height:32},this.root.shapeType="bubble",this.lineType=a||"solid",this.stroke=r,this.lineWidth=2,this.type="right",this.lineDash=[0,0],this.visible=!0,this.isHide=!1,this.id=+new Date,this.node.induce=this,this.root.belongInduce=this,this.root.isRoot=!0,this.root.mind=this.node.getMind(),this.root.nodeType="induce",this.box={width:48,height:32},this.position=[],this.node.mindmap.contentEL.contains(this.root.containEl)||(this.node.mindmap.contentEL.appendChild(this.root.containEl),this.root.refreshBox()),this.refreshItems()}getId(){return this.id}init(){this.group&&this.group.remove(),this.group=this.node.getMind().induceGroup.group(),this.createInduceLine(),this.refreshBox(),this.render()}createInduceLine(){this.pl1&&this.pl1.remove()&&this.pl1==null,this.pl1=this.group.polyline().stroke({color:`${this.stroke}`,width:`${this.lineWidth}`,dasharray:`${this.lineDash}`,linecap:"round",linejoin:"round"}).fill("none"),this.pl2&&this.pl2.remove()&&this.pl2==null,this.pl2=this.group.polyline().stroke({color:`${this.stroke}`,width:`${this.lineWidth}`,dasharray:`${this.lineDash}`,linecap:"round",linejoin:"round"}).fill("none")}refreshItems(){var n=this.getInduces(),i=this.listNode;n.forEach(r=>{r.isShow()&&(i=i.concat(r.getAllItem()))}),this.items=i,this.node.isHide&&this.endNode.isHide&&this.hide()}render(){this.adjustType();var n=this.getNodeBox();this.renderInduce(n)}adjustType(){var n=this.node.getMind();n.getRootByNode(this.node);var i="node-"+this.type;this.root.containEl.classList.contains(i)&&this.root.containEl.classList.remove(i),this.type=this.node.direct,this.direct=this.node.direct;var r="node-"+this.type;this.root.containEl.classList.contains(r)||this.root.containEl.classList.add(r)}getInduces(){var n=this,i=[],r=[],a=[],s=[];if(this.rangeNode&&this.rangeNode.length)this.rangeNode.forEach(u=>{i=i.concat(u.getShowNodeList())});else{this.rangeNode=[];var o=this.node.parent,l=o.children.indexOf(this.node),c=o.children.indexOf(this.endNode);o.children.forEach((u,d)=>{d>=l&&d<=c&&(n.rangeNode.push(u),i=i.concat(u.getShowNodeList()))}),n.rangeNode=Fs(n.rangeNode)}return i.forEach(u=>{u.summaries.length&&u.summaries.forEach(d=>{d.isShow()&&r.push(d)}),u.callout&&u.callout.isShow&&i.push(u.callout),u.wireFrames.length&&u.wireFrames.forEach(d=>{d.isHide||a.push(d)}),u.layout&&u.layout.isShow&&s.push(u.layout)}),r=Fs(r),a=Fs(a),this.listNode=i.concat(a),this.groups=Fs(s),r}getNodeBox(){var n=this.items,i=this.groups,r=this.node.getMind().getBoundingRect(n);return i.length&&i.forEach(a=>{if(a.layoutName=="fish"&&(a.direct=="right"?a.creatBone():a.creatBone1(),a.fishTail)){var s=a.fishTail.bbox();s.xr.right&&(r.right=s.x+s.width),s.y+s.height>r.bottom&&(r.bottom=s.y+s.height),r.width=r.right-r.x,r.height=r.bottom-r.y}}),r}getBoxRect(){var n=this.node.getMind();return n.getBoundingRect(this.getAllItem())}getBBox(){return this.getNodeBox()}refreshBox(){var n=this.node.getMind();this.box=n.getBoundingRect(this.getAllItem())}getBox(){var n=this.group.gbox();if(this.box)var i=this.box;else{var i=this.root.getBox();this.box=i}return n.x{a.isHide||n.push(a)}),r.summaries.length&&r.summaries.forEach(a=>{a.isShow()&&(n=n.concat(a.getAllItem()))}),r.isExpand&&r.children.forEach(a=>{i(a)})}this.root&&i(this.root),this.allItems=Fs(n)}getAllItem(){return this.refreshAllItems(),this.allItems}hide(){this.isHide=!0,this.group&&this.group.hide(),this.root.hide()}isShow(){return!this.isHide}show(){this.isHide=!1,this.group&&this.group.show(),this.root.show()}doLayout(){if(this.root.getChildren().length!=0){var n=this.root.layout.direct;this.root.layout.layout(this.root,n)}}getWireFrame(){var n=[],i=[];return this.rangeNode&&this.rangeNode.length&&this.rangeNode.forEach(r=>{i=i.concat(r.getShowNodeList())}),i.forEach(r=>{r.wireFrames.length&&r.wireFrames.forEach(a=>{a.isHide||(n=n.concat(r.wireFrames))})}),Fs(n)}setEndNode(n){this.endNode=n,this.refreshNode(),this.refresh()}refreshNode(){var n=this.node.getShowNodeList();this.endNode&&this.endNode!=this.node&&(n=n.concat(this.endNode.getShowNodeList()));var i=this.node.getMind().getBoundingRect(n);this.topNode=i.topNode,this.bottomNode=i.bottomNode,this.leftNode=i.leftNode,this.rightNode=i.rightNode}renderInduce(n){if(n&&this.pl1){if(this.lineType=="solid"?this.lineDash=[0]:this.lineDash=[4,2],this.type=="right"){n.x1=n.x+n.width,this.setPosition(parseInt(n.x1)+5,n.y),this.pl1.plot([[4,0],[12,0],[12,parseInt(n.height/2)],[22,parseInt(n.height/2)]]),this.pl2.plot([[22,parseInt(n.height/2)],[12,parseInt(n.height/2)],[12,parseInt(n.height)],[4,parseInt(n.height)]]);var i=this.root.getBox();this.root.setPosition(n.x1+30,n.y+n.height/2-i.height/2)}else if(this.type=="left"){var i=this.root.getBox();this.setPosition(parseInt(n.x-i.width-26),parseInt(n.y)),this.pl2.plot([[parseInt(i.width+2),parseInt(n.height/2)],[parseInt(i.width+12),parseInt(n.height/2)],[parseInt(i.width+12),parseInt(n.height)],[parseInt(i.width+18),parseInt(n.height)]]),this.pl1.plot([[parseInt(i.width+2),parseInt(n.height/2)],[parseInt(i.width+12),parseInt(n.height/2)],[parseInt(i.width+12),0],[parseInt(i.width+18),0]]),this.root.setPosition(n.x-i.width-28,parseInt(n.y+(n.height-i.height)/2))}else if(this.type=="top"||this.type=="up"){var i=this.root.getBox();this.setPosition(parseInt(n.x),parseInt(n.y-i.height-30)),this.pl1.plot([[0,parseInt(i.height+20)],[0,parseInt(i.height+12)],[parseInt(n.width/2),parseInt(i.height+12)],[parseInt(n.width/2),parseInt(i.height+4)]]),this.pl2.plot([[parseInt(n.width/2),parseInt(i.height+4)],[parseInt(n.width/2),parseInt(i.height+12)],[parseInt(n.width),parseInt(i.height+12)],[parseInt(n.width),parseInt(i.height+20)]]),this.root.setPosition(parseInt(n.x+(n.width-i.width)/2),n.y-i.height-25)}else{this.setPosition(parseInt(n.x),parseInt(n.y+n.height+5)),this.pl1.plot([[0,4],[0,12],[parseInt(n.width/2),12],[parseInt(n.width/2),20]]),this.pl2.plot([[parseInt(n.width/2),20],[parseInt(n.width/2),12],[parseInt(n.width),12],[parseInt(n.width),4]]);var i=this.root.getBox();this.root.setPosition(n.x+(n.width-i.width)/2,n.y+n.height+26)}this.doLayout()}}getPosition(){return{x:this.position[0],y:this.position[1]}}setPosition(n,i){this.group.attr({transform:`translate(${n},${i})`}),this.position=[n,i]}setText(n){}getText(){return this.induceText}getTextBox(){return this.text.getBox()}refresh(){if(this.node.isShow()&&this.endNode&&this.endNode.isShow())(this.isHide||!this.root.isShow())&&(this.show(),function n(i){i.show(),i.isExpand&&i.children.forEach(r=>{n(r)})}(this.root)),this.render(),this.refreshBox();else{if(this.isHide)return;this.hide(),function n(i){i.hide(),i.isExpand&&i.children.forEach(r=>{n(r)})}(this.root),this.root.layout&&this.root.layout.group&&(this.root.layout.group.clear(),this.root.layout.group.remove(),this.root.layout.group=null)}}active(){this.status="active",this.root.setStyle("stroke","rgb(247,186,134)")}move(n,i){var r=this.getPosition();this.setPosition(r.x+n,r.y+i),this.box&&(this.box.x+=n,this.box.y+=i)}unactive(){this.status="unactive",this.root.setStyle("stroke",this.color)}isactive(){return this.status=="active"}remove(){this.pl1&&this.pl1.remove(),this.pl2&&this.pl2.remove(),this.pl1=null,this.pl2=null,this.root.layout&&this.root.layout.svgDom&&this.root.layout.svgDom.remove()&&(this.root.layout.svgDom=null),this.root.iNode&&this.root.layout&&this.root.mindmap.contentEL.removeChild(this.root.layout.tableDom)}initEvent(){this.pl1.on("click",n=>{n.induce=this,this.__zr.trigger("touchInduce",n),this.__zr.trigger("selectInduce",n)}),this.pl2.on("click",n=>{n.induce=this,this.__zr.trigger("touchInduce",n),this.__zr.trigger("selectInduce",n)})}getData(){if(this.node&&this.endNode){var n=this.node.parent,i=0,r=0;return n&&(i=n.children.indexOf(this.node),r=n.children.indexOf(this.endNode)),{nodeId:this.node.getId(),endNodeId:this.endNode.getId(),stroke:this.stroke,root:this.root.getId(),lineType:this.lineType,id:this.id,range:`${i},${r}`,type:this.type}}else return null}setData(n){this.stroke=n.stroke,this.lineType=n.lineType,this.refresh(),this.pl1.attr({stroke:this.stroke,fill:"none"}),this.pl2.attr({stroke:this.stroke,fill:"none"})}judgeNodePos(n,i){var r="";if(!i)return"right";var a=n.getPosition(),s=n.getBox(),o=i.getPosition(),l=i.getBox();return n.direct=="right"?a.x>o.x+l.width?r="right":r="left":o.x>a.x+s.width?r="left":r="right",r}getChildren(){return this.childrens}addChild(n,i){n._parent=this,typeof i=="number"?this.childrens.splice(i,0,n):this.childrens.push(n)}removeChild(n){var i=this.childrens.indexOf(n);return i>-1&&this.childrens.splice(i,1),i}}class jn{constructor(n){ie(this,"name");ie(this,"mind");this.name=n}execute(){}undo(){}redo(){this.execute()}refresh(n,i){var r=n||this.mind;r&&(r.emit("renderEditNode",{node:i}),r.emit("mindMapChange",{node:i}))}updateItems(n){for(var i=n;i;)i.wireFrames.length&&i.wireFrames.forEach(r=>{r.refreshItems(),r.refreshNode()}),i.summaries.length&&i.summaries.forEach(r=>{r.refreshItems(),r.refreshNode()}),i.belongInduce?i=i.belongInduce.node:i=i.parent}initTable(n){n&&(n.initTable(),setTimeout(()=>{n.mindMapChange()},0))}}class CZe extends jn{constructor(i,r,a,s,o){super("addNode");ie(this,"node");ie(this,"parent",null);ie(this,"mind",null);ie(this,"index",-1);ie(this,"isNotEditNode",!0);this.node=i,this.parent=r,this.mind=a||this.node.mindmap,this.isNotEditNode=s||!1,o!=null&&(this.index=o)}execute(){if(this.index>-1?this.mind.addNode(this.node,this.parent,this.index):this.mind.addNode(this.node,this.parent),this.mind._mode=="table"){this.initTable(this.mind);return}if(this.node.iNode){var i=this.node.getLayout();this.node._tableDom=i.tableDom,i.refresh(),i.root.clearCacheData(),i.root.refreshBox()}this.node.refreshBox(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),setTimeout(()=>{this.isNotEditNode||(this.mind.clearSelectNode(),this.node.select(),this.node.edit()),this.isNotEditNode=!1},0)}undo(){var i=this.node.parent;if(this.index=this.mind.removeNode(this.node),this.mind._mode=="table"){this.initTable(this.mind);return}if(i&&i.iNode){var r=i.getLayout();r.refresh()}this.mind.clearSelectNode(),this.updateItems(i),setTimeout(()=>{this.refresh(this.node.mindmap,i),i&&i.select()},0)}}class gA extends jn{constructor(i,r){super("removeNode");ie(this,"node");ie(this,"parent",null);ie(this,"mind",null);ie(this,"index",-1);ie(this,"isFreeRoot");ie(this,"isInduce");ie(this,"isRelateLink");ie(this,"cacheInfo");ie(this,"relateNode");ie(this,"induce");this.node=i,this.parent=this.node.parent||null,this.mind=r||this.node.mindmap,this.isFreeRoot=this.node.nodeType=="freeNode",this.isInduce=this.node.nodeType=="induce",this.isRelateLink=this.node.nodeType=="relateLink"}execute(){var i=this;if(this.isFreeRoot)this.mind.removeFreeNode(this.node),this.mind.removeNode(this.node),this.node.iNode&&this.mind.contentEL.removeChild(this.node.layout.tableDom),this.refresh(this.mind);else if(this.isInduce)this.relateNode=this.node.belongInduce.node,this.induce=this.node.belongInduce,this.mind.removeInduce(this.induce),this.relateNode.induce=null,this.mind.removeNode(this.node),this.node.iNode&&this.node.layout&&this.node.layout.tableDom&&this.mind.contentEL.removeChild(this.node.layout.tableDom),this.relateNode.clearCacheData(),this.updateItems(this.relateNode),this.refresh(this.relateNode.mindmap),this.relateNode.mindmap.updateAssist();else if(this.isRelateLink)this.mind.removeRelateLink(this.node.relateLink),this.mind.removeNode(this.node);else{this.node.clearCacheData(),this.node.refreshBox();var r=this.parent.wireFrames.slice()||[],a=this.parent.summaries.slice()||[];if(this.cacheInfo={wfs:[],induces:[]},r.forEach(o=>{if(o.node==o.endNode)o.node==i.node&&(i.mind.removeWireFrame(o),i.cacheInfo.wfs.push({item:o,type:"remove"}));else if(o.rangeNode.indexOf(i.node)>-1)if(o.rangeNode[0]==i.node){i.node.wfs.splice(i.node.wfs.indexOf(o),1);var l=o.rangeNode.slice();o.rangeNode.shift(),o.rangeNode[0].wfs.push(o),i.cacheInfo.wfs.push({item:o,type:"changeRangeNode-start",oldRange:l,newRange:o.rangeNode.slice()})}else if(o.rangeNode[o.rangeNode.length-1]==i.node){var l=o.rangeNode.slice();o.rangeNode.pop(),i.cacheInfo.wfs.push({item:o,type:"changeRangeNode-end",oldRange:l,newRange:o.rangeNode.slice()})}else{var l=o.rangeNode.slice(),c=o.rangeNode.indexOf(i.node);o.rangeNode.splice(c,1),i.cacheInfo.wfs.push({item:o,type:"changeRangeNode",oldRange:l,newRange:o.rangeNode.slice(),num:c})}}),a.forEach(o=>{if(o.node==o.endNode)o.node==i.node&&(i.mind.removeInduce(o),i.cacheInfo.induces.push({item:o,type:"remove"}),i.mind.removeNode(o.root),o.root.iNode&&o.root.layout&&o.root.layout.tableDom&&i.mind.contentEL.removeChild(o.root.layout.tableDom));else if(o.rangeNode.indexOf(i.node)>-1)if(o.rangeNode[0]==i.node){i.node.induces.splice(i.node.induces.indexOf(o),1);var l=o.rangeNode.slice();o.rangeNode.shift(),o.rangeNode[0].induces.push(o),i.cacheInfo.induces.push({item:o,type:"changeRangeNode-start",oldRange:l,newRange:o.rangeNode.slice()})}else if(o.rangeNode[o.rangeNode.length-1]==i.node){var l=o.rangeNode.slice();o.rangeNode.pop(),i.cacheInfo.induces.push({item:o,type:"changeRangeNode-end",oldRange:l,newRange:o.rangeNode.slice()})}else{var l=o.rangeNode.slice(),c=o.rangeNode.indexOf(i.node);o.rangeNode.splice(c,1),i.cacheInfo.induces.push({item:o,type:"changeRangeNode",oldRange:l,newRange:o.rangeNode.slice(),num:c})}}),this.node.iNode){var s=this.node.getLayout();s&&s.root&&(s.root.boundingRect=null)}if(this.index=this.mind.removeNode(this.node),this.node.mindmap._mode=="table"){this.initTable(this.mind);return}this.node.iNode&&(this.node.layout?this.node.layout.tableDom&&this.mind.contentEL.removeChild(this.node.layout.tableDom):s.refresh()),this.updateItems(this.parent),this.refresh(this.parent.mindmap,this.parent)}setTimeout(()=>{if(this.parent)if(this.index==0)this.parent.children.length?this.parent.children[0].select():this.parent.select();else{var o=this.parent.children[this.index-1];o?o.select():this.parent.select()}},0)}undo(){var i=this;if(this.isFreeRoot?(this.mind.addFreeNode(this.node),this.node.iNode&&this.node.layout&&this.node.layout.tableDom&&(this.mind.contentEL.appendChild(this.node.layout.tableDom),this.node.layout.refresh())):this.isInduce?(this.relateNode.clearCacheData(),this.relateNode.induce=this.induce,this.mind.addInduce(this.induce),this.induce.init(),this.node.iNode&&this.node.layout&&(this.mind.contentEL.appendChild(this.node.layout.tableDom),this.node.layout.refresh())):this.isRelateLink?this.mind.addRelateLink(this.node.relateLink):this.mind.addNode(this.node,this.parent,this.index),this.mind._mode=="table"){this.initTable(this.mind);return}if(this.node.iNode){var r=this.node.getLayout();this.node.layout&&this.node.layout.tableDom&&this.mind.contentEL.appendChild(this.node.layout.tableDom),r.refresh()}this.mind.traverseDF(a=>{a.layout&&a.layout.layoutName=="table"&&(this.mind.contentEL.contains(a.layout.tableDom)||this.mind.contentEL.appendChild(a.layout.tableDom)),this.mind._addNodeDom(a)},this.node),this.node._removeLink&&this.node._removeLink.forEach(a=>{this.mind.addRelateLink(a)}),this.node.clearCacheData(),this.node.refreshBox(),this.cacheInfo&&this.cacheInfo.wfs.forEach(a=>{if(a.type=="remove"&&(i.mind.addWireFrame(a.item),a.item.init()),a.type=="changeRangeNode-start"){i.node.wfs.push(a.item);var s=a.item.rangeNode[0];s.wfs.splice(s.wfs.indexOf(a.item),1),a.item.rangeNode=a.oldRange}(a.type=="changeRangeNode-end"||a.type=="changeRangeNode")&&(a.item.rangeNode=a.oldRange)}),this.cacheInfo&&this.cacheInfo.induces.forEach(a=>{if(a.type=="remove"&&(i.mind.addInduce(a.item),a.item.init(),a.item.root.iNode&&a.item.root.layout&&a.item.root.layout.tableDom&&(this.mind.contentEL.contains(a.item.root.layout.tableDom)||this.mind.contentEL.appendChild(a.item.root.layout.tableDom)),this.mind.traverseDF(o=>{this.mind._addNodeDom(o)},a.item.root)),a.type=="changeRangeNode-start"){i.node.induces.push(a.item);var s=a.item.rangeNode[0];s.induces.splice(s.induces.indexOf(a.item),1),a.item.rangeNode=a.oldRange}(a.type=="changeRangeNode-end"||a.type=="changeRangeNode")&&(a.item.rangeNode=a.oldRange)}),this.updateItems(this.node),this.mind.clearSelectNode(),this.refresh(this.node.mindmap,this.node),setTimeout(()=>{this.node.select()},0)}}class SZe extends jn{constructor(i,r,a){super("changeNodeText");ie(this,"node");ie(this,"oldText");ie(this,"text");ie(this,"isFirst");ie(this,"_mode","");this.node=i,this.oldText=r,this.text=a,this.isFirst=!0,this._mode=this.node.mindmap._mode}execute(){var i;if(this.isFirst||(this.node.setText(this.text),this.node.tNode&&this.node.tNode.setText(this.text)),this._mode=="table"){this.initTable(this.node.mindmap);return}this.node.refreshBox(),this.node.clearCacheData(),this.node.nodeType!="wireFrame"?this.refresh(this.node.mindmap,this.node):this.refresh(this.node.mindmap,(i=this.node.wireFrame)==null?void 0:i.node)}undo(){var i;if(this.isFirst=!1,this.node.setText(this.oldText),this.node.tNode&&this.node.tNode.setText(this.oldText),this._mode=="table"){this.initTable(this.node.mindmap);return}this.node.clearCacheData(),this.node.refreshBox(),this.node.nodeType!="wireFrame"?this.refresh(this.node.mindmap,this.node):this.refresh(this.node.mindmap,(i=this.node.wireFrame)==null?void 0:i.node)}}class TZe extends jn{constructor(i){super("moveNode");ie(this,"data",{});ie(this,"node");ie(this,"oldParent");ie(this,"parent");ie(this,"newParent");ie(this,"dropNode");ie(this,"type");ie(this,"index",-1);ie(this,"_wfs");ie(this,"_summary");this.data=i,this.data.type.indexOf("child")>-1?(this.node=this.data.node,this.oldParent=this.data.oldParent,this.parent=this.data.parent):(this.node=this.data.node,this.oldParent=this.node.parent,this.dropNode=this.data.dropNode,this.newParent=this.dropNode.parent,this.type=this.data.direct),this._wfs=this.node.wfs,this._summary=this.node.induces}execute(){if(this._wfs&&this._wfs.length){var i=this.parent||this.newParent;this._wfs.forEach(a=>{if(this.oldParent&&this.oldParent.wireFrames){var s=this.oldParent.wireFrames.indexOf(a);s>-1&&(this.oldParent.wireFrames.splice(s,1),i.wireFrames.indexOf(a)==-1&&i.wireFrames.push(a))}})}if(this._summary&&this._summary.length){var i=this.parent||this.newParent;this._summary.forEach(s=>{if(this.oldParent&&this.oldParent.summaries){var o=this.oldParent.summaries.indexOf(s);o>-1&&(this.oldParent.summaries.splice(o,1),i.summaries.indexOf(s)==-1&&i.summaries.push(s))}})}if(this.node.mindmap.clearSelectNode(),this.data.type.indexOf("child")>-1)this.oldParent&&(this.index=this.oldParent.removeChild(this.node)),this.parent.addChild(this.node),this.node.mindmap.traverseBF(a=>{a.boundingRect=null,a.stroke=""},this.node),this.updateItems(this.node),this.updateItems(this.oldParent),this.node.clearCacheData(),this.oldParent.clearCacheData(),this.refresh(this.node.mindmap,this.node),this.refresh(this.node.mindmap,this.oldParent),this.node.select();else{this.oldParent&&(this.index=this.oldParent.removeChild(this.node)),this.node.mindmap.traverseBF(a=>{a.boundingRect=null,a.stroke=""},this.node),this.oldParent.clearCacheData();var r=this.newParent.children.indexOf(this.dropNode);this.type=="top"||this.type=="left"?this.newParent.addChild(this.node,r):this.newParent.addChild(this.node,r+1),this.updateItems(this.node),this.updateItems(this.oldParent),this.node.clearCacheData(),this.refresh(this.node.mindmap,this.node),this.refresh(this.node.mindmap,this.oldParent),this.node.select()}}undo(){if(this._wfs&&this._wfs.length){var i=this.parent||this.newParent;this._wfs.forEach(r=>{if(this.oldParent&&this.oldParent.wireFrames){var a=i.wireFrames.indexOf(r);a>-1&&(i.wireFrames.splice(a,1),this.oldParent.wireFrames.indexOf(r)==-1&&this.oldParent.wireFrames.push(r))}})}if(this._summary&&this._summary.length){var i=this.parent||this.newParent;this._summary.forEach(a=>{if(this.oldParent&&this.oldParent.summaries){var s=i.summaries.indexOf(a);s>-1&&(i.summaries.splice(s,1),this.oldParent.summaries.indexOf(a)==-1&&this.oldParent.summaries.push(a))}})}this.node.mindmap.clearSelectNode(),this.data.type.indexOf("child")>-1?(this.parent.removeChild(this.node),this.oldParent&&this.oldParent.addChild(this.node,this.index),this.node.mindmap.traverseBF(r=>{r.boundingRect=null,r.stroke=""},this.node),this.updateItems(this.node),this.updateItems(this.parent),this.node.mindmap.updateAssist(),this.parent.clearCacheData(),this.node.clearCacheData(),this.refresh(this.node.mindmap,this.node),this.refresh(this.node.mindmap,this.parent),this.node.select()):(this.newParent.removeChild(this.node),this.dropNode.clearCacheData(),this.oldParent.addChild(this.node,this.index),this.updateItems(this.node),this.updateItems(this.parent),this.node.mindmap.updateAssist(),this.node.clearCacheData(),this.refresh(this.node.mindmap,this.node),this.refresh(this.node.mindmap,this.parent),this.node.select())}}class kZe extends jn{constructor(i){super("moveNodes");ie(this,"data",{});ie(this,"nodes");ie(this,"oldParent");ie(this,"parent");ie(this,"newParent");ie(this,"dropNode");ie(this,"type");ie(this,"index",-1);ie(this,"_wfs",[]);ie(this,"_summary",[]);this.data=i,this.data.type.indexOf("child")>-1?(this.nodes=this.data.nodes,this.oldParent=this.data.oldParent,this.parent=this.data.parent):(this.nodes=this.data.nodes,this.oldParent=this.nodes[0].parent,this.dropNode=this.data.dropNode,this.newParent=this.dropNode.parent,this.type=this.data.direct),this.nodes.forEach(r=>{this._wfs=this._wfs.concat(r.wfs),this._summary=this._summary.concat(r.induces)})}execute(){if(this._wfs&&this._wfs.length){var i=this.parent||this.newParent;this._wfs.forEach(a=>{if(this.oldParent&&this.oldParent.wireFrames){var s=this.oldParent.wireFrames.indexOf(a);s>-1&&(this.oldParent.wireFrames.splice(s,1),i.wireFrames.indexOf(a)==-1&&i.wireFrames.push(a))}})}if(this._summary&&this._summary.length){var i=this.parent||this.newParent;this._summary.forEach(s=>{if(this.oldParent&&this.oldParent.summaries){var o=this.oldParent.summaries.indexOf(s);o>-1&&(this.oldParent.summaries.splice(o,1),i.summaries.indexOf(s)==-1&&i.summaries.push(s))}})}if(this.nodes[0].mindmap.clearSelectNode(),this.data.type.indexOf("child")>-1)this.nodes.forEach((a,s)=>{this.oldParent&&(s==0?this.index=this.oldParent.removeChild(a):this.oldParent.removeChild(a)),this.parent.addChild(a),this.nodes[0].mindmap.traverseBF(o=>{o.boundingRect=null,o.stroke=""},a),a.clearCacheData(),this.updateItems(a),this.updateItems(this.oldParent)}),this.oldParent.clearCacheData(),this.refresh(this.nodes[0].mindmap,this.nodes[0]),this.refresh(this.nodes[0].mindmap,this.oldParent);else{this.nodes.forEach((a,s)=>{this.oldParent&&(s==0?this.index=this.oldParent.removeChild(a):this.oldParent.removeChild(a)),this.nodes[0].mindmap.traverseBF(o=>{o.boundingRect=null,o.stroke=""},a),a.clearCacheData(),this.updateItems(a),this.updateItems(this.oldParent)}),this.oldParent.clearCacheData();var r=this.newParent.children.indexOf(this.dropNode);this.nodes.forEach((a,s)=>{this.type=="top"||this.type=="left"?this.newParent.addChild(a,r):this.newParent.addChild(a,r+1+s),r=this.newParent.children.indexOf(this.dropNode)}),this.refresh(this.nodes[0].mindmap,this.nodes[0]),this.refresh(this.nodes[0].mindmap,this.oldParent)}}undo(){if(this._wfs&&this._wfs.length){var i=this.parent||this.newParent;this._wfs.forEach(r=>{if(this.oldParent&&this.oldParent.wireFrames){var a=i.wireFrames.indexOf(r);a>-1&&(i.wireFrames.splice(a,1),this.oldParent.wireFrames.indexOf(r)==-1&&this.oldParent.wireFrames.push(r))}})}if(this._summary&&this._summary.length){var i=this.parent||this.newParent;this._summary.forEach(a=>{if(this.oldParent&&this.oldParent.summaries){var s=i.summaries.indexOf(a);s>-1&&(i.summaries.splice(s,1),this.oldParent.summaries.indexOf(a)==-1&&this.oldParent.summaries.push(a))}})}this.nodes[0].mindmap.clearSelectNode(),this.data.type.indexOf("child")>-1?(this.nodes.forEach((r,a)=>{this.parent.removeChild(r),this.oldParent&&this.oldParent.addChild(r,this.index+a),r.mindmap.traverseBF(s=>{s.boundingRect=null,s.stroke=""},r),this.updateItems(r)}),this.updateItems(this.parent),this.nodes[0].mindmap.updateAssist(),this.parent.clearCacheData(),this.nodes[0].clearCacheData(),this.refresh(this.nodes[0].mindmap,this.nodes[0]),this.refresh(this.nodes[0].mindmap,this.parent)):(this.nodes.forEach((r,a)=>{this.newParent.removeChild(r),this.oldParent&&this.oldParent.addChild(r,this.index+a),r.mindmap.traverseBF(s=>{s.boundingRect=null,s.stroke=""},r),this.updateItems(r)}),this.dropNode.clearCacheData(),this.updateItems(this.parent),this.nodes[0].mindmap.updateAssist(),this.nodes[0].clearCacheData(),this.refresh(this.nodes[0].mindmap,this.nodes[0]),this.refresh(this.nodes[0].mindmap,this.parent))}}class DZe extends jn{constructor(i,r,a){super("movePos");ie(this,"node");ie(this,"oldPos");ie(this,"newPos");this.node=i,this.oldPos=r,this.newPos=a}execute(){this.node.setPosition(this.newPos.x,this.newPos.y),this.node.callout?this.refresh(this.node.mindmap,this.node.callout.node):this.refresh(this.node.mindmap,this.node),this.node.mindmap.clearSelectNode()}undo(){this.node.setPosition(this.oldPos.x,this.oldPos.y),this.node.callout?this.refresh(this.node.mindmap,this.node.callout.node):this.refresh(this.node.mindmap,this.node),this.node.mindmap.clearSelectNode()}}class NZe extends jn{constructor(i){super("collapseNOde");ie(this,"node");this.node=i,this.node.mindmap.clearSelectNode(),this.node.refreshBox()}execute(){this.node.clearCacheData(),this.node.collapse(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.node.select()}undo(){this.node.clearCacheData(),this.node.expand(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.node.select()}}class IZe extends jn{constructor(i){super("collapseNOde");ie(this,"node");this.node=i,this.node.mindmap.clearSelectNode(),this.node.refreshBox()}execute(){this.node.clearCacheData(),this.node.expand(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.node.select()}undo(){this.node.clearCacheData(),this.node.collapse(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.node.select()}}class MZe extends jn{constructor(i,r){super("addInduce");ie(this,"node");ie(this,"induce");ie(this,"added");this.node=i,this.induce=r,this.mind=this.node.getMind(),this.added=!1}execute(){this.added||(this.mind.addInduce(this.induce),this.added=!0),this.node.clearCacheData(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node)}undo(){this.added=!1,this.mind.contentEL.removeChild(this.induce.root.containEl),this.mind.removeInduce(this.induce),this.node.clearCacheData(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node)}}class LZe extends jn{constructor(i,r){super("addWireFrame");ie(this,"wireFrame");ie(this,"mind");ie(this,"node");ie(this,"num",1);this.wireFrame=i,this.mind=r,this.node=this.wireFrame.node,this.num=1}execute(){this.node.clearCacheData(),this.mind.addWireFrame(this.wireFrame),this.num!=1&&(this.node.wireFrame=this.wireFrame,this.wireFrame.init()),this.num++,this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.mind.clearSelectNode()}undo(){this.mind.removeWireFrame(this.wireFrame),this.node.wireFrame=null,this.node.clearCacheData(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.mind.clearSelectNode()}}class OZe extends jn{constructor(i,r){super("remmoveWireFrame");ie(this,"wireFrame");ie(this,"mind");ie(this,"node");this.mind=r,this.node=i.node,this.wireFrame=i}execute(){this.mind.removeWireFrame(this.wireFrame),this.node.wireFrame=null,this.node.clearCacheData(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.mind.clearSelectNode(),this.mind._dragFrame.style.display="none",this.mind._indicateDom.style.display="none"}undo(){this.node.wireFrame=this.wireFrame,this.node.clearCacheData(),this.mind.addWireFrame(this.wireFrame),this.wireFrame.init(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.mind.clearSelectNode(),this.mind._dragFrame.style.display="none",this.mind._indicateDom.style.display="none"}}class RZe extends jn{constructor(i,r,a){super("changeRangeNode");ie(this,"item");ie(this,"old");ie(this,"new");this.item=i,this.old=r,this.new=a}pre(){var i=this.old[0];this.item.name=="wireFrame"?i.wfs.splice(i.wfs.indexOf(this.item),1):i.induces.splice(i.induces.indexOf(this.item),1)}execute(){this.pre(),this.item.rangeNode=this.new,this.item.node=this.new[0],this.item.endNode=this.new[this.new.length-1],this.item.name=="wireFrame"?this.new[0].wfs.indexOf(this.item)==-1&&this.new[0].wfs.push(this.item):this.new[0].induces.indexOf(this.item)==-1&&this.new[0].induces.push(this.item),this.old.forEach(i=>{i&&i.clearCacheData()}),this.new.forEach(i=>{i&&i.clearCacheData()}),this.updateItems(this.item.node),this.refresh(this.item.node.mindmap,this.item.node)}undo(){this.item.name=="wireFrame"?this.new[0].wfs.splice(this.new[0].wfs.indexOf(this.item),1):this.new[0].induces.splice(this.new[0].induces.indexOf(this.item),1),this.item.rangeNode=this.old,this.item.node=this.old[0],this.item.endNode=this.old[this.old.length-1],this.item.name=="wireFrame"?this.old[0].wfs.indexOf(this.item)&&this.old[0].wfs.push(this.item):this.old[0].induces.indexOf(this.item)&&this.old[0].induces.push(this.item),this.old.forEach(i=>{i&&i.clearCacheData()}),this.new.forEach(i=>{i&&i.clearCacheData()}),this.updateItems(this.item.node),this.refresh(this.item.node.mindmap,this.item.node)}}class PZe extends jn{constructor(i){super("addRelate");ie(this,"link");ie(this,"mind");this.link=i,this.mind=this.link.startNode.getMind()}execute(){this.mind.addRelateLink(this.link),this.mind.status="",this.link.status="added"}undo(){this.mind.removeRelateLink(this.link)}}class BZe extends jn{constructor(i,r,a){super("relateLinkBox");ie(this,"relateLink");ie(this,"oldBox");ie(this,"box");this.relateLink=i,this.oldBox=r,this.box=a}execute(){this.relateLink.data=this.box.data,this.relateLink.setBox({...this.box}),this.refresh(this.relateLink.startNode.mindmap,this.relateLink.startNode)}undo(){this.relateLink.data=this.oldBox.data,this.relateLink.setBox({...this.oldBox}),this.refresh(this.relateLink.startNode.mindmap,this.relateLink.startNode)}}class FZe extends jn{constructor(i,r){super("setAnnotate");ie(this,"node");ie(this,"annotate");ie(this,"oldAnnotate");this.node=i,this.annotate=r,i.getAnnotateId()&&(this.oldAnnotate=i.getAnnotate())}execute(){this.node.setAnnotate(this.annotate),this.refresh(this.node.mindmap,this.node)}undo(){this.oldAnnotate?this.node.setAnnotate(this.oldAnnotate):this.node.deleteAnnotate(),this.refresh(this.node.mindmap,this.node)}}class HZe extends jn{constructor(i){super("setAnnotate");ie(this,"node");ie(this,"annotate");this.node=i,this.annotate=i.getAnnotate()}execute(){this.node.deleteAnnotate(),this.refresh(this.node.mindmap,this.node)}undo(){this.node.setAnnotate(this.annotate),this.refresh(this.node.mindmap,this.node)}}class zZe extends jn{constructor(i){super("changeNodeToFreeRoot");ie(this,"node");ie(this,"mind");ie(this,"pos");ie(this,"parent");ie(this,"index");ie(this,"cacheInfo");ie(this,"layout");this.node=i,this.mind=i.getMind(),this.pos=this.node.getPosition(),this.parent=this.node.parent,this.node.data.main=!1,this.node.layout&&(this.layout=this.node.layout)}execute(){var i=this;if(this.layout&&(this.node.layout=this.layout),this.node.clearCacheData(),this.node.containEl.classList.contains("mm-root")||this.node.containEl.classList.add("mm-root"),this.node.containEl.classList.contains("mm-freeNode")||this.node.containEl.classList.add("mm-freeNode"),this.node.refreshBox(),this.parent)var r=this.parent.wireFrames,a=this.parent.summaries;this.cacheInfo={wfs:[],induces:[]},r&&r.forEach(s=>{if(s.node==s.endNode){if(s.node==i.node){var o=s.node.parent,l=o.wireFrames.indexOf(s);o.wireFrames.splice(l,1),s.node.wireFrame=s,i.cacheInfo.wfs.push({item:s,type:"toFreeRoot"})}}else if(s.rangeNode.indexOf(i.node)>-1)if(s.rangeNode[0]==i.node){i.node.wfs.splice(i.node.wfs.indexOf(s),1);var c=s.rangeNode.slice();s.rangeNode.shift(),s.rangeNode[0].wfs.push(s),i.cacheInfo.wfs.push({item:s,type:"changeRangeNode-start",oldRange:c,newRange:s.rangeNode.slice()})}else if(s.rangeNode[s.rangeNode.length-1]==i.node){var c=s.rangeNode.slice();s.rangeNode.pop(),i.cacheInfo.wfs.push({item:s,type:"changeRangeNode-end",oldRange:c,newRange:s.rangeNode.slice()})}else{var c=s.rangeNode.slice(),u=s.rangeNode.indexOf(i.node);s.rangeNode.splice(u,1),i.cacheInfo.wfs.push({item:s,type:"changeRangeNode",oldRange:c,newRange:s.rangeNode.slice(),num:u})}}),a&&a.forEach(s=>{if(s.node==s.endNode)s.node==i.node&&(i.mind.removeInduce(s),i.cacheInfo.induces.push({item:s,type:"remove"}),i.mind.removeNode(s.root));else if(s.rangeNode.indexOf(i.node)>-1)if(s.rangeNode[0]==i.node){i.node.induces.splice(i.node.induces.indexOf(s),1);var o=s.rangeNode.slice();s.rangeNode.shift(),s.rangeNode[0].induces.push(s),i.cacheInfo.induces.push({item:s,type:"changeRangeNode-start",oldRange:o,newRange:s.rangeNode.slice()})}else if(s.rangeNode[s.rangeNode.length-1]==i.node){var o=s.rangeNode.slice();s.rangeNode.pop(),i.cacheInfo.induces.push({item:s,type:"changeRangeNode-end",oldRange:o,newRange:s.rangeNode.slice()})}else{var o=s.rangeNode.slice(),l=s.rangeNode.indexOf(i.node);s.rangeNode.splice(l,1),i.cacheInfo.induces.push({item:s,type:"changeRangeNode",oldRange:o,newRange:s.rangeNode.slice(),num:l})}}),this.parent&&(this.index=this.parent.removeChild(this.node)),this.node.parent=null,this.mind.addFreeNode(this.node),this.mind.traverseDF(s=>{s.boundingRect=null,s.stroke=""},this.node),this.node.nodeType="freeNode",this.node.setPosition(this.pos.x,this.pos.y),this.updateItems(this.parent),this.updateItems(this.node),this.parent.clearCacheData(),this.refresh(this.parent.mindmap,this.parent),this.refresh(this.node.mindmap,this.node),this.layout||(this.layout=this.node.layout),this.mind.clearSelectNode()}undo(){var i=this;this.mind.removeFreeNode(this.node),this.node.containEl.classList.contains("mm-root")&&this.node.containEl.classList.remove("mm-root"),this.node.containEl.classList.contains("mm-freeNode")&&this.node.containEl.classList.remove("mm-freeNode"),this.node.refreshBox(),this.node.layout&&(this.node.layout.svgDom&&this.node.layout.svgDom.clear()&&this.node.layout.svgDom.remove(),this.node.layout.group&&this.node.layout.group.clear()&&this.node.layout.group.remove(),this.node.layout.svgDom=null,this.node.layout.group=null,this.node.layout=null),this.node.nodeType="richText",this.parent&&this.parent.addChild(this.node,this.index),this.node.clearCacheData(),this.mind.traverseDF(r=>{r.boundingRect=null,r.stroke=""},this.node),this.node._isRoot||this.node.layout&&(this.node.layout.svgDom&&this.node.layout.svgDom.remove(),this.node.layout.svgDom=null,this.node.layout=null),this.cacheInfo&&this.cacheInfo.wfs.forEach(r=>{if(r.type=="toFreeRoot"){var a=r.item.node.parent;a&&(a.wireFrames.push(r.item),a.wireFrames.unique(),a.wireFrames.sort(function(o,l){return o.rangeNode.length-l.rangeNode.length})),r.item.node.wireFrame=null}if(r.type=="remove"&&(i.mind.addWireFrame(r.item),r.item.init()),r.type=="changeRangeNode-start"){i.node.wfs.push(r.item);var s=r.item.rangeNode[0];s.wfs.splice(s.wfs.indexOf(r.item),1),r.item.rangeNode=r.oldRange}(r.type=="changeRangeNode-end"||r.type=="changeRangeNode")&&(r.item.rangeNode=r.oldRange)}),this.cacheInfo&&this.cacheInfo.induces.forEach(r=>{if(r.type=="remove"&&(i.mind.addInduce(r.item),r.item.init(),this.mind.traverseDF(s=>{this.mind._addNodeDom(s)},r.item.root)),r.type=="changeRangeNode-start"){i.node.induces.push(r.item);var a=r.item.rangeNode[0];a.induces.splice(a.induces.indexOf(r.item),1),r.item.rangeNode=r.oldRange}(r.type=="changeRangeNode-end"||r.type=="changeRangeNode")&&(r.item.rangeNode=r.oldRange)}),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.node.layout=null,this.mind.clearSelectNode()}}class qZe extends jn{constructor(i,r){super("changeFreeRootToNode");ie(this,"node");ie(this,"pos");ie(this,"parent");ie(this,"oldLayout");ie(this,"rootWf");ie(this,"mind");this.node=i,this.pos=this.node.getPosition(),this.parent=r,this.mind=this.node.getMind(),this.oldLayout=this.node.layout}execute(){if(this.node.containEl.classList.contains("mm-root")&&(this.node.containEl.classList.remove("mm-root"),this.node.containEl.classList.remove("mm-freeNode")),this.node.refreshBox(),this.mind.removeFreeNode(this.node),this.node.layout.svgDom&&this.node.layout.svgDom.clear(),this.node.nodeType="richText",this.parent.addChild(this.node),this.node.clearCacheData(),this.mind.traverseDF(r=>{r.boundingRect=null,r.direct="",r.stroke=this.parent.stroke,r.data.stroke=this.parent.stroke},this.node),this.node.wfs.length){var i=this.node.parent;i&&(i.wireFrames.indexOf(this.node.wfs[0])==-1&&i.wireFrames.push(this.node.wfs[0]),i.wireFrames.sort(function(r,a){return r.rangeNode.length-a.rangeNode.length})),this.rootWf=this.node.wfs[0],this.node.wireFrame=null}this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),this.mind.clearSelectNode()}undo(){if(this.node.layout=this.oldLayout,this.node.clearCacheData(),this.mind.addFreeNode(this.node),this.node.nodeType="freeNode",this.parent.removeChild(this.node),this.node.setPosition(this.pos.x,this.pos.y),this.mind.traverseDF(r=>{r.boundingRect=null,r.direct="",r.stroke="",r.data.stroke=""},this.node),this.node.containEl.classList.contains("mm-root")||(this.node.containEl.classList.add("mm-root"),this.node.containEl.classList.add("mm-freeNode")),this.node.refreshBox(),this.mind.clearSelectNode(),this.rootWf){var i=this.rootWf.node.parent;i&&i.wireFrames.splice(i.wireFrames.indexOf(this.rootWf),1),this.rootWf.node.wireFrame=this.rootWf,this.rootWf=null}this.updateItems(this.parent),this.updateItems(this.node),this.refresh(this.parent.mindmap,this.parent),this.refresh(this.node.mindmap,this.node)}}class UZe extends jn{constructor(i){super("removeCommand");ie(this,"induce");ie(this,"node");this.node=i.node,this.induce=i}execute(){var i=this.node.getMind();i.removeInduce(this.induce),this.induce.root.layout&&this.induce.root.layout.svgDom&&this.induce.root.layout.svgDom.remove()&&(this.induce.root.layout.svgDom=null),function r(a){i.removeNode(a),a.wireFrames&&a.wireFrames.forEach(s=>{i.removeWireFrame(s)}),a.summaries&&a.summaries.forEach(s=>{i.removeInduce(s),s.root.layout&&s.root.layout.svgDom&&s.root.layout.svgDom.remove()&&(s.root.layout.svgDom=null),r(s.root)}),a.getChildren().forEach(s=>{r(s)})}(this.induce.root),this.node.induce=null,this.node.clearCacheData(),this.updateItems(this.node),this.refresh(i,this.node),i.updateAssist(),i._dragFrame.style.display="none",i._indicateDom.style.display="none"}undo(){var i=this.node.getMind();i.addInduce(this.induce),function r(a){i.addNode(a),a.wireFrames.length&&a.wireFrames.forEach(s=>{i.addWireFrame(s)}),a.summaries.length&&a.summaries.forEach(s=>{i.addInduce(s),r(s.root)}),a.getChildren().forEach(s=>{r(s)})}(this.induce.root),this.node.induce=this.induce,this.node.clearCacheData(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node),i._dragFrame.style.display="none",i._indicateDom.style.display="none"}}class GZe extends jn{constructor(i){super("removeRelateLink");ie(this,"link");ie(this,"mind");this.link=i,this.mind=i.startNode.getMind()}execute(){this.mind.removeNode(this.link.textNode),this.mind.removeRelateLink(this.link),this.refresh(this.mind,this.link.startNode)}undo(){this.mind.addRelateLink(this.link),this.refresh(this.mind,this.link.startNode)}}class QN extends jn{constructor(i,r){super("changeLayout");ie(this,"node");ie(this,"direct");ie(this,"oldLayout");ie(this,"oldDirect");ie(this,"mind");ie(this,"isTable",!1);ie(this,"oldNode",null);ie(this,"oldIndex");ie(this,"tableLayout",null);ie(this,"forceChange",!1);ie(this,"newLayout",null);this.node=i,this.mind=this.node.mindmap,this.direct=r}execute(){if(this.mind.traverseDF(c=>{c.boundingRect=null},this.node),this.direct=="right"||this.direct=="left"||this.direct=="mindmap"||this.direct=="up"||this.direct=="down"){var i=this.node.getNodeLayout();if(i){if(this.mind.traverseDF(c=>{c.boundingRect=null},i.root),this.oldLayout=i,i.layoutName=="table"){this.forceChange=!0;var r=i.getData(i.root),a=this.initNode(r,this.direct);a.nodeType=i.root.nodeType,this.oldIndex=this.mind.removeNode(i.root),this.oldIndex>-1&&this.mind.addNode(a,i.root.parent,this.oldIndex),this.mind.traverseBF(c=>{this.mind._addNodeDom(c)},a),this.mind.contentEL.contains(i.tableDom)&&this.mind.contentEL.removeChild(i.tableDom),a.data.main&&(this.mind.root=a,r.x&&r.y&&a.setPosition(r.x,r.y),this.mind.traverseBF(c=>{c.refreshBox(),c.boundingRect=null},a)),i.root.nodeType=="freeNode"&&(this.mind.removeFreeNode(i.root),this.mind.addFreeNode(a),r.x&&r.y&&a.setPosition(r.x,r.y),this.mind.traverseBF(c=>{c.refreshBox(),c.boundingRect=null},a)),i.root.nodeType=="induce"&&(i.root.incuce.root=a,a.incuce=i.root.incuce,a.nodeType=="induce",this.mind.traverseBF(c=>{c.refreshBox(),c.boundingRect=null},a)),this.effect()}i.svgDom&&i.svgDom.clear()&&i.svgDom.remove()&&(i.svgDom=null),i.group&&i.group.clear()&&i.group.remove()&&(i.group=null)}this.node.clearCacheData();var s=this.direct=="up"||this.direct=="down"?"tree":"mindmap2",o=new Qi[s](a||this.node,this.direct,this.mind.view.colors.slice());(a||this.node).layout=o,this.newLayout=o,this.node.isRoot&&this.node.data.main&&(this.node.mindmap.mmLayout=o)}if(this.direct=="lTree"&&this.changeLayout("multipleTree","multipleTree"),this.direct=="vertical"&&this.changeLayout("vertical","vertical"),this.direct=="fishRight"&&this.changeLayout("fish","right"),this.direct=="fishLeft"&&this.changeLayout("fish","left"),this.direct=="multip"&&this.changeLayout("multipleTree","multipleTree"),this.direct=="multipLeft"&&this.changeLayout("multipleTree","left"),this.direct=="multipRight"&&this.changeLayout("multipleTree","right"),this.direct=="table"){var i=this.node.getNodeLayout();this.isTable=!0,i&&i.layoutName!="table"&&(this.oldLayout=i),this.oldNode=this.node;var o=new Qi.table(this.node,""),l=this.node.parent;o.root.parent=l,this.oldIndex=this.mind.removeNode(this.node,!1),this.mind.addNode(o.root,o.root.parent,this.oldIndex),this.tableLayout=o,this.oldNode&&this.oldNode.isRoot&&this.oldNode.data.main&&(this.mind.root=o.root,this.mind.mmLayout=o),this.oldNode&&this.oldNode.nodeType=="freeNode"&&(this.mind.removeFreeNode(this.oldNode),this.mind.addFreeNode(o.root),o.root.nodeType=="freeNode"),this.oldNode&&this.oldNode.nodeType=="induce"&&this.oldNode.incuce&&(this.oldNode.incuce.root=o.root,o.root.induce=this.oldNode.induce,o.root.nodeType=="induce"),this.effect()}this.oldLayout?(this.newLayout&&this.refresh(this.mind,this.newLayout.root),this.refresh(this.mind,this.oldLayout.root)):this.refresh(this.mind,this.node)}changeLayout(i,r){var a=this.node.getNodeLayout();if(a){if(this.mind.traverseDF(c=>{c.boundingRect=null,c.refreshBox(),c.direct=""},a.root),this.oldLayout=a,a.layoutName=="table"){this.forceChange=!0;var s=a.getData(a.root),o=this.initNode(s,this.direct);o.nodeType=a.root.nodeType,this.oldIndex=this.mind.removeNode(a.root),this.oldIndex>-1&&this.mind.addNode(o,a.root.parent,this.oldIndex),this.mind.traverseBF(c=>{this.mind._addNodeDom(c)},o),o.data.main&&(this.mind.root=o,s.x&&s.y&&o.setPosition(s.x,s.y),this.mind.traverseBF(c=>{c.refreshBox(),c.boundingRect=null},o)),a.root.nodeType=="freeNode"&&(this.mind.removeFreeNode(a.root),this.mind.addFreeNode(o),o.nodeType=="freeNode",s.x&&s.y&&o.setPosition(s.x,s.y),this.mind.traverseBF(c=>{c.refreshBox(),c.boundingRect=null},o)),a.root.nodeType=="induce"&&(a.root.incuce.root=o,o.incuce=a.root.incuce,o.nodeType=="induce",this.mind.traverseBF(c=>{c.refreshBox(),c.boundingRect=null},o)),this.mind.contentEL.contains(a.tableDom)&&this.mind.contentEL.removeChild(a.tableDom),this.effect()}a.svgDom&&a.svgDom.clear()&&a.svgDom.remove()&&(a.svgDom=null),a.group&&a.group.clear()&&a.group.remove()&&(a.group=null)}this.node.clearCacheData();var l=new Qi[i](o||this.node,r,this.mind.view.colors.slice());(o||this.node).layout=l,this.newLayout=l,this.node.isRoot&&this.node.data.main&&(this.node.mindmap.mmLayout=l)}undo(){this.oldLayout&&!this.isTable?this.forceChange?(this.oldIndex>-1&&(this.mind.removeNode(this.newLayout.root),this.mind.addNode(this.oldLayout.root,this.oldLayout.root.parent,this.oldIndex)),this.newLayout&&this.newLayout.root.data.main&&(this.mind.root=this.oldLayout.root,this.mind._removeChildDom(this.newLayout.root),this.mind.mmLayout=this.oldLayout),this.newLayout&&this.newLayout.root.nodeType=="freeNode"&&(this.mind.removeFreeNode(this.newLayout.root),this.mind.addFreeNode(this.oldLayout.root),this.oldLayout.root.nodeType=="freeNode",this.mind._removeChildDom(this.newLayout.root)),this.newLayout&&this.newLayout.root.nodeType=="induce"&&(this.oldLayout.root.nodeType=="induce",this.mind._removeChildDom(this.newLayout.root),this.oldLayout.root.induce.root=this.oldLayout.root),this.oldLayout.tableDom&&(this.mind.contentEL.contains(this.oldLayout.tableDom)||this.mind.contentEL.appendChild(this.oldLayout.tableDom)),this.effect()):(this.oldLayout.root.layout.svgDom&&this.oldLayout.root.layout.svgDom.clear()&&this.oldLayout.root.layout.svgDom.remove()&&(this.oldLayout.root.layout.svgDom=null),this.oldLayout.root.layout.group&&this.oldLayout.root.layout.group.clear()&&this.oldLayout.root.layout.group.remove()&&(this.oldLayout.root.layout.group=null),this.mind.traverseDF(i=>{i.boundingRect=null,i.refreshBox(),i.direct=""},this.oldLayout.root),this.oldLayout.root.layout=this.oldLayout,this.oldLayout.svgDom&&(this.oldLayout.svgDom=null),this.oldLayout.group&&(this.oldLayout.group=null),this.oldLayout.layout(this.oldLayout.root,this.oldLayout.direct)):this.oldLayout&&this.isTable?(this.mind.removeNode(this.tableLayout.root),this.mind.addNode(this.oldNode,this.oldNode.parent,this.oldIndex),this.mind.traverseBF(i=>{this.mind._addNodeDom(i),i.refreshBox(),i.boundingRect=null},this.oldNode),this.mind.contentEL.removeChild(this.tableLayout.tableDom),this.oldNode&&this.oldNode.data.main&&(this.mind.root=this.oldNode,this.mind.mmLayout=this.oldLayout),this.oldNode&&this.tableLayout.root.nodeType=="freeNode"&&(this.mind.removeFreeNode(this.tableLayout.root),this.mind.addFreeNode(this.oldNode),this.mind.traverseBF(i=>{i.refreshBox(),i.boundingRect=null},this.oldNode)),this.oldNode&&this.tableLayout.root.nodeType=="induce"&&this.oldNode.incuce&&(this.oldNode.incuce.root=this.oldNode,this.mind.traverseBF(i=>{i.refreshBox(),i.boundingRect=null},this.oldNode)),this.tableLayout.tableDom=null,this.tableLayout=null,this.effect()):this.isTable?(this.mind.removeNode(this.tableLayout.root),this.mind.addNode(this.oldNode,this.oldNode.parent,this.oldIndex),this.mind.traverseBF(i=>{this.mind._addNodeDom(i),i.boundingRect=null,i.refreshBox()},this.oldNode),this.mind.contentEL.contains(this.tableLayout.tableDom)&&this.mind.contentEL.removeChild(this.tableLayout.tableDom),this.tableLayout.tableDom=null,this.tableLayout=null,this.effect()):this.node.layout&&(this.mind.traverseDF(i=>{i.boundingRect=null,i.refreshBox(),i.direct=""},this.node.layout.root),this.node.layout.svgDom&&this.node.layout.svgDom.clear()&&this.node.layout.svgDom.remove()&&(this.node.layout.svgDom=null),this.node.layout.group&&this.node.layout.group.clear()&&this.node.layout.group.remove()&&(this.node.layout.group=null),this.node.layout=null,this.node.clearCacheData()),this.oldLayout?(this.newLayout&&this.refresh(this.mind,this.newLayout.root),this.refresh(this.mind,this.oldLayout.root)):this.refresh(this.mind,this.node),this.node.isRoot&&this.node.data.main&&(this.node.mindmap.mmLayout=this.oldLayout)}initNode(i,r){var a=this,s=null;function o(l,c,u){var d=new qi(l,a.mind);l.isRoot&&l.main&&(a.mind.root=d,d.isRoot=!0),c?s=d:(u.children.push(d),d.parent=u),d.direct=r||l.direct,l.children&&l.children.length&&l.children.forEach(h=>{h.x=100,h.y=100,o(h,!1,d)})}return o(i,!0),s}effect(){var i=this.mind.induces,r=this.mind.wireFrames,a=this.mind.relateLinks;i.concat(r).forEach(s=>{var o=s.node,l=s.endNode;if(o){var c=o.getId(),u=this.mind.getNodeById(c);u!=o&&(s.node=u,s.rangeNode=[u,l],s.name=="wireFrame"?(u.wfs||(u.wfs=[]),u.wfs.indexOf(s)==-1&&u.wfs.push(s)):(u.induces||(u.induces=[]),u.induces.indexOf(s)==-1&&u.induces.push(s)))}if(l){var c=l.getId(),u=this.mind.getNodeById(c);u!=l&&(s.endNode=u,s.rangeNode=[s.node,u])}s.refreshNode(),s.refreshItems()}),a.forEach(s=>{var o=s.startNode,l=s.endNode;if(o){var c=o.getId(),u=this.mind.getNodeById(c);u!=o&&(s.startNode=u)}if(l){var c=l.getId(),u=this.mind.getNodeById(c);u!=l&&(s.endNode=u)}})}}class VZe extends jn{constructor(i,r){super("changeSummary");ie(this,"summary");ie(this,"stroke");ie(this,"oldStroke");this.summary=i,this.stroke=r,this.oldStroke=i.stroke}execute(){this.summary.setData({stroke:this.stroke,lineType:"solid"});var i=this.summary.node;this.refresh(i.mindmap,i)}undo(){this.summary.setData({stroke:this.oldStroke,lineType:"solid"});var i=this.summary.node;this.refresh(i.mindmap,i)}}class WZe extends jn{constructor(i,r,a){super("ChangeWireframe");ie(this,"wf");ie(this,"stroke");ie(this,"oldStroke");ie(this,"background");ie(this,"oldBackground");this.wf=i,this.stroke=r,this.oldStroke=i.stroke,this.background=a,this.oldBackground=i.fill}execute(){this.wf.fill=this.background,this.wf.stroke=this.stroke,this.wf.refresh();var i=this.wf.node;this.refresh(i.mindmap,i)}undo(){this.wf.fill=this.oldBackground,this.wf.stroke=this.oldStroke;var i=this.wf.node;this.refresh(i.mindmap,i)}}class QZe extends jn{constructor(i,r){super("changeLinkStroke");ie(this,"link");ie(this,"stroke");ie(this,"oldStroke");this.link=i,this.stroke=r,this.oldStroke=i.data.color}execute(){this.link.data.color=this.stroke,this.link.refresh(),this.refresh(this.link.mind,this.link.startNode)}undo(){this.link.data.color=this.oldStroke,this.link.refresh(),this.refresh(this.link.mind,this.link.startNode)}}class jZe extends jn{constructor(i,r){super("changeLinkType");ie(this,"link");ie(this,"type");ie(this,"oldType");this.link=i,this.type=r,this.oldType=i.data.type}execute(){this.link.data.type=this.type,this.link.bs&&(this.link.bs.remove(),this.link._createLine(),this.link._addLineEvent()),this.link.refresh(),this.refresh(this.link.mind,this.link.startNode)}undo(){this.link.data.type=this.oldType,this.link.bs&&(this.link.bs.remove(),this.link._createLine(),this.link._addLineEvent()),this.link.refresh(),this.refresh(this.link.mind,this.link.startNode)}}class YZe extends jn{constructor(i,r){super("note");ie(this,"node");ie(this,"note");ie(this,"oldNote");this.node=i,this.note=r,this.oldNote=i.data.note}execute(){this.node.setNote(this.note),this.node.refreshBox(),this.node.clearCacheData(),this.refresh(this.node.mindmap,this.node)}undo(){this.node.setNote(this.oldNote),this.node.refreshBox(),this.node.clearCacheData(),this.refresh(this.node.mindmap,this.node)}}class KZe extends jn{constructor(i){super("addFreeNode");ie(this,"node");this.node=i}execute(){this.node.mindmap.addFreeNode(this.node),this.refresh(this.node.mindmap,this.node)}undo(){this.node.mindmap.removeFreeNode(this.node),this.node.mindmap.removeNode(this.node),this.refresh(this.node.mindmap,this.node)}}class XZe extends jn{constructor(i,r,a){super("copyNode");ie(this,"node");ie(this,"data");ie(this,"waitCollapse",[]);ie(this,"firstNode");ie(this,"summary",[]);this.node=i,this.data=r,this.mind=this.node.mindmap,this.waitCollapse=[],this.summary=a}execute(){this.paste()}undo(){this.firstNode&&(this.mind.removeNode(this.firstNode),this.node.clearCacheData(),this.updateItems(this.node),this.refresh(this.node.mindmap,this.node))}paste(){var i=this;this.data.forEach((a,s)=>{var o=new qi(a,this.mind);if(o.mindmap=this.mind,a.isExpand||this.waitCollapse.push(o),s==0)o.data.pid=this.node.getId(),this.mind.addNode(o,this.node),this.firstNode=o,o.setPosition(0,0),o.refreshBox();else{var l=this.mind.getNodeById(a.pid);l&&(this.mind.addNode(o,l),o.setPosition(0,0),o.refreshBox())}s==this.data.length-1&&(o.clearCacheData(),this.updateItems(o),this.refresh(this.mind,o))});var r=null;this.summary.sort((a,s)=>a.index-s.index),this.summary.forEach(a=>{var s=a.range,o=this.mind.getNodeById(a.nodeId);console.log(o),r=o;var l=o.parent,c=[];if(s){var u=s.split(",");l.children.forEach((m,f)=>{f>=u[0]&&f<=u[1]&&c.push(m)});var d=c[c.length-1]}else{var d=o;c=[o]}var h=a.nodeArr;h.forEach((m,f)=>{if(f==0){var g=new qi(m,i.mind),v=new wm(o,g,a.stroke,a.lineType);v.endNode=d,v.rangeNode=c,v.refreshItems(),v.refreshNode(),v.type=a.type,i.mind.addInduce(v)}else{var g=new qi(m,i.mind),T=i.mind.getNodeById(m.pid);i.mind.contentEL.appendChild(g.containEl),T&&(T.children.push(g),g.setPosition(0,0),g.parent=T)}if(m.x&&m.y&&g.setPosition(m.x,m.y),m.boundingRect&&(g.boundingRect=m.boundingRect),g.refreshBox(),m.layout){var y=new Array(100).fill(c[0].stroke||c[0].data.stroke);g.layout=new Qi[m.layout.layoutName](o,m.layout.layoutDirect,y),g.layout.direct=m.layout.layoutDirect,g.layout.root=g}})}),r&&(r.clearCacheData(),this.updateItems(r),this.refresh(this.mind,r))}}class $Ze extends jn{constructor(i,r){super("setNodeStyle");ie(this,"nodes");ie(this,"oldStyles",{});ie(this,"newStyle");this.nodes=i,this.newStyle=r}execute(){var r;var i=[];this.nodes.forEach(a=>{var s=a.getStyle();this.oldStyles[a.getId()]=JSON.stringify(s);var o=Object.assign({},s,this.newStyle);a.setStyle(o),a.clearCacheData(),a.refreshBox();var l=a.getTopLayout();i.indexOf(l)==-1&&i.push(l),a.callout&&a.callout.refresh()}),i.length&&i.forEach(a=>{a&&a.refresh()}),this.nodes.length==1&&this.nodes[0].nodeType=="wireFrame"?this.refresh(this.nodes[0].mindmap,(r=this.nodes[0].wireFrame)==null?void 0:r.node):this.refresh(this.nodes[0].mindmap,this.nodes[0])}undo(){var i=[];this.nodes.forEach(r=>{var a=r.getId(),s=JSON.parse(this.oldStyles[a]);r.setStyle(s,!0),r.clearCacheData(),r.refreshBox();var o=r.getTopLayout();i.indexOf(o)==-1&&i.push(o),r.callout&&r.callout.refresh()}),i.length&&i.forEach(r=>{r&&r.refresh()}),this.refresh(this.nodes[0].mindmap,this.nodes[0])}}class ZZe extends jn{constructor(i,r){super("addCallout");ie(this,"node");ie(this,"callout");ie(this,"num");ie(this,"mind");this.node=i,this.callout=r,this.mind=i.getMind(),this.num=1}execute(){this.mind.addCallout(this.callout),this.num!=1&&(this.callout.init(),this.mind.contentEL.appendChild(this.callout.root.containEl)),this.callout.node.callout=this.callout,this.num++,this.updateItems(this.callout.node),this.node.clearCacheData(),this.refresh(this.mind,this.callout.node)}undo(){this.mind.removeCallout(this.callout),this.mind.contentEL.removeChild(this.callout.root.containEl),this.callout.off(),this.callout.remove(),this.node.callout=null,this.node.clearCacheData(),this.updateItems(this.node),this.refresh(this.mind,this.node)}}class JZe extends jn{constructor(i){super("RemoveCallout");ie(this,"callout");ie(this,"mind");this.callout=i,this.mind=i.node.getMind()}execute(){this.mind.contentEL.removeChild(this.callout.root.containEl),this.mind.removeCallout(this.callout),this.callout.node.clearCacheData(),this.callout.off(),this.callout.node.callout=null,this.updateItems(this.callout.node),this.refresh(this.mind,this.callout.node)}undo(){this.mind.addCallout(this.callout),this.mind.contentEL.appendChild(this.callout.root.containEl),this.callout.init(),this.callout.node.callout=this.callout,this.callout.node.clearCacheData(),this.updateItems(this.callout.node),this.refresh(this.mind,this.callout.node)}}class eJe extends jn{constructor(i){super("removeNodeLayout");ie(this,"node");ie(this,"layout");ie(this,"iNode");ie(this,"index");ie(this,"mind");this.node=i,this.mind=this.node.getMind(),this.layout=i.layout}execute(){if(this.layout){if(this.layout.layoutName!="table")this.layout.svgDom&&this.layout.svgDom.clear()&&this.layout.svgDom.remove()&&(this.layout.svgDom=null),this.layout.group&&this.layout.group.clear()&&this.layout.group.remove()&&(this.layout.group=null),this.node.getMind().traverseDF(a=>{a.boundingRect=null,a.direct=""},this.node),this.node.layout=null;else{var i=this.initNode(this.layout.getData(this.node)),r=this.node.parent;this.iNode=i,this.index=this.node.getMind().removeNode(this.node),this.node.getMind().addNode(i,r,this.index),this.mind.traverseBF(a=>{this.mind._addNodeDom(a),a.refreshBox()},i),this.mind.contentEL.removeChild(this.layout.tableDom),this.effect()}this.refresh(this.mind,i||this.node)}}undo(){this.layout&&(this.layout.layoutName!="table"?(this.node.layout=this.layout,this.node.getMind().traverseDF(i=>{i.boundingRect=null,i.direct=""},this.node)):(this.iNode&&this.mind.removeNode(this.iNode),this.mind.addNode(this.node,this.node.parent,this.index),this.mind.contentEL.contains(this.node.layout.tableDom)||this.mind.contentEL.appendChild(this.node.layout.tableDom),this.effect()),this.refresh(this.mind,this.node))}initNode(i,r){var a=this,s=null;function o(l,c,u){var d=new qi(l,a.mind);c?s=d:(u.children.push(d),d.parent=u),d.direct=r||l.direct||"",l.children&&l.children.length&&l.children.forEach(h=>{h.x=100,h.y=100,o(h,!1,d)})}return o(i,!0),s}effect(){var i=this.mind.induces,r=this.mind.wireFrames,a=this.mind.relateLinks;i.concat(r).forEach(s=>{var o=s.node,l=s.endNode;if(o){var c=o.getId(),u=this.mind.getNodeById(c);u!=o&&(s.node=u,s.rangeNode=[u,l],s.name=="wireFrame"?(u.wfs||(u.wfs=[]),u.wfs.indexOf(s)==-1&&u.wfs.push(s)):(u.induces||(u.induces=[]),u.induces.indexOf(s)==-1&&u.induces.push(s)))}if(l){var c=l.getId(),u=this.mind.getNodeById(c);u!=l&&(s.endNode=u,s.rangeNode=[s.node,u])}s.refreshNode(),s.refreshItems()}),a.forEach(s=>{var o=s.startNode,l=s.endNode;if(o){var c=o.getId(),u=this.mind.getNodeById(c);u!=o&&(s.startNode=u)}if(l){var c=l.getId(),u=this.mind.getNodeById(c);u!=l&&(s.endNode=u)}})}}class tJe extends jn{constructor(i,r){super("removeNodes");ie(this,"nodes");ie(this,"mind");ie(this,"realCmds",[]);this.nodes=i.sort((a,s)=>a.getLevel()-s.getLevel()),this.mind=r}execute(){this.nodes.forEach((i,r)=>{if(r==0){var a=new gA(i,i.mindmap);a.execute(),this.realCmds.push(a)}else{var s=i.getId(),o=this.mind.getNodeById(s);if(o){var a=new gA(o,o.mindmap);a.execute(),this.realCmds.push(a)}}})}undo(){this.realCmds.length&&this.realCmds.reverse().forEach(i=>{i.undo()})}}class jN extends jn{constructor(i,r){super("changeBoundaryName");ie(this,"wireFrame",null);ie(this,"text","");ie(this,"oldText","");this.wireFrame=i,this.oldText=this.wireFrame.getGroupName(),this.text=r}execute(){this.wireFrame.setGroupName(this.text),this.wireFrame.refreshBox(),this.refresh(this.wireFrame.node.mindmap,this.wireFrame.node)}undo(){this.wireFrame.setGroupName(this.oldText),this.wireFrame.refreshBox(),this.refresh(this.wireFrame.node.mindmap,this.wireFrame.node)}}class nJe extends jn{constructor(i,r){super("setTextCover");ie(this,"nodes",[]);ie(this,"flag",null);this.nodes=i,this.flag=r}execute(){this.nodes.forEach(i=>{i.setCoverText(this.flag)}),this.refresh(this.nodes[0].mindmap,this.nodes[0])}undo(){this.nodes.forEach(i=>{i.setCoverText(!this.flag)}),this.refresh(this.nodes[0].mindmap,this.nodes[0])}}class iJe{constructor(){ie(this,"history",new xZe(100))}execute(n,i){var g;switch(n){case"addChildNode":case"addSiblingNode":if(i){var d={id:yn(),text:i.text||kt("Sub title")},r=i.data;r&&(r.text&&(d.text=r.text),r.note&&(d.note=r.note));var a=i.parent;if(d.stroke=a.stroke,a.mindmap.isRead&&!r)return;if(a.belongInduce&&!a.layout){for(var s=a.direct,o=[],l=0;l<50;l++)o.push(a.belongInduce.node.stroke);s=="right"||s=="left"?a.layout=new Qi.mindmap1(a,s,o):a.layout=new Qi.tree(a,s,o)}if(a.isExpand||a.expand(),a.mindmap._mode=="table"||a.iNode)var m=i.node||new dd(d,a.mindmap);else var m=i.node||new qi(d,a.mindmap);if(i.hasOwnProperty("index"))var c=i.index;this.history.execute(new CZe(m,i.parent,a.mindmap,!!r,c))}break;case"deleteNodeAndChild":if(i){var m=i.node;if(m.mindmap.isRead)return;this.history.execute(new gA(m,m.mindmap))}break;case"deleteNodes":var u=i.nodes;this.history.execute(new tJe(u,u[0].mindmap));break;case"deleteNodeExcludeChild":break;case"changeNodeText":if(i){var m=i.node;if(m.mindmap.isRead)return;m.nodeType=="wireFrame"?this.history.execute(new jN(m.wireFrame,i.text)):this.history.execute(new SZe(i.node,i.oldText,i.text))}break;case"moveNode":i&&this.history.execute(new TZe(i));break;case"moveNodes":i&&this.history.execute(new kZe(i));break;case"movePosition":i&&this.history.execute(new DZe(i.node,i.oldPos,i.newPos));break;case"expandNode":i&&this.history.execute(new IZe(i.node));break;case"collapseNode":i&&this.history.execute(new NZe(i.node));break;case"addSummary":if(i){var m=i.node;if(m.mindmap.isRead)return;this.history.execute(new MZe(i.node,i.summary))}break;case"addWireFrame":if(i){var m=i.node;if(m.mindmap.isRead)return;this.history.execute(new LZe(i.wireFrame,i.node.mindmap))}break;case"changeRangeNode":this.history.execute(new RZe(i.item,i.oldRangeNode,i.newRangeNode));break;case"addRelateLink":this.history.execute(new PZe(i.link));break;case"changeRelateLink":this.history.execute(new BZe(i.link,i.oldBox,i.box));break;case"setAnnotate":this.history.execute(new FZe(i.node,i.annotate));break;case"deleteAnnotate":var m=i.node;if(m.mindmap.isRead)return;this.history.execute(new HZe(i.node));break;case"changeNodeToFreeRoot":var m=i.node;if(m.mindmap.isRead)return;this.history.execute(new zZe(i.node));break;case"changeFreeRootToNode":var m=i.node;if(m.mindmap.isRead)return;this.history.execute(new qZe(i.node,i.parent));break;case"deleteInduce":var m=i.summary.node;if(m.mindmap.isRead)return;this.history.execute(new UZe(i.summary));break;case"deleteWireFrame":var m=i.wireFrame.node;if(m.mindmap.isRead)return;this.history.execute(new OZe(i.wireFrame,i.wireFrame.node.mindmap));break;case"deleteRelateLink":var m=i.link.startNode;if(m.mindmap.isRead)return;this.history.execute(new GZe(i.link));break;case"changeLayout":var m=i.node,d=i.direct;if(d=="table"||d=="up"){var h=!0;m.mindmap.traverseBF(v=>{v!=m&&d=="table"?(v.callout&&(h=!1),v.layout&&(h=!1),v.wfs&&v.wfs.length&&(h=!1),v.induces&&v.induces.length&&(h=!1)):v!=m&&d=="up"&&v.layout&&(h=!1)},m),h?this.history.execute(new QN(i.node,i.direct)):(g=m.mindmap.view)==null||g.showChangelayoutMessage()}else this.history.execute(new QN(i.node,i.direct));break;case"changeSummary":this.history.execute(new VZe(i.summary,i.stroke));break;case"changeWireFrame":this.history.execute(new WZe(i.wireFrame,i.stroke,i.background));break;case"changeLinkStroke":this.history.execute(new QZe(i.link,i.stroke));break;case"changeLinkType":this.history.execute(new jZe(i.link,i.type));break;case"note":var m=i.node,f=i.note;m&&this.history.execute(new YZe(m,f));break;case"addFreeNode":this.history.execute(new KZe(i.node));break;case"pasteNode":this.history.execute(new XZe(i.node,i.data,i.summary));break;case"setNodeStyle":this.history.execute(new $Ze(i.nodes,i.style));break;case"addCallout":this.history.execute(new ZZe(i.node,i.callout));break;case"removeCallout":this.history.execute(new JZe(i.callout));break;case"removeNodeLayout":this.history.execute(new eJe(i.node));break;case"changeWireFrameName":this.history.execute(new jN(i.wireFrame,i.text));break;case"setTextCover":this.history.execute(new nJe(i.nodes,i.flag));break}}undo(){this.history.undo()}redo(){this.history.redo()}}class y_{constructor(n,i="rgba(213,233,252,.1)",r="rgb(42,122,194)",a={text:"",nodeType:"wireFrame"}){this.node=n,this.endNode=n,this.node.clearCacheData(),this.stroke=r,this.fill=i,this.lineDash=[6,2],this.data=a,this.status="",this.shapeType="rect",this.lineWidth=1,this.radius=10,this.node.wireFrame=this,this.mind=this.node.getMind(),this.name="wireFrame",this.isHide=!1,this.rangeNode=[],this.refreshNode(),this.refreshItems(),this.init()}init(){this.direct=this.node.direct,this.beforeCreate(),this.create()}setEndNode(n){this.endNode=n,this.refreshNode(),this.refresh()}refreshNode(){var n=this.node.getShowNodeList();this.endNode&&this.endNode!=this.node&&(n=n.concat(this.endNode.getShowNodeList()));var i=this.node.getMind().getBoundingRect(n);this.topNode=i.topNode,this.bottomNode=i.bottomNode,this.leftNode=i.leftNode,this.rightNode=i.rightNode,this.node.refreshCBox(),this.endNode&&this.endNode.refreshCBox()}beforeCreate(){if(this.group||(this.group=this.mind.wireFrameGroup.group()),this.data.text){if(!this.t)if(this._t)this.t=this._t,this._t=null;else{var n=this.data.nodeData||{id:yn(),text:this.data.text,nodeType:"wireFrame",style:{"padding-left":6,"padding-right":6,"padding-bottom":4,"padding-top":4,"background-color":"rgb(16, 151, 232)",color:"#333",fontSize:12}};this.t=new qi(n,this.mind),this.t.wireFrame=this,this.t.containEl.setAttribute("draggable",!1),this.t.nodeType="wireFrame"}this.t.containEl.classList.contains("node-wireFrame")||this.t.containEl.classList.add("node-wireFrame"),this.mind.contentEL.contains(this.t.containEl)||this.mind.contentEL.appendChild(this.t.containEl),this.t.refreshBox(),this.t.mindmap=this.mind}else this.t&&(this.mind.contentEL.removeChild(this.t.containEl),this._t=this.t,this.t=null);this.rect||(this.shapeType=="rect"?this.rect=this.group.rect().fill(this.fill).stroke(`color:${this.stroke},width:${this.lineWidth},dasharray:${this.lineDash}`).radius(this.radius):this.rect=this.group.polygon().stroke(`color:${this.stroke},width:${this.lineWidth||2},dasharray:${this.lineDash}`)),this.rect.off("click").on("click",i=>{i.preventDefault(),i.stopPropagation(),this.node.getMind().emit("showWireFrame",{wf:this})})}getTextBox(){return this.data.text?this.t.getDomBox():{x:0,y:0,width:0,height:0}}move(r,a){var r=parseInt(r),a=parseInt(a),s=this.position.slice();if(this.setPosition(s[0]+r,s[1]+a),this.t){var o=this.t.getPosition();this.t.setPosition(o.x+r,o.y+a)}this.refreshBox()}refreshItems(){var n=this,i=[],r=[],a=[];if(this.rangeNode&&this.rangeNode.length)this.rangeNode.forEach(g=>{a=a.concat(g.getShowNodeList())}),this.node.isHide&&this.endNode.isHide&&this.hide();else{this.rangeNode=[];var s=this.node.parent;if(s){var o=s.children.indexOf(this.node),l=s.children.indexOf(this.endNode);s.children.forEach((g,v)=>{v>=o&&v<=l&&(n.rangeNode.push(g),a=a.concat(g.getShowNodeList()))}),n.rangeNode=Fs(n.rangeNode)}else n.rangeNode=[this.node],a=a.concat(this.node.getShowNodeList())}a.forEach(g=>{r.push(g),g.containBar=!1,g.isExpand||(g.containBar=!0),g.layout&&g.layout.isShow&&g.layout.group&&i.push(g.layout),g.callout&&g.callout.isShow&&r.push(g.callout),g.layout&&g.layout.isShow&&g.layout.group&&i.push(g.layout),g.wireFrames.length&&g.wireFrames.forEach(v=>{v.isHide||r.push(v)}),g.summaries.length&&g.summaries.forEach(v=>{v.isShow()&&(r=r.concat(v.getAllItem()))})});var c=this.node.mindmap.wireFrames,u=[];c.forEach(g=>{g&&g!=this&&g.node.parent==this.node.parent&&u.push(g)});var d=[],h=this.node.parent;if(h){var m=h.children.indexOf(this.node);if(this.endNode)var f=h.children.indexOf(this.endNode);else var f=m;Fs(u).forEach(g=>{if(g){var v=h.children.indexOf(g.node);if(g.endNode)var T=h.children.indexOf(g.endNode);else var T=v;if(v==m&&T==f)return;v>=m&&T<=f&&d.push(g)}})}this.items=Fs(r.concat(d)),this._wfs=d,this.groups=Fs(i)}create(){if(this.group){if(this.node.isShow()&&this.endNode.isShow()&&!this.isShow)this.show();else{this.hide();return}var n=this.items,i=this.groups,r=this.mind.getBoundingRect(n);if(i.length&&i.forEach(T=>{if(T.layoutName=="fish"&&(T.direct=="right"?T.creatBone():T.creatBone1(),T.fishTail)){var y=T.fishTail.bbox();y.xr.right&&(r.right=y.x+y.width),y.y+y.height>r.bottom&&(r.bottom=y.y+y.height),r.width=r.right-r.x,r.height=r.bottom-r.y}}),!!r){var a=parseInt(r.width+12),s=parseInt(r.height+12);if(this.shapeType=="rect")this.rect.attr({width:a,height:s,fill:this.fill,cursor:"pointer"}).stroke({color:this.stroke,width:this.lineWidth,dasharray:this.lineDash}).radius(this.radius).move(0,0);else{var o=this.node.getBox(),l=this.node.getPosition(),c=[0,Math.abs(l.y-r.y-6)],u=[0,Math.abs(r.y-l.y-o.height-6)],d=[o.width,0],h=[o.width,r.height+12],m=[r.width+12,0],f=[r.width+12,r.height+12];this.rect.plot([c,d,m,f,h,u]).attr({fill:this.fill,stroke:this.stroke,dasharray:this.lineDash,cursor:"pointer"}).move(0,0)}this.position=[];var g=0;if(this.lineWidth%2==1&&(g=.5),this.setPosition(parseInt(r.x-6)+g,parseInt(r.y-6)+g),this.t)if(this.shapeType=="rect"){this.t.isShow()||this.t.show();var v=this.t.getDomBox();this.textBox=v,this.t.setPosition(r.x,r.y-v.height-5-this.lineWidth),this.t.containEl.style.maxWidth=`${r.width-30}px`}else this.t.isShow()&&this.t.hide();this.refreshBox()}}}refresh(){this.init()}setPosition(n,i){this.group&&(n||i)&&(this.position=[n,i],this.group.attr({transform:`translate(${n},${i})`}))}getPosition(){return{x:this.position.slice()[0],y:this.position.slice()[1]}}show(){this.group.show(),this.t&&this.t.show(),this.isHide=!1}hide(){this.group.hide(),this.t&&this.t.hide(),this.isHide=!0}remove(){this.group&&this.group.clear()&&this.group.remove(),this.rect&&this.rect.remove(),this.t&&this.mind.contentEL.removeChild(this.t.containEl),this.rect=null,this.t=null,this.group=null}off(){this.rect.off()}active(){this.status="active",this.rect.setStyle("stroke","orange")}unactive(){this.status="unactive",this.rect.setStyle("stroke",this.stroke)}isactive(){return this.status=="active"}getData(){var n=this.node.parent,i=0,r=0;n&&(i=n.children.indexOf(this.node),r=n.children.indexOf(this.endNode));var a={stroke:this.stroke,fill:this.fill,lineDash:this.lineDash.slice(),data:{...this.data},radius:this.radius,lineWidth:this.lineWidth,nodeId:this.node.getId(),endNodeId:this.endNode.getId(),range:`${i},${r}`};if(this.t){var s=this.t.getData();a.nodeData=s,a.text=s.text}return a}setData(n){this.stroke=n.stroke,this.fill=n.fill,this.lineDash=n.lineDash,this.data=n.data,this.lineWidth=n.lineWidth,this.radius=n.radius,this.refresh()}setGroupName(n){this.data.text=n,this.t&&n&&this.t.setText(n),this.refresh()}getGroupName(){return this.t&&this.t.getData().text||""}refreshBox(){var n=this.rect.bbox();this.box={...n,x:this.position[0],y:this.position[1]}}getBox(){return this.box}getBBox(){if(this.t){var n={...this.getBox()},i=this.t.getDomBox(),r=this.t.getPosition();n.y=r.y,n.height=n.height+i.height}else var n=this.getBox();return n}}const Mc=function(e,n){return[e[0]+n[0],e[1]+n[1]]},Eh=function(e,n){return[e[0]*n,e[1]*n]},rJe=function(e,n){return[n[0]-e[0],n[1]-e[1]]},YN=function(e,n){return e[0]*n[1]-e[1]*n[0]===0},__=function(e,n){return e[0]*n[0]+e[1]*n[1]},aJe=function(e){var n=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/n,e[1]/n]};function sJe({entryPoint:e=[0,0],entryDirection:n=[0,1],entryExt:i=10,exitPoint:r=[10,10],exitDirection:a=[1,0],exitExt:s=10},o=.5){if(a===null||a.join()=="0,0"){let I=rJe(r,e);Math.abs(I[0])>Math.abs(I[1])?a=[I[0]/Math.abs(I[0]),0]:a=[0,I[1]/Math.abs(I[1])]}let l=Mc(e,Eh(n,i)),c=Mc(r,Eh(a,s));a=Eh(a,-1);let u=[c[0]-l[0],0],d=[0,c[1]-l[1]],h=[u,d],m,f=h.find(I=>YN(I,n));__(f,n)>0?m=f:m=E_(h,f);let g,v=h.find(I=>YN(I,a));__(v,a)>0?g=v:g=E_(h,v);let T=__(m,g)>0?2:1,y=E_(h,g),C=[];if(C.push({position:e,direction:null},{position:l,direction:n}),T==1){let I=Mc(l,m),M=Ah(m),R=Mc(I,g),B=Ah(g);C.push({position:I,direction:M},{position:R,direction:B})}else{let I=Mc(l,Eh(m,o)),M=Ah(m),R=Mc(I,y),B=Ah(y),A=Mc(R,Eh(g,1-o)),W=Ah(g);C.push({position:I,direction:M},{position:R,direction:B,type:"pathMiddleP"},{position:A,direction:W})}return C.push({position:r,direction:a}),C.filter(I=>I.direction!==!1)}function E_(e,n){return e.find(i=>i!=n)}function Ah(e){return e[0]==0&&e[1]==0?!1:e[0]==0?[0,e[1]/Math.abs(e[1])]:e[1]==0?[e[0]/Math.abs(e[0]),0]:aJe(e)}function oJe(e){var n=lJe(e),i=cJe(e,n);return i}function lJe(e){for(var n=0,i=0;i{l.push(h.position)}),this.data.width%2==1?l.forEach(h=>{h[0]=parseInt(h[0])+.5,h[1]=parseInt(h[1])+.5}):l.forEach(h=>{h[0]=parseInt(h[0]),h[1]=parseInt(h[1])});var c=oJe(l),r=this.textNode.getDomBox();this.textNode.setPosition(c[0]-r.width/2,c[1]-r.height/2),this.bs.plot(l)}this.bs.stroke({color:this.data.color,width:this.data.width,dasharray:this.data.dashArray,linecap:"round",linejoin:"round"}).fill("none"),this.createMarker(),this.bs.attr("cursor","pointer"),this.corl1.style.left=this.box.cpx1-5+"px",this.corl1.style.top=this.box.cpy1-5+"px",this.corl2.style.left=this.box.cpx2-5+"px",this.corl2.style.top=this.box.cpy2-5+"px",this.line1.plot(this.box.x,this.box.y,this.box.cpx1,this.box.cpy1),this.line2.plot(this.box.x1,this.box.y1,this.box.cpx2,this.box.cpy2)}select(){this.isSelect=!0}unSelect(){this.isSelect=!1}calcPos(n,i){return i.x<=n.x&&i.y<=n.y?"lefttop":i.x<=n.x&&i.y>n.y?"leftbottom":i.x>n.x&&i.y<=n.y?"righttop":"rightbotom"}move(n,i){this.box.x1=n,this.box.y1=i,this.calcPoint(),this.refresh()}setEndNode(n){this.endNode=n,this.calcLimit(),this.calcDirect()}setStartPoint(n,i){if(n&&i)this.box.x=n,this.box.y=i;else{var r=this.startNode.getBox();this.box.x=r.x+r.width/2,this.box.y=r.y+r.height/2}}setEndPoint(n,i){this.box.x1=n,this.box.y1=i}setBox(n){this.box=n,this.refresh()}getData(){this.data.nodeData=this.textNode.getData();var n={startNodeId:this.startNode.getId(),endNodeId:this.endNode.getId(),...this.data,box:{...this.box}};return n.entryDirection=this.entryDirection,n.exitDirection=this.exitDirection,n.box&&n.box.data&&delete n.box.data,n}_mouseDown(n){n.preventDefault(),n.stopPropagation(),this.func1&&(this.mind.isMobile?document.removeEventListener("touchmove",this.func1,!1):document.removeEventListener("mousemove",this.func1)),this.func2&&(this.mind.isMobile?document.removeEventListener("touchend",this.func2):document.removeEventListener("mouseup",this.func2)),this.mind=this.startNode.getMind(),this.mind.isMobile?(this.sx=n.touches[0].pageX,this.sy=n.touches[0].pageY,this.pageX=n.touches[0].pageX,this.pageY=n.touches[0].pageY):(this.sx=n.pageX,this.sy=n.pageY,this.pageX=n.pageX,this.pageY=n.pageY),this.dx=0,this.dy=0,this.drag=!0,this.status="changeRelate",this.target=n.target,this.oldBox=JSON.parse(JSON.stringify({...this.box}));var i=JSON.parse(JSON.stringify(this.data));this.oldBox.data=i,this.func1=this._mouseMove.bind(this),this.func2=this._mouseUp.bind(this),this.mind.isMobile?(document.addEventListener("touchmove",this.func1,!1),document.addEventListener("touchend",this.func2)):(document.addEventListener("mousemove",this.func1),document.addEventListener("mouseup",this.func2))}_mouseUp(){this.drag=!1,this.sx=0,this.sy=0,this.dx=0,this.dy=0,this.mind=this.startNode.getMind();var n=JSON.parse(JSON.stringify({...this.box})),i=JSON.parse(JSON.stringify(this.data));n.data=i,this.mind.execute("changeRelateLink",{link:this,oldBox:this.oldBox,box:n,type:"changeRelateLinkBox"}),this.target=null,this.mind.isMobile?(document.removeEventListener("touchmove",this.func1,!1),document.removeEventListener("touchend",this.func2)):(document.removeEventListener("mousemove",this.func1),document.removeEventListener("mouseup",this.func2))}_mouseMove(n){if(this.status=="addRelate")this.mind.isMobile||this.move(n.offsetX-8,n.offsetY);else{if(!this.drag)return;if(this.target){if(n.preventDefault(),n.stopPropagation(),this.mind.isMobile)var i=n.touches[0].pageX,r=n.touches[0].pageY;else var i=n.pageX,r=n.pageY;var a=i-this.pageX,s=r-this.pageY;this.dx=i-this.sx,this.dy=r-this.sy,this.pageX=i,this.pageY=r;var o=this.target.getAttribute("direct");if(this.calcLimit(),o=="start"){this.box.cpx1=this.oldBox.cpx1+this.dx,this.box.cpy1=this.oldBox.cpy1+this.dy;var l=this.calcStroke({x:this.box.x,y:this.box.y},this.startBox);if(this.startBox.width>400)var c=1.2;else if(this.startBox.width>200)var c=1.5;else var c=2;switch(l){case"left":this.entryDirection=[-1,0],this.box.y>=this.startLimit.y&&this.box.y<=this.startLimit.y1?this.box.y+=s/c:(this.box.ythis.startLimit.y1&&(this.box.y=this.startLimit.y1));break;case"right":this.entryDirection=[1,0],this.box.y>=this.startLimit.y&&this.box.y<=this.startLimit.y1?this.box.y+=s/c:(this.box.ythis.startLimit.y1&&(this.box.y=this.startLimit.y1));break;case"top":this.entryDirection=[0,-1],this.box.x>=this.startLimit.x&&this.box.x<=this.startLimit.x1?this.box.x+=a/c:(this.box.xthis.startLimit.x1&&(this.box.x=this.startLimit.x1));break;case"bottom":this.entryDirection=[0,1],this.box.x>=this.startLimit.x&&this.box.x<=this.startLimit.x1?this.box.x+=a/c:(this.box.xthis.startLimit.x1&&(this.box.x=this.startLimit.x1));break;default:this.box.x>=this.startLimit.x&&this.box.x<=this.startLimit.x1?this.box.x+=a/c:(this.box.xthis.startLimit.x1&&(this.box.x=this.startLimit.x1)),this.box.y>=this.startLimit.y&&this.box.y<=this.startLimit.y1?this.box.y+=s/c:(this.box.ythis.startLimit.y1&&(this.box.y=this.startLimit.y1))}}else{this.box.cpx2=this.oldBox.cpx2+this.dx,this.box.cpy2=this.oldBox.cpy2+this.dy;var l=this.calcStroke({x:this.box.x1,y:this.box.y1},this.endBox);switch(l){case"left":this.exitDirection=[-1,0],this.box.y1>=this.endLimit.y&&this.box.y1<=this.endLimit.y1?this.box.y1+=s/3:(this.box.y1this.endLimit.y1&&(this.box.y1=this.endLimit.y1));break;case"right":this.exitDirection=[1,0],this.box.y1>=this.endLimit.y&&this.box.y1<=this.endLimit.y1?this.box.y1+=s/3:(this.box.y1this.endLimit.y1&&(this.box.y1=this.endLimit.y1));break;case"top":this.exitDirection=[0,-1],this.box.x1>=this.endLimit.x&&this.box.x1<=this.endLimit.x1?this.box.x1+=a/3:(this.box.x1this.endLimit.x1&&(this.box.x1=this.endLimit.x1));break;case"bottom":this.exitDirection=[0,1],this.box.x1>=this.endLimit.x&&this.box.x1<=this.endLimit.x1?this.box.x1+=a/3:(this.box.x1this.endLimit.x1&&(this.box.x1=this.endLimit.x1));break;default:this.box.x1>=this.endLimit.x&&this.box.x1<=this.endLimit.x1?this.box.x1+=a/3:(this.box.x1this.endLimit.x1&&(this.box.x1=this.endLimit.x1)),this.box.y1>=this.endLimit.y&&this.box.y1<=this.endLimit.y1?this.box.y1+=s/3:(this.box.y1this.endLimit.y1&&(this.box.y1=this.endLimit.y1))}}this.clacDD(),this.refresh()}}}_clickFn(n){n.preventDefault(),n.stopPropagation()}_addEvent(){this.drawFunc1=this._mouseMove.bind(this),this.drawFunc2=this._mouseUp.bind(this),this.mind.isMobile?this.mind.draw.on("touchend",this.drawFunc2):(this.mind.draw.on("mousemove",this.drawFunc1),this.mind.draw.on("mouseup",this.drawFunc2)),this._addLineEvent()}_addLineEvent(){this.bs.off("click"),this.bs.off("dblclick");var n=this;this.bs.dblclick(()=>{this.textNode.data.text||this.textNode.data.isImageNode||(this.data.nodeHide=!1,this.startNode.mindmap.clearSelectNode(),this.startNode.mindmap.updateRelateLink(),this.textNode.edit())}),this.bs.click(i=>{i.preventDefault(),i.stopPropagation();var r=i.offsetX,a=i.offsetY;n.active(),n.mind._changeAssistItem=n,n.mind.emit("showRelateLink",{x:r,y:a,relateLink:n})})}addEvent(){this.func=this._mouseDown.bind(this),this.clickFn=this._clickFn.bind(this),this.mind.isMobile?(this.corl1.addEventListener("touchstart",this.func),this.corl2.addEventListener("touchstart",this.func)):(this.corl1.addEventListener("mousedown",this.func),this.corl2.addEventListener("mousedown",this.func)),this.corl1.addEventListener("click",this.clickFn),this.corl2.addEventListener("click",this.clickFn)}}class KN{constructor(n,i={id:yn(),text:"callout",nodeType:"callout",style:{"background-color":"#f06",color:"#fff","font-size":"12px"}}){this.node=n,this.data=i,i.style?this.color=i.style["background-color"]||"#f06":this.color="#f06",this.root=new qi(i,this.node.getMind()),this.root.nodeType="callout",this.group=this.node.getMind().calloutGroup,this.node.getMind().contentEL.appendChild(this.root.containEl),this.root.mind=this.node.getMind(),this.root.refreshBox(),this.node.clearCacheData(),this.node.callout=this,this.root.callout=this,this.direct=this.data.direct||"top",this.name="callout",this.init()}init(){this.calcLimit(),this.create(),this.initEvent()}off(){za?this.root.containEl.removeEventListener("mousedown",this._mouseDown):tp&&this.root.containEl.removeEventListener("touchstart",this._mouseDown)}remove(){this.polygon&&this.polygon.remove(),this.polygon=null}move(n,i){this.point={x:this.point.x+n,y:this.point.y+i},this.root.move(n,i),this.refresh()}calcLimit(){var n=this.node.getBox();this.limit={x:n.x,y:n.y,width:n.width,height:n.height,cx:n.x+n.width/2,cy:n.y+n.height/2,x1:n.x+n.width,y1:n.y+n.height}}beforeCreate(){!this.polygon&&(this.polygon=this.group.polygon().fill(this.color)),this.root.containEl.setAttribute("draggable",!1),this.root.containEl.classList.add("mm-node-callout")}create(){if(this.beforeCreate(),this.data.x&&this.data.y)this.root.setPosition(this.data.x,this.data.y),this.data.box&&(this.box=this.data.box);else{var n=this.root.getBox();this.root.setPosition(this.limit.x+this.limit.width/2-n.width/2,this.limit.y-n.height-10)}if(this.data.point?this.point=this.data.point:this.point={x:this.limit.cx,y:this.limit.y},!this.box){var i=this.root.getPosition();this.box={dx:(i.x-this.limit.x)/this.limit.width,dy:(i.y-this.limit.y)/this.limit.height,px:(this.point.x-this.limit.x)/this.limit.width,py:(this.point.y-this.limit.y)/this.limit.height}}this.refresh(!0)}refresh(n){if(this.polygon){if(this.node.isShow())this.show();else{this.hide();return}this.calcLimit(),n||(this.point.x=this.box.px*this.limit.width+this.limit.x,this.point.y=this.box.py*this.limit.height+this.limit.y,this.root.setPosition(this.box.dx*this.limit.width+this.limit.x,this.box.dy*this.limit.height+this.limit.y));var i=this.root.getBox(),r={cx:i.x+i.width/2,cy:i.y+i.height/2};(this.point.x||this.point.y)&&(this.direct=="top"||this.direct=="bottom"?this.polygon.plot(`${this.point.x},${this.point.y} ${r.cx-8},${r.cy} ${r.cx+8},${r.cy}`).fill(this.color):this.polygon.plot(`${this.point.x},${this.point.y} ${r.cx},${r.cy-8} ${r.cx},${r.cy+8}`).fill(this.color))}}hide(){this.isShow=!1,this.root.hide(),this.polygon.hide()}show(){this.isShow=!0,this.root.show(),this.polygon.show()}getData(){var n=this.root.getData();return n.point=this.point,n.box=this.box,{nodeId:this.node.getId(),rootData:n,color:this.color,direct:this.direct}}setData(n){this.color=n.color}getBox(){var n=this.polygon.bbox(),i=this.root.getBox(),r=Math.min(n.x,i.x),a=Math.min(n.y,i.y),s=Math.max(n.x2,i.x+i.width),o=Math.max(n.y2,i.y+i.height);return{x:r,y:a,x1:s,y1:o,width:s-r,height:o-a}}initEvent(){var n=!1,i,r,a,s,o,l,c;function u(m){if(!this.root.isEdit){n=!0,za?(i=m.pageX,r=m.pageY,this.px=m.pageX,this.py=m.pageY):(i=m.touches[0].pageX,r=m.touches[0].pageY,this.px=i,this.py=r),c=this.root.getPosition();var f={...this.box};c.direct=this.direct,c.box=f,za?(document.addEventListener("mousemove",this._mouseMove),document.addEventListener("mouseup",this._mouseUp)):(document.addEventListener("touchmove",this._mouseMove,{passive:!1}),document.addEventListener("touchend",this._mouseUp))}}this._mouseDown=u.bind(this),za?this.root.containEl.addEventListener("mousedown",this._mouseDown):this.root.containEl.addEventListener("touchstart",this._mouseDown);function d(m){n&&(m.touches?(m.preventDefault(),o=m.touches[0].pageX-this.px,l=m.touches[0].pageY-this.py,a=m.touches[0].pageX-i,s=m.touches[0].pageY-r):(o=m.pageX-this.px,l=m.pageY-this.py,a=m.pageX-i,s=m.pageY-r),this.point.x<=this.limit.x||this.point.x>=this.limit.x1?this.point.y+=l/4:this.point.x+=o/4,this.point.y<=this.limit.y||this.point.y>=this.limit.y1?this.point.x+=o/4:this.point.y+=l/4,this.point.x<=this.limit.x&&(this.point.x=this.limit.x,this.direct="left"),this.point.x>=this.limit.x1&&(this.point.x=this.limit.x1,this.direct="right"),this.point.y<=this.limit.y&&(this.point.y=this.limit.y,this.direct="top"),this.point.y>=this.limit.y1&&(this.point.y=this.limit.y1,this.direct="bottom"),this.root.setPosition(c.x+a,c.y+s),this.box={dx:(c.x+a-this.limit.x)/this.limit.width,dy:(c.y+s-this.limit.y)/this.limit.height,px:(this.point.x-this.limit.x)/this.limit.width,py:(this.point.y-this.limit.y)/this.limit.height},this.refresh(!0),m.touches?(this.px=m.touches[0].pageX,this.py=m.touches[0].pageY):(this.px=m.pageX,this.py=m.pageY))}this._mouseMove=d.bind(this);function h(m){n=!1,this.node.clearCacheData(),this.refresh(),this.node.refreshCBox();var f=this.root.getPosition();f.box={...this.box},f.direct=this.direct,this.node.getMind().execute("movePosition",{node:this.root,oldPos:c,newPos:f}),za?(document.removeEventListener("mousemove",this._mouseMove),document.removeEventListener("mouseup",this._mouseUp)):(document.removeEventListener("touchmove",this._mouseMove,{passive:!1}),document.removeEventListener("touchend",this._mouseUp))}this._mouseUp=h.bind(this)}}function al(e){return Array.isArray?Array.isArray(e):QL(e)==="[object Array]"}const uJe=1/0;function dJe(e){if(typeof e=="string")return e;let n=e+"";return n=="0"&&1/e==-uJe?"-0":n}function hJe(e){return e==null?"":dJe(e)}function uo(e){return typeof e=="string"}function VL(e){return typeof e=="number"}function fJe(e){return e===!0||e===!1||pJe(e)&&QL(e)=="[object Boolean]"}function WL(e){return typeof e=="object"}function pJe(e){return WL(e)&&e!==null}function Ha(e){return e!=null}function A_(e){return!e.trim().length}function QL(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const mJe="Incorrect 'index' type",gJe=e=>`Invalid value for key ${e}`,vJe=e=>`Pattern length exceeds max of ${e}.`,bJe=e=>`Missing ${e} property in key`,yJe=e=>`Property 'weight' in key '${e}' must be a positive integer`,XN=Object.prototype.hasOwnProperty;class _Je{constructor(n){this._keys=[],this._keyMap={};let i=0;n.forEach(r=>{let a=jL(r);i+=a.weight,this._keys.push(a),this._keyMap[a.id]=a,i+=a.weight}),this._keys.forEach(r=>{r.weight/=i})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function jL(e){let n=null,i=null,r=null,a=1,s=null;if(uo(e)||al(e))r=e,n=$N(e),i=vA(e);else{if(!XN.call(e,"name"))throw new Error(bJe("name"));const o=e.name;if(r=o,XN.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(yJe(o));n=$N(o),i=vA(o),s=e.getFn}return{path:n,id:i,weight:a,src:r,getFn:s}}function $N(e){return al(e)?e:e.split(".")}function vA(e){return al(e)?e.join("."):e}function EJe(e,n){let i=[],r=!1;const a=(s,o,l)=>{if(Ha(s))if(!o[l])i.push(s);else{let c=o[l];const u=s[c];if(!Ha(u))return;if(l===o.length-1&&(uo(u)||VL(u)||fJe(u)))i.push(hJe(u));else if(al(u)){r=!0;for(let d=0,h=u.length;de.score===n.score?e.idx{this._keysMap[i.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,uo(this.docs[0])?this.docs.forEach((n,i)=>{this._addString(n,i)}):this.docs.forEach((n,i)=>{this._addObject(n,i)}),this.norm.clear())}add(n){const i=this.size();uo(n)?this._addString(n,i):this._addObject(n,i)}removeAt(n){this.records.splice(n,1);for(let i=n,r=this.size();i{let o=a.getFn?a.getFn(n):this.getFn(n,a.path);if(Ha(o)){if(al(o)){let l=[];const c=[{nestedArrIndex:-1,value:o}];for(;c.length;){const{nestedArrIndex:u,value:d}=c.pop();if(Ha(d))if(uo(d)&&!A_(d)){let h={v:d,i:u,n:this.norm.get(d)};l.push(h)}else al(d)&&d.forEach((h,m)=>{c.push({nestedArrIndex:m,value:h})})}r.$[s]=l}else if(uo(o)&&!A_(o)){let l={v:o,n:this.norm.get(o)};r.$[s]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function YL(e,n,{getFn:i=Nn.getFn,fieldNormWeight:r=Nn.fieldNormWeight}={}){const a=new Fx({getFn:i,fieldNormWeight:r});return a.setKeys(e.map(jL)),a.setSources(n),a.create(),a}function kJe(e,{getFn:n=Nn.getFn,fieldNormWeight:i=Nn.fieldNormWeight}={}){const{keys:r,records:a}=e,s=new Fx({getFn:n,fieldNormWeight:i});return s.setKeys(r),s.setIndexRecords(a),s}function Vp(e,{errors:n=0,currentLocation:i=0,expectedLocation:r=0,distance:a=Nn.distance,ignoreLocation:s=Nn.ignoreLocation}={}){const o=n/e.length;if(s)return o;const l=Math.abs(r-i);return a?o+l/a:l?1:o}function DJe(e=[],n=Nn.minMatchCharLength){let i=[],r=-1,a=-1,s=0;for(let o=e.length;s=n&&i.push([r,a]),r=-1)}return e[s-1]&&s-r>=n&&i.push([r,s-1]),i}const Hc=32;function NJe(e,n,i,{location:r=Nn.location,distance:a=Nn.distance,threshold:s=Nn.threshold,findAllMatches:o=Nn.findAllMatches,minMatchCharLength:l=Nn.minMatchCharLength,includeMatches:c=Nn.includeMatches,ignoreLocation:u=Nn.ignoreLocation}={}){if(n.length>Hc)throw new Error(vJe(Hc));const d=n.length,h=e.length,m=Math.max(0,Math.min(r,h));let f=s,g=m;const v=l>1||c,T=v?Array(h):[];let y;for(;(y=e.indexOf(n,g))>-1;){let A=Vp(n,{currentLocation:y,expectedLocation:m,distance:a,ignoreLocation:u});if(f=Math.min(A,f),g=y+d,v){let W=0;for(;W=ee;q-=1){let p=q-1,N=i[e.charAt(p)];if(v&&(T[p]=+!!N),Y[q]=(Y[q+1]<<1|1)&N,A&&(Y[q]|=(C[q+1]|C[q])<<1|1|C[q+1]),Y[q]&R&&(I=Vp(n,{errors:A,currentLocation:p,expectedLocation:m,distance:a,ignoreLocation:u}),I<=f)){if(f=I,g=p,g<=m)break;ee=Math.max(1,2*m-g)}}if(Vp(n,{errors:A+1,currentLocation:m,expectedLocation:m,distance:a,ignoreLocation:u})>f)break;C=Y}const B={isMatch:g>=0,score:Math.max(.001,I)};if(v){const A=DJe(T,l);A.length?c&&(B.indices=A):B.isMatch=!1}return B}function IJe(e){let n={};for(let i=0,r=e.length;i{this.chunks.push({pattern:m,alphabet:IJe(m),startIndex:f})},h=this.pattern.length;if(h>Hc){let m=0;const f=h%Hc,g=h-f;for(;m{const{isMatch:y,score:C,indices:I}=NJe(n,g,v,{location:a+T,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,includeMatches:r,ignoreLocation:u});y&&(m=!0),h+=C,y&&I&&(d=[...d,...I])});let f={isMatch:m,score:m?h/this.chunks.length:1};return m&&r&&(f.indices=d),f}}class uc{constructor(n){this.pattern=n}static isMultiMatch(n){return ZN(n,this.multiRegex)}static isSingleMatch(n){return ZN(n,this.singleRegex)}search(){}}function ZN(e,n){const i=e.match(n);return i?i[1]:null}class MJe extends uc{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){const i=n===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}}class LJe extends uc{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){const r=n.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class OJe extends uc{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){const i=n.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}}class RJe extends uc{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){const i=!n.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,n.length-1]}}}class PJe extends uc{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){const i=n.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}class BJe extends uc{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){const i=!n.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,n.length-1]}}}class XL extends uc{constructor(n,{location:i=Nn.location,threshold:r=Nn.threshold,distance:a=Nn.distance,includeMatches:s=Nn.includeMatches,findAllMatches:o=Nn.findAllMatches,minMatchCharLength:l=Nn.minMatchCharLength,isCaseSensitive:c=Nn.isCaseSensitive,ignoreLocation:u=Nn.ignoreLocation}={}){super(n),this._bitapSearch=new KL(n,{location:i,threshold:r,distance:a,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}}class $L extends uc{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let i=0,r;const a=[],s=this.pattern.length;for(;(r=n.indexOf(this.pattern,i))>-1;)i=r+s,a.push([r,i-1]);const o=!!a.length;return{isMatch:o,score:o?0:1,indices:a}}}const bA=[MJe,$L,OJe,RJe,BJe,PJe,LJe,XL],JN=bA.length,FJe=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,HJe="|";function zJe(e,n={}){return e.split(HJe).map(i=>{let r=i.trim().split(FJe).filter(s=>s&&!!s.trim()),a=[];for(let s=0,o=r.length;s!!(e[v0.AND]||e[v0.OR]),VJe=e=>!!e[EA.PATH],WJe=e=>!al(e)&&WL(e)&&!AA(e),e3=e=>({[v0.AND]:Object.keys(e).map(n=>({[n]:e[n]}))});function ZL(e,n,{auto:i=!0}={}){const r=a=>{let s=Object.keys(a);const o=VJe(a);if(!o&&s.length>1&&!AA(a))return r(e3(a));if(WJe(a)){const c=o?a[EA.PATH]:s[0],u=o?a[EA.PATTERN]:a[c];if(!uo(u))throw new Error(gJe(c));const d={keyId:vA(c),pattern:u};return i&&(d.searcher=_A(u,n)),d}let l={children:[],operator:s[0]};return s.forEach(c=>{const u=a[c];al(u)&&u.forEach(d=>{l.children.push(r(d))})}),l};return AA(e)||(e=e3(e)),r(e)}function QJe(e,{ignoreFieldNorm:n=Nn.ignoreFieldNorm}){e.forEach(i=>{let r=1;i.matches.forEach(({key:a,norm:s,score:o})=>{const l=a?a.weight:null;r*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(n?1:s))}),i.score=r})}function jJe(e,n){const i=e.matches;n.matches=[],Ha(i)&&i.forEach(r=>{if(!Ha(r.indices)||!r.indices.length)return;const{indices:a,value:s}=r;let o={indices:a,value:s};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),n.matches.push(o)})}function YJe(e,n){n.score=e.score}function KJe(e,n,{includeMatches:i=Nn.includeMatches,includeScore:r=Nn.includeScore}={}){const a=[];return i&&a.push(jJe),r&&a.push(YJe),e.map(s=>{const{idx:o}=s,l={item:n[o],refIndex:o};return a.length&&a.forEach(c=>{c(s,l)}),l})}class Zd{constructor(n,i={},r){this.options={...Nn,...i},this.options.useExtendedSearch,this._keyStore=new _Je(this.options.keys),this.setCollection(n,r)}setCollection(n,i){if(this._docs=n,i&&!(i instanceof Fx))throw new Error(mJe);this._myIndex=i||YL(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(n){Ha(n)&&(this._docs.push(n),this._myIndex.add(n))}remove(n=()=>!1){const i=[];for(let r=0,a=this._docs.length;r-1&&(c=c.slice(0,i)),KJe(c,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(n){const i=_A(n,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:s,i:o,n:l})=>{if(!Ha(s))return;const{isMatch:c,score:u,indices:d}=i.searchIn(s);c&&a.push({item:s,idx:o,matches:[{score:u,value:s,norm:l,indices:d}]})}),a}_searchLogical(n){const i=ZL(n,this.options),r=(l,c,u)=>{if(!l.children){const{keyId:h,searcher:m}=l,f=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(c,h),searcher:m});return f&&f.length?[{idx:u,item:c,matches:f}]:[]}const d=[];for(let h=0,m=l.children.length;h{if(Ha(l)){let u=r(i,l,c);u.length&&(s[c]||(s[c]={idx:c,item:l,matches:[]},o.push(s[c])),u.forEach(({matches:d})=>{s[c].matches.push(...d)}))}}),o}_searchObjectList(n){const i=_A(n,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:o,i:l})=>{if(!Ha(o))return;let c=[];r.forEach((u,d)=>{c.push(...this._findMatches({key:u,value:o[d],searcher:i}))}),c.length&&s.push({idx:l,item:o,matches:c})}),s}_findMatches({key:n,value:i,searcher:r}){if(!Ha(i))return[];let a=[];if(al(i))i.forEach(({v:s,i:o,n:l})=>{if(!Ha(s))return;const{isMatch:c,score:u,indices:d}=r.searchIn(s);c&&a.push({score:u,key:n,value:s,idx:o,norm:l,indices:d})});else{const{v:s,n:o}=i,{isMatch:l,score:c,indices:u}=r.searchIn(s);l&&a.push({score:c,key:n,value:s,norm:o,indices:u})}return a}}Zd.version="6.6.2";Zd.createIndex=YL;Zd.parseIndex=kJe;Zd.config=Nn;Zd.parseQuery=ZL;GJe(UJe);var JL={exports:{}};/*! - * jQuery JavaScript Library v3.7.1 - * https://jquery.com/ - * - * Copyright OpenJS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2023-08-28T13:37Z - */(function(e){(function(n,i){e.exports=n.document?i(n,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return i(r)}})(typeof window<"u"?window:Go,function(n,i){var r=[],a=Object.getPrototypeOf,s=r.slice,o=r.flat?function(S){return r.flat.call(S)}:function(S){return r.concat.apply([],S)},l=r.push,c=r.indexOf,u={},d=u.toString,h=u.hasOwnProperty,m=h.toString,f=m.call(Object),g={},v=function(P){return typeof P=="function"&&typeof P.nodeType!="number"&&typeof P.item!="function"},T=function(P){return P!=null&&P===P.window},y=n.document,C={type:!0,src:!0,nonce:!0,noModule:!0};function I(S,P,G){G=G||y;var Q,J,oe=G.createElement("script");if(oe.text=S,P)for(Q in C)J=P[Q]||P.getAttribute&&P.getAttribute(Q),J&&oe.setAttribute(Q,J);G.head.appendChild(oe).parentNode.removeChild(oe)}function M(S){return S==null?S+"":typeof S=="object"||typeof S=="function"?u[d.call(S)]||"object":typeof S}var R="3.7.1",B=/HTML$/i,A=function(S,P){return new A.fn.init(S,P)};A.fn=A.prototype={jquery:R,constructor:A,length:0,toArray:function(){return s.call(this)},get:function(S){return S==null?s.call(this):S<0?this[S+this.length]:this[S]},pushStack:function(S){var P=A.merge(this.constructor(),S);return P.prevObject=this,P},each:function(S){return A.each(this,S)},map:function(S){return this.pushStack(A.map(this,function(P,G){return S.call(P,G,P)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(S,P){return(P+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(S,P){return P%2}))},eq:function(S){var P=this.length,G=+S+(S<0?P:0);return this.pushStack(G>=0&&G0&&P-1 in S}function ne(S,P){return S.nodeName&&S.nodeName.toLowerCase()===P.toLowerCase()}var ee=r.pop,de=r.sort,Y=r.splice,se="[\\x20\\t\\r\\n\\f]",q=new RegExp("^"+se+"+|((?:^|[^\\\\])(?:\\\\.)*)"+se+"+$","g");A.contains=function(S,P){var G=P&&P.parentNode;return S===G||!!(G&&G.nodeType===1&&(S.contains?S.contains(G):S.compareDocumentPosition&&S.compareDocumentPosition(G)&16))};var p=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(S,P){return P?S==="\0"?"�":S.slice(0,-1)+"\\"+S.charCodeAt(S.length-1).toString(16)+" ":"\\"+S}A.escapeSelector=function(S){return(S+"").replace(p,N)};var z=y,j=l;(function(){var S,P,G,Q,J,oe=j,he,Ie,Te,He,Xe,mt=A.expando,nt=0,It=0,Sn=Al(),Fn=Al(),In=Al(),nr=Al(),Wi=function(pe,be){return pe===be&&(J=!0),0},ca="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ua="(?:\\\\[\\da-fA-F]{1,6}"+se+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Pn="\\["+se+"*("+ua+")(?:"+se+"*([*^$|!~]?=)"+se+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+ua+"))|)"+se+"*\\]",ur=":("+ua+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Pn+")*)|.*)\\)|)",Yt=new RegExp(se+"+","g"),mi=new RegExp("^"+se+"*,"+se+"*"),is=new RegExp("^"+se+"*([>+~]|"+se+")"+se+"*"),Do=new RegExp(se+"|>"),$r=new RegExp(ur),No=new RegExp("^"+ua+"$"),Tr={ID:new RegExp("^#("+ua+")"),CLASS:new RegExp("^\\.("+ua+")"),TAG:new RegExp("^("+ua+"|[*])"),ATTR:new RegExp("^"+Pn),PSEUDO:new RegExp("^"+ur),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+se+"*(even|odd|(([+-]|)(\\d*)n|)"+se+"*(?:([+-]|)"+se+"*(\\d+)|))"+se+"*\\)|)","i"),bool:new RegExp("^(?:"+ca+")$","i"),needsContext:new RegExp("^"+se+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+se+"*((?:-\\d)?\\d*)"+se+"*\\)|)(?=[^-]|$)","i")},rs=/^(?:input|select|textarea|button)$/i,Na=/^h\d$/i,kr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Sc=/[+~]/,Ia=new RegExp("\\\\[\\da-fA-F]{1,6}"+se+"?|\\\\([^\\r\\n\\f])","g"),Ma=function(pe,be){var Me="0x"+pe.slice(1)-65536;return be||(Me<0?String.fromCharCode(Me+65536):String.fromCharCode(Me>>10|55296,Me&1023|56320))},Iu=function(){Z()},Mu=_e(function(pe){return pe.disabled===!0&&ne(pe,"fieldset")},{dir:"parentNode",next:"legend"});function Tc(){try{return he.activeElement}catch{}}try{oe.apply(r=s.call(z.childNodes),z.childNodes),r[z.childNodes.length].nodeType}catch{oe={apply:function(be,Me){j.apply(be,s.call(Me))},call:function(be){j.apply(be,s.call(arguments,1))}}}function Yn(pe,be,Me,Fe){var We,lt,ft,dt,vt,en,Ut,cn=be&&be.ownerDocument,gn=be?be.nodeType:9;if(Me=Me||[],typeof pe!="string"||!pe||gn!==1&&gn!==9&&gn!==11)return Me;if(!Fe&&(Z(be),be=be||he,Te)){if(gn!==11&&(vt=kr.exec(pe)))if(We=vt[1]){if(gn===9)if(ft=be.getElementById(We)){if(ft.id===We)return oe.call(Me,ft),Me}else return Me;else if(cn&&(ft=cn.getElementById(We))&&Yn.contains(be,ft)&&ft.id===We)return oe.call(Me,ft),Me}else{if(vt[2])return oe.apply(Me,be.getElementsByTagName(pe)),Me;if((We=vt[3])&&be.getElementsByClassName)return oe.apply(Me,be.getElementsByClassName(We)),Me}if(!nr[pe+" "]&&(!He||!He.test(pe))){if(Ut=pe,cn=be,gn===1&&(Do.test(pe)||is.test(pe))){for(cn=Sc.test(pe)&&F(be.parentNode)||be,(cn!=be||!g.scope)&&((dt=be.getAttribute("id"))?dt=A.escapeSelector(dt):be.setAttribute("id",dt=mt)),en=Ae(pe),lt=en.length;lt--;)en[lt]=(dt?"#"+dt:":scope")+" "+ye(en[lt]);Ut=en.join(",")}try{return oe.apply(Me,cn.querySelectorAll(Ut)),Me}catch{nr(pe,!0)}finally{dt===mt&&be.removeAttribute("id")}}}return zt(pe.replace(q,"$1"),be,Me,Fe)}function Al(){var pe=[];function be(Me,Fe){return pe.push(Me+" ")>P.cacheLength&&delete be[pe.shift()],be[Me+" "]=Fe}return be}function Fr(pe){return pe[mt]=!0,pe}function _(pe){var be=he.createElement("fieldset");try{return!!pe(be)}catch{return!1}finally{be.parentNode&&be.parentNode.removeChild(be),be=null}}function E(pe){return function(be){return ne(be,"input")&&be.type===pe}}function x(pe){return function(be){return(ne(be,"input")||ne(be,"button"))&&be.type===pe}}function L(pe){return function(be){return"form"in be?be.parentNode&&be.disabled===!1?"label"in be?"label"in be.parentNode?be.parentNode.disabled===pe:be.disabled===pe:be.isDisabled===pe||be.isDisabled!==!pe&&Mu(be)===pe:be.disabled===pe:"label"in be?be.disabled===pe:!1}}function D(pe){return Fr(function(be){return be=+be,Fr(function(Me,Fe){for(var We,lt=pe([],Me.length,be),ft=lt.length;ft--;)Me[We=lt[ft]]&&(Me[We]=!(Fe[We]=Me[We]))})})}function F(pe){return pe&&typeof pe.getElementsByTagName<"u"&&pe}function Z(pe){var be,Me=pe?pe.ownerDocument||pe:z;return Me==he||Me.nodeType!==9||!Me.documentElement||(he=Me,Ie=he.documentElement,Te=!A.isXMLDoc(he),Xe=Ie.matches||Ie.webkitMatchesSelector||Ie.msMatchesSelector,Ie.msMatchesSelector&&z!=he&&(be=he.defaultView)&&be.top!==be&&be.addEventListener("unload",Iu),g.getById=_(function(Fe){return Ie.appendChild(Fe).id=A.expando,!he.getElementsByName||!he.getElementsByName(A.expando).length}),g.disconnectedMatch=_(function(Fe){return Xe.call(Fe,"*")}),g.scope=_(function(){return he.querySelectorAll(":scope")}),g.cssHas=_(function(){try{return he.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),g.getById?(P.filter.ID=function(Fe){var We=Fe.replace(Ia,Ma);return function(lt){return lt.getAttribute("id")===We}},P.find.ID=function(Fe,We){if(typeof We.getElementById<"u"&&Te){var lt=We.getElementById(Fe);return lt?[lt]:[]}}):(P.filter.ID=function(Fe){var We=Fe.replace(Ia,Ma);return function(lt){var ft=typeof lt.getAttributeNode<"u"&<.getAttributeNode("id");return ft&&ft.value===We}},P.find.ID=function(Fe,We){if(typeof We.getElementById<"u"&&Te){var lt,ft,dt,vt=We.getElementById(Fe);if(vt){if(lt=vt.getAttributeNode("id"),lt&<.value===Fe)return[vt];for(dt=We.getElementsByName(Fe),ft=0;vt=dt[ft++];)if(lt=vt.getAttributeNode("id"),lt&<.value===Fe)return[vt]}return[]}}),P.find.TAG=function(Fe,We){return typeof We.getElementsByTagName<"u"?We.getElementsByTagName(Fe):We.querySelectorAll(Fe)},P.find.CLASS=function(Fe,We){if(typeof We.getElementsByClassName<"u"&&Te)return We.getElementsByClassName(Fe)},He=[],_(function(Fe){var We;Ie.appendChild(Fe).innerHTML="",Fe.querySelectorAll("[selected]").length||He.push("\\["+se+"*(?:value|"+ca+")"),Fe.querySelectorAll("[id~="+mt+"-]").length||He.push("~="),Fe.querySelectorAll("a#"+mt+"+*").length||He.push(".#.+[+~]"),Fe.querySelectorAll(":checked").length||He.push(":checked"),We=he.createElement("input"),We.setAttribute("type","hidden"),Fe.appendChild(We).setAttribute("name","D"),Ie.appendChild(Fe).disabled=!0,Fe.querySelectorAll(":disabled").length!==2&&He.push(":enabled",":disabled"),We=he.createElement("input"),We.setAttribute("name",""),Fe.appendChild(We),Fe.querySelectorAll("[name='']").length||He.push("\\["+se+"*name"+se+"*="+se+`*(?:''|"")`)}),g.cssHas||He.push(":has"),He=He.length&&new RegExp(He.join("|")),Wi=function(Fe,We){if(Fe===We)return J=!0,0;var lt=!Fe.compareDocumentPosition-!We.compareDocumentPosition;return lt||(lt=(Fe.ownerDocument||Fe)==(We.ownerDocument||We)?Fe.compareDocumentPosition(We):1,lt&1||!g.sortDetached&&We.compareDocumentPosition(Fe)===lt?Fe===he||Fe.ownerDocument==z&&Yn.contains(z,Fe)?-1:We===he||We.ownerDocument==z&&Yn.contains(z,We)?1:Q?c.call(Q,Fe)-c.call(Q,We):0:lt&4?-1:1)}),he}Yn.matches=function(pe,be){return Yn(pe,null,null,be)},Yn.matchesSelector=function(pe,be){if(Z(pe),Te&&!nr[be+" "]&&(!He||!He.test(be)))try{var Me=Xe.call(pe,be);if(Me||g.disconnectedMatch||pe.document&&pe.document.nodeType!==11)return Me}catch{nr(be,!0)}return Yn(be,he,null,[pe]).length>0},Yn.contains=function(pe,be){return(pe.ownerDocument||pe)!=he&&Z(pe),A.contains(pe,be)},Yn.attr=function(pe,be){(pe.ownerDocument||pe)!=he&&Z(pe);var Me=P.attrHandle[be.toLowerCase()],Fe=Me&&h.call(P.attrHandle,be.toLowerCase())?Me(pe,be,!Te):void 0;return Fe!==void 0?Fe:pe.getAttribute(be)},Yn.error=function(pe){throw new Error("Syntax error, unrecognized expression: "+pe)},A.uniqueSort=function(pe){var be,Me=[],Fe=0,We=0;if(J=!g.sortStable,Q=!g.sortStable&&s.call(pe,0),de.call(pe,Wi),J){for(;be=pe[We++];)be===pe[We]&&(Fe=Me.push(We));for(;Fe--;)Y.call(pe,Me[Fe],1)}return Q=null,pe},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(s.apply(this)))},P=A.expr={cacheLength:50,createPseudo:Fr,match:Tr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(pe){return pe[1]=pe[1].replace(Ia,Ma),pe[3]=(pe[3]||pe[4]||pe[5]||"").replace(Ia,Ma),pe[2]==="~="&&(pe[3]=" "+pe[3]+" "),pe.slice(0,4)},CHILD:function(pe){return pe[1]=pe[1].toLowerCase(),pe[1].slice(0,3)==="nth"?(pe[3]||Yn.error(pe[0]),pe[4]=+(pe[4]?pe[5]+(pe[6]||1):2*(pe[3]==="even"||pe[3]==="odd")),pe[5]=+(pe[7]+pe[8]||pe[3]==="odd")):pe[3]&&Yn.error(pe[0]),pe},PSEUDO:function(pe){var be,Me=!pe[6]&&pe[2];return Tr.CHILD.test(pe[0])?null:(pe[3]?pe[2]=pe[4]||pe[5]||"":Me&&$r.test(Me)&&(be=Ae(Me,!0))&&(be=Me.indexOf(")",Me.length-be)-Me.length)&&(pe[0]=pe[0].slice(0,be),pe[2]=Me.slice(0,be)),pe.slice(0,3))}},filter:{TAG:function(pe){var be=pe.replace(Ia,Ma).toLowerCase();return pe==="*"?function(){return!0}:function(Me){return ne(Me,be)}},CLASS:function(pe){var be=Sn[pe+" "];return be||(be=new RegExp("(^|"+se+")"+pe+"("+se+"|$)"))&&Sn(pe,function(Me){return be.test(typeof Me.className=="string"&&Me.className||typeof Me.getAttribute<"u"&&Me.getAttribute("class")||"")})},ATTR:function(pe,be,Me){return function(Fe){var We=Yn.attr(Fe,pe);return We==null?be==="!=":be?(We+="",be==="="?We===Me:be==="!="?We!==Me:be==="^="?Me&&We.indexOf(Me)===0:be==="*="?Me&&We.indexOf(Me)>-1:be==="$="?Me&&We.slice(-Me.length)===Me:be==="~="?(" "+We.replace(Yt," ")+" ").indexOf(Me)>-1:be==="|="?We===Me||We.slice(0,Me.length+1)===Me+"-":!1):!0}},CHILD:function(pe,be,Me,Fe,We){var lt=pe.slice(0,3)!=="nth",ft=pe.slice(-4)!=="last",dt=be==="of-type";return Fe===1&&We===0?function(vt){return!!vt.parentNode}:function(vt,en,Ut){var cn,gn,Jt,Tn,Di,Ni=lt!==ft?"nextSibling":"previousSibling",Ei=vt.parentNode,Ai=dt&&vt.nodeName.toLowerCase(),Zi=!Ut&&!dt,ui=!1;if(Ei){if(lt){for(;Ni;){for(Jt=vt;Jt=Jt[Ni];)if(dt?ne(Jt,Ai):Jt.nodeType===1)return!1;Di=Ni=pe==="only"&&!Di&&"nextSibling"}return!0}if(Di=[ft?Ei.firstChild:Ei.lastChild],ft&&Zi){for(gn=Ei[mt]||(Ei[mt]={}),cn=gn[pe]||[],Tn=cn[0]===nt&&cn[1],ui=Tn&&cn[2],Jt=Tn&&Ei.childNodes[Tn];Jt=++Tn&&Jt&&Jt[Ni]||(ui=Tn=0)||Di.pop();)if(Jt.nodeType===1&&++ui&&Jt===vt){gn[pe]=[nt,Tn,ui];break}}else if(Zi&&(gn=vt[mt]||(vt[mt]={}),cn=gn[pe]||[],Tn=cn[0]===nt&&cn[1],ui=Tn),ui===!1)for(;(Jt=++Tn&&Jt&&Jt[Ni]||(ui=Tn=0)||Di.pop())&&!((dt?ne(Jt,Ai):Jt.nodeType===1)&&++ui&&(Zi&&(gn=Jt[mt]||(Jt[mt]={}),gn[pe]=[nt,ui]),Jt===vt)););return ui-=We,ui===Fe||ui%Fe===0&&ui/Fe>=0}}},PSEUDO:function(pe,be){var Me,Fe=P.pseudos[pe]||P.setFilters[pe.toLowerCase()]||Yn.error("unsupported pseudo: "+pe);return Fe[mt]?Fe(be):Fe.length>1?(Me=[pe,pe,"",be],P.setFilters.hasOwnProperty(pe.toLowerCase())?Fr(function(We,lt){for(var ft,dt=Fe(We,be),vt=dt.length;vt--;)ft=c.call(We,dt[vt]),We[ft]=!(lt[ft]=dt[vt])}):function(We){return Fe(We,0,Me)}):Fe}},pseudos:{not:Fr(function(pe){var be=[],Me=[],Fe=Ct(pe.replace(q,"$1"));return Fe[mt]?Fr(function(We,lt,ft,dt){for(var vt,en=Fe(We,null,dt,[]),Ut=We.length;Ut--;)(vt=en[Ut])&&(We[Ut]=!(lt[Ut]=vt))}):function(We,lt,ft){return be[0]=We,Fe(be,null,ft,Me),be[0]=null,!Me.pop()}}),has:Fr(function(pe){return function(be){return Yn(pe,be).length>0}}),contains:Fr(function(pe){return pe=pe.replace(Ia,Ma),function(be){return(be.textContent||A.text(be)).indexOf(pe)>-1}}),lang:Fr(function(pe){return No.test(pe||"")||Yn.error("unsupported lang: "+pe),pe=pe.replace(Ia,Ma).toLowerCase(),function(be){var Me;do if(Me=Te?be.lang:be.getAttribute("xml:lang")||be.getAttribute("lang"))return Me=Me.toLowerCase(),Me===pe||Me.indexOf(pe+"-")===0;while((be=be.parentNode)&&be.nodeType===1);return!1}}),target:function(pe){var be=n.location&&n.location.hash;return be&&be.slice(1)===pe.id},root:function(pe){return pe===Ie},focus:function(pe){return pe===Tc()&&he.hasFocus()&&!!(pe.type||pe.href||~pe.tabIndex)},enabled:L(!1),disabled:L(!0),checked:function(pe){return ne(pe,"input")&&!!pe.checked||ne(pe,"option")&&!!pe.selected},selected:function(pe){return pe.parentNode&&pe.parentNode.selectedIndex,pe.selected===!0},empty:function(pe){for(pe=pe.firstChild;pe;pe=pe.nextSibling)if(pe.nodeType<6)return!1;return!0},parent:function(pe){return!P.pseudos.empty(pe)},header:function(pe){return Na.test(pe.nodeName)},input:function(pe){return rs.test(pe.nodeName)},button:function(pe){return ne(pe,"input")&&pe.type==="button"||ne(pe,"button")},text:function(pe){var be;return ne(pe,"input")&&pe.type==="text"&&((be=pe.getAttribute("type"))==null||be.toLowerCase()==="text")},first:D(function(){return[0]}),last:D(function(pe,be){return[be-1]}),eq:D(function(pe,be,Me){return[Me<0?Me+be:Me]}),even:D(function(pe,be){for(var Me=0;Mebe?Fe=be:Fe=Me;--Fe>=0;)pe.push(Fe);return pe}),gt:D(function(pe,be,Me){for(var Fe=Me<0?Me+be:Me;++Fe1?function(be,Me,Fe){for(var We=pe.length;We--;)if(!pe[We](be,Me,Fe))return!1;return!0}:pe[0]}function Nt(pe,be,Me){for(var Fe=0,We=be.length;Fe-1&&(ft[Ut]=!(dt[Ut]=gn))}}else Jt=Pt(Jt===dt?Jt.splice(Ni,Jt.length):Jt),We?We(null,dt,Jt,en):oe.apply(dt,Jt)})}function Mt(pe){for(var be,Me,Fe,We=pe.length,lt=P.relative[pe[0].type],ft=lt||P.relative[" "],dt=lt?1:0,vt=_e(function(cn){return cn===be},ft,!0),en=_e(function(cn){return c.call(be,cn)>-1},ft,!0),Ut=[function(cn,gn,Jt){var Tn=!lt&&(Jt||gn!=G)||((be=gn).nodeType?vt(cn,gn,Jt):en(cn,gn,Jt));return be=null,Tn}];dt1&&it(Ut),dt>1&&ye(pe.slice(0,dt-1).concat({value:pe[dt-2].type===" "?"*":""})).replace(q,"$1"),Me,dt0,Fe=pe.length>0,We=function(lt,ft,dt,vt,en){var Ut,cn,gn,Jt=0,Tn="0",Di=lt&&[],Ni=[],Ei=G,Ai=lt||Fe&&P.find.TAG("*",en),Zi=nt+=Ei==null?1:Math.random()||.1,ui=Ai.length;for(en&&(G=ft==he||ft||en);Tn!==ui&&(Ut=Ai[Tn])!=null;Tn++){if(Fe&&Ut){for(cn=0,!ft&&Ut.ownerDocument!=he&&(Z(Ut),dt=!Te);gn=pe[cn++];)if(gn(Ut,ft||he,dt)){oe.call(vt,Ut);break}en&&(nt=Zi)}Me&&((Ut=!gn&&Ut)&&Jt--,lt&&Di.push(Ut))}if(Jt+=Tn,Me&&Tn!==Jt){for(cn=0;gn=be[cn++];)gn(Di,Ni,ft,dt);if(lt){if(Jt>0)for(;Tn--;)Di[Tn]||Ni[Tn]||(Ni[Tn]=ee.call(vt));Ni=Pt(Ni)}oe.apply(vt,Ni),en&&!lt&&Ni.length>0&&Jt+be.length>1&&A.uniqueSort(vt)}return en&&(nt=Zi,G=Ei),Di};return Me?Fr(We):We}function Ct(pe,be){var Me,Fe=[],We=[],lt=In[pe+" "];if(!lt){for(be||(be=Ae(pe)),Me=be.length;Me--;)lt=Mt(be[Me]),lt[mt]?Fe.push(lt):We.push(lt);lt=In(pe,qt(We,Fe)),lt.selector=pe}return lt}function zt(pe,be,Me,Fe){var We,lt,ft,dt,vt,en=typeof pe=="function"&&pe,Ut=!Fe&&Ae(pe=en.selector||pe);if(Me=Me||[],Ut.length===1){if(lt=Ut[0]=Ut[0].slice(0),lt.length>2&&(ft=lt[0]).type==="ID"&&be.nodeType===9&&Te&&P.relative[lt[1].type]){if(be=(P.find.ID(ft.matches[0].replace(Ia,Ma),be)||[])[0],be)en&&(be=be.parentNode);else return Me;pe=pe.slice(lt.shift().value.length)}for(We=Tr.needsContext.test(pe)?0:lt.length;We--&&(ft=lt[We],!P.relative[dt=ft.type]);)if((vt=P.find[dt])&&(Fe=vt(ft.matches[0].replace(Ia,Ma),Sc.test(lt[0].type)&&F(be.parentNode)||be))){if(lt.splice(We,1),pe=Fe.length&&ye(lt),!pe)return oe.apply(Me,Fe),Me;break}}return(en||Ct(pe,Ut))(Fe,be,!Te,Me,!be||Sc.test(pe)&&F(be.parentNode)||be),Me}g.sortStable=mt.split("").sort(Wi).join("")===mt,Z(),g.sortDetached=_(function(pe){return pe.compareDocumentPosition(he.createElement("fieldset"))&1}),A.find=Yn,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,Yn.compile=Ct,Yn.select=zt,Yn.setDocument=Z,Yn.tokenize=Ae,Yn.escape=A.escapeSelector,Yn.getText=A.text,Yn.isXML=A.isXMLDoc,Yn.selectors=A.expr,Yn.support=A.support,Yn.uniqueSort=A.uniqueSort})();var re=function(S,P,G){for(var Q=[],J=G!==void 0;(S=S[P])&&S.nodeType!==9;)if(S.nodeType===1){if(J&&A(S).is(G))break;Q.push(S)}return Q},ue=function(S,P){for(var G=[];S;S=S.nextSibling)S.nodeType===1&&S!==P&&G.push(S);return G},ae=A.expr.match.needsContext,Ee=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ze(S,P,G){return v(P)?A.grep(S,function(Q,J){return!!P.call(Q,J,Q)!==G}):P.nodeType?A.grep(S,function(Q){return Q===P!==G}):typeof P!="string"?A.grep(S,function(Q){return c.call(P,Q)>-1!==G}):A.filter(P,S,G)}A.filter=function(S,P,G){var Q=P[0];return G&&(S=":not("+S+")"),P.length===1&&Q.nodeType===1?A.find.matchesSelector(Q,S)?[Q]:[]:A.find.matches(S,A.grep(P,function(J){return J.nodeType===1}))},A.fn.extend({find:function(S){var P,G,Q=this.length,J=this;if(typeof S!="string")return this.pushStack(A(S).filter(function(){for(P=0;P1?A.uniqueSort(G):G},filter:function(S){return this.pushStack(ze(this,S||[],!1))},not:function(S){return this.pushStack(ze(this,S||[],!0))},is:function(S){return!!ze(this,typeof S=="string"&&ae.test(S)?A(S):S||[],!1).length}});var Oe,Qe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ge=A.fn.init=function(S,P,G){var Q,J;if(!S)return this;if(G=G||Oe,typeof S=="string")if(S[0]==="<"&&S[S.length-1]===">"&&S.length>=3?Q=[null,S,null]:Q=Qe.exec(S),Q&&(Q[1]||!P))if(Q[1]){if(P=P instanceof A?P[0]:P,A.merge(this,A.parseHTML(Q[1],P&&P.nodeType?P.ownerDocument||P:y,!0)),Ee.test(Q[1])&&A.isPlainObject(P))for(Q in P)v(this[Q])?this[Q](P[Q]):this.attr(Q,P[Q]);return this}else return J=y.getElementById(Q[2]),J&&(this[0]=J,this.length=1),this;else return!P||P.jquery?(P||G).find(S):this.constructor(P).find(S);else{if(S.nodeType)return this[0]=S,this.length=1,this;if(v(S))return G.ready!==void 0?G.ready(S):S(A)}return A.makeArray(S,this)};Ge.prototype=A.fn,Oe=A(y);var rt=/^(?:parents|prev(?:Until|All))/,ht={children:!0,contents:!0,next:!0,prev:!0};A.fn.extend({has:function(S){var P=A(S,this),G=P.length;return this.filter(function(){for(var Q=0;Q-1:G.nodeType===1&&A.find.matchesSelector(G,S))){oe.push(G);break}}return this.pushStack(oe.length>1?A.uniqueSort(oe):oe)},index:function(S){return S?typeof S=="string"?c.call(A(S),this[0]):c.call(this,S.jquery?S[0]:S):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(S,P){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(S,P))))},addBack:function(S){return this.add(S==null?this.prevObject:this.prevObject.filter(S))}});function bt(S,P){for(;(S=S[P])&&S.nodeType!==1;);return S}A.each({parent:function(S){var P=S.parentNode;return P&&P.nodeType!==11?P:null},parents:function(S){return re(S,"parentNode")},parentsUntil:function(S,P,G){return re(S,"parentNode",G)},next:function(S){return bt(S,"nextSibling")},prev:function(S){return bt(S,"previousSibling")},nextAll:function(S){return re(S,"nextSibling")},prevAll:function(S){return re(S,"previousSibling")},nextUntil:function(S,P,G){return re(S,"nextSibling",G)},prevUntil:function(S,P,G){return re(S,"previousSibling",G)},siblings:function(S){return ue((S.parentNode||{}).firstChild,S)},children:function(S){return ue(S.firstChild)},contents:function(S){return S.contentDocument!=null&&a(S.contentDocument)?S.contentDocument:(ne(S,"template")&&(S=S.content||S),A.merge([],S.childNodes))}},function(S,P){A.fn[S]=function(G,Q){var J=A.map(this,P,G);return S.slice(-5)!=="Until"&&(Q=G),Q&&typeof Q=="string"&&(J=A.filter(Q,J)),this.length>1&&(ht[S]||A.uniqueSort(J),rt.test(S)&&J.reverse()),this.pushStack(J)}});var St=/[^\x20\t\r\n\f]+/g;function gt(S){var P={};return A.each(S.match(St)||[],function(G,Q){P[Q]=!0}),P}A.Callbacks=function(S){S=typeof S=="string"?gt(S):A.extend({},S);var P,G,Q,J,oe=[],he=[],Ie=-1,Te=function(){for(J=J||S.once,Q=P=!0;he.length;Ie=-1)for(G=he.shift();++Ie-1;)oe.splice(nt,1),nt<=Ie&&Ie--}),this},has:function(Xe){return Xe?A.inArray(Xe,oe)>-1:oe.length>0},empty:function(){return oe&&(oe=[]),this},disable:function(){return J=he=[],oe=G="",this},disabled:function(){return!oe},lock:function(){return J=he=[],!G&&!P&&(oe=G=""),this},locked:function(){return!!J},fireWith:function(Xe,mt){return J||(mt=mt||[],mt=[Xe,mt.slice?mt.slice():mt],he.push(mt),P||Te()),this},fire:function(){return He.fireWith(this,arguments),this},fired:function(){return!!Q}};return He};function Vt(S){return S}function Qt(S){throw S}function te(S,P,G,Q){var J;try{S&&v(J=S.promise)?J.call(S).done(P).fail(G):S&&v(J=S.then)?J.call(S,P,G):P.apply(void 0,[S].slice(Q))}catch(oe){G.apply(void 0,[oe])}}A.extend({Deferred:function(S){var P=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],G="pending",Q={state:function(){return G},always:function(){return J.done(arguments).fail(arguments),this},catch:function(oe){return Q.then(null,oe)},pipe:function(){var oe=arguments;return A.Deferred(function(he){A.each(P,function(Ie,Te){var He=v(oe[Te[4]])&&oe[Te[4]];J[Te[1]](function(){var Xe=He&&He.apply(this,arguments);Xe&&v(Xe.promise)?Xe.promise().progress(he.notify).done(he.resolve).fail(he.reject):he[Te[0]+"With"](this,He?[Xe]:arguments)})}),oe=null}).promise()},then:function(oe,he,Ie){var Te=0;function He(Xe,mt,nt,It){return function(){var Sn=this,Fn=arguments,In=function(){var Wi,ca;if(!(Xe=Te&&(nt!==Qt&&(Sn=void 0,Fn=[Wi]),mt.rejectWith(Sn,Fn))}};Xe?nr():(A.Deferred.getErrorHook?nr.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(nr.error=A.Deferred.getStackHook()),n.setTimeout(nr))}}return A.Deferred(function(Xe){P[0][3].add(He(0,Xe,v(Ie)?Ie:Vt,Xe.notifyWith)),P[1][3].add(He(0,Xe,v(oe)?oe:Vt)),P[2][3].add(He(0,Xe,v(he)?he:Qt))}).promise()},promise:function(oe){return oe!=null?A.extend(oe,Q):Q}},J={};return A.each(P,function(oe,he){var Ie=he[2],Te=he[5];Q[he[1]]=Ie.add,Te&&Ie.add(function(){G=Te},P[3-oe][2].disable,P[3-oe][3].disable,P[0][2].lock,P[0][3].lock),Ie.add(he[3].fire),J[he[0]]=function(){return J[he[0]+"With"](this===J?void 0:this,arguments),this},J[he[0]+"With"]=Ie.fireWith}),Q.promise(J),S&&S.call(J,J),J},when:function(S){var P=arguments.length,G=P,Q=Array(G),J=s.call(arguments),oe=A.Deferred(),he=function(Ie){return function(Te){Q[Ie]=this,J[Ie]=arguments.length>1?s.call(arguments):Te,--P||oe.resolveWith(Q,J)}};if(P<=1&&(te(S,oe.done(he(G)).resolve,oe.reject,!P),oe.state()==="pending"||v(J[G]&&J[G].then)))return oe.then();for(;G--;)te(J[G],he(G),oe.reject);return oe.promise()}});var Ze=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(S,P){n.console&&n.console.warn&&S&&Ze.test(S.name)&&n.console.warn("jQuery.Deferred exception: "+S.message,S.stack,P)},A.readyException=function(S){n.setTimeout(function(){throw S})};var Ye=A.Deferred();A.fn.ready=function(S){return Ye.then(S).catch(function(P){A.readyException(P)}),this},A.extend({isReady:!1,readyWait:1,ready:function(S){(S===!0?--A.readyWait:A.isReady)||(A.isReady=!0,!(S!==!0&&--A.readyWait>0)&&Ye.resolveWith(y,[A]))}}),A.ready.then=Ye.then;function Se(){y.removeEventListener("DOMContentLoaded",Se),n.removeEventListener("load",Se),A.ready()}y.readyState==="complete"||y.readyState!=="loading"&&!y.documentElement.doScroll?n.setTimeout(A.ready):(y.addEventListener("DOMContentLoaded",Se),n.addEventListener("load",Se));var xe=function(S,P,G,Q,J,oe,he){var Ie=0,Te=S.length,He=G==null;if(M(G)==="object"){J=!0;for(Ie in G)xe(S,P,Ie,G[Ie],!0,oe,he)}else if(Q!==void 0&&(J=!0,v(Q)||(he=!0),He&&(he?(P.call(S,Q),P=null):(He=P,P=function(Xe,mt,nt){return He.call(A(Xe),nt)})),P))for(;Ie1,null,!0)},removeData:function(S){return this.each(function(){Ht.remove(this,S)})}}),A.extend({queue:function(S,P,G){var Q;if(S)return P=(P||"fx")+"queue",Q=et.get(S,P),G&&(!Q||Array.isArray(G)?Q=et.access(S,P,A.makeArray(G)):Q.push(G)),Q||[]},dequeue:function(S,P){P=P||"fx";var G=A.queue(S,P),Q=G.length,J=G.shift(),oe=A._queueHooks(S,P),he=function(){A.dequeue(S,P)};J==="inprogress"&&(J=G.shift(),Q--),J&&(P==="fx"&&G.unshift("inprogress"),delete oe.stop,J.call(S,he,oe)),!Q&&oe&&oe.empty.fire()},_queueHooks:function(S,P){var G=P+"queueHooks";return et.get(S,G)||et.access(S,G,{empty:A.Callbacks("once memory").add(function(){et.remove(S,[P+"queue",G])})})}}),A.fn.extend({queue:function(S,P){var G=2;return typeof S!="string"&&(P=S,S="fx",G--),arguments.length\x20\t\r\n\f]*)/i,Or=/^$|^module$|\/(?:java|ecma)script/i;(function(){var S=y.createDocumentFragment(),P=S.appendChild(y.createElement("div")),G=y.createElement("input");G.setAttribute("type","radio"),G.setAttribute("checked","checked"),G.setAttribute("name","t"),P.appendChild(G),g.checkClone=P.cloneNode(!0).cloneNode(!0).lastChild.checked,P.innerHTML="",g.noCloneChecked=!!P.cloneNode(!0).lastChild.defaultValue,P.innerHTML="",g.option=!!P.lastChild})();var Bi={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Bi.tbody=Bi.tfoot=Bi.colgroup=Bi.caption=Bi.thead,Bi.th=Bi.td,g.option||(Bi.optgroup=Bi.option=[1,""]);function xi(S,P){var G;return typeof S.getElementsByTagName<"u"?G=S.getElementsByTagName(P||"*"):typeof S.querySelectorAll<"u"?G=S.querySelectorAll(P||"*"):G=[],P===void 0||P&&ne(S,P)?A.merge([S],G):G}function Ss(S,P){for(var G=0,Q=S.length;G-1){J&&J.push(oe);continue}if(He=jt(oe),he=xi(mt.appendChild(oe),"script"),He&&Ss(he),G)for(Xe=0;oe=he[Xe++];)Or.test(oe.type||"")&&G.push(oe)}return mt}var si=/^([^.]*)(?:\.(.+)|)/;function V(){return!0}function $(){return!1}function xt(S,P,G,Q,J,oe){var he,Ie;if(typeof P=="object"){typeof G!="string"&&(Q=Q||G,G=void 0);for(Ie in P)xt(S,Ie,G,Q,P[Ie],oe);return S}if(Q==null&&J==null?(J=G,Q=G=void 0):J==null&&(typeof G=="string"?(J=Q,Q=void 0):(J=Q,Q=G,G=void 0)),J===!1)J=$;else if(!J)return S;return oe===1&&(he=J,J=function(Te){return A().off(Te),he.apply(this,arguments)},J.guid=he.guid||(he.guid=A.guid++)),S.each(function(){A.event.add(this,P,J,Q,G)})}A.event={global:{},add:function(S,P,G,Q,J){var oe,he,Ie,Te,He,Xe,mt,nt,It,Sn,Fn,In=et.get(S);if(st(S))for(G.handler&&(oe=G,G=oe.handler,J=oe.selector),J&&A.find.matchesSelector(ot,J),G.guid||(G.guid=A.guid++),(Te=In.events)||(Te=In.events=Object.create(null)),(he=In.handle)||(he=In.handle=function(nr){return typeof A<"u"&&A.event.triggered!==nr.type?A.event.dispatch.apply(S,arguments):void 0}),P=(P||"").match(St)||[""],He=P.length;He--;)Ie=si.exec(P[He])||[],It=Fn=Ie[1],Sn=(Ie[2]||"").split(".").sort(),It&&(mt=A.event.special[It]||{},It=(J?mt.delegateType:mt.bindType)||It,mt=A.event.special[It]||{},Xe=A.extend({type:It,origType:Fn,data:Q,handler:G,guid:G.guid,selector:J,needsContext:J&&A.expr.match.needsContext.test(J),namespace:Sn.join(".")},oe),(nt=Te[It])||(nt=Te[It]=[],nt.delegateCount=0,(!mt.setup||mt.setup.call(S,Q,Sn,he)===!1)&&S.addEventListener&&S.addEventListener(It,he)),mt.add&&(mt.add.call(S,Xe),Xe.handler.guid||(Xe.handler.guid=G.guid)),J?nt.splice(nt.delegateCount++,0,Xe):nt.push(Xe),A.event.global[It]=!0)},remove:function(S,P,G,Q,J){var oe,he,Ie,Te,He,Xe,mt,nt,It,Sn,Fn,In=et.hasData(S)&&et.get(S);if(!(!In||!(Te=In.events))){for(P=(P||"").match(St)||[""],He=P.length;He--;){if(Ie=si.exec(P[He])||[],It=Fn=Ie[1],Sn=(Ie[2]||"").split(".").sort(),!It){for(It in Te)A.event.remove(S,It+P[He],G,Q,!0);continue}for(mt=A.event.special[It]||{},It=(Q?mt.delegateType:mt.bindType)||It,nt=Te[It]||[],Ie=Ie[2]&&new RegExp("(^|\\.)"+Sn.join("\\.(?:.*\\.|)")+"(\\.|$)"),he=oe=nt.length;oe--;)Xe=nt[oe],(J||Fn===Xe.origType)&&(!G||G.guid===Xe.guid)&&(!Ie||Ie.test(Xe.namespace))&&(!Q||Q===Xe.selector||Q==="**"&&Xe.selector)&&(nt.splice(oe,1),Xe.selector&&nt.delegateCount--,mt.remove&&mt.remove.call(S,Xe));he&&!nt.length&&((!mt.teardown||mt.teardown.call(S,Sn,In.handle)===!1)&&A.removeEvent(S,It,In.handle),delete Te[It])}A.isEmptyObject(Te)&&et.remove(S,"handle events")}},dispatch:function(S){var P,G,Q,J,oe,he,Ie=new Array(arguments.length),Te=A.event.fix(S),He=(et.get(this,"events")||Object.create(null))[Te.type]||[],Xe=A.event.special[Te.type]||{};for(Ie[0]=Te,P=1;P=1)){for(;He!==this;He=He.parentNode||this)if(He.nodeType===1&&!(S.type==="click"&&He.disabled===!0)){for(oe=[],he={},G=0;G-1:A.find(J,this,null,[He]).length),he[J]&&oe.push(Q);oe.length&&Ie.push({elem:He,handlers:oe})}}return He=this,Te\s*$/g;function Bn(S,P){return ne(S,"table")&&ne(P.nodeType!==11?P:P.firstChild,"tr")&&A(S).children("tbody")[0]||S}function ks(S){return S.type=(S.getAttribute("type")!==null)+"/"+S.type,S}function pn(S){return(S.type||"").slice(0,5)==="true/"?S.type=S.type.slice(5):S.removeAttribute("type"),S}function Ci(S,P){var G,Q,J,oe,he,Ie,Te;if(P.nodeType===1){if(et.hasData(S)&&(oe=et.get(S),Te=oe.events,Te)){et.remove(P,"handle events");for(J in Te)for(G=0,Q=Te[J].length;G1&&typeof It=="string"&&!g.checkClone&&ci.test(It))return S.each(function(Fn){var In=S.eq(Fn);Sn&&(P[0]=It.call(this,Fn,In.html())),Ta(In,P,G,Q)});if(mt&&(J=Rr(P,S[0].ownerDocument,!1,S,Q),oe=J.firstChild,J.childNodes.length===1&&(J=oe),oe||Q)){for(he=A.map(xi(J,"script"),ks),Ie=he.length;Xe0&&Ss(he,!Te&&xi(S,"script")),Ie},cleanData:function(S){for(var P,G,Q,J=A.event.special,oe=0;(G=S[oe])!==void 0;oe++)if(st(G)){if(P=G[et.expando]){if(P.events)for(Q in P.events)J[Q]?A.event.remove(G,Q):A.removeEvent(G,Q,P.handle);G[et.expando]=void 0}G[Ht.expando]&&(G[Ht.expando]=void 0)}}}),A.fn.extend({detach:function(S){return De(this,S,!0)},remove:function(S){return De(this,S)},text:function(S){return xe(this,function(P){return P===void 0?A.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=P)})},null,S,arguments.length)},append:function(){return Ta(this,arguments,function(S){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var P=Bn(this,S);P.appendChild(S)}})},prepend:function(){return Ta(this,arguments,function(S){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var P=Bn(this,S);P.insertBefore(S,P.firstChild)}})},before:function(){return Ta(this,arguments,function(S){this.parentNode&&this.parentNode.insertBefore(S,this)})},after:function(){return Ta(this,arguments,function(S){this.parentNode&&this.parentNode.insertBefore(S,this.nextSibling)})},empty:function(){for(var S,P=0;(S=this[P])!=null;P++)S.nodeType===1&&(A.cleanData(xi(S,!1)),S.textContent="");return this},clone:function(S,P){return S=S??!1,P=P??S,this.map(function(){return A.clone(this,S,P)})},html:function(S){return xe(this,function(P){var G=this[0]||{},Q=0,J=this.length;if(P===void 0&&G.nodeType===1)return G.innerHTML;if(typeof P=="string"&&!ke.test(P)&&!Bi[(ki.exec(P)||["",""])[1].toLowerCase()]){P=A.htmlPrefilter(P);try{for(;Q=0&&(Te+=Math.max(0,Math.ceil(S["offset"+P[0].toUpperCase()+P.slice(1)]-oe-Te-Ie-.5))||0),Te+He}function Zs(S,P,G){var Q=Ja(S),J=!g.boxSizingReliable()||G,oe=J&&A.css(S,"boxSizing",!1,Q)==="border-box",he=oe,Ie=Xs(S,P,Q),Te="offset"+P[0].toUpperCase()+P.slice(1);if(jr.test(Ie)){if(!G)return Ie;Ie="auto"}return(!g.boxSizingReliable()&&oe||!g.reliableTrDimensions()&&ne(S,"tr")||Ie==="auto"||!parseFloat(Ie)&&A.css(S,"display",!1,Q)==="inline")&&S.getClientRects().length&&(oe=A.css(S,"boxSizing",!1,Q)==="border-box",he=Te in S,he&&(Ie=S[Te])),Ie=parseFloat(Ie)||0,Ie+Kr(S,P,G||(oe?"border":"content"),he,Q,Ie)+"px"}A.extend({cssHooks:{opacity:{get:function(S,P){if(P){var G=Xs(S,"opacity");return G===""?"1":G}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(S,P,G,Q){if(!(!S||S.nodeType===3||S.nodeType===8||!S.style)){var J,oe,he,Ie=Pe(P),Te=Be.test(P),He=S.style;if(Te||(P=$s(Ie)),he=A.cssHooks[P]||A.cssHooks[Ie],G!==void 0){if(oe=typeof G,oe==="string"&&(J=wt.exec(G))&&J[1]&&(G=Dn(S,P,J),oe="number"),G==null||G!==G)return;oe==="number"&&!Te&&(G+=J&&J[3]||(A.cssNumber[Ie]?"":"px")),!g.clearCloneStyle&&G===""&&P.indexOf("background")===0&&(He[P]="inherit"),(!he||!("set"in he)||(G=he.set(S,G,Q))!==void 0)&&(Te?He.setProperty(P,G):He[P]=G)}else return he&&"get"in he&&(J=he.get(S,!1,Q))!==void 0?J:He[P]}},css:function(S,P,G,Q){var J,oe,he,Ie=Pe(P),Te=Be.test(P);return Te||(P=$s(Ie)),he=A.cssHooks[P]||A.cssHooks[Ie],he&&"get"in he&&(J=he.get(S,!0,G)),J===void 0&&(J=Xs(S,P,Q)),J==="normal"&&P in oi&&(J=oi[P]),G===""||G?(oe=parseFloat(J),G===!0||isFinite(oe)?oe||0:J):J}}),A.each(["height","width"],function(S,P){A.cssHooks[P]={get:function(G,Q,J){if(Q)return Cn.test(A.css(G,"display"))&&(!G.getClientRects().length||!G.getBoundingClientRect().width)?gc(G,$i,function(){return Zs(G,P,J)}):Zs(G,P,J)},set:function(G,Q,J){var oe,he=Ja(G),Ie=!g.scrollboxSize()&&he.position==="absolute",Te=Ie||J,He=Te&&A.css(G,"boxSizing",!1,he)==="border-box",Xe=J?Kr(G,P,J,He,he):0;return He&&Ie&&(Xe-=Math.ceil(G["offset"+P[0].toUpperCase()+P.slice(1)]-parseFloat(he[P])-Kr(G,P,"border",!1,he)-.5)),Xe&&(oe=wt.exec(Q))&&(oe[3]||"px")!=="px"&&(G.style[P]=Q,Q=A.css(G,P)),Yr(G,Q,Xe)}}}),A.cssHooks.marginLeft=fl(g.reliableMarginLeft,function(S,P){if(P)return(parseFloat(Xs(S,"marginLeft"))||S.getBoundingClientRect().left-gc(S,{marginLeft:0},function(){return S.getBoundingClientRect().left}))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(S,P){A.cssHooks[S+P]={expand:function(G){for(var Q=0,J={},oe=typeof G=="string"?G.split(" "):[G];Q<4;Q++)J[S+dn[Q]+P]=oe[Q]||oe[Q-2]||oe[0];return J}},S!=="margin"&&(A.cssHooks[S+P].set=Yr)}),A.fn.extend({css:function(S,P){return xe(this,function(G,Q,J){var oe,he,Ie={},Te=0;if(Array.isArray(Q)){for(oe=Ja(G),he=Q.length;Te1)}});function Gi(S,P,G,Q,J){return new Gi.prototype.init(S,P,G,Q,J)}A.Tween=Gi,Gi.prototype={constructor:Gi,init:function(S,P,G,Q,J,oe){this.elem=S,this.prop=G,this.easing=J||A.easing._default,this.options=P,this.start=this.now=this.cur(),this.end=Q,this.unit=oe||(A.cssNumber[G]?"":"px")},cur:function(){var S=Gi.propHooks[this.prop];return S&&S.get?S.get(this):Gi.propHooks._default.get(this)},run:function(S){var P,G=Gi.propHooks[this.prop];return this.options.duration?this.pos=P=A.easing[this.easing](S,this.options.duration*S,0,1,this.options.duration):this.pos=P=S,this.now=(this.end-this.start)*P+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),G&&G.set?G.set(this):Gi.propHooks._default.set(this),this}},Gi.prototype.init.prototype=Gi.prototype,Gi.propHooks={_default:{get:function(S){var P;return S.elem.nodeType!==1||S.elem[S.prop]!=null&&S.elem.style[S.prop]==null?S.elem[S.prop]:(P=A.css(S.elem,S.prop,""),!P||P==="auto"?0:P)},set:function(S){A.fx.step[S.prop]?A.fx.step[S.prop](S):S.elem.nodeType===1&&(A.cssHooks[S.prop]||S.elem.style[$s(S.prop)]!=null)?A.style(S.elem,S.prop,S.now+S.unit):S.elem[S.prop]=S.now}}},Gi.propHooks.scrollTop=Gi.propHooks.scrollLeft={set:function(S){S.elem.nodeType&&S.elem.parentNode&&(S.elem[S.prop]=S.now)}},A.easing={linear:function(S){return S},swing:function(S){return .5-Math.cos(S*Math.PI)/2},_default:"swing"},A.fx=Gi.prototype.init,A.fx.step={};var Xr,ka,Ln=/^(?:toggle|show|hide)$/,wu=/queueHooks$/;function ts(){ka&&(y.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ts):n.setTimeout(ts,A.fx.interval),A.fx.tick())}function Sr(){return n.setTimeout(function(){Xr=void 0}),Xr=Date.now()}function So(S,P){var G,Q=0,J={height:S};for(P=P?1:0;Q<4;Q+=2-P)G=dn[Q],J["margin"+G]=J["padding"+G]=S;return P&&(J.opacity=J.width=S),J}function yc(S,P,G){for(var Q,J=(Pr.tweeners[P]||[]).concat(Pr.tweeners["*"]),oe=0,he=J.length;oe1)},removeAttr:function(S){return this.each(function(){A.removeAttr(this,S)})}}),A.extend({attr:function(S,P,G){var Q,J,oe=S.nodeType;if(!(oe===3||oe===8||oe===2)){if(typeof S.getAttribute>"u")return A.prop(S,P,G);if((oe!==1||!A.isXMLDoc(S))&&(J=A.attrHooks[P.toLowerCase()]||(A.expr.match.bool.test(P)?To:void 0)),G!==void 0){if(G===null){A.removeAttr(S,P);return}return J&&"set"in J&&(Q=J.set(S,G,P))!==void 0?Q:(S.setAttribute(P,G+""),G)}return J&&"get"in J&&(Q=J.get(S,P))!==null?Q:(Q=A.find.attr(S,P),Q??void 0)}},attrHooks:{type:{set:function(S,P){if(!g.radioValue&&P==="radio"&&ne(S,"input")){var G=S.value;return S.setAttribute("type",P),G&&(S.value=G),P}}}},removeAttr:function(S,P){var G,Q=0,J=P&&P.match(St);if(J&&S.nodeType===1)for(;G=J[Q++];)S.removeAttribute(G)}}),To={set:function(S,P,G){return P===!1?A.removeAttr(S,G):S.setAttribute(G,G),G}},A.each(A.expr.match.bool.source.match(/\w+/g),function(S,P){var G=Vi[P]||A.find.attr;Vi[P]=function(Q,J,oe){var he,Ie,Te=J.toLowerCase();return oe||(Ie=Vi[Te],Vi[Te]=he,he=G(Q,J,oe)!=null?Te:null,Vi[Te]=Ie),he}});var _c=/^(?:input|select|textarea|button)$/i,Cu=/^(?:a|area)$/i;A.fn.extend({prop:function(S,P){return xe(this,A.prop,S,P,arguments.length>1)},removeProp:function(S){return this.each(function(){delete this[A.propFix[S]||S]})}}),A.extend({prop:function(S,P,G){var Q,J,oe=S.nodeType;if(!(oe===3||oe===8||oe===2))return(oe!==1||!A.isXMLDoc(S))&&(P=A.propFix[P]||P,J=A.propHooks[P]),G!==void 0?J&&"set"in J&&(Q=J.set(S,G,P))!==void 0?Q:S[P]=G:J&&"get"in J&&(Q=J.get(S,P))!==null?Q:S[P]},propHooks:{tabIndex:{get:function(S){var P=A.find.attr(S,"tabindex");return P?parseInt(P,10):_c.test(S.nodeName)||Cu.test(S.nodeName)&&S.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(A.propHooks.selected={get:function(S){var P=S.parentNode;return P&&P.parentNode&&P.parentNode.selectedIndex,null},set:function(S){var P=S.parentNode;P&&(P.selectedIndex,P.parentNode&&P.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this});function ns(S){var P=S.match(St)||[];return P.join(" ")}function Da(S){return S.getAttribute&&S.getAttribute("class")||""}function gl(S){return Array.isArray(S)?S:typeof S=="string"?S.match(St)||[]:[]}A.fn.extend({addClass:function(S){var P,G,Q,J,oe,he;return v(S)?this.each(function(Ie){A(this).addClass(S.call(this,Ie,Da(this)))}):(P=gl(S),P.length?this.each(function(){if(Q=Da(this),G=this.nodeType===1&&" "+ns(Q)+" ",G){for(oe=0;oe-1;)G=G.replace(" "+J+" "," ");he=ns(G),Q!==he&&this.setAttribute("class",he)}}):this):this.attr("class","")},toggleClass:function(S,P){var G,Q,J,oe,he=typeof S,Ie=he==="string"||Array.isArray(S);return v(S)?this.each(function(Te){A(this).toggleClass(S.call(this,Te,Da(this),P),P)}):typeof P=="boolean"&&Ie?P?this.addClass(S):this.removeClass(S):(G=gl(S),this.each(function(){if(Ie)for(oe=A(this),J=0;J-1)return!0;return!1}});var vl=/\r/g;A.fn.extend({val:function(S){var P,G,Q,J=this[0];return arguments.length?(Q=v(S),this.each(function(oe){var he;this.nodeType===1&&(Q?he=S.call(this,oe,A(this).val()):he=S,he==null?he="":typeof he=="number"?he+="":Array.isArray(he)&&(he=A.map(he,function(Ie){return Ie==null?"":Ie+""})),P=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()],(!P||!("set"in P)||P.set(this,he,"value")===void 0)&&(this.value=he))})):J?(P=A.valHooks[J.type]||A.valHooks[J.nodeName.toLowerCase()],P&&"get"in P&&(G=P.get(J,"value"))!==void 0?G:(G=J.value,typeof G=="string"?G.replace(vl,""):G??"")):void 0}}),A.extend({valHooks:{option:{get:function(S){var P=A.find.attr(S,"value");return P??ns(A.text(S))}},select:{get:function(S){var P,G,Q,J=S.options,oe=S.selectedIndex,he=S.type==="select-one",Ie=he?null:[],Te=he?oe+1:J.length;for(oe<0?Q=Te:Q=he?oe:0;Q-1)&&(G=!0);return G||(S.selectedIndex=-1),oe}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(S,P){if(Array.isArray(P))return S.checked=A.inArray(A(S).val(),P)>-1}},g.checkOn||(A.valHooks[this].get=function(S){return S.getAttribute("value")===null?"on":S.value})});var Js=n.location,sa={guid:Date.now()},oa=/\?/;A.parseXML=function(S){var P,G;if(!S||typeof S!="string")return null;try{P=new n.DOMParser().parseFromString(S,"text/xml")}catch{}return G=P&&P.getElementsByTagName("parsererror")[0],(!P||G)&&A.error("Invalid XML: "+(G?A.map(G.childNodes,function(Q){return Q.textContent}).join(` -`):S)),P};var eo=/^(?:focusinfocus|focusoutblur)$/,Ec=function(S){S.stopPropagation()};A.extend(A.event,{trigger:function(S,P,G,Q){var J,oe,he,Ie,Te,He,Xe,mt,nt=[G||y],It=h.call(S,"type")?S.type:S,Sn=h.call(S,"namespace")?S.namespace.split("."):[];if(oe=mt=he=G=G||y,!(G.nodeType===3||G.nodeType===8)&&!eo.test(It+A.event.triggered)&&(It.indexOf(".")>-1&&(Sn=It.split("."),It=Sn.shift(),Sn.sort()),Te=It.indexOf(":")<0&&"on"+It,S=S[A.expando]?S:new A.Event(It,typeof S=="object"&&S),S.isTrigger=Q?2:3,S.namespace=Sn.join("."),S.rnamespace=S.namespace?new RegExp("(^|\\.)"+Sn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,S.result=void 0,S.target||(S.target=G),P=P==null?[S]:A.makeArray(P,[S]),Xe=A.event.special[It]||{},!(!Q&&Xe.trigger&&Xe.trigger.apply(G,P)===!1))){if(!Q&&!Xe.noBubble&&!T(G)){for(Ie=Xe.delegateType||It,eo.test(Ie+It)||(oe=oe.parentNode);oe;oe=oe.parentNode)nt.push(oe),he=oe;he===(G.ownerDocument||y)&&nt.push(he.defaultView||he.parentWindow||n)}for(J=0;(oe=nt[J++])&&!S.isPropagationStopped();)mt=oe,S.type=J>1?Ie:Xe.bindType||It,He=(et.get(oe,"events")||Object.create(null))[S.type]&&et.get(oe,"handle"),He&&He.apply(oe,P),He=Te&&oe[Te],He&&He.apply&&st(oe)&&(S.result=He.apply(oe,P),S.result===!1&&S.preventDefault());return S.type=It,!Q&&!S.isDefaultPrevented()&&(!Xe._default||Xe._default.apply(nt.pop(),P)===!1)&&st(G)&&Te&&v(G[It])&&!T(G)&&(he=G[Te],he&&(G[Te]=null),A.event.triggered=It,S.isPropagationStopped()&&mt.addEventListener(It,Ec),G[It](),S.isPropagationStopped()&&mt.removeEventListener(It,Ec),A.event.triggered=void 0,he&&(G[Te]=he)),S.result}},simulate:function(S,P,G){var Q=A.extend(new A.Event,G,{type:S,isSimulated:!0});A.event.trigger(Q,null,P)}}),A.fn.extend({trigger:function(S,P){return this.each(function(){A.event.trigger(S,P,this)})},triggerHandler:function(S,P){var G=this[0];if(G)return A.event.trigger(S,P,G,!0)}});var nh=/\[\]$/,Je=/\r?\n/g,_i=/^(?:submit|button|image|reset|file)$/i,Ds=/^(?:input|select|textarea|keygen)/i;function Br(S,P,G,Q){var J;if(Array.isArray(P))A.each(P,function(oe,he){G||nh.test(S)?Q(S,he):Br(S+"["+(typeof he=="object"&&he!=null?oe:"")+"]",he,G,Q)});else if(!G&&M(P)==="object")for(J in P)Br(S+"["+J+"]",P[J],G,Q);else Q(S,P)}A.param=function(S,P){var G,Q=[],J=function(oe,he){var Ie=v(he)?he():he;Q[Q.length]=encodeURIComponent(oe)+"="+encodeURIComponent(Ie??"")};if(S==null)return"";if(Array.isArray(S)||S.jquery&&!A.isPlainObject(S))A.each(S,function(){J(this.name,this.value)});else for(G in S)Br(G,S[G],P,J);return Q.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var S=A.prop(this,"elements");return S?A.makeArray(S):this}).filter(function(){var S=this.type;return this.name&&!A(this).is(":disabled")&&Ds.test(this.nodeName)&&!_i.test(S)&&(this.checked||!ii.test(S))}).map(function(S,P){var G=A(this).val();return G==null?null:Array.isArray(G)?A.map(G,function(Q){return{name:P.name,value:Q.replace(Je,`\r -`)}}):{name:P.name,value:G.replace(Je,`\r -`)}}).get()}});var ih=/%20/g,Su=/#.*$/,Tu=/([?&])_=[^&]*/,bl=/^(.*?):[ \t]*([^\r\n]*)$/mg,yl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Kt=/^(?:GET|HEAD)$/,Ns=/^\/\//,to={},pi={},la="*/".concat("*"),Ac=y.createElement("a");Ac.href=Js.href;function ku(S){return function(P,G){typeof P!="string"&&(G=P,P="*");var Q,J=0,oe=P.toLowerCase().match(St)||[];if(v(G))for(;Q=oe[J++];)Q[0]==="+"?(Q=Q.slice(1)||"*",(S[Q]=S[Q]||[]).unshift(G)):(S[Q]=S[Q]||[]).push(G)}}function wc(S,P,G,Q){var J={},oe=S===pi;function he(Ie){var Te;return J[Ie]=!0,A.each(S[Ie]||[],function(He,Xe){var mt=Xe(P,G,Q);if(typeof mt=="string"&&!oe&&!J[mt])return P.dataTypes.unshift(mt),he(mt),!1;if(oe)return!(Te=mt)}),Te}return he(P.dataTypes[0])||!J["*"]&&he("*")}function xc(S,P){var G,Q,J=A.ajaxSettings.flatOptions||{};for(G in P)P[G]!==void 0&&((J[G]?S:Q||(Q={}))[G]=P[G]);return Q&&A.extend(!0,S,Q),S}function tr(S,P,G){for(var Q,J,oe,he,Ie=S.contents,Te=S.dataTypes;Te[0]==="*";)Te.shift(),Q===void 0&&(Q=S.mimeType||P.getResponseHeader("Content-Type"));if(Q){for(J in Ie)if(Ie[J]&&Ie[J].test(Q)){Te.unshift(J);break}}if(Te[0]in G)oe=Te[0];else{for(J in G){if(!Te[0]||S.converters[J+" "+Te[0]]){oe=J;break}he||(he=J)}oe=oe||he}if(oe)return oe!==Te[0]&&Te.unshift(oe),G[oe]}function Du(S,P,G,Q){var J,oe,he,Ie,Te,He={},Xe=S.dataTypes.slice();if(Xe[1])for(he in S.converters)He[he.toLowerCase()]=S.converters[he];for(oe=Xe.shift();oe;)if(S.responseFields[oe]&&(G[S.responseFields[oe]]=P),!Te&&Q&&S.dataFilter&&(P=S.dataFilter(P,S.dataType)),Te=oe,oe=Xe.shift(),oe){if(oe==="*")oe=Te;else if(Te!=="*"&&Te!==oe){if(he=He[Te+" "+oe]||He["* "+oe],!he){for(J in He)if(Ie=J.split(" "),Ie[1]===oe&&(he=He[Te+" "+Ie[0]]||He["* "+Ie[0]],he)){he===!0?he=He[J]:He[J]!==!0&&(oe=Ie[0],Xe.unshift(Ie[1]));break}}if(he!==!0)if(he&&S.throws)P=he(P);else try{P=he(P)}catch(mt){return{state:"parsererror",error:he?mt:"No conversion from "+Te+" to "+oe}}}}return{state:"success",data:P}}A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Js.href,type:"GET",isLocal:yl.test(Js.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":la,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(S,P){return P?xc(xc(S,A.ajaxSettings),P):xc(A.ajaxSettings,S)},ajaxPrefilter:ku(to),ajaxTransport:ku(pi),ajax:function(S,P){typeof S=="object"&&(P=S,S=void 0),P=P||{};var G,Q,J,oe,he,Ie,Te,He,Xe,mt,nt=A.ajaxSetup({},P),It=nt.context||nt,Sn=nt.context&&(It.nodeType||It.jquery)?A(It):A.event,Fn=A.Deferred(),In=A.Callbacks("once memory"),nr=nt.statusCode||{},Wi={},ca={},ua="canceled",Pn={readyState:0,getResponseHeader:function(Yt){var mi;if(Te){if(!oe)for(oe={};mi=bl.exec(J);)oe[mi[1].toLowerCase()+" "]=(oe[mi[1].toLowerCase()+" "]||[]).concat(mi[2]);mi=oe[Yt.toLowerCase()+" "]}return mi==null?null:mi.join(", ")},getAllResponseHeaders:function(){return Te?J:null},setRequestHeader:function(Yt,mi){return Te==null&&(Yt=ca[Yt.toLowerCase()]=ca[Yt.toLowerCase()]||Yt,Wi[Yt]=mi),this},overrideMimeType:function(Yt){return Te==null&&(nt.mimeType=Yt),this},statusCode:function(Yt){var mi;if(Yt)if(Te)Pn.always(Yt[Pn.status]);else for(mi in Yt)nr[mi]=[nr[mi],Yt[mi]];return this},abort:function(Yt){var mi=Yt||ua;return G&&G.abort(mi),ur(0,mi),this}};if(Fn.promise(Pn),nt.url=((S||nt.url||Js.href)+"").replace(Ns,Js.protocol+"//"),nt.type=P.method||P.type||nt.method||nt.type,nt.dataTypes=(nt.dataType||"*").toLowerCase().match(St)||[""],nt.crossDomain==null){Ie=y.createElement("a");try{Ie.href=nt.url,Ie.href=Ie.href,nt.crossDomain=Ac.protocol+"//"+Ac.host!=Ie.protocol+"//"+Ie.host}catch{nt.crossDomain=!0}}if(nt.data&&nt.processData&&typeof nt.data!="string"&&(nt.data=A.param(nt.data,nt.traditional)),wc(to,nt,P,Pn),Te)return Pn;He=A.event&&nt.global,He&&A.active++===0&&A.event.trigger("ajaxStart"),nt.type=nt.type.toUpperCase(),nt.hasContent=!Kt.test(nt.type),Q=nt.url.replace(Su,""),nt.hasContent?nt.data&&nt.processData&&(nt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(nt.data=nt.data.replace(ih,"+")):(mt=nt.url.slice(Q.length),nt.data&&(nt.processData||typeof nt.data=="string")&&(Q+=(oa.test(Q)?"&":"?")+nt.data,delete nt.data),nt.cache===!1&&(Q=Q.replace(Tu,"$1"),mt=(oa.test(Q)?"&":"?")+"_="+sa.guid+++mt),nt.url=Q+mt),nt.ifModified&&(A.lastModified[Q]&&Pn.setRequestHeader("If-Modified-Since",A.lastModified[Q]),A.etag[Q]&&Pn.setRequestHeader("If-None-Match",A.etag[Q])),(nt.data&&nt.hasContent&&nt.contentType!==!1||P.contentType)&&Pn.setRequestHeader("Content-Type",nt.contentType),Pn.setRequestHeader("Accept",nt.dataTypes[0]&&nt.accepts[nt.dataTypes[0]]?nt.accepts[nt.dataTypes[0]]+(nt.dataTypes[0]!=="*"?", "+la+"; q=0.01":""):nt.accepts["*"]);for(Xe in nt.headers)Pn.setRequestHeader(Xe,nt.headers[Xe]);if(nt.beforeSend&&(nt.beforeSend.call(It,Pn,nt)===!1||Te))return Pn.abort();if(ua="abort",In.add(nt.complete),Pn.done(nt.success),Pn.fail(nt.error),G=wc(pi,nt,P,Pn),!G)ur(-1,"No Transport");else{if(Pn.readyState=1,He&&Sn.trigger("ajaxSend",[Pn,nt]),Te)return Pn;nt.async&&nt.timeout>0&&(he=n.setTimeout(function(){Pn.abort("timeout")},nt.timeout));try{Te=!1,G.send(Wi,ur)}catch(Yt){if(Te)throw Yt;ur(-1,Yt)}}function ur(Yt,mi,is,Do){var $r,No,Tr,rs,Na,kr=mi;Te||(Te=!0,he&&n.clearTimeout(he),G=void 0,J=Do||"",Pn.readyState=Yt>0?4:0,$r=Yt>=200&&Yt<300||Yt===304,is&&(rs=tr(nt,Pn,is)),!$r&&A.inArray("script",nt.dataTypes)>-1&&A.inArray("json",nt.dataTypes)<0&&(nt.converters["text script"]=function(){}),rs=Du(nt,rs,Pn,$r),$r?(nt.ifModified&&(Na=Pn.getResponseHeader("Last-Modified"),Na&&(A.lastModified[Q]=Na),Na=Pn.getResponseHeader("etag"),Na&&(A.etag[Q]=Na)),Yt===204||nt.type==="HEAD"?kr="nocontent":Yt===304?kr="notmodified":(kr=rs.state,No=rs.data,Tr=rs.error,$r=!Tr)):(Tr=kr,(Yt||!kr)&&(kr="error",Yt<0&&(Yt=0))),Pn.status=Yt,Pn.statusText=(mi||kr)+"",$r?Fn.resolveWith(It,[No,kr,Pn]):Fn.rejectWith(It,[Pn,kr,Tr]),Pn.statusCode(nr),nr=void 0,He&&Sn.trigger($r?"ajaxSuccess":"ajaxError",[Pn,nt,$r?No:Tr]),In.fireWith(It,[Pn,kr]),He&&(Sn.trigger("ajaxComplete",[Pn,nt]),--A.active||A.event.trigger("ajaxStop")))}return Pn},getJSON:function(S,P,G){return A.get(S,P,G,"json")},getScript:function(S,P){return A.get(S,void 0,P,"script")}}),A.each(["get","post"],function(S,P){A[P]=function(G,Q,J,oe){return v(Q)&&(oe=oe||J,J=Q,Q=void 0),A.ajax(A.extend({url:G,type:P,dataType:oe,data:Q,success:J},A.isPlainObject(G)&&G))}}),A.ajaxPrefilter(function(S){var P;for(P in S.headers)P.toLowerCase()==="content-type"&&(S.contentType=S.headers[P]||"")}),A._evalUrl=function(S,P,G){return A.ajax({url:S,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Q){A.globalEval(Q,P,G)}})},A.fn.extend({wrapAll:function(S){var P;return this[0]&&(v(S)&&(S=S.call(this[0])),P=A(S,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&P.insertBefore(this[0]),P.map(function(){for(var G=this;G.firstElementChild;)G=G.firstElementChild;return G}).append(this)),this},wrapInner:function(S){return v(S)?this.each(function(P){A(this).wrapInner(S.call(this,P))}):this.each(function(){var P=A(this),G=P.contents();G.length?G.wrapAll(S):P.append(S)})},wrap:function(S){var P=v(S);return this.each(function(G){A(this).wrapAll(P?S.call(this,G):S)})},unwrap:function(S){return this.parent(S).not("body").each(function(){A(this).replaceWith(this.childNodes)}),this}}),A.expr.pseudos.hidden=function(S){return!A.expr.pseudos.visible(S)},A.expr.pseudos.visible=function(S){return!!(S.offsetWidth||S.offsetHeight||S.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch{}};var Nu={0:200,1223:204},ko=A.ajaxSettings.xhr();g.cors=!!ko&&"withCredentials"in ko,g.ajax=ko=!!ko,A.ajaxTransport(function(S){var P,G;if(g.cors||ko&&!S.crossDomain)return{send:function(Q,J){var oe,he=S.xhr();if(he.open(S.type,S.url,S.async,S.username,S.password),S.xhrFields)for(oe in S.xhrFields)he[oe]=S.xhrFields[oe];S.mimeType&&he.overrideMimeType&&he.overrideMimeType(S.mimeType),!S.crossDomain&&!Q["X-Requested-With"]&&(Q["X-Requested-With"]="XMLHttpRequest");for(oe in Q)he.setRequestHeader(oe,Q[oe]);P=function(Ie){return function(){P&&(P=G=he.onload=he.onerror=he.onabort=he.ontimeout=he.onreadystatechange=null,Ie==="abort"?he.abort():Ie==="error"?typeof he.status!="number"?J(0,"error"):J(he.status,he.statusText):J(Nu[he.status]||he.status,he.statusText,(he.responseType||"text")!=="text"||typeof he.responseText!="string"?{binary:he.response}:{text:he.responseText},he.getAllResponseHeaders()))}},he.onload=P(),G=he.onerror=he.ontimeout=P("error"),he.onabort!==void 0?he.onabort=G:he.onreadystatechange=function(){he.readyState===4&&n.setTimeout(function(){P&&G()})},P=P("abort");try{he.send(S.hasContent&&S.data||null)}catch(Ie){if(P)throw Ie}},abort:function(){P&&P()}}}),A.ajaxPrefilter(function(S){S.crossDomain&&(S.contents.script=!1)}),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(S){return A.globalEval(S),S}}}),A.ajaxPrefilter("script",function(S){S.cache===void 0&&(S.cache=!1),S.crossDomain&&(S.type="GET")}),A.ajaxTransport("script",function(S){if(S.crossDomain||S.scriptAttrs){var P,G;return{send:function(Q,J){P=A(" - + +
diff --git a/electron/main.ts b/electron/main.ts index 4a83fac..b98c651 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -50,7 +50,7 @@ function createWindow() { win?.webContents.send('main-process-message', '') }); - Menu.setApplicationMenu(null); + // Menu.setApplicationMenu(null); if (VITE_DEV_SERVER_URL) { win.loadURL(VITE_DEV_SERVER_URL) @@ -81,34 +81,10 @@ app.on('activate', () => { app.whenReady().then(createWindow); -ipcMain.on('openExportWindow', (e, arg) => { - var w = new BrowserWindow({ - // icon: path.join(process.env.VITE_PUBLIC, 'icon.png') - webPreferences: { - // preload: path.join(__dirname, 'preload.js'), - nodeIntegration: true, - contextIsolation: false, - webSecurity: false, - enableRemoteModule: true - }, - }); - - require('@electron/remote/main').enable(w.webContents); - - - - w.webContents.on('did-finish-load', () => { - - w?.webContents.send('main-process-message', arg) - }); - - if (VITE_DEV_SERVER_URL) { - win.loadURL(VITE_DEV_SERVER_URL) - } else { - // win.loadFile('dist/index.html') - win.loadFile(path.join(process.env.DIST, 'index.html')) - } - +ipcMain.on('openDevTools', (e, arg) => { + if(win){ + win.webContents.openDevTools(); + } }) app.on('window-all-closed', () => { diff --git a/index.html b/index.html index f53e736..99537ea 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,8 @@ + + MarkMind diff --git a/package.json b/package.json index 7964115..cd3fb94 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "MarkMind", "private": true, - "version": "0.0.1", + "version": "0.0.0", "scripts": { "dev": "vite", - "build": "electron-builder", + "build": "vite build", + "production":"electron-builder", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, diff --git a/public/main.css b/public/main.css new file mode 100644 index 0000000..e69de29 diff --git a/public/styles.css b/public/styles.css new file mode 100644 index 0000000..d942954 --- /dev/null +++ b/public/styles.css @@ -0,0 +1,2106 @@ +/* @font-face{ + font-family: 'myFont'; + src:url('http://cdn.ghost-jack.top/chinese.ttf'); +} */ + + +.mm-handdraw-theme { + font-family: 'myFont'; +} + +.mm-app-container { + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + font-family: Helvetica, Tahoma, Arial, "PingFang SC", STXihei, "Microsoft yahei", "WenQuanYi Micro Hei", sans-serif; + flex-direction: column; + display: flex; +} + +::-webkit-scrollbar-track-piece { + width: 14px; + background-color: #e0e0e0; +} + +::-webkit-scrollbar { + width: 10px; + height: 8px; +} + +::-webkit-scrollbar-thumb { + height: 50px; + background: #b1b1b1; + cursor: pointer; +} + +::-webkit-scrollbar-corner { + background-color: #b1b1b1; +} + +.theme-dark ::-webkit-scrollbar-track-piece { + width: 14px; + background-color: #333; +} + +.theme-dark ::-webkit-scrollbar { + width: 10px; + height: 8px; + background: transparent; +} + +.theme-dark ::-webkit-scrollbar-thumb { + height: 50px; + background: #666; + cursor: pointer; +} + +.theme-dark ::-webkit-scrollbar-thumb:hover { + background: #aaa; + cursor: pointer; +} + +.theme-dark ::-webkit-scrollbar-corner { + background-color: #333; +} + + +.mm-mindmap-container { + width: 100%; + height: 100%; + overflow: auto; + font-size: 12px; +} + +.mm-pdf-container { + flex: auto; + height: 100%; + overflow: hidden; + position: relative; + left: 0; + right: 0; + top: 0px; + padding-top: 36px; + user-select: text !important; + -webkit-user-select: text !important; + font-size: 10px; + display: none; +} + +.mm-mobile-app .mm-pdf-container { + padding-top: 50px; +} + +.mm-pdf-container .pdf-container { + padding: 0; +} + +.mm-pdf-container .pdf-container .pdf { + height: 100%; + width: 100%; +} + +.pdf * { + box-sizing: content-box; +} + +.mm-mindmap { + color: #666; + font-size: 16px; + width: 8000px; + height: 8000px; + transition: all 0.15s linear; + +} + +.theme-dark .mm-node { + color: #f5f5f5; +} + +.theme-dark .mm-node.mm-root { + color: #333; +} + +.theme-light .mm-node.mm-root>.mm-node-content { + color: #fff; + background-color: rgb(0, 170, 255); +} + +.mm-node { + position: absolute; + cursor: pointer; + box-sizing: border-box; +} + +.mm-node .mm-node-content { + padding: 2px 4px; + max-width: 450px; + word-break: break-word; + white-space: normal; + display: flex; + align-items: center; + min-height: 24px; + min-width: 10px; + border-radius: 4px; +} + +.mm-node.node-wireFrame .mm-node-content { + border-radius: 6px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + margin-top: -1px; +} + +.mm-node .mm-node-content>p, +.mm-node .mm-node-content>h1, +.mm-node .mm-node-content>h2, +.mm-node .mm-node-content>h3, +.mm-node .mm-node-content>h4, +.mm-node .mm-node-content>h5, +.mm-node .mm-node-content>h6, +.mm-node .mm-node-content>ol, +.mm-node .mm-node-content>ul { + padding: 0; + margin: 0; +} + +.mm-node-edit { + outline: none; +} + +.mm-node-edit>p, +.mm-node-edit>h1, +.mm-node-edit>h2, +.mm-node-edit>h3, +.mm-node-edit>h4, +.mm-node-edit>h5, +.mm-node-edit>h6, +.mm-node-edit>ol, +.mm-node-edit>ul { + padding: 0; + margin: 0; +} + +.mm-node-edit>ol, +.mm-node-edit>ul { + padding-left: 20px; +} + +/* 笔记渲染表格 */ + + + +.mm-node .mm-node-content table th, +.mm-node-note-container table th { + font-weight: 600; +} + +.mm-node .mm-node-content table th, +.mm-node .mm-node-content table td, +.mm-node-note-container table th, +.mm-node-note-container table td { + padding: 6px 13px; + border: 1px solid #d0d7de; +} + +.mm-node .mm-node-content table tr, +.mm-node-note-container table tr { + background-color: #ffffff; + border-top: 1px solid hsla(210, 18%, 87%, 1); +} + +.mm-node .mm-node-content table tr:nth-child(2n), +.mm-node-note-container table tr:nth-child(2n) { + background-color: #f6f8fa; +} + +.mm-node .mm-node-content table img, +.mm-node-note-container table img { + background-color: transparent; +} + +/* .mm-node .mm-node-content img[align=right] { + padding-left: 20px; +} + +.mm-node .mm-node-content img[align=left] { + padding-right: 20px; +} */ + + +.mm-node-edit>.callout { + margin: 0; +} + +.mm-node.mm-root>.mm-node-content { + font-size: 1.6em; + padding: 14px 20px; + border-radius: 0.25rem; + background: white; +} + +.mm-node.mm-node-second>.mm-node-content { + padding: 8px 10px; + font-size: 1.2em; +} + +.mm-node.mm-node-select { + border: 2px solid rgb(120, 96, 175); + border-radius: 0.25rem; +} + +.mm-node-bar { + position: absolute; + height: 10px; + width: 10px; + border-radius: 50%; + padding: 0 3px; + bottom: -8px; + box-sizing: border-box; +} + +.mm-node-bar:hover { + transform: scale(1.2); +} + + + +.mm-node-right>.mm-node-bar, +.mm-node.mm-root>.mm-node-bar { + right: -10px; +} + +.mm-node-right.mm-mindmap2-node>.mm-node-bar { + right: -20px; + top: 50%; + margin-top: -5px; +} + +.mm-node-right.mm-mindmap1-node>.mm-node-bar { + right: -20px; + top: 50%; + margin-top: -5px; +} + + +.mm-root>.mm-node-bar, +.mm-node-second>.mm-node-bar { + top: 50%; + margin-top: -5px; + bottom: inherit; +} + +.mm-node-down.mm-multipleTree-node>.mm-node-bar { + left: 50% !important; + margin-left: -5px !important; + top: 100% !important; + margin-top: 4px !important; +} + +.mm-node-down>.mm-node-bar { + left: 50%; + margin-left: -5px; + top: 100%; + margin-top: 4px; +} + +.mm-node-up>.mm-node-bar { + left: 50%; + margin-left: -5px; + top: -15px; +} + +.mm-node-left>.mm-node-bar { + left: -10px; +} + +.mm-node-left.mm-mindmap2-node>.mm-node-bar { + left: -20px; + top: 50%; + margin-top: -5px; +} + +.mm-node-left.mm-mindmap1-node>.mm-node-bar { + left: -20px; + top: 50%; + margin-top: -5px; +} + +.mm-node-right.mm-fish-node>.mm-node-bar { + bottom: -6px !important; + right: -12px !important; + top: auto; +} + +.mm-node-left.mm-fish-node>.mm-node-bar { + bottom: -6px !important; + left: -12px !important; + top: auto; +} + +.mm-node-collapse>.mm-node-bar { + display: block !important; + box-sizing: border-box; + border: 0px; + background-color: #fff !important; + border: 2px solid #ccc; +} + +.mm-root>.mm-node-bar, +.mm-node-leaf>.mm-node-bar, +.mm-node-induce>.mm-node-bar { + display: none !important; +} + +.mm-node.mm-node-induce .mm-node-content { + background-color: var(--background-primary); +} + +.mm-vertical-node { + background-color: var(--background-primary); +} + + + +/* node indicate */ +.mm-node-layout-indicate { + position: absolute; + left: 0; + top: 0; + width: 0; + height: 0; + border: 20px solid transparent; + border-bottom: 40px solid rgb(90, 72, 131); + transform-origin: center center; + z-index: 1000; +} + +.mm-node-layout-indicate.mm-arrow-left { + transform: rotate(-90deg) +} + +.mm-node-layout-indicate.mm-arrow-down { + transform: rotate(180deg) +} + +.mm-node-layout-indicate.mm-arrow-right { + transform: rotate(-270deg) +} + + +/* edit node style */ +.mm-node.mm-edit-node { + z-index: 50; +} + +.mm-node.mm-edit-node .mm-node-content { + background-color: #333 !important; + color: white !important; +} + +.theme-light .mm-node.mm-edit-node .mm-node-content { + background-color: white !important; + color: #333 !important; +} + +/* menu */ +.mm-node-menu { + position: absolute; + background: #333; + border: 1px solid #000; + width: 240px; + border-radius: 0.25rem; + z-index: 6000; + height: 32px; + box-sizing: border-box; + display: none; + /* justify-content: center; */ + align-items: center; + flex-direction: row; +} +.mm-context-menu { + position: absolute; + background: #333; + border: 1px solid #000; + width: 240px; + border-radius: 0.25rem; + z-index: 6000; + box-sizing: border-box; + display: none; + /* justify-content: center; */ + align-items: center; + flex-direction: row; + line-height: 30px; + padding: 6px; + cursor: pointer; + +} + +.mm-node-menu.reverse { + flex-direction: row-reverse; +} + +.theme-light .mm-node-menu, +.theme-light .mm-context-menu { + background: white; + border: 1px solid #666; +} + +.mm-node-menu span { + vertical-align: middle; + cursor: pointer; + padding: 6px 7px; + display: flex; + justify-content: center; + align-items: center; +} + +.mm-node-menu span svg { + fill: #ccc; +} + +.mm-node-menu span svg:hover { + opacity: 0.8; +} + +.theme-light .mm-node-menu svg { + fill: #333; +} + + +.mm-drag { + position: absolute; + z-index: 5000; + left: 2000px; + top: 2000px; + color: #f5f5f5; + min-height: 20px; + min-width: 60px; + border: 1px solid rgb(0, 170, 255); + background: none; + pointer-events: none; + display: none; +} + +.drag-top { + background-color: rgb(0, 170, 255); + height: 10px; + width: 100%; + top: -10px; + left: 0; + cursor: n-resize; + position: absolute; + pointer-events: all; +} + +.drag-top .d3 { + margin: 0 auto; + margin-top: -20px; + width: 0; + height: 0; + border-width: 10px; + border-style: solid; + border-color: transparent rgb(0, 170, 255) transparent transparent; + transform: rotate(90deg); + /*顺时针旋转90°*/ +} + +.drag-bottom { + background-color: rgb(0, 170, 255); + height: 10px; + width: 100%; + bottom: -10px; + left: 0; + cursor: s-resize; + position: absolute; + pointer-events: all; +} + +.drag-bottom .d4 { + margin: 0 auto; + width: 0; + height: 0; + top: 0; + border-width: 10px; + border-style: solid; + border-color: rgb(0, 170, 255) transparent transparent; + margin-top: 10px; +} + +.mm-drag.model-right .drag-top { + background-color: rgb(0, 170, 255); + height: 100%; + width: 10px; + top: 0; + left: -10px; + cursor: w-resize; + position: absolute; + pointer-events: all; +} + +.mm-drag.model-right .drag-top .d3 { + margin: 0 auto; + margin-left: -20px; + width: 0; + height: 0; + border-width: 10px; + border-style: solid; + border-color: transparent rgb(0, 170, 255) transparent transparent; + transform: rotate(0); + position: absolute; + top: 50%; + margin-top: -10px; +} + +.mm-drag.model-right .drag-bottom { + background-color: rgb(0, 170, 255); + height: 100%; + width: 10px; + top: 0; + right: -10px; + cursor: e-resize; + position: absolute; + pointer-events: all; + left: 100%; +} + +.mm-drag.model-right .drag-bottom .d4 { + margin: 0 auto; + width: 0; + height: 0; + top: 0; + border-width: 10px; + border-style: solid; + border-color: rgb(0, 170, 255) transparent transparent; + margin-top: 10px; + position: absolute; + top: 50%; + margin-top: -10px; + margin-left: 10px; + transform: rotate(-90deg); +} + + + +.mm-node-assist .mm-node-annotate { + /* float: left; */ + width: 20px; + line-height: 16px; + padding-top: 4px; +} + +/* .mm-edit-node .mm-node-assist .mm-node-annotate{ + float: none; + display: none; +} */ + + +/* relate link text node */ +.node-relate .mm-node-bar { + display: none; +} + +.mm-link-board { + position: absolute; + background-color: rgb(68 68 68); + border: 1px solid #000; + color: white; + min-width: 300px; + min-height: 200px; + max-width: 500px; + padding: 10px 0; + border-radius: 3px; + z-index: 1000; + +} + +.mm-link-board ul { + margin: 0; + padding: 0; +} + +.mm-link-board ul li { + line-height: 24px; + padding: 0 6px; + cursor: pointer; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.mm-link-board ul li:hover, +.mm-file-name.active { + color: #ccc; + background-color: #000; +} + +.mm-link-board .mm-file-ext { + font-size: 0.6em; + padding-right: 6px; +} + +.mm-block-ext { + font-size: 0.6em; + padding-right: 6px; +} + +.mm-block { + position: absolute; + left: 98%; + top: 0px; + width: 300px; + background-color: rgb(68 68 68); + border: 1px solid #000; + color: white; + min-height: 200px; + display: none; + border-radius: 3px; + padding: 6px 0; +} + +.mm-assist-board { + position: absolute; + background: #333; + border: 1px solid #000; + width: 230px; + border-radius: 0.25rem; + z-index: 60; + color: #ccc; + padding: 4px; + box-sizing: border-box; +} + +.mm-assist-color { + display: inline-block; + width: 20px; + height: 20px; + border-radius: 5px; + cursor: pointer; +} + +.mm-assist-board svg { + fill: #817f7f; +} + +.mm-assist-lineType span { + margin-right: 6px; + cursor: pointer; +} + +.theme-light .mm-assist-board { + background: white; + border: 1px solid #666; +} + +.mm-color-red { + background-color: red +} + +.mm-color-orange { + background-color: orange +} + +.mm-color-yellow { + background-color: yellow +} + +.mm-color-green { + background-color: green +} + +.mm-color-blue { + background-color: blue +} + +.mm-color-indigo { + background-color: indigo +} + +.mm-color-purple { + background-color: purple +} + +.mm-assist-delete, +.mm-assist-group-name { + padding: 4px; + cursor: pointer; +} + +.mm-color-black { + background-color: #9e9d9d; +} + +.mm-color-white { + background-color: #fff; + border: 1px solid #e0dfdf; +} + +/* pdf js */ +#closePDF::before { + background-color: transparent !important; + cursor: pointer; +} + +#closePDF:hover { + background-color: #f5f5f5; +} + +.treeItem.selected>a { + color: #999 !important; +} + +.treeItem>a { + color: #888 !important; +} + +.treeItemToggler::before { + background-color: #666 !important; +} + +.thumbnail.selected>.thumbnailSelectionRing { + background-color: #666 !important; +} + +.annoate-btn.rect { + background-color: transparent !important; +} + +.annoate-btn.rect svg { + fill: #333; +} + +.annoate-btn.delete { + background-color: transparent !important; +} + +.annoate-btn.delete svg { + fill: #333; +} + + + + +.cicada-list { + background: #f2f2f2; + top: 24px; + overflow-y: auto; + text-align: left; + /* position: fixed; */ + left: 0; + bottom: 0; + right: 0; + top: 0; + height: 100%; +} + +.mm-list ul { + margin-left: 10px; + padding: 0; + border-left: 1px solid #4a4949; + line-height: 30px; +} + +.mm-list li { + list-style: none; + padding-left: 16px; +} + +/* .cicada-list ul>li:first-child{ + border-left:1px dotted #ccc; +} */ +.mm-list .text { + /* display: inline-block; */ + + outline: transparent dotted thick; + /* margin-left:30px; */ +} + +/* .cicada-list li.select{ + border:1px solid #ccc; +} */ +.mm-list { + border-left: 0; + max-width: 900px; + margin: 60px auto; + min-width: 400px; + font-size: 16px; + min-height: 600px; + padding: 10px; + box-sizing: border-box; +} + +.mm-router { + max-width: 900px; + margin: 40px auto 0 auto; + padding: 10px; + box-sizing: border-box; + color: #a0a0a0; +} + +.mm-router span { + font-size: 14px; + cursor: pointer; + display: inline-block; + max-width: 200px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + vertical-align: middle; +} + +.mm-router span:hover { + color: #f5f5f5; +} + +.theme-light .mm-router span:hover { + color: #333; +} + +.mm-mindmap-container>.mm-link-board { + position: fixed; +} + +/* .theme-dark .mm-list{ + background: #282828; + box-shadow: 0 0 4px #333; +} */ + +/* .rich-edit { + position: fixed; + right: 20px; + top: 20px; + background: #fff; + padding: 6px; + border-radius: 3px; + border: 1px solid #f5f5f5; + font-size: 14px; + z-index: 4000; + cursor: pointer; +} */ +/* .btn-group{ + font-weight: bold; +} */ +/* .btn-group a { + text-decoration: none; + color: #666; + display: inline-block; + min-width: 24px; + line-height: 24px; + text-align: center; + margin: 2px; + height: 24px; + border-radius: 50%; + vertical-align: middle; +} +.btn-group > a:first-child { + color: #ccc; +} */ + +.li-node { + position: relative; + box-sizing: border-box; +} + +.li-node ul { + top: 0; + visibility: visible; +} + +.li-node ul.hide { + position: absolute; + top: -500px; + visibility: hidden; + transition: top, visibility 0.5s, 0.5s ease, ease; +} + +.li-node .node-open { + font-size: 12px; + vertical-align: top; + padding-right: 6px; + cursor: pointer; + position: absolute; + left: -38px; + display: none; + color: #666; +} + +.li-node .node-open svg { + + fill: #ccc; + margin-top: 5px; + margin-left: 2px; +} + +.li-node .icon-dott { + display: inline-block; + width: 6px; + background-color: #202020; + position: absolute; + left: -20px; + top: 0px; + height: 30px; + cursor: move; +} + +.li-node .icon-dott:hover span { + background-color: #666; +} + +.li-node .icon-dott span { + border-radius: 50%; + width: 6px; + height: 6px; + background-color: #7a7a7a; + position: absolute; + left: 1px; + top: 12px; + line-height: 30px; +} + +.li-node.node-expand>.node-control>.icon-dott span:before { + display: "block"; + content: ""; + position: absolute; + width: 10px; + height: 10px; + border-radius: 50%; + border: 0; + left: -3px; + top: -3px; +} + +.li-node>.node-control>.icon-dott span:before { + display: "block"; + content: ""; + position: absolute; + width: 10px; + height: 10px; + border-radius: 50%; + border: 1px solid #444343; + left: -3px; + top: -3px; +} + +/* .li-node .node-open.icon-iconjia{ + display: block; +} */ + +.li-node.node-no-border { + padding-left: 0; +} + +.li-node.node-no-border>ul { + margin-left: 0px; + padding: 0; + border-left: 0px dashed #eee; +} + +.node-control:hover>.node-open { + display: block; +} + +.node-leaf .node-control:hover>.node-open { + display: none; +} + +.node-leaf .node-open { + display: none !important; +} + +.node-add-top>.node-control:before { + display: block; + content: ""; + position: absolute; + top: 0; + height: 2px; + background-color: blue; + width: 100%; + box-sizing: border-box; + z-index: 10; + margin: 2px 0; +} + +.node-add-bottom>.node-control:after { + display: block; + content: ""; + position: absolute; + bottom: 0; + height: 2px; + + background-color: blue; + width: 100%; + box-sizing: border-box; + z-index: 10; + margin: 2px 0; +} + +.node-control { + position: relative; +} + +.route { + width: 1060px; + margin: 10px auto; + /* border-bottom: 1px solid #f6f6f6; */ + cursor: pointer; + color: #666; + font-size: 12px; + margin: 0 auto; + margin-top: 30px; +} + +.route ul { + border: 0 !important; + margin: 0; + line-height: 24px; +} + +.route li { + display: inline-block; + line-height: 28px; + padding-left: 0; +} + +.route li span { + display: inline-block; + vertical-align: middle; +} + +.route li span.text { + max-width: 200px; + padding: 0; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.route li:first-child { + margin-left: 0; +} + +.route li:hover { + color: #333; +} + +.theme-dark .route li { + color: rgba(255, 255, 255, 0.4); +} + +.theme-dark .route li:hover { + color: rgba(255, 255, 255, 0.6); +} + +/* .route-item span{ + margin:0 6px; +} */ + +.li-node .node-link { + color: #666; + font-size: 14px; +} + +.li-node .node-remark { + background: #f5f5f5; + outline: transparent solid 2px; + padding: 2px 6px; + color: inherit; + font-size: 12px; + line-height: 20px; + border-radius: 3px +} + +.theme-dark .li-node .node-remark { + background: #2d2d2d; +} + +.theme-sepia .li-node .node-remark { + background: rgba(255, 246, 237, 0.6); +} + +.li-node .node-image { + padding: 6px; + background: transparent; + position: relative; + display: inline-block; + border: 1px solid transparent; +} + +.li-node .node-image:hover { + border: 1px solid #ccc; +} + +.li-node .node-image:hover .node-resize, +.li-node .node-image:hover .node-delete { + display: block; +} + +.li-node .node-resize { + position: absolute; + width: auto; + height: 20px; + z-index: 200; + right: 0; + bottom: 4px; + cursor: nw-resize; + display: none; +} + +.li-node .node-delete { + position: absolute; + right: 2px; + top: 0; + cursor: pointer; + display: none; +} + +.li-node .node-assist { + height: 30px; + box-sizing: border-box; + padding-top: 8px; +} + +.linkSetup { + position: absolute; + z-index: 120; + padding: 6px 10px; + /* border:1px solid #ccc; */ + background: #ffeac3; + border-radius: 2px; +} + +.linkSetup::before { + content: ""; + display: block; + width: 0; + height: 0; + border: 8px solid; + border-color: transparent transparent #ffeac3; + top: -16px; + position: absolute; + left: 8px; +} + +.linkSetup span { + display: inline-block; + width: 50px; + height: 30px; + line-height: 30px; + background: #666; + color: #fff; + margin: 6px; + text-align: center; + border-radius: 3px; + cursor: pointer; + font-size: 14px; +} + +.linkSetup span:hover { + opacity: 0.8; +} + +.mm-list li.node-showNode { + padding-left: 0; +} + +.mm-list li.node-showNode>.node-control { + margin-bottom: 40px; +} + +.mm-list li.node-showNode>.node-control .text { + border-bottom: 2px solid #989898; + font-size: 20px; + font-weight: bold; + padding-bottom: 3px; +} + +/* .cicada-list li ul, +.cicada-list li .node-control{ + transition: all 0.6s ease; +} */ + +.mm-list li.node-showNode>.node-control .node-open, +.mm-list li.node-showNode>.node-control .icon-dott { + display: none; +} + +.text { + min-height: 30px; +} + +.text ul { + border-left: 0px solid white !important; + list-style: outside; +} + +.text ul li { + list-style-type: circle; + padding-left: 0; +} + +.text ol li { + list-style-type: disc; +} + +.text>p, +.text>ul, +.text>ol, +.text>h1, +.text>h2, +.text>h3, +.text>h4, +.text>h5, +.text>h6 { + margin: 0; + padding: 0; +} + +.theme-light .mm-list ul { + border-left: 1px solid #e0e0e0 +} + +.theme-light .li-node .icon-dott { + background-color: white; +} + +.theme-light .li-node.node-no-border>ul { + border-left: 0px solid white; +} + +/* mind map theme */ + +.mm-theme-dark.mm-mindmap { + background-color: rgb(35, 39, 62); +} + +.mm-theme-dark .mm-node .mm-node-content { + /* background-color: #282828; */ + background-color: transparent; + color: rgb(115, 154, 163) +} + +.mm-theme-dark .mm-node.mm-root .mm-node-content { + background-color: rgb(5, 196, 235); + color: rgba(255, 255, 255, .8) +} + + +.mm-theme-light.mm-mindmap { + background-color: #f1f1f1; +} + +.mm-theme-light .mm-node .mm-node-content { + /* background-color: #282828; */ + background-color: transparent; + color: #383833 +} + +.mm-theme-light .mm-node.mm-root .mm-node-content { + background-color: #c31105; + color: #fff +} + +.mm-theme-light .mm-node :focus { + color: #666; +} + +.mm-theme-card.mm-mindmap { + background-color: #fff; +} + +.mm-theme-card .mm-node .mm-node-content { + /* background-color: #282828; */ + background-color: #fff; + color: #333; + box-shadow: 0 0 6px #f1f1f1; + padding: 4px 10px; + border-radius: 5px; + border: 1px solid #f5f5f5; + font-size: 14px; + +} + +.mm-theme-card .mm-node.mm-root .mm-node-content { + background-color: #fff; + color: #333; + font-size: 18px; + padding: 10px 18px; +} + +.mm-theme-card .mm-node :focus { + color: #b1b0b0; +} + +.mm-theme-card .node-relate .mm-node-content { + background-color: transparent; + color: red; + border: 0; + box-shadow: 0 0 0 #fff; +} + +.mm-mobile-app .mm-node .mm-node-content { + max-width: 400px; +} + +.mm-note { + position: absolute; + width: 400px; + height: 300px; + background-color: rgb(68 68 68); + border: 1px solid #000; + color: white; + z-index: 6000; + border-radius: 5px; +} + +.mm-note textarea { + outline: none; + border: 0px solid #ccc; + display: block; + width: 100%; + height: 100%; +} + +.theme-light .mm-note { + background-color: white; + border: 1px solid #ccc; + color: #333; +} + +.mm-note-dom svg { + fill: #d4d4d4; +} + +.theme-light .mm-node-dom svg { + fill: #333; +} + +.mm-node-note-close { + position: absolute; + right: 6px; + top: 6px; + color: red; + width: 20px; + height: 20px; + font-size: 14px; + text-align: center; + cursor: pointer; + z-index: 20; +} + +.mm-node-note-tab { + position: absolute; + min-width: 400px; + min-height: 300px; + max-width: 500px; + max-height: 400px; + border-radius: 5px; + background-color: #FFD; + color: #333; + overflow: hidden; + z-index: 6000; + display: none; +} + +.mm-node-note-container { + padding: 10px; + box-sizing: border-box; + font-size: 14px; + position: absolute; + left: 0; + top: 20px; + right: 0; + bottom: 0; + overflow-y: auto; + /* white-space: pre-wrap; */ +} + + +.mm-node-note-container h1, +.mm-node-note-container h2, +.mm-node-note-container h3, +.mm-node-note-container h4, +.mm-node-note-container h5, +.mm-node-note-container h6 { + margin-block-start: 0; +} + +.mm-node-note-container ul, +.mm-node-note-container ol { + margin: 6px; +} + +.mm-node-note-container ul li, +.mm-node-note-container ol li { + line-height: 20px; +} + +.mm-node-note-container img { + max-width: 100%; +} + + + +.block-language-mindmap { + height: 600px; +} + +/* theme hand drawn */ +.theme-light .mm-mindmap.mm-handdraw-theme { + color: #333; +} + +.mm-mindmap.mm-handdraw-theme .mm-node-bar { + display: none; +} + +.mm-mindmap.mm-handdraw-theme .mm-node.mm-root>.mm-node-content { + background: transparent; +} + + +/* theme black */ +.mm-mindmap.mm-theme-black { + background-color: #f1f1f1; +} + +.theme-dark .mm-mindmap.mm-theme-black .mm-node .mm-node-content { + color: #333; +} + +.mm-mindmap.mm-theme-black .mm-node.mm-root .mm-node-content { + color: white; + background-color: #c31105; +} + +.mm-mindmap.mm-theme-black .mm-node.mm-node-second .mm-node-content { + background-color: #333; + color: white; +} + + +/* theme white */ + +.mm-mindmap.mm-theme-white { + background-color: #fff; +} + +.theme-dark .mm-mindmap.mm-theme-white .mm-node .mm-node-content { + color: #333; +} + +.mm-mindmap.mm-theme-white .mm-node.mm-root .mm-node-content { + color: #333; + background-color: #fff; + border: 2px solid #333; +} + + +.mm-mindmap.mm-theme-white .mm-node.mm-node-second .mm-node-content { + color: #333; +} + + +/* theme warm */ +.mm-mindmap.mm-theme-warm { + background-color: #FFF8E1; +} + +.theme-dark .mm-mindmap.mm-theme-warm .mm-node .mm-node-content { + color: #333; +} + +.mm-mindmap.mm-theme-warm .mm-node.mm-root .mm-node-content { + color: white; + background-color: #FFD180; +} + +.mm-mindmap.mm-theme-warm .mm-node.mm-node-second .mm-node-content { + color: white; + background-color: #4E342E; +} + + +/* theme cold */ +.mm-mindmap.mm-theme-cold { + background-color: rgb(35, 39, 62); +} + +.theme-dark .mm-mindmap.mm-theme-cold .mm-node .mm-node-content { + color: white; +} + +.theme-light .mm-mindmap.mm-theme-cold .mm-node .mm-node-content { + color: rgb(115, 154, 163); +} + +.mm-mindmap.mm-theme-cold .mm-node.mm-root .mm-node-content { + color: white; + background-color: rgb(5, 196, 235); +} + +.mm-mindmap.mm-theme-cold .mm-node.mm-node-second .mm-node-content { + color: white; + background-color: rgb(35, 39, 62); +} + +/* theme normal */ + +.mm-mindmap.mm-theme-normal { + background-color: #555; +} + +.theme-dark .mm-mindmap.mm-theme-normal .mm-node .mm-node-content { + color: white; +} + +.theme-light .mm-mindmap.mm-theme-normal .mm-node .mm-node-content { + color: white; +} + +.mm-mindmap.mm-theme-normal .mm-node.mm-root .mm-node-content { + color: rgb(82, 50, 0); + background-color: rgb(232, 222, 153); +} + +.mm-mindmap.mm-theme-normal .mm-node.mm-node-second .mm-node-content { + color: #333; + background-color: rgb(164, 195, 190); +} + +/* theme relax */ +.mm-mindmap.mm-theme-relax { + background-color: #56a3b3; +} + +.theme-dark .mm-mindmap.mm-theme-relax .mm-node .mm-node-content { + color: white; +} + +.theme-light .mm-mindmap.mm-theme-relax .mm-node .mm-node-content { + color: white; +} + +.mm-mindmap.mm-theme-relax .mm-node.mm-root .mm-node-content { + color: #333; + background-color: #fbffff; +} + +.mm-mindmap.mm-theme-relax .mm-node.mm-node-second .mm-node-content { + color: #333; + background-color: rgb(255, 235, 204); +} + + +/* node style */ +.mm-node-setup-board { + position: absolute; + top: 14000px; + left: 14000px; + z-index: 5000; + padding: 10px; + background: #333; + border: 1px solid #000; + color: #ccc; + border-radius: 5px; + min-width: 200px; + max-width: 300px; + white-space: pre-wrap; +} + + +.theme-light .mm-node-setup-board { + background: white; + border: 1px solid #666; + color: #999 +} + +.mm-node-setup-board:hover { + z-index: 8000; +} + +.mm-node-setup-board svg { + fill: #ccc +} + +.mm-dec { + font-size: 16px; + font-weight: bold; + margin: 4px; +} + +.mm-node-setup-board span { + display: inline-block; + width: 20px; + height: 20px; + border-radius: 3px; + overflow: hidden; + vertical-align: middle; + margin: 2px; + cursor: pointer; + +} + +.theme-dark .mm-node-setup-board span.mm-color { + border: 1px solid #000 +} + +.theme-light .mm-node-setup-board span.mm-color { + border: 1px solid #666 +} + +.mm-node-stroke-width { + border-bottom-color: #ccc; + border-bottom-style: solid; + border-radius: 0px !important; + height: 10px !important; +} + +.mm-node-stroke-style { + border-bottom-color: #ccc; + border-radius: 0px !important; + height: 10px !important; + +} + +.theme-light .mm-mindmap-select { + background-color: rgb(255, 165, 0, 0.2) !important; +} + + +/* table css */ + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} + +.mm-table { + border-collapse: collapse; + border-spacing: 0; + empty-cells: show; + border: 1px solid #cbcbcb; +} + +.mm-table caption { + color: #000; + font: italic 85%/1 arial, sans-serif; + padding: 1em 0; + text-align: center; +} + +.mm-table td, +.mm-table th { + border: 1px solid #cbcbcb; + border-width: 0 0 0 1px; + font-size: inherit; + margin: 0; + overflow: visible; + box-sizing: border-box; +} + +.theme-light .mm-table th { + background-color: rgb(16, 151, 232); + color: #fff; +} + +.theme-dark .mm-table th { + background-color: #fff; +} + +.theme-dark .mm-table th .mm-node { + color: #333; +} + +.mm-table td { + max-width: 600px; +} + +/* .mm-table td:hover,.mm-table th:hover{ + border:1px solid var(--interactive-accent); +} */ + +.mm-table thead { + background-color: #e0e0e0; + color: #000; + text-align: left; + vertical-align: bottom; +} + +.mm-table td { + background-color: transparent; +} + +.mm-table-bordered td { + border-bottom: 1px solid #cbcbcb; +} + +.mm-table-bordered tbody>tr:last-child>td { + border-bottom-width: 0; +} + +.mm-table>tr>td>.mm-node, +.mm-table>thead>tr>th>.mm-node { + position: initial !important; + padding: .5em 1em; +} + +.mm-table .mm-node:hover { + border: 1px solid var(--interactive-accent); +} + +.mm-table>tr>td>.mm-node>.mm-node-content { + max-width: 1200px !important; +} + +.mm-table>thead>tr>th>.mm-node>.mm-node-content { + max-width: initial !important; +} + +/* .mm-table .mm-node.mm-root .mm-node-content { + background-color: transparent; +} */ +.mm-table>thead>tr>th>.mm-node.mm-root { + padding: 0; +} + +.mm-table .mm-node.mm-root .mm-node-content { + font-size: 18px; + border-radius: 0; +} + +/* .mm-table>tr>td>.mm-node>.mm-node-content>.mm-node-edit{ + width: 80%; +} */ + + +/* theme whiteboard */ + +/* .theme-light .mm-theme-whiteboard{ + +} */ + +.theme-light .mm-theme-whiteboard .mm-mindmap-content>.mm-root>.mm-node-content { + background-color: white; + box-shadow: 0 0 10px #d6d6d6; + color: #333; + font-size: 18px; +} + +.mm-theme-whiteboard .mm-mindmap-content>.mm-node>.mm-node-content img { + border-radius: 6px; + margin: 10px 0; +} + +.theme-dark .mm-theme-whiteboard .mm-mindmap-content>.mm-root>.mm-node-content { + background-color: #313131; + box-shadow: 0 0 10px #1b1b1b; + color: #f5f5f5; + font-size: 18px; +} + +/* .theme-dark .mm-theme-whiteboard .mm-mindmap-content polyline{ + stroke:#9e9d9d +} + +.theme-dark .mm-theme-whiteboard .mm-mindmap-content marker circle, +.theme-dark .mm-theme-whiteboard .mm-mindmap-content marker polygon { + fill:#9e9d9d +} */ + +/* search box*/ + +.mm-search { + position: absolute; + top: 60px; + left: 20px; + z-index: 8000; + width: 450px; + border-radius: 6px; +} + +.theme-dark .mm-search { + background-color: #333; + box-shadow: 0 0 6px #000; + color: #f5f5f5; +} + +.theme-light .mm-search { + color: #333; + background-color: #f5f5f5; + box-shadow: 0 0 10px #d6d6d6; +} + +.mm-search .mm-search-head { + position: absolute; + top: 0; + left: 0; + right: 0; + font-size: 14px; + line-height: 20px; +} + +.mm-search .mm-search-head input { + width: 100%; + line-height: 30px; + border: 0; + outline: none; + margin-bottom: 6px; + border-top-left-radius: 6px; + border-top-right-radius: 6px; + text-indent: 6px; +} + +.theme-dark .mm-search .mm-search-head input { + background-color: #202020; + color: #ccc; +} + + +.mm-search { + padding-top: 70px; +} + +.mm-search-list { + line-height: 28px; + padding: 0; + max-height: 400px; + overflow: auto; +} + +.theme-dark .mm-search-item:hover { + background-color: #000; + cursor: pointer; +} + +.theme-light .mm-search-item:hover { + background-color: #ccc; + cursor: pointer; +} + +.mm-search-result { + padding-left: 6px; +} + +.mm-search-item { + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + padding: 0 6px; + font-size: 14px; + line-height: 24px; +} + +.theme-dark .mm-search-item { + border-top: 1px solid #000; +} + +.theme-light .mm-search-item { + border-top: 1px solid #ccc; +} + + +.mm-scale { + position: absolute; + left: 20px; + bottom: 40px; + background-color: #fff; + color: #333; + padding: 3px 6px; + border-radius: 3px; + cursor: pointer; + user-select: none; + height: 30px; +} + +.mm-scale>span { + vertical-align: middle; + margin: 0 2px; + font-size: 12px; + + text-align: center; + display: inline-block; + height: 24px; + line-height: 24px; +} + +.mm-scale span.mm-scale-number { + width: 32px; +} + +.mm-scale>span svg { + margin-top: 3px; +} + +.theme-dark .mm-scale { + background-color: #000; + color: #f5f5f5; +} + +.theme-dark .mm-scale>span svg { + fill: #f5f5f5; +} + +.mm-scale .mm-center-btn svg { + margin-top: 5px; +} + +.mm-scale .mm-center-btn { + margin-left: 6px; +} + +/* hover edit */ + +.mm-node .popover.hover-popover { + position: inherit; + min-width: 400px; + height: 300px; +} + +.mm-change-layout-board { + background-color: #000; + background: #333; + border: 1px solid #000; + width: 300px; + height: 500px; + overflow: auto; + border-radius: 0.25rem; + z-index: 6000; + padding: 0 20px; + +} + +.mm-change-layout { + width: 80%; + margin: 20px auto; + cursor: pointer; + border: 1px solid #555; + padding: 6px; + border-radius: 5px; +} + +.mm-change-layout img { + width: 100%; +} + +.mm-change-layout:nth-child(3) img, +.mm-change-layout:nth-child(4) img { + width: 60%; + margin: 0 auto; + display: block; +} + +.mm-change-layout-delete svg { + display: block; + margin: 0 auto; + fill: white; +} + +.mm-change-layout:hover { + opacity: 0.9; +} + +/* 主题切换选框 */ +.mm-theme-select { + position: absolute; + top: 60px; + left: 20px; + z-index: 8000; + width: 450px; + border-radius: 6px; +} + +.mm-theme-select select { + outline: none; + border: 0; + padding: 4px 6px; + width: 100px; +} + +.mm-translate-container { + width: 100%; + overflow-y: auto; + box-sizing: border-box; + padding: 60px 20px; +} + +.mm-translate { + width: 100%; +} + +.mm-translate-item { + margin-bottom: 20px; + cursor: pointer; +} + +.mm-translate-item:hover { + opacity: 0.9; +} + +.mm-translate-text { + margin-bottom: 8px; + font-size: 14px; +} + +/* 点击 a 标签 */ + +.mm-link-menu { + position: absolute; + width: 30px; + height: 30px; + background-color: #333; + border: 1px solid #000; + border-radius: 3px; + z-index: 1000; + cursor: pointer; +} + +/* .mm-link-menu:before { + width: 0; + height: 0; + border: 10px solid transparent; + border-bottom-color: #333; + position: absolute; + top: -20px; + right: 20px; +} */ + +.mm-link-menu svg { + fill: #ccc; + margin-left: 7px; + margin-top: 7px; +} + +.theme-light .mm-link-menu { + background-color: #fff; + border: 1px solid #333; +} + +.theme-light .mm-link-menu svg { + fill: #333; +} + +/* 遮挡文字节点 */ +.mm-node-cover { + position: absolute; + z-index: 1000; + left: 2px; + top: 2px; + bottom: 2px; + right: 2px; + background-color: #ccc; + border-radius: 2px; +} + +.mm-node-cover:hover { + opacity: 0; + background-color: transparent; +} \ No newline at end of file