BookStack/public/dist/code.js
2023-01-31 11:59:51 +00:00

39 lines
464 KiB
JavaScript

var Af=Object.create;var wl=Object.defineProperty;var Df=Object.getOwnPropertyDescriptor;var Ff=Object.getOwnPropertyNames;var If=Object.getPrototypeOf,qf=Object.prototype.hasOwnProperty;var qe=(u,P)=>()=>(P||u((P={exports:{}}).exports,P),P.exports);var Of=(u,P,z,O)=>{if(P&&typeof P=="object"||typeof P=="function")for(let S of Ff(P))!qf.call(u,S)&&S!==z&&wl(u,S,{get:()=>P[S],enumerable:!(O=Df(P,S))||O.enumerable});return u};var We=(u,P,z)=>(z=u!=null?Af(If(u)):{},Of(P||!u||!u.__esModule?wl(z,"default",{value:u,enumerable:!0}):z,u));var Oe=qe((vo,yo)=>{(function(u,P){typeof vo=="object"&&typeof yo<"u"?yo.exports=P():typeof define=="function"&&define.amd?define(P):(u=u||self,u.CodeMirror=P())})(vo,function(){"use strict";var u=navigator.userAgent,P=navigator.platform,z=/gecko\/\d/i.test(u),O=/MSIE \d/.test(u),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(u),A=/Edge\/(\d+)/.exec(u),p=O||S||A,D=p&&(O?document.documentMode||6:+(A||S)[1]),w=!A&&/WebKit\//.test(u),L=w&&/Qt\/\d+\.\d+/.test(u),T=!A&&/Chrome\/(\d+)/.exec(u),m=T&&+T[1],b=/Opera\//.test(u),d=/Apple Computer/.test(navigator.vendor),g=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(u),k=/PhantomJS/.test(u),y=d&&(/Mobile\/\w+/.test(u)||navigator.maxTouchPoints>2),U=/Android/.test(u),_=y||U||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(u),W=y||/Mac/.test(P),Z=/\bCrOS\b/.test(u),ee=/win/i.test(P),oe=b&&u.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(b=!1,w=!0);var Q=W&&(L||b&&(oe==null||oe<12.11)),j=z||p&&D>=9;function N(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var G=function(e,t){var n=e.className,r=N(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function R(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function I(e,t){return R(e).appendChild(t)}function c(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function B(e,t,n,r){var i=c(e,t,n,r);return i.setAttribute("role","presentation"),i}var $;document.createRange?$=function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:$=function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};function M(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function C(e){var t;try{t=e.activeElement}catch{t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function V(e,t){var n=e.className;N(t).test(n)||(e.className+=(n?" ":"")+t)}function Y(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!N(n[r]).test(t)&&(t+=" "+n[r]);return t}var x=function(e){e.select()};y?x=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(x=function(e){try{e.select()}catch{}});function h(e){return e.display.wrapper.ownerDocument}function se(e){return h(e).defaultView}function _e(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ue(e,t,n){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function he(e,t,n,r,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,a=i||0;;){var l=e.indexOf(" ",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}var Te=function(){this.id=null,this.f=null,this.time=0,this.handler=_e(this.onTimeout,this)};Te.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Te.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function Se(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var ae=50,fe={toString:function(){return"CodeMirror.Pass"}},ve={scroll:!1},De={origin:"*mouse"},Qe={origin:"+move"};function ht(e,t,n){for(var r=0,i=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Ne=[""];function $e(e){for(;Ne.length<=e;)Ne.push(Ee(Ne)+" ");return Ne[e]}function Ee(e){return e[e.length-1]}function rt(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Ge(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function Re(){}function J(e,t){var n;return Object.create?n=Object.create(e):(Re.prototype=e,n=new Re),t&&ue(t,n),n}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ne(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||le.test(e))}function Fe(e,t){return t?t.source.indexOf("\\w")>-1&&ne(e)?!0:t.test(e):ne(e)}function be(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Le=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ke(e){return e.charCodeAt(0)>=768&&Le.test(e)}function Pe(e,t,n){for(;(n<0?t>0:t<e.length)&&ke(e.charAt(t));)t+=n;return t}function Ae(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function Dt(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var qt=null;function Ot(e,t,n){var r;qt=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:qt=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:qt=i)}return r??qt}var _i=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(f,E,F){this.level=f,this.from=E,this.to=F}return function(f,E){var F=E=="ltr"?"L":"R";if(f.length==0||E=="ltr"&&!r.test(f))return!1;for(var X=f.length,K=[],re=0;re<X;++re)K.push(n(f.charCodeAt(re)));for(var ie=0,ce=F;ie<X;++ie){var de=K[ie];de=="m"?K[ie]=ce:ce=de}for(var ge=0,pe=F;ge<X;++ge){var ye=K[ge];ye=="1"&&pe=="r"?K[ge]="n":o.test(ye)&&(pe=ye,ye=="r"&&(K[ge]="R"))}for(var Ce=1,we=K[0];Ce<X-1;++Ce){var Ie=K[Ce];Ie=="+"&&we=="1"&&K[Ce+1]=="1"?K[Ce]="1":Ie==","&&we==K[Ce+1]&&(we=="1"||we=="n")&&(K[Ce]=we),we=Ie}for(var Ze=0;Ze<X;++Ze){var ft=K[Ze];if(ft==",")K[Ze]="N";else if(ft=="%"){var Je=void 0;for(Je=Ze+1;Je<X&&K[Je]=="%";++Je);for(var At=Ze&&K[Ze-1]=="!"||Je<X&&K[Je]=="1"?"1":"N",Ct=Ze;Ct<Je;++Ct)K[Ct]=At;Ze=Je-1}}for(var it=0,Et=F;it<X;++it){var pt=K[it];Et=="L"&&pt=="1"?K[it]="L":o.test(pt)&&(Et=pt)}for(var lt=0;lt<X;++lt)if(i.test(K[lt])){var ot=void 0;for(ot=lt+1;ot<X&&i.test(K[ot]);++ot);for(var tt=(lt?K[lt-1]:F)=="L",Lt=(ot<X?K[ot]:F)=="L",Vr=tt==Lt?tt?"L":"R":F,xr=lt;xr<ot;++xr)K[xr]=Vr;lt=ot-1}for(var yt=[],Yt,dt=0;dt<X;)if(a.test(K[dt])){var mo=dt;for(++dt;dt<X&&a.test(K[dt]);++dt);yt.push(new s(0,mo,dt))}else{var lr=dt,Ar=yt.length,Dr=E=="rtl"?1:0;for(++dt;dt<X&&K[dt]!="L";++dt);for(var kt=lr;kt<dt;)if(l.test(K[kt])){lr<kt&&(yt.splice(Ar,0,new s(1,lr,kt)),Ar+=Dr);var en=kt;for(++kt;kt<dt&&l.test(K[kt]);++kt);yt.splice(Ar,0,new s(2,en,kt)),Ar+=Dr,lr=kt}else++kt;lr<dt&&yt.splice(Ar,0,new s(1,lr,dt))}return E=="ltr"&&(yt[0].level==1&&(Yt=f.match(/^\s+/))&&(yt[0].from=Yt[0].length,yt.unshift(new s(0,0,Yt[0].length))),Ee(yt).level==1&&(Yt=f.match(/\s+$/))&&(Ee(yt).to-=Yt[0].length,yt.push(new s(0,X-Yt[0].length,X)))),E=="rtl"?yt.reverse():yt}}();function Nt(e,t){var n=e.order;return n==null&&(n=e.order=_i(e.text,t)),n}var Nn=[],me=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Nn).concat(n)}};function tn(e,t){return e._handlers&&e._handlers[t]||Nn}function mt(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=Se(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Xe(e,t){var n=tn(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Ve(e,t,n){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Xe(e,n||t.type,e,t),rn(t)||t.codemirrorIgnore}function Pn(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)Se(n,t[r])==-1&&n.push(t[r])}function bt(e,t){return tn(e,t).length>0}function xt(e){e.prototype.on=function(t,n){me(this,t,n)},e.prototype.off=function(t,n){mt(this,t,n)}}function gt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function kr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function rn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){gt(e),kr(e)}function wt(e){return e.target||e.srcElement}function nn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),W&&e.ctrlKey&&t==1&&(t=3),t}var ki=function(){if(p&&D<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),Pt;function wi(e){if(Pt==null){var t=c("span","\u200B");I(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Pt=t.offsetWidth<=1&&t.offsetHeight>2&&!(p&&D<8))}var n=Pt?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var Fr;function Rn(e){if(Fr!=null)return Fr;var t=I(e,document.createTextNode("A\u062EA")),n=$(t,0,1).getBoundingClientRect(),r=$(t,1,2).getBoundingClientRect();return R(e),!n||n.left==n.right?!1:Fr=r.right-n.right<3}var on=`
b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),a=o.indexOf("\r");a!=-1?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},sr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},$t=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Kt=null;function Wn(e){if(Kt!=null)return Kt;var t=I(e,c("span","x")),n=t.getBoundingClientRect(),r=$(t,0,1).getBoundingClientRect();return Kt=Math.abs(n.left-r.left)>1}var Wt={},ur={};function jn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Wt[e]=t}function Ir(e,t){ur[e]=t}function zt(e){if(typeof e=="string"&&ur.hasOwnProperty(e))e=ur[e];else if(e&&typeof e.name=="string"&&ur.hasOwnProperty(e.name)){var t=ur[e.name];typeof t=="string"&&(t={name:t}),e=J(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return zt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return zt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Vt(e,t){t=zt(t);var n=Wt[t.name];if(!n)return Vt(e,"text/plain");var r=n(e,t);if(cr.hasOwnProperty(t.name)){var i=cr[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var cr={};function Bn(e,t){var n=cr.hasOwnProperty(e)?cr[e]:cr[e]={};ue(t,n)}function er(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function fr(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function an(e,t,n){return e.startState?e.startState(t,n):!0}var et=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};et.prototype.eol=function(){return this.pos>=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},et.prototype.eat=function(e){var t=this.string.charAt(this.pos),n;if(typeof e=="string"?n=t==e:n=t&&(e.test?e.test(t):e(t)),n)return++this.pos,t},et.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},et.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},et.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},et.prototype.match=function(e,t,n){if(typeof e=="string"){var r=function(a){return n?a.toLowerCase():a},i=this.string.substr(this.pos,e.length);if(r(i)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function xe(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function tr(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(o){var a=o.text;i==n.line&&(a=a.slice(0,n.ch)),i==t.line&&(a=a.slice(t.ch)),r.push(a),++i}),r}function qr(e,t,n){var r=[];return e.iter(t,n,function(i){r.push(i.text)}),r}function Rt(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function He(e){if(e.parent==null)return null;for(var t=e.parent,n=Se(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Gt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a],s=l.height;if(t<s)break;t-=s}return n+a}function v(e,t){return t>=e.first&&t<e.first+e.size}function q(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function H(e,t,n){if(n===void 0&&(n=null),!(this instanceof H))return new H(e,t,n);this.line=e,this.ch=t,this.sticky=n}function te(e,t){return e.line-t.line||e.ch-t.ch}function ze(e,t){return e.sticky==t.sticky&&te(e,t)==0}function je(e){return H(e.line,e.ch)}function Be(e,t){return te(e,t)<0?t:e}function at(e,t){return te(e,t)<0?e:t}function Ft(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Me(e,t){if(t.line<e.first)return H(e.first,0);var n=e.first+e.size-1;return t.line>n?H(n,xe(e,n).text.length):Au(t,xe(e,t.line).text.length)}function Au(e,t){var n=e.ch;return n==null||n>t?H(e.line,t):n<0?H(e.line,0):e}function So(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=Me(e,t[r]);return n}var Hn=function(e,t){this.state=e,this.lookAhead=t},Zt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Zt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Zt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Zt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zt.fromSaved=function(e,t,n){return t instanceof Hn?new Zt(e,er(e.mode,t.state),n,t.lookAhead):new Zt(e,er(e.mode,t),n)},Zt.prototype.save=function(e){var t=e!==!1?er(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(t,this.maxLookAhead):t};function To(e,t,n,r){var i=[e.state.modeGen],o={};Ao(e,t.text,e.doc.mode,n,function(f,E){return i.push(f,E)},o,r);for(var a=n.state,l=function(f){n.baseTokens=i;var E=e.state.overlays[f],F=1,X=0;n.state=!0,Ao(e,t.text,E.mode,n,function(K,re){for(var ie=F;X<K;){var ce=i[F];ce>K&&i.splice(F,1,K,i[F+1],ce),F+=2,X=Math.min(K,ce)}if(re)if(E.opaque)i.splice(ie,F-ie,K,"overlay "+re),F=ie+2;else for(;ie<F;ie+=2){var de=i[ie+1];i[ie+1]=(de?de+" ":"")+"overlay "+re}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Co(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=ln(e,He(t)),i=t.text.length>e.options.maxHighlightLength&&er(e.doc.mode,r.state),o=To(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ln(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Zt(r,!0,t);var o=Du(e,t,n),a=o>r.first&&xe(r,o-1).stateAfter,l=a?Zt.fromSaved(r,a,o):new Zt(r,an(r.mode),o);return r.iter(o,t,function(s){Si(e,s.text,l);var f=l.line;s.stateAfter=f==t-1||f%5==0||f>=i.viewFrom&&f<i.viewTo?l.save():null,l.nextLine()}),n&&(r.modeFrontier=l.line),l}function Si(e,t,n,r){var i=e.doc.mode,o=new et(t,e.options.tabSize,n);for(o.start=o.pos=r||0,t==""&&Eo(i,n.state);!o.eol();)Ti(i,o,n.state),o.start=o.pos}function Eo(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=fr(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}function Ti(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=fr(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var Lo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function zo(e,t,n,r){var i=e.doc,o=i.mode,a;t=Me(i,t);var l=xe(i,t.line),s=ln(e,t.line,n),f=new et(l.text,e.options.tabSize,s),E;for(r&&(E=[]);(r||f.pos<t.ch)&&!f.eol();)f.start=f.pos,a=Ti(o,f,s.state),r&&E.push(new Lo(f,a,er(i.mode,s.state)));return r?E:new Lo(f,a,s.state)}function Mo(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";t[r]==null?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ao(e,t,n,r,i,o,a){var l=n.flattenSpans;l==null&&(l=e.options.flattenSpans);var s=0,f=null,E=new et(t,e.options.tabSize,r),F,X=e.options.addModeClass&&[null];for(t==""&&Mo(Eo(n,r.state),o);!E.eol();){if(E.pos>e.options.maxHighlightLength?(l=!1,a&&Si(e,t,r,E.pos),E.pos=t.length,F=null):F=Mo(Ti(n,E,r.state,X),o),X){var K=X[0].name;K&&(F="m-"+(F?K+" "+F:K))}if(!l||f!=F){for(;s<E.start;)s=Math.min(E.start,s+5e3),i(s,f);f=F}E.start=E.pos}for(;s<E.pos;){var re=Math.min(E.pos,s+5e3);i(re,f),s=re}}function Du(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=xe(o,l-1),f=s.stateAfter;if(f&&(!n||l+(f instanceof Hn?f.lookAhead:0)<=o.modeFrontier))return l;var E=he(s.text,null,e.options.tabSize);(i==null||r>E)&&(i=l-1,r=E)}return i}function Fu(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=xe(e,r).stateAfter;if(i&&(!(i instanceof Hn)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Do=!1,rr=!1;function Iu(){Do=!0}function qu(){rr=!0}function Un(e,t,n){this.marker=e,this.from=t,this.to=n}function sn(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ou(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Nu(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Pu(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);if(l||o.from==t&&a.type=="bookmark"&&(!n||!o.marker.insertLeft)){var s=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Un(a,o.from,s?null:o.to))}}return r}function Ru(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);if(l||o.from==t&&a.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Un(a,s?null:o.from-t,o.to==null?null:o.to-t))}}return r}function Ci(e,t){if(t.full)return null;var n=v(e,t.from.line)&&xe(e,t.from.line).markedSpans,r=v(e,t.to.line)&&xe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=te(t.from,t.to)==0,l=Pu(n,i,a),s=Ru(r,o,a),f=t.text.length==1,E=Ee(t.text).length+(f?i:0);if(l)for(var F=0;F<l.length;++F){var X=l[F];if(X.to==null){var K=sn(s,X.marker);K?f&&(X.to=K.to==null?null:K.to+E):X.to=i}}if(s)for(var re=0;re<s.length;++re){var ie=s[re];if(ie.to!=null&&(ie.to+=E),ie.from==null){var ce=sn(l,ie.marker);ce||(ie.from=E,f&&(l||(l=[])).push(ie))}else ie.from+=E,f&&(l||(l=[])).push(ie)}l&&(l=Fo(l)),s&&s!=l&&(s=Fo(s));var de=[l];if(!f){var ge=t.text.length-2,pe;if(ge>0&&l)for(var ye=0;ye<l.length;++ye)l[ye].to==null&&(pe||(pe=[])).push(new Un(l[ye].marker,null,null));for(var Ce=0;Ce<ge;++Ce)de.push(pe);de.push(s)}return de}function Fo(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Wu(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(K){if(K.markedSpans)for(var re=0;re<K.markedSpans.length;++re){var ie=K.markedSpans[re].marker;ie.readOnly&&(!r||Se(r,ie)==-1)&&(r||(r=[])).push(ie)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],l=a.find(0),s=0;s<i.length;++s){var f=i[s];if(!(te(f.to,l.from)<0||te(f.from,l.to)>0)){var E=[s,1],F=te(f.from,l.from),X=te(f.to,l.to);(F<0||!a.inclusiveLeft&&!F)&&E.push({from:f.from,to:l.from}),(X>0||!a.inclusiveRight&&!X)&&E.push({from:l.to,to:f.to}),i.splice.apply(i,E),s+=E.length-3}}return i}function Io(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function qo(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function $n(e){return e.inclusiveLeft?-1:0}function Kn(e){return e.inclusiveRight?1:0}function Ei(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),i=t.find(),o=te(r.from,i.from)||$n(e)-$n(t);if(o)return-o;var a=te(r.to,i.to)||Kn(e)-Kn(t);return a||t.id-e.id}function Oo(e,t){var n=rr&&e.markedSpans,r;if(n)for(var i=void 0,o=0;o<n.length;++o)i=n[o],i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||Ei(r,i.marker)<0)&&(r=i.marker);return r}function No(e){return Oo(e,!0)}function Gn(e){return Oo(e,!1)}function ju(e,t){var n=rr&&e.markedSpans,r;if(n)for(var i=0;i<n.length;++i){var o=n[i];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!r||Ei(r,o.marker)<0)&&(r=o.marker)}return r}function Po(e,t,n,r,i){var o=xe(e,t),a=rr&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var f=s.marker.find(0),E=te(f.from,n)||$n(s.marker)-$n(i),F=te(f.to,r)||Kn(s.marker)-Kn(i);if(!(E>=0&&F<=0||E<=0&&F>=0)&&(E<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?te(f.to,n)>=0:te(f.to,n)>0)||E>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?te(f.from,r)<=0:te(f.from,r)<0)))return!0}}}function jt(e){for(var t;t=No(e);)e=t.find(-1,!0).line;return e}function Bu(e){for(var t;t=Gn(e);)e=t.find(1,!0).line;return e}function Hu(e){for(var t,n;t=Gn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Li(e,t){var n=xe(e,t),r=jt(n);return n==r?t:He(r)}function Ro(e,t){if(t>e.lastLine())return t;var n=xe(e,t),r;if(!dr(e,n))return t;for(;r=Gn(n);)n=r.find(1,!0).line;return He(n)+1}function dr(e,t){var n=rr&&t.markedSpans;if(n){for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&zi(e,t,r))return!0}}}function zi(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return zi(e,r.line,sn(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(i.to==null||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&zi(e,t,i))return!0}function nr(e){e=jt(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==n)break;t+=l.height}return t}function Zn(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=No(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=Gn(r);){var o=n.find(0,!0);t-=r.text.length-o.from.ch,r=o.to.line,t+=r.text.length-o.to.ch}return t}function Mi(e){var t=e.display,n=e.doc;t.maxLine=xe(n,n.first),t.maxLineLength=Zn(t.maxLine),t.maxLineChanged=!0,n.iter(function(r){var i=Zn(r);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Or=function(e,t,n){this.text=e,qo(this,t),this.height=n?n(this):1};Or.prototype.lineNo=function(){return He(this)},xt(Or);function Uu(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Io(e),qo(e,n);var i=r?r(e):1;i!=e.height&&Rt(e,i)}function $u(e){e.parent=null,Io(e)}var Ku={},Gu={};function Wo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Gu:Ku;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function jo(e,t){var n=B("span",null,null,w?"padding-right: .1px":null),r={pre:B("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Xu,Rn(e.display.measure)&&(a=Nt(o,e.doc.direction))&&(r.addToken=Yu(r.addToken,a)),r.map=[];var l=t!=e.display.externalMeasured&&He(o);Ju(o,r,Co(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=Y(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=Y(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(wi(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(w){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Xe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Y(r.pre.className,r.textClass||"")),r}function Zu(e){var t=c("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Xu(e,t,n,r,i,o,a){if(t){var l=e.splitSpaces?Qu(t,e.trailingSpace):t,s=e.cm.state.specialChars,f=!1,E;if(!s.test(t))e.col+=t.length,E=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,E),p&&D<9&&(f=!0),e.pos+=t.length;else{E=document.createDocumentFragment();for(var F=0;;){s.lastIndex=F;var X=s.exec(t),K=X?X.index-F:t.length-F;if(K){var re=document.createTextNode(l.slice(F,F+K));p&&D<9?E.appendChild(c("span",[re])):E.appendChild(re),e.map.push(e.pos,e.pos+K,re),e.col+=K,e.pos+=K}if(!X)break;F+=K+1;var ie=void 0;if(X[0]==" "){var ce=e.cm.options.tabSize,de=ce-e.col%ce;ie=E.appendChild(c("span",$e(de),"cm-tab")),ie.setAttribute("role","presentation"),ie.setAttribute("cm-text"," "),e.col+=de}else X[0]=="\r"||X[0]==`
`?(ie=E.appendChild(c("span",X[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ie.setAttribute("cm-text",X[0]),e.col+=1):(ie=e.cm.options.specialCharPlaceholder(X[0]),ie.setAttribute("cm-text",X[0]),p&&D<9?E.appendChild(c("span",[ie])):E.appendChild(ie),e.col+=1);e.map.push(e.pos,e.pos+1,ie),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,n||r||i||f||o||a){var ge=n||"";r&&(ge+=r),i&&(ge+=i);var pe=c("span",[E],ge,o);if(a)for(var ye in a)a.hasOwnProperty(ye)&&ye!="style"&&ye!="class"&&pe.setAttribute(ye,a[ye]);return e.content.appendChild(pe)}e.content.appendChild(E)}}function Qu(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);o==" "&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(o="\xA0"),r+=o,n=o==" "}return r}function Yu(e,t){return function(n,r,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var f=n.pos,E=f+r.length;;){for(var F=void 0,X=0;X<t.length&&(F=t[X],!(F.to>f&&F.from<=f));X++);if(F.to>=E)return e(n,r,i,o,a,l,s);e(n,r.slice(0,F.to-f),i,o,null,l,s),o=null,r=r.slice(F.to-f),f=F.to}}}function Bo(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Ju(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var a=1;a<n.length;a+=2)t.addToken(t,i.slice(o,o=n[a]),Wo(n[a+1],t.cm.options));return}for(var l=i.length,s=0,f=1,E="",F,X,K=0,re,ie,ce,de,ge;;){if(K==s){re=ie=ce=X="",ge=null,de=null,K=1/0;for(var pe=[],ye=void 0,Ce=0;Ce<r.length;++Ce){var we=r[Ce],Ie=we.marker;if(Ie.type=="bookmark"&&we.from==s&&Ie.widgetNode)pe.push(Ie);else if(we.from<=s&&(we.to==null||we.to>s||Ie.collapsed&&we.to==s&&we.from==s)){if(we.to!=null&&we.to!=s&&K>we.to&&(K=we.to,ie=""),Ie.className&&(re+=" "+Ie.className),Ie.css&&(X=(X?X+";":"")+Ie.css),Ie.startStyle&&we.from==s&&(ce+=" "+Ie.startStyle),Ie.endStyle&&we.to==K&&(ye||(ye=[])).push(Ie.endStyle,we.to),Ie.title&&((ge||(ge={})).title=Ie.title),Ie.attributes)for(var Ze in Ie.attributes)(ge||(ge={}))[Ze]=Ie.attributes[Ze];Ie.collapsed&&(!de||Ei(de.marker,Ie)<0)&&(de=we)}else we.from>s&&K>we.from&&(K=we.from)}if(ye)for(var ft=0;ft<ye.length;ft+=2)ye[ft+1]==K&&(ie+=" "+ye[ft]);if(!de||de.from==s)for(var Je=0;Je<pe.length;++Je)Bo(t,0,pe[Je]);if(de&&(de.from||0)==s){if(Bo(t,(de.to==null?l+1:de.to)-s,de.marker,de.from==null),de.to==null)return;de.to==s&&(de=!1)}}if(s>=l)break;for(var At=Math.min(l,K);;){if(E){var Ct=s+E.length;if(!de){var it=Ct>At?E.slice(0,At-s):E;t.addToken(t,it,F?F+re:re,ce,s+it.length==K?ie:"",X,ge)}if(Ct>=At){E=E.slice(At-s),s=At;break}s=Ct,ce=""}E=i.slice(o,o=n[f++]),F=Wo(n[f++],t.cm.options)}}}function Ho(e,t,n){this.line=t,this.rest=Hu(t),this.size=this.rest?He(Ee(this.rest))-n+1:1,this.node=this.text=null,this.hidden=dr(e,t)}function Xn(e,t,n){for(var r=[],i,o=t;o<n;o=i){var a=new Ho(e.doc,xe(e.doc,o),o);i=o+a.size,r.push(a)}return r}var Nr=null;function Vu(e){Nr?Nr.ops.push(e):e.ownsGroup=Nr={ops:[e],delayedCallbacks:[]}}function ec(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function tc(e,t){var n=e.ownsGroup;if(n)try{ec(n)}finally{Nr=null,t(n)}}var un=null;function st(e,t){var n=tn(e,t);if(n.length){var r=Array.prototype.slice.call(arguments,2),i;Nr?i=Nr.delayedCallbacks:un?i=un:(i=un=[],setTimeout(rc,0));for(var o=function(l){i.push(function(){return n[l].apply(null,r)})},a=0;a<n.length;++a)o(a)}}function rc(){var e=un;un=null;for(var t=0;t<e.length;++t)e[t]()}function Uo(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?ic(e,t):o=="gutter"?Ko(e,t,n,r):o=="class"?Ai(e,t):o=="widget"&&oc(e,t,r)}t.changes=null}function cn(e){return e.node==e.text&&(e.node=c("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&D<8&&(e.node.style.zIndex=2)),e.node}function nc(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=cn(t);t.background=r.insertBefore(c("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function $o(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):jo(e,t)}function ic(e,t){var n=t.text.className,r=$o(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Ai(e,t)):n&&(t.text.className=n)}function Ai(e,t){nc(e,t),t.line.wrapClass?cn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Ko(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=cn(t);t.gutterBackground=c("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=cn(t),l=t.gutter=c("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(l.setAttribute("aria-hidden","true"),e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=l.appendChild(c("div",q(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var f=e.display.gutterSpecs[s].className,E=o.hasOwnProperty(f)&&o[f];E&&l.appendChild(c("div",[E],"CodeMirror-gutter-elt","left: "+r.gutterLeft[f]+"px; width: "+r.gutterWidth[f]+"px"))}}}function oc(e,t,n){t.alignable&&(t.alignable=null);for(var r=N("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Go(e,t,n)}function ac(e,t,n,r){var i=$o(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Ai(e,t),Ko(e,t,n,r),Go(e,t,r),t.node}function Go(e,t,n){if(Zo(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Zo(e,t.rest[r],t,n,!1)}function Zo(e,t,n,r,i){if(t.widgets)for(var o=cn(n),a=0,l=t.widgets;a<l.length;++a){var s=l[a],f=c("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||f.setAttribute("cm-ignore-events","true"),lc(s,f,n,r),e.display.input.setUneditable(f),i&&s.above?o.insertBefore(f,n.gutter||n.text):o.appendChild(f),st(s,"redraw")}}function lc(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function fn(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!M(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),I(t.display.measure,c("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function ir(e,t){for(var n=wt(t);n!=e.wrapper;n=n.parentNode)if(!n||n.nodeType==1&&n.getAttribute("cm-ignore-events")=="true"||n.parentNode==e.sizer&&n!=e.mover)return!0}function Qn(e){return e.lineSpace.offsetTop}function Di(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Xo(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=I(e.measure,c("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function Xt(e){return ae-e.display.nativeBarWidth}function wr(e){return e.display.scroller.clientWidth-Xt(e)-e.display.barWidth}function Fi(e){return e.display.scroller.clientHeight-Xt(e)-e.display.barHeight}function sc(e,t,n){var r=e.options.lineWrapping,i=r&&wr(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],f=a[l+1];Math.abs(s.bottom-f.bottom)>2&&o.push((s.bottom+f.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Qo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(He(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function uc(e,t){t=jt(t);var n=He(t),r=e.display.externalMeasured=new Ho(e.doc,t,n);r.lineN=n;var i=r.built=jo(e,r);return r.text=i.pre,I(e.display.lineMeasure,i.pre),r}function Yo(e,t,n,r){return Qt(e,Pr(e,t),n,r)}function Ii(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Cr(e,t)];var n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size)return n}function Pr(e,t){var n=He(t),r=Ii(e,n);r&&!r.text?r=null:r&&r.changes&&(Uo(e,r,n,Ri(e)),e.curOp.forceUpdate=!0),r||(r=uc(e,t));var i=Qo(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Qt(e,t,n,r,i){t.before&&(n=-1);var o=n+(r||""),a;return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(sc(e,t.view,t.rect),t.hasHeights=!0),a=fc(e,t,n,r),a.bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var Jo={left:0,right:0,top:0,bottom:0};function Vo(e,t,n){for(var r,i,o,a,l,s,f=0;f<e.length;f+=3)if(l=e[f],s=e[f+1],t<l?(i=0,o=1,a="left"):t<s?(i=t-l,o=i+1):(f==e.length-3||t==s&&e[f+3]>t)&&(o=s-l,i=o-1,t>=s&&(a="right")),i!=null){if(r=e[f+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),n=="left"&&i==0)for(;f&&e[f-2]==e[f-3]&&e[f-1].insertLeft;)r=e[(f-=3)+2],a="left";if(n=="right"&&i==s-l)for(;f<e.length-3&&e[f+3]==e[f+4]&&!e[f+5].insertLeft;)r=e[(f+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function cc(e,t){var n=Jo;if(t=="left")for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function fc(e,t,n,r){var i=Vo(t.map,n,r),o=i.node,a=i.start,l=i.end,s=i.collapse,f;if(o.nodeType==3){for(var E=0;E<4;E++){for(;a&&ke(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l<i.coverEnd&&ke(t.line.text.charAt(i.coverStart+l));)++l;if(p&&D<9&&a==0&&l==i.coverEnd-i.coverStart?f=o.parentNode.getBoundingClientRect():f=cc($(o,a,l).getClientRects(),r),f.left||f.right||a==0)break;l=a,a=a-1,s="right"}p&&D<11&&(f=dc(e.display.measure,f))}else{a>0&&(s=r="right");var F;e.options.lineWrapping&&(F=o.getClientRects()).length>1?f=F[r=="right"?F.length-1:0]:f=o.getBoundingClientRect()}if(p&&D<9&&!a&&(!f||!f.left&&!f.right)){var X=o.parentNode.getClientRects()[0];X?f={left:X.left,right:X.left+Wr(e.display),top:X.top,bottom:X.bottom}:f=Jo}for(var K=f.top-t.rect.top,re=f.bottom-t.rect.top,ie=(K+re)/2,ce=t.view.measure.heights,de=0;de<ce.length-1&&!(ie<ce[de]);de++);var ge=de?ce[de-1]:0,pe=ce[de],ye={left:(s=="right"?f.right:f.left)-t.rect.left,right:(s=="left"?f.left:f.right)-t.rect.left,top:ge,bottom:pe};return!f.left&&!f.right&&(ye.bogus=!0),e.options.singleCursorHeightPerLine||(ye.rtop=K,ye.rbottom=re),ye}function dc(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Wn(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ea(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function ta(e){e.display.externalMeasure=null,R(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ea(e.display.view[t])}function dn(e){ta(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ra(e){return T&&U?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function na(e){return T&&U?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function qi(e){var t=jt(e),n=t.widgets,r=0;if(n)for(var i=0;i<n.length;++i)n[i].above&&(r+=fn(n[i]));return r}function Yn(e,t,n,r,i){if(!i){var o=qi(t);n.top+=o,n.bottom+=o}if(r=="line")return n;r||(r="local");var a=nr(t);if(r=="local"?a+=Qn(e.display):a-=e.display.viewOffset,r=="page"||r=="window"){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+(r=="window"?0:na(h(e)));var s=l.left+(r=="window"?0:ra(h(e)));n.left+=s,n.right+=s}return n.top+=a,n.bottom+=a,n}function ia(e,t,n){if(n=="div")return t;var r=t.left,i=t.top;if(n=="page")r-=ra(h(e)),i-=na(h(e));else if(n=="local"||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Jn(e,t,n,r,i){return r||(r=xe(e.doc,t.line)),Yn(e,r,Yo(e,r,t.ch,i),n)}function Bt(e,t,n,r,i,o){r=r||xe(e.doc,t.line),i||(i=Pr(e,r));function a(re,ie){var ce=Qt(e,i,re,ie?"right":"left",o);return ie?ce.left=ce.right:ce.right=ce.left,Yn(e,r,ce,n)}var l=Nt(r,e.doc.direction),s=t.ch,f=t.sticky;if(s>=r.text.length?(s=r.text.length,f="before"):s<=0&&(s=0,f="after"),!l)return a(f=="before"?s-1:s,f=="before");function E(re,ie,ce){var de=l[ie],ge=de.level==1;return a(ce?re-1:re,ge!=ce)}var F=Ot(l,s,f),X=qt,K=E(s,F,f=="before");return X!=null&&(K.other=E(s,X,f!="before")),K}function oa(e,t){var n=0;t=Me(e.doc,t),e.options.lineWrapping||(n=Wr(e.display)*t.ch);var r=xe(e.doc,t.line),i=nr(r)+Qn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Oi(e,t,n,r,i){var o=H(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Ni(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Oi(r.first,0,null,-1,-1);var i=Gt(r,n),o=r.first+r.size-1;if(i>o)return Oi(r.first+r.size-1,xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=xe(r,i);;){var l=pc(e,a,i,t,n),s=ju(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var f=s.find(1);if(f.line==i)return f;a=xe(r,i=f.line)}}function aa(e,t,n,r){r-=qi(t);var i=t.text.length,o=Ae(function(a){return Qt(e,n,a-1).bottom<=r},i,0);return i=Ae(function(a){return Qt(e,n,a).top>r},o,i),{begin:o,end:i}}function la(e,t,n,r){n||(n=Pr(e,t));var i=Yn(e,t,Qt(e,n,r),"line").top;return aa(e,t,n,i)}function Pi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function pc(e,t,n,r,i){i-=nr(t);var o=Pr(e,t),a=qi(t),l=0,s=t.text.length,f=!0,E=Nt(t,e.doc.direction);if(E){var F=(e.options.lineWrapping?mc:hc)(e,t,n,o,E,r,i);f=F.level!=1,l=f?F.from:F.to-1,s=f?F.to:F.from-1}var X=null,K=null,re=Ae(function(Ce){var we=Qt(e,o,Ce);return we.top+=a,we.bottom+=a,Pi(we,r,i,!1)?(we.top<=i&&we.left<=r&&(X=Ce,K=we),!0):!1},l,s),ie,ce,de=!1;if(K){var ge=r-K.left<K.right-r,pe=ge==f;re=X+(pe?0:1),ce=pe?"after":"before",ie=ge?K.left:K.right}else{!f&&(re==s||re==l)&&re++,ce=re==0?"after":re==t.text.length?"before":Qt(e,o,re-(f?1:0)).bottom+a<=i==f?"after":"before";var ye=Bt(e,H(n,re,ce),"line",t,o);ie=ye.left,de=i<ye.top?-1:i>=ye.bottom?1:0}return re=Pe(t.text,re,1),Oi(n,re,ce,de,r-ie)}function hc(e,t,n,r,i,o,a){var l=Ae(function(F){var X=i[F],K=X.level!=1;return Pi(Bt(e,H(n,K?X.to:X.from,K?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var f=s.level!=1,E=Bt(e,H(n,f?s.from:s.to,f?"after":"before"),"line",t,r);Pi(E,o,a,!0)&&E.top>a&&(s=i[l-1])}return s}function mc(e,t,n,r,i,o,a){var l=aa(e,t,r,a),s=l.begin,f=l.end;/\s/.test(t.text.charAt(f-1))&&f--;for(var E=null,F=null,X=0;X<i.length;X++){var K=i[X];if(!(K.from>=f||K.to<=s)){var re=K.level!=1,ie=Qt(e,r,re?Math.min(f,K.to)-1:Math.max(s,K.from)).right,ce=ie<o?o-ie+1e9:ie-o;(!E||F>ce)&&(E=K,F=ce)}}return E||(E=i[i.length-1]),E.from<s&&(E={from:s,to:E.to,level:E.level}),E.to>f&&(E={from:E.from,to:f,level:E.level}),E}var Sr;function Rr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Sr==null){Sr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Sr.appendChild(document.createTextNode("x")),Sr.appendChild(c("br"));Sr.appendChild(document.createTextNode("x"))}I(e.measure,Sr);var n=Sr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),R(e.measure),n||1}function Wr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");I(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ri(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+i,r[l]=o.clientWidth}return{fixedPos:Wi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Wi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sa(e){var t=Rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Wr(e.display)-3);return function(i){if(dr(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function ji(e){var t=e.doc,n=sa(e);t.iter(function(r){var i=n(r);i!=r.height&&Rt(r,i)})}function Tr(e,t,n,r){var i=e.display;if(!n&&wt(t).getAttribute("cm-not-content")=="true")return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch{return null}var s=Ni(e,o,a),f;if(r&&s.xRel>0&&(f=xe(e.doc,s.line).text).length==s.ch){var E=he(f,f.length,e.options.tabSize)-f.length;s=H(s.line,Math.max(0,Math.round((o-Xo(e.display).left)/Wr(e.display))-E))}return s}function Cr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function St(e,t,n,r){t==null&&(t=e.doc.first),n==null&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)rr&&Li(e.doc,t)<i.viewTo&&hr(e);else if(n<=i.viewFrom)rr&&Ro(e.doc,n+r)>i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=Vn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var a=Vn(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(e)}else{var l=Vn(e,t,t,-1),s=Vn(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(Xn(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):hr(e)}var f=i.externalMeasured;f&&(n<f.lineN?f.lineN+=r:t<f.lineN+f.size&&(i.externalMeasured=null))}function pr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Cr(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);Se(a,n)==-1&&a.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Vn(e,t,n,r){var i=Cr(e,t),o,a=e.display.view;if(!rr||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var l=e.display.viewFrom,s=0;s<i;s++)l+=a[s].size;if(l!=t){if(r>0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;Li(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function gc(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Xn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Xn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Cr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Xn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Cr(e,n)))),r.viewTo=n}function ua(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];!i.hidden&&(!i.node||i.changes)&&++n}return n}function pn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ca(e,t){t===void 0&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var l=0;l<n.sel.ranges.length;l++)if(!(!t&&l==n.sel.primIndex)){var s=n.sel.ranges[l];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var f=s.empty();if(a){var E=a(e,s);E&&Bi(e,E,i)}else(f||e.options.showCursorWhenSelecting)&&Bi(e,s.head,i);f||vc(e,s,o)}}return r}function Bi(e,t,n){var r=Bt(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(c("div","\xA0","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Jn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var l=n.appendChild(c("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=r.other.left+"px",l.style.top=r.other.top+"px",l.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function ei(e,t){return e.top-t.top||e.left-t.left}function vc(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Xo(e.display),l=a.left,s=Math.max(r.sizerWidth,wr(e)-r.sizer.offsetLeft)-a.right,f=i.direction=="ltr";function E(pe,ye,Ce,we){ye<0&&(ye=0),ye=Math.round(ye),we=Math.round(we),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+pe+`px;
top: `+ye+"px; width: "+(Ce??s-pe)+`px;
height: `+(we-ye)+"px"))}function F(pe,ye,Ce){var we=xe(i,pe),Ie=we.text.length,Ze,ft;function Je(it,Et){return Jn(e,H(pe,it),"div",we,Et)}function At(it,Et,pt){var lt=la(e,we,null,it),ot=Et=="ltr"==(pt=="after")?"left":"right",tt=pt=="after"?lt.begin:lt.end-(/\s/.test(we.text.charAt(lt.end-1))?2:1);return Je(tt,ot)[ot]}var Ct=Nt(we,i.direction);return Dt(Ct,ye||0,Ce??Ie,function(it,Et,pt,lt){var ot=pt=="ltr",tt=Je(it,ot?"left":"right"),Lt=Je(Et-1,ot?"right":"left"),Vr=ye==null&&it==0,xr=Ce==null&&Et==Ie,yt=lt==0,Yt=!Ct||lt==Ct.length-1;if(Lt.top-tt.top<=3){var dt=(f?Vr:xr)&&yt,mo=(f?xr:Vr)&&Yt,lr=dt?l:(ot?tt:Lt).left,Ar=mo?s:(ot?Lt:tt).right;E(lr,tt.top,Ar-lr,tt.bottom)}else{var Dr,kt,en,go;ot?(Dr=f&&Vr&&yt?l:tt.left,kt=f?s:At(it,pt,"before"),en=f?l:At(Et,pt,"after"),go=f&&xr&&Yt?s:Lt.right):(Dr=f?At(it,pt,"before"):l,kt=!f&&Vr&&yt?s:tt.right,en=!f&&xr&&Yt?l:Lt.left,go=f?At(Et,pt,"after"):s),E(Dr,tt.top,kt-Dr,tt.bottom),tt.bottom<Lt.top&&E(l,tt.bottom,null,Lt.top),E(en,Lt.top,go-en,Lt.bottom)}(!Ze||ei(tt,Ze)<0)&&(Ze=tt),ei(Lt,Ze)<0&&(Ze=Lt),(!ft||ei(tt,ft)<0)&&(ft=tt),ei(Lt,ft)<0&&(ft=Lt)}),{start:Ze,end:ft}}var X=t.from(),K=t.to();if(X.line==K.line)F(X.line,X.ch,K.ch);else{var re=xe(i,X.line),ie=xe(i,K.line),ce=jt(re)==jt(ie),de=F(X.line,X.ch,ce?re.text.length+1:null).end,ge=F(K.line,ce?0:null,K.ch).start;ce&&(de.top<ge.top-2?(E(de.right,de.top,null,de.bottom),E(l,ge.top,ge.left,ge.bottom)):E(de.right,de.top,ge.left-de.right,de.bottom)),de.bottom<ge.top&&E(l,de.bottom,null,ge.top)}n.appendChild(o)}function Hi(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||jr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function fa(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||$i(e))}function Ui(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&jr(e))},100)}function $i(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Xe(e,"focus",e,t),e.state.focused=!0,V(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),w&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Hi(e))}function jr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Xe(e,"blur",e,t),e.state.focused=!1,G(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ti(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a<t.view.length;a++){var l=t.view[a],s=e.options.lineWrapping,f=void 0,E=0;if(!l.hidden){if(i+=l.line.height,p&&D<8){var F=l.node.offsetTop+l.node.offsetHeight;f=F-n,n=F}else{var X=l.node.getBoundingClientRect();f=X.bottom-X.top,!s&&l.text.firstChild&&(E=l.text.firstChild.getBoundingClientRect().right-X.left-1)}var K=l.line.height-f;if((K>.005||K<-.005)&&(i<r&&(o-=K),Rt(l.line,f),da(l.line),l.rest))for(var re=0;re<l.rest.length;re++)da(l.rest[re]);if(E>e.display.sizerWidth){var ie=Math.ceil(E/Wr(e.display));ie>e.display.maxLineLength&&(e.display.maxLineLength=ie,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function da(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ri(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Qn(e));var i=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight,o=Gt(t,r),a=Gt(t,i);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<o?(o=l,a=Gt(t,nr(xe(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=Gt(t,nr(xe(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function yc(e,t){if(!Ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!k){var a=c("div","\u200B",null,`position: absolute;
top: `+(t.top-n.viewOffset-Qn(e.display))+`px;
height: `+(t.bottom-t.top+Xt(e)+n.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function bc(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?H(t.line,t.ch+1,"before"):t,t=t.ch?H(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,l=Bt(e,t),s=!n||n==t?l:Bt(e,n);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r};var f=Ki(e,i),E=e.doc.scrollTop,F=e.doc.scrollLeft;if(f.scrollTop!=null&&(mn(e,f.scrollTop),Math.abs(e.doc.scrollTop-E)>1&&(a=!0)),f.scrollLeft!=null&&(Er(e,f.scrollLeft),Math.abs(e.doc.scrollLeft-F)>1&&(a=!0)),!a)break}return i}function xc(e,t){var n=Ki(e,t);n.scrollTop!=null&&mn(e,n.scrollTop),n.scrollLeft!=null&&Er(e,n.scrollLeft)}function Ki(e,t){var n=e.display,r=Rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Fi(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Di(n),s=t.top<r,f=t.bottom>l-r;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var E=Math.min(t.top,(f?l:t.bottom)-o);E!=i&&(a.scrollTop=E)}var F=e.options.fixedGutter?0:n.gutters.offsetWidth,X=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-F,K=wr(e)-n.gutters.offsetWidth,re=t.right-t.left>K;return re&&(t.right=t.left+K),t.left<10?a.scrollLeft=0:t.left<X?a.scrollLeft=Math.max(0,t.left+F-(re?0:10)):t.right>K+X-3&&(a.scrollLeft=t.right+(re?0:10)-K),a}function Gi(e,t){t!=null&&(ni(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Br(e){ni(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hn(e,t,n){(t!=null||n!=null)&&ni(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function _c(e,t){ni(e),e.curOp.scrollToPos=t}function ni(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=oa(e,t.from),r=oa(e,t.to);pa(e,n,r,t.margin)}}function pa(e,t,n,r){var i=Ki(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});hn(e,i.scrollLeft,i.scrollTop)}function mn(e,t){Math.abs(e.doc.scrollTop-t)<2||(z||Xi(e,{top:t}),ha(e,t,!0),z&&Xi(e),yn(e,100))}function ha(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Er(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,ba(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Di(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Xt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Lr=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),me(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),me(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&D<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Lr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Lr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Lr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Lr.prototype.zeroWidthHack=function(){var e=W&&!g?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Te,this.disableVert=new Te},Lr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Lr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vn=function(){};vn.prototype.update=function(){return{bottom:0,right:0}},vn.prototype.setScrollLeft=function(){},vn.prototype.setScrollTop=function(){},vn.prototype.clear=function(){};function Hr(e,t){t||(t=gn(e));var n=e.display.barWidth,r=e.display.barHeight;ma(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ti(e),ma(e,gn(e)),n=e.display.barWidth,r=e.display.barHeight}function ma(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var ga={native:Lr,null:vn};function va(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&G(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ga[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Er(e,t):mn(e,t)},e),e.display.scrollbars.addClass&&V(e.display.wrapper,e.display.scrollbars.addClass)}var kc=0;function zr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++kc,markArrays:null},Vu(e.curOp)}function Mr(e){var t=e.curOp;t&&tc(t,function(n){for(var r=0;r<n.ops.length;r++)n.ops[r].cm.curOp=null;wc(n)})}function wc(e){for(var t=e.ops,n=0;n<t.length;n++)Sc(t[n]);for(var r=0;r<t.length;r++)Tc(t[r]);for(var i=0;i<t.length;i++)Cc(t[i]);for(var o=0;o<t.length;o++)Ec(t[o]);for(var a=0;a<t.length;a++)Lc(t[a])}function Sc(e){var t=e.cm,n=t.display;Mc(t),e.updateMaxLine&&Mi(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ii(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Tc(e){e.updatedDisplay=e.mustUpdate&&Zi(e.cm,e.update)}function Cc(e){var t=e.cm,n=t.display;e.updatedDisplay&&ti(t),e.barMeasure=gn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Yo(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Xt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-wr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ec(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Er(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==C(h(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Hr(t,e.barMeasure),e.updatedDisplay&&Yi(t,e.barMeasure),e.selectionChanged&&Hi(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&fa(e.cm)}function Lc(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&ya(t,e.update),n.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(n.wheelStartX=n.wheelStartY=null),e.scrollTop!=null&&ha(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Er(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=bc(t,Me(r,e.scrollToPos.from),Me(r,e.scrollToPos.to),e.scrollToPos.margin);yc(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||Xe(o[l],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&Xe(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Xe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Mt(e,t){if(e.curOp)return t();zr(e);try{return t()}finally{Mr(e)}}function ut(e,t){return function(){if(e.curOp)return t.apply(e,arguments);zr(e);try{return t.apply(e,arguments)}finally{Mr(e)}}}function _t(e){return function(){if(this.curOp)return e.apply(this,arguments);zr(this);try{return e.apply(this,arguments)}finally{Mr(this)}}}function ct(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);zr(t);try{return e.apply(this,arguments)}finally{Mr(t)}}}function yn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,_e(zc,e))}function zc(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ln(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?er(t.mode,r.state):null,s=To(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var f=o.styleClasses,E=s.classes;E?o.styleClasses=E:f&&(o.styleClasses=null);for(var F=!a||a.length!=o.styles.length||f!=E&&(!f||!E||f.bgClass!=E.bgClass||f.textClass!=E.textClass),X=0;!F&&X<a.length;++X)F=a[X]!=o.styles[X];F&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Si(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return yn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Mt(e,function(){for(var o=0;o<i.length;o++)pr(e,i[o],"text")})}}var ii=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ri(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=wr(e),this.force=n,this.dims=Ri(e),this.events=[]};ii.prototype.signal=function(e,t){bt(e,t)&&this.events.push(arguments)},ii.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Xe.apply(null,this.events[e])};function Mc(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Xt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Xt(e)+"px",t.scrollbarsClipped=!0)}function Ac(e){if(e.hasFocus())return null;var t=C(h(e));if(!t||!M(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=se(e).getSelection();r.anchorNode&&r.extend&&M(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Dc(e){if(!(!e||!e.activeElt||e.activeElt==C(e.activeElt.ownerDocument))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&M(document.body,e.anchorNode)&&M(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function Zi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return hr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&ua(e)==0)return!1;xa(e)&&(hr(e),t.dims=Ri(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),rr&&(o=Li(e.doc,o),a=Ro(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;gc(e,o,a),n.viewOffset=nr(xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=ua(e);if(!l&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var f=Ac(e);return s>4&&(n.lineDiv.style.display="none"),Fc(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Dc(f),R(n.cursorDiv),R(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,yn(e,400)),n.updateLineNumbers=null,!0}function ya(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==wr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Di(e.display)-Fi(e),n.top)}),t.visible=ri(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ri(e.display,e.doc,n));if(!Zi(e,t))break;ti(e);var i=gn(e);pn(e),Hr(e,i),Yi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Xi(e,t){var n=new ii(e,t);if(Zi(e,n)){ti(e),ya(e,n);var r=gn(e);pn(e),Hr(e,r),Yi(e,r),n.finish()}}function Fc(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(re){var ie=re.nextSibling;return w&&W&&e.display.currentWheelTarget==re?re.style.display="none":re.parentNode.removeChild(re),ie}for(var s=r.view,f=r.viewFrom,E=0;E<s.length;E++){var F=s[E];if(!F.hidden)if(!F.node||F.node.parentNode!=o){var X=ac(e,F,f,n);o.insertBefore(X,a)}else{for(;a!=F.node;)a=l(a);var K=i&&t!=null&&t<=f&&F.lineNumber;F.changes&&(Se(F.changes,"gutter")>-1&&(K=!1),Uo(e,F,f,n)),K&&(R(F.lineNumber),F.lineNumber.appendChild(document.createTextNode(q(e.options,f)))),a=F.node.nextSibling}f+=F.size}for(;a;)a=l(a)}function Qi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",st(e,"gutterChanged",e)}function Yi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Xt(e)+"px"}function ba(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Wi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var l=n[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function xa(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=q(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(c("div",[c("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Qi(e.display),!0}return!1}function Ji(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if(typeof o!="string"&&(a=o.style,o=o.className),o=="CodeMirror-linenumbers")if(t)r=!0;else continue;n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function _a(e){var t=e.gutters,n=e.gutterSpecs;R(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,l=t.appendChild(c("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),o=="CodeMirror-linenumbers"&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Qi(e)}function bn(e){_a(e.display),St(e),ba(e)}function Ic(e,t,n,r){var i=this;this.input=n,i.scrollbarFiller=c("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=c("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=B("div",null,"CodeMirror-code"),i.selectionDiv=c("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=c("div",null,"CodeMirror-cursors"),i.measure=c("div",null,"CodeMirror-measure"),i.lineMeasure=c("div",null,"CodeMirror-measure"),i.lineSpace=B("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=B("div",[i.lineSpace],"CodeMirror-lines");i.mover=c("div",[o],null,"position: relative"),i.sizer=c("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=c("div",null,null,"position: absolute; height: "+ae+"px; width: 1px;"),i.gutters=c("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=c("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=c("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),T&&m>=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),p&&D<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!w&&!(z&&_)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Ji(r.gutters,r.lineNumbers),_a(i),n.init(i)}var oi=0,or=null;p?or=-.53:z?or=15:T?or=-.7:d&&(or=-1/3);function ka(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function qc(e){var t=ka(e);return t.x*=or,t.y*=or,t}function wa(e,t){T&&m==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=ka(t),r=n.x,i=n.y,o=or;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var a=e.display,l=a.scroller,s=l.scrollWidth>l.clientWidth,f=l.scrollHeight>l.clientHeight;if(r&&s||i&&f){if(i&&W&&w){e:for(var E=t.target,F=a.view;E!=l;E=E.parentNode)for(var X=0;X<F.length;X++)if(F[X].node==E){e.display.currentWheelTarget=E;break e}}if(r&&!z&&!b&&o!=null){i&&f&&mn(e,Math.max(0,l.scrollTop+i*o)),Er(e,Math.max(0,l.scrollLeft+r*o)),(!i||i&&f)&&gt(t),a.wheelStartX=null;return}if(i&&o!=null){var K=i*o,re=e.doc.scrollTop,ie=re+a.wrapper.clientHeight;K<0?re=Math.max(0,re+K-50):ie=Math.min(e.doc.height,ie+K+50),Xi(e,{top:re,bottom:ie})}oi<20&&t.deltaMode!==0&&(a.wheelStartX==null?(a.wheelStartX=l.scrollLeft,a.wheelStartY=l.scrollTop,a.wheelDX=r,a.wheelDY=i,setTimeout(function(){if(a.wheelStartX!=null){var ce=l.scrollLeft-a.wheelStartX,de=l.scrollTop-a.wheelStartY,ge=de&&a.wheelDY&&de/a.wheelDY||ce&&a.wheelDX&&ce/a.wheelDX;a.wheelStartX=a.wheelStartY=null,ge&&(or=(or*oi+ge)/(oi+1),++oi)}},200)):(a.wheelDX+=r,a.wheelDY+=i))}}var It=function(e,t){this.ranges=e,this.primIndex=t};It.prototype.primary=function(){return this.ranges[this.primIndex]},It.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ze(n.anchor,r.anchor)||!ze(n.head,r.head))return!1}return!0},It.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ue(je(this.ranges[t].anchor),je(this.ranges[t].head));return new It(e,this.primIndex)},It.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},It.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(te(t,r.from())>=0&&te(e,r.to())<=0)return n}return-1};var Ue=function(e,t){this.anchor=e,this.head=t};Ue.prototype.from=function(){return at(this.anchor,this.head)},Ue.prototype.to=function(){return Be(this.anchor,this.head)},Ue.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ht(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(X,K){return te(X.from(),K.from())}),n=Se(t,i);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],s=te(l.to(),a.from());if(r&&!a.empty()?s>0:s>=0){var f=at(l.from(),a.from()),E=Be(l.to(),a.to()),F=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new Ue(F?E:f,F?f:E))}}return new It(t,n)}function mr(e,t){return new It([new Ue(e,t||e)],0)}function gr(e){return e.text?H(e.from.line+e.text.length-1,Ee(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Sa(e,t){if(te(e,t.from)<0)return e;if(te(e,t.to)<=0)return gr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=gr(t).ch-t.to.ch),H(n,r)}function Vi(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ue(Sa(i.anchor,t),Sa(i.head,t)))}return Ht(e.cm,n,e.sel.primIndex)}function Ta(e,t,n){return e.line==t.line?H(n.line,e.ch-t.ch+n.ch):H(n.line+(e.line-t.line),e.ch)}function Oc(e,t,n){for(var r=[],i=H(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=Ta(l.from,i,o),f=Ta(gr(l),i,o);if(i=l.to,o=f,n=="around"){var E=e.sel.ranges[a],F=te(E.head,E.anchor)<0;r[a]=new Ue(F?f:s,F?s:f)}else r[a]=new Ue(s,s)}return new It(r,e.sel.primIndex)}function eo(e){e.doc.mode=Vt(e.options,e.doc.modeOption),xn(e)}function xn(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,yn(e,100),e.state.modeGen++,e.curOp&&St(e)}function Ca(e,t){return t.from.ch==0&&t.to.ch==0&&Ee(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function to(e,t,n,r){function i(ge){return n?n[ge]:null}function o(ge,pe,ye){Uu(ge,pe,ye,r),st(ge,"change",ge,t)}function a(ge,pe){for(var ye=[],Ce=ge;Ce<pe;++Ce)ye.push(new Or(f[Ce],i(Ce),r));return ye}var l=t.from,s=t.to,f=t.text,E=xe(e,l.line),F=xe(e,s.line),X=Ee(f),K=i(f.length-1),re=s.line-l.line;if(t.full)e.insert(0,a(0,f.length)),e.remove(f.length,e.size-f.length);else if(Ca(e,t)){var ie=a(0,f.length-1);o(F,F.text,K),re&&e.remove(l.line,re),ie.length&&e.insert(l.line,ie)}else if(E==F)if(f.length==1)o(E,E.text.slice(0,l.ch)+X+E.text.slice(s.ch),K);else{var ce=a(1,f.length-1);ce.push(new Or(X+E.text.slice(s.ch),K,r)),o(E,E.text.slice(0,l.ch)+f[0],i(0)),e.insert(l.line+1,ce)}else if(f.length==1)o(E,E.text.slice(0,l.ch)+f[0]+F.text.slice(s.ch),i(0)),e.remove(l.line+1,re);else{o(E,E.text.slice(0,l.ch)+f[0],i(0)),o(F,X+F.text.slice(s.ch),K);var de=a(1,f.length-1);re>1&&e.remove(l.line+1,re-1),e.insert(l.line+1,de)}st(e,"change",e,t)}function vr(e,t,n){function r(i,o,a){if(i.linked)for(var l=0;l<i.linked.length;++l){var s=i.linked[l];if(s.doc!=o){var f=a&&s.sharedHist;n&&!f||(t(s.doc,f),r(s.doc,i,f))}}}r(e,null,!0)}function Ea(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ji(e),eo(e),La(e),e.options.direction=t.direction,e.options.lineWrapping||Mi(e),e.options.mode=t.modeOption,St(e)}function La(e){(e.doc.direction=="rtl"?V:G)(e.display.lineDiv,"CodeMirror-rtl")}function Nc(e){Mt(e,function(){La(e),St(e)})}function ai(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ro(e,t){var n={from:je(t.from),to:gr(t),text:tr(e,t.from,t.to)};return Aa(e,n,t.from.line,t.to.line+1),vr(e,function(r){return Aa(r,n,t.from.line,t.to.line+1)},!0),n}function za(e){for(;e.length;){var t=Ee(e);if(t.ranges)e.pop();else break}}function Pc(e,t){if(t)return za(e.done),Ee(e.done);if(e.done.length&&!Ee(e.done).ranges)return Ee(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ee(e.done)}function Ma(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,a,l;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=Pc(i,i.lastOp==r)))l=Ee(a.changes),te(t.from,t.to)==0&&te(t.from,l.to)==0?l.to=gr(t):a.changes.push(ro(e,t));else{var s=Ee(i.done);for((!s||!s.ranges)&&li(e.sel,i.done),a={changes:[ro(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||Xe(e,"historyAdded")}function Rc(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Wc(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Rc(e,o,Ee(i.done),t))?i.done[i.done.length-1]=t:li(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&za(i.undone)}function li(e,t){var n=Ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Aa(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(a){a.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=a.markedSpans),++o})}function jc(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Bc(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(jc(n[i]));return r}function Da(e,t){var n=Bc(e,t),r=Ci(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a){e:for(var l=0;l<a.length;++l){for(var s=a[l],f=0;f<o.length;++f)if(o[f].marker==s.marker)continue e;o.push(s)}}else a&&(n[i]=a)}return n}function Ur(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges){r.push(n?It.prototype.deepCopy.call(o):o);continue}var a=o.changes,l=[];r.push({changes:l});for(var s=0;s<a.length;++s){var f=a[s],E=void 0;if(l.push({from:f.from,to:f.to,text:f.text}),t)for(var F in f)(E=F.match(/^spans_(\d+)$/))&&Se(t,Number(E[1]))>-1&&(Ee(l)[F]=f[F],delete f[F])}}return r}function no(e,t,n,r){if(r){var i=e.anchor;if(n){var o=te(t,i)<0;o!=te(n,i)<0?(i=t,t=n):o!=te(t,n)<0&&(t=n)}return new Ue(i,t)}else return new Ue(n||t,t)}function si(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),vt(e,new It([no(e.sel.primary(),t,n,i)],0),r)}function Fa(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=no(e.sel.ranges[o],t[o],null,i);var a=Ht(e.cm,r,e.sel.primIndex);vt(e,a,n)}function io(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,vt(e,Ht(e.cm,i,e.sel.primIndex),r)}function Ia(e,t,n,r){vt(e,mr(t,n),r)}function Hc(e,t,n){var r={ranges:t.ranges,update:function(i){this.ranges=[];for(var o=0;o<i.length;o++)this.ranges[o]=new Ue(Me(e,i[o].anchor),Me(e,i[o].head))},origin:n&&n.origin};return Xe(e,"beforeSelectionChange",e,r),e.cm&&Xe(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ht(e.cm,r.ranges,r.ranges.length-1):t}function qa(e,t,n){var r=e.history.done,i=Ee(r);i&&i.ranges?(r[r.length-1]=t,ui(e,t,n)):vt(e,t,n)}function vt(e,t,n){ui(e,t,n),Wc(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ui(e,t,n){(bt(e,"beforeSelectionChange")||e.cm&&bt(e.cm,"beforeSelectionChange"))&&(t=Hc(e,t,n));var r=n&&n.bias||(te(t.primary().head,e.sel.primary().head)<0?-1:1);Oa(e,Pa(e,t,r,!0)),!(n&&n.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Br(e.cm)}function Oa(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Pn(e.cm)),st(e,"cursorActivity",e))}function Na(e){Oa(e,Pa(e,e.sel,null,!1))}function Pa(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=ci(e,a.anchor,l&&l.anchor,n,r),f=a.head==a.anchor?s:ci(e,a.head,l&&l.head,n,r);(i||s!=a.anchor||f!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ue(s,f))}return i?Ht(e.cm,i,t.primIndex):t}function $r(e,t,n,r,i){var o=xe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker,f="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,E="selectRight"in s?!s.selectRight:s.inclusiveRight;if((l.from==null||(f?l.from<=t.ch:l.from<t.ch))&&(l.to==null||(E?l.to>=t.ch:l.to>t.ch))){if(i&&(Xe(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(n){var F=s.find(r<0?1:-1),X=void 0;if((r<0?E:f)&&(F=Ra(e,F,-r,F&&F.line==t.line?o:null)),F&&F.line==t.line&&(X=te(F,n))&&(r<0?X<0:X>0))return $r(e,F,t,r,i)}var K=s.find(r<0?-1:1);return(r<0?f:E)&&(K=Ra(e,K,r,K.line==t.line?o:null)),K?$r(e,K,t,r,i):null}}return t}function ci(e,t,n,r,i){var o=r||1,a=$r(e,t,n,o,i)||!i&&$r(e,t,n,o,!0)||$r(e,t,n,-o,i)||!i&&$r(e,t,n,-o,!0);return a||(e.cantEdit=!0,H(e.first,0))}function Ra(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?Me(e,H(t.line-1)):null:n>0&&t.ch==(r||xe(e,t.line)).text.length?t.line<e.first+e.size-1?H(t.line+1,0):null:new H(t.line,t.ch+n)}function Wa(e){e.setSelection(H(e.firstLine(),0),H(e.lastLine()),ve)}function ja(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(i,o,a,l){i&&(r.from=Me(e,i)),o&&(r.to=Me(e,o)),a&&(r.text=a),l!==void 0&&(r.origin=l)}),Xe(e,"beforeChange",e,r),e.cm&&Xe(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Kr(e,t,n){if(e.cm){if(!e.cm.curOp)return ut(e.cm,Kr)(e,t,n);if(e.cm.state.suppressEdits)return}if(!((bt(e,"beforeChange")||e.cm&&bt(e.cm,"beforeChange"))&&(t=ja(e,t,!0),!t))){var r=Do&&!n&&Wu(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Ba(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Ba(e,t)}}function Ba(e,t){if(!(t.text.length==1&&t.text[0]==""&&te(t.from,t.to)==0)){var n=Vi(e,t);Ma(e,t,n,e.cm?e.cm.curOp.id:NaN),_n(e,t,n,Ci(e,t));var r=[];vr(e,function(i,o){!o&&Se(r,i.history)==-1&&(Ka(i.history,t),r.push(i.history)),_n(i,t,null,Ci(i,t))})}}function fi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,a=e.sel,l=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,f=0;f<l.length&&(o=l[f],!(n?o.ranges&&!o.equals(e.sel):!o.ranges));f++);if(f!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(o=l.pop(),o.ranges){if(li(o,s),n&&!o.equals(e.sel)){vt(e,o,{clearRedo:!1});return}a=o}else if(r){l.push(o);return}else break;var E=[];li(a,s),s.push({changes:E,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var F=bt(e,"beforeChange")||e.cm&&bt(e.cm,"beforeChange"),X=function(ie){var ce=o.changes[ie];if(ce.origin=t,F&&!ja(e,ce,!1))return l.length=0,{};E.push(ro(e,ce));var de=ie?Vi(e,ce):Ee(l);_n(e,ce,de,Da(e,ce)),!ie&&e.cm&&e.cm.scrollIntoView({from:ce.from,to:gr(ce)});var ge=[];vr(e,function(pe,ye){!ye&&Se(ge,pe.history)==-1&&(Ka(pe.history,ce),ge.push(pe.history)),_n(pe,ce,null,Da(pe,ce))})},K=o.changes.length-1;K>=0;--K){var re=X(K);if(re)return re.v}}}}function Ha(e,t){if(t!=0&&(e.first+=t,e.sel=new It(rt(e.sel.ranges,function(i){return new Ue(H(i.anchor.line+t,i.anchor.ch),H(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){St(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)pr(e.cm,r,"gutter")}}function _n(e,t,n,r){if(e.cm&&!e.cm.curOp)return ut(e.cm,_n)(e,t,n,r);if(t.to.line<e.first){Ha(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Ha(e,i),t={from:H(e.first,0),to:H(t.to.line+i,t.to.ch),text:[Ee(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:H(o,xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tr(e,t.from,t.to),n||(n=Vi(e,t)),e.cm?Uc(e.cm,t,r):to(e,t,r),ui(e,n,ve),e.cantEdit&&ci(e,H(e.firstLine(),0))&&(e.cantEdit=!1)}}function Uc(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=He(jt(xe(r,o.line))),r.iter(s,a.line+1,function(K){if(K==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Pn(e),to(r,t,n,sa(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(K){var re=Zn(K);re>i.maxLineLength&&(i.maxLine=K,i.maxLineLength=re,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),Fu(r,o.line),yn(e,400);var f=t.text.length-(a.line-o.line)-1;t.full?St(e):o.line==a.line&&t.text.length==1&&!Ca(e.doc,t)?pr(e,o.line,"text"):St(e,o.line,a.line+1,f);var E=bt(e,"changes"),F=bt(e,"change");if(F||E){var X={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};F&&st(e,"change",e,X),E&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(X)}e.display.selForContextMenu=null}function Gr(e,t,n,r,i){var o;r||(r=n),te(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Kr(e,{from:n,to:r,text:t,origin:i})}function Ua(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function $a(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var l=0;l<o.ranges.length;l++)Ua(o.ranges[l].anchor,t,n,r),Ua(o.ranges[l].head,t,n,r);continue}for(var s=0;s<o.changes.length;++s){var f=o.changes[s];if(n<f.from.line)f.from=H(f.from.line+r,f.from.ch),f.to=H(f.to.line+r,f.to.ch);else if(t<=f.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}function Ka(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;$a(e.done,n,r,i),$a(e.undone,n,r,i)}function kn(e,t,n,r){var i=t,o=t;return typeof t=="number"?o=xe(e,Ft(e,t)):i=He(t),i==null?null:(r(o,i)&&e.cm&&pr(e.cm,i,n),o)}function wn(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}wn.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,$u(i),st(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}};function Sn(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Sn.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),(t-=o)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof wn))){var l=[];this.collapse(l),this.children=[new wn(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var s=new wn(i.lines.slice(l,l+=25));i.height-=s.height,this.children.splice(++r,0,s),s.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new Sn(t);if(e.parent){e.size-=n.size,e.height-=n.height;var i=Se(e.parent.children,e);e.parent.children.splice(i+1,0,n)}else{var r=new Sn(e.children);r.parent=e,e.children=[r,n],e=r}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if((t-=a)==0)break;e=0}else e-=o}}};var Tn=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};Tn.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=He(n);if(!(r==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=fn(this);Rt(n,Math.max(0,n.height-o)),e&&(Mt(e,function(){Ga(e,n,-o),pr(e,r,"widget")}),st(e,"lineWidgetCleared",e,this,r))}},Tn.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=fn(this)-t;i&&(dr(this.doc,r)||Rt(r,r.height+i),n&&Mt(n,function(){n.curOp.forceUpdate=!0,Ga(n,r,i),st(n,"lineWidgetChanged",n,e,He(r))}))},xt(Tn);function Ga(e,t,n){nr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Gi(e,n)}function $c(e,t,n,r){var i=new Tn(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),kn(e,t,"widget",function(a){var l=a.widgets||(a.widgets=[]);if(i.insertAt==null?l.push(i):l.splice(Math.min(l.length,Math.max(0,i.insertAt)),0,i),i.line=a,o&&!dr(e,a)){var s=nr(a)<e.scrollTop;Rt(a,a.height+fn(i)),s&&Gi(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&st(o,"lineWidgetAdded",o,i,typeof t=="number"?t:He(t)),i}var Za=0,yr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Za};yr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&zr(e),bt(this,"clear")){var n=this.find();n&&st(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=sn(a.markedSpans,this);e&&!this.collapsed?pr(e,He(a),"text"):e&&(l.to!=null&&(i=He(a)),l.from!=null&&(r=He(a))),a.markedSpans=Ou(a.markedSpans,l),l.from==null&&this.collapsed&&!dr(this.doc,a)&&e&&Rt(a,Rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var f=jt(this.lines[s]),E=Zn(f);E>e.display.maxLineLength&&(e.display.maxLine=f,e.display.maxLineLength=E,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&St(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Na(e.doc)),e&&st(e,"markerCleared",e,this,r,i),t&&Mr(e),this.parent&&this.parent.clear()}},yr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i<this.lines.length;++i){var o=this.lines[i],a=sn(o.markedSpans,this);if(a.from!=null&&(n=H(t?o:He(o),a.from),e==-1))return n;if(a.to!=null&&(r=H(t?o:He(o),a.to),e==1))return r}return n&&{from:n,to:r}},yr.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;!t||!r||Mt(r,function(){var i=t.line,o=He(t.line),a=Ii(r,o);if(a&&(ea(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!dr(n.doc,i)&&n.height!=null){var l=n.height;n.height=null;var s=fn(n)-l;s&&Rt(i,i.height+s)}st(r,"markerChanged",r,e)})},yr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Se(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},yr.prototype.detachLine=function(e){if(this.lines.splice(Se(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},xt(yr);function Zr(e,t,n,r,i){if(r&&r.shared)return Kc(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ut(e.cm,Zr)(e,t,n,r,i);var o=new yr(e,i),a=te(t,n);if(r&&ue(r,o,!1),a>0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=B("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Po(e,t.line,t,n,o)||t.line!=n.line&&Po(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");qu()}o.addToHistory&&Ma(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l=t.line,s=e.cm,f;if(e.iter(l,n.line+1,function(F){s&&o.collapsed&&!s.options.lineWrapping&&jt(F)==s.display.maxLine&&(f=!0),o.collapsed&&l!=t.line&&Rt(F,0),Nu(F,new Un(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(F){dr(e,F)&&Rt(F,0)}),o.clearOnEnter&&me(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Iu(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Za,o.atomic=!0),s){if(f&&(s.curOp.updateMaxLine=!0),o.collapsed)St(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var E=t.line;E<=n.line;E++)pr(s,E,"text");o.atomic&&Na(s.doc),st(s,"markerAdded",s,o)}return o}var Cn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};Cn.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();st(this,"clear")}},Cn.prototype.find=function(e,t){return this.primary.find(e,t)},xt(Cn);function Kc(e,t,n,r,i){r=ue(r),r.shared=!1;var o=[Zr(e,t,n,r,i)],a=o[0],l=r.widgetNode;return vr(e,function(s){l&&(r.widgetNode=l.cloneNode(!0)),o.push(Zr(s,Me(s,t),Me(s,n),r,i));for(var f=0;f<s.linked.length;++f)if(s.linked[f].isParent)return;a=Ee(o)}),new Cn(o,a)}function Xa(e){return e.findMarks(H(e.first,0),e.clipPos(H(e.lastLine())),function(t){return t.parent})}function Gc(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(te(o,a)){var l=Zr(e,o,a,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}function Zc(e){for(var t=function(r){var i=e[r],o=[i.primary.doc];vr(i.primary.doc,function(s){return o.push(s)});for(var a=0;a<i.markers.length;a++){var l=i.markers[a];Se(o,l.doc)==-1&&(l.parent=null,i.markers.splice(a--,1))}},n=0;n<e.length;n++)t(n)}var Xc=0,Tt=function(e,t,n,r,i){if(!(this instanceof Tt))return new Tt(e,t,n,r,i);n==null&&(n=0),Sn.call(this,[new wn([new Or("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=H(n,0);this.sel=mr(o),this.history=new ai(null),this.id=++Xc,this.modeOption=t,this.lineSep=r,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),to(this,{from:o,to:o,text:e}),vt(this,mr(o),ve)};Tt.prototype=J(Sn.prototype,{constructor:Tt,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=qr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:ct(function(e){var t=H(this.first,0),n=this.first+this.size-1;Kr(this,{from:t,to:H(n,xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&hn(this.cm,0,0),vt(this,mr(t),ve)}),replaceRange:function(e,t,n,r){t=Me(this,t),n=n?Me(this,n):t,Gr(this,e,t,n,r)},getRange:function(e,t,n){var r=tr(this,Me(this,e),Me(this,t));return n===!1?r:n===""?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(v(this,e))return xe(this,e)},getLineNumber:function(e){return He(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=xe(this,e)),jt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Me(this,e)},getCursor:function(e){var t=this.sel.primary(),n;return e==null||e=="head"?n=t.head:e=="anchor"?n=t.anchor:e=="end"||e=="to"||e===!1?n=t.to():n=t.from(),n},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ct(function(e,t,n){Ia(this,Me(this,typeof e=="number"?H(e,t||0):e),null,n)}),setSelection:ct(function(e,t,n){Ia(this,Me(this,e),Me(this,t||e),n)}),extendSelection:ct(function(e,t,n){si(this,Me(this,e),t&&Me(this,t),n)}),extendSelections:ct(function(e,t){Fa(this,So(this,e),t)}),extendSelectionsBy:ct(function(e,t){var n=rt(this.sel.ranges,e);Fa(this,So(this,n),t)}),setSelections:ct(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Ue(Me(this,e[i].anchor),Me(this,e[i].head||e[i].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),vt(this,Ht(this.cm,r,t),n)}}),addSelection:ct(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ue(Me(this,e),Me(this,t||e))),vt(this,Ht(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n,r=0;r<t.length;r++){var i=tr(this,t[r].from(),t[r].to());n=n?n.concat(i):i}return e===!1?n:n.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=tr(this,n[r].from(),n[r].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ct(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&t!="end"&&Oc(this,r,t),s=r.length-1;s>=0;s--)Kr(this,r[s]);l?qa(this,l):this.cm&&Br(this.cm)}),undo:ct(function(){fi(this,"undo")}),redo:ct(function(){fi(this,"redo")}),undoSelection:ct(function(){fi(this,"undo",!0)}),redoSelection:ct(function(){fi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new ai(this.history),vr(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ur(this.history.done),undone:Ur(this.history.undone)}},setHistory:function(e){var t=this.history=new ai(this.history);t.done=Ur(e.done.slice(0),null,!0),t.undone=Ur(e.undone.slice(0),null,!0)},setGutterMarker:ct(function(e,t,n){return kn(this,e,"gutter",function(r){var i=r.gutterMarkers||(r.gutterMarkers={});return i[t]=n,!n&&be(i)&&(r.gutterMarkers=null),!0})}),clearGutter:ct(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&kn(t,n,"gutter",function(){return n.gutterMarkers[e]=null,be(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!v(this,e)||(t=e,e=xe(this,e),!e))return null}else if(t=He(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ct(function(e,t,n){return kn(this,e,t=="gutter"?"gutter":"class",function(r){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!r[i])r[i]=n;else{if(N(n).test(r[i]))return!1;r[i]+=" "+n}return!0})}),removeLineClass:ct(function(e,t,n){return kn(this,e,t=="gutter"?"gutter":"class",function(r){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",o=r[i];if(o)if(n==null)r[i]=null;else{var a=o.match(N(n));if(!a)return!1;var l=a.index+a[0].length;r[i]=o.slice(0,a.index)+(!a.index||l==o.length?"":" ")+o.slice(l)||null}else return!1;return!0})}),addLineWidget:ct(function(e,t,n){return $c(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Zr(this,Me(this,e),Me(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Me(this,e),Zr(this,e,e,n,"bookmark")},findMarksAt:function(e){e=Me(this,e);var t=[],n=xe(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Me(this,e),t=Me(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];!(s.to!=null&&i==e.line&&e.ch>=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)n[r].from!=null&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),Me(this,H(n,t))},indexFromPos:function(e){e=Me(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(r){t+=r.text.length+n}),t},copy:function(e){var t=new Tt(qr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<n&&(n=e.to);var r=new Tt(qr(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Gc(r,Xa(this)),r},unlinkDoc:function(e){if(e instanceof Ye&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Zc(Xa(this));break}}if(e.history==this.history){var r=[e.id];vr(e,function(i){return r.push(i.id)},!0),e.history=new ai(null),e.history.done=Ur(this.history.done,r),e.history.undone=Ur(this.history.undone,r)}},iterLinkedDocs:function(e){vr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):on(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ct(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Nc(this.cm))})}),Tt.prototype.eachLine=Tt.prototype.iter;var Qa=0;function Qc(e){var t=this;if(Ya(t),!(Ve(t,e)||ir(t.display,e))){gt(e),p&&(Qa=+new Date);var n=Tr(t,e,!0),r=e.dataTransfer.files;if(!(!n||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,l=function(){++a==i&&ut(t,function(){n=Me(t.doc,n);var K={from:n,to:n,text:t.doc.splitLines(o.filter(function(re){return re!=null}).join(t.doc.lineSeparator())),origin:"paste"};Kr(t.doc,K),qa(t.doc,mr(Me(t.doc,n),Me(t.doc,gr(K))))})()},s=function(K,re){if(t.options.allowDropFileTypes&&Se(t.options.allowDropFileTypes,K.type)==-1){l();return}var ie=new FileReader;ie.onerror=function(){return l()},ie.onload=function(){var ce=ie.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ce)){l();return}o[re]=ce,l()},ie.readAsText(K)},f=0;f<r.length;f++)s(r[f],f);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var E=e.dataTransfer.getData("Text");if(E){var F;if(t.state.draggingText&&!t.state.draggingText.copy&&(F=t.listSelections()),ui(t.doc,mr(n,n)),F)for(var X=0;X<F.length;++X)Gr(t.doc,"",F[X].anchor,F[X].head,"drag");t.replaceSelection(E,"around","paste"),t.display.input.focus()}}catch{}}}}function Yc(e,t){if(p&&(!e.state.draggingText||+new Date-Qa<100)){Jt(t);return}if(!(Ve(e,t)||ir(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=c("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),b&&n.parentNode.removeChild(n)}}function Jc(e,t){var n=Tr(e,t);if(n){var r=document.createDocumentFragment();Bi(e,n,r),e.display.dragCursor||(e.display.dragCursor=c("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),I(e.display.dragCursor,r)}}function Ya(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ja(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var o=0;o<n.length;o++)e(n[o])})}}var Va=!1;function Vc(){Va||(ef(),Va=!0)}function ef(){var e;me(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ja(tf)},100))}),me(window,"blur",function(){return Ja(jr)})}function tf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var br={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},En=0;En<10;En++)br[En+48]=br[En+96]=String(En);for(var di=65;di<=90;di++)br[di]=String.fromCharCode(di);for(var Ln=1;Ln<=12;Ln++)br[Ln+111]=br[Ln+63235]="F"+Ln;var ar={};ar.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ar.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ar.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ar.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ar.default=W?ar.macDefault:ar.pcDefault;function rf(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,o,a=0;a<t.length-1;a++){var l=t[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else throw new Error("Unrecognized modifier name: "+l)}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function nf(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if(r=="..."){delete e[n];continue}for(var i=rt(n.split(" "),rf),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=r):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(!s)t[l]=a;else if(s!=a)throw new Error("Inconsistent bindings for "+l)}delete e[n]}for(var f in t)e[f]=t[f];return e}function Xr(e,t,n,r){t=pi(t);var i=t.call?t.call(e,r):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&n(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Xr(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Xr(e,t.fallthrough[o],n,r);if(a)return a}}}function el(e){var t=typeof e=="string"?e:br[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function tl(e,t,n){var r=e;return t.altKey&&r!="Alt"&&(e="Alt-"+e),(Q?t.metaKey:t.ctrlKey)&&r!="Ctrl"&&(e="Ctrl-"+e),(Q?t.ctrlKey:t.metaKey)&&r!="Mod"&&(e="Cmd-"+e),!n&&t.shiftKey&&r!="Shift"&&(e="Shift-"+e),e}function rl(e,t){if(b&&e.keyCode==34&&e.char)return!1;var n=br[e.keyCode];return n==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(n=e.code),tl(n,e,t))}function pi(e){return typeof e=="string"?ar[e]:e}function Qr(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&te(o.from,Ee(r).to)<=0;){var a=r.pop();if(te(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Mt(e,function(){for(var l=r.length-1;l>=0;l--)Gr(e.doc,"",r[l].from,r[l].to,"+delete");Br(e)})}function oo(e,t,n){var r=Pe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ao(e,t,n){var r=oo(e,t.ch,n);return r==null?null:new H(t.line,r,n<0?"after":"before")}function lo(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Nt(n,t.doc.direction);if(o){var a=i<0?Ee(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",f;if(a.level>0||t.doc.direction=="rtl"){var E=Pr(t,n);f=i<0?n.text.length-1:0;var F=Qt(t,E,f).top;f=Ae(function(X){return Qt(t,E,X).top==F},i<0==(a.level==1)?a.from:a.to-1,f),s=="before"&&(f=oo(n,f,1))}else f=i<0?a.to:a.from;return new H(r,f,s)}}return new H(r,i<0?n.text.length:0,i<0?"before":"after")}function of(e,t,n,r){var i=Nt(t,e.doc.direction);if(!i)return ao(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Ot(i,n.ch,n.sticky),a=i[o];if(e.doc.direction=="ltr"&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ao(t,n,r);var l=function(de,ge){return oo(t,de instanceof H?de.ch:de,ge)},s,f=function(de){return e.options.lineWrapping?(s=s||Pr(e,t),la(e,t,s,de)):{begin:0,end:t.text.length}},E=f(n.sticky=="before"?l(n,-1):n.ch);if(e.doc.direction=="rtl"||a.level==1){var F=a.level==1==r<0,X=l(n,F?1:-1);if(X!=null&&(F?X<=a.to&&X<=E.end:X>=a.from&&X>=E.begin)){var K=F?"before":"after";return new H(n.line,X,K)}}var re=function(de,ge,pe){for(var ye=function(Ze,ft){return ft?new H(n.line,l(Ze,1),"before"):new H(n.line,Ze,"after")};de>=0&&de<i.length;de+=ge){var Ce=i[de],we=ge>0==(Ce.level!=1),Ie=we?pe.begin:l(pe.end,-1);if(Ce.from<=Ie&&Ie<Ce.to||(Ie=we?Ce.from:l(Ce.to,-1),pe.begin<=Ie&&Ie<pe.end))return ye(Ie,we)}},ie=re(o+r,r,E);if(ie)return ie;var ce=r>0?E.end:l(E.begin,-1);return ce!=null&&!(r>0&&ce==t.text.length)&&(ie=re(r>0?0:i.length-1,r,f(ce)),ie)?ie:null}var zn={selectAll:Wa,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ve)},killLine:function(e){return Qr(e,function(t){if(t.empty()){var n=xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:H(t.head.line+1,0)}:{from:t.head,to:H(t.head.line,n)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qr(e,function(t){return{from:H(t.from().line,0),to:Me(e.doc,H(t.to().line+1,0))}})},delLineLeft:function(e){return Qr(e,function(t){return{from:H(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Qr(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return Qr(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(H(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(H(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return nl(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return il(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return af(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},Qe)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},Qe)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?il(e,t.head):r},Qe)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=he(e.getLine(o.line),o.ch,r);t.push($e(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Mt(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=xe(e.doc,i.line).text;if(o){if(i.ch==o.length&&(i=new H(i.line,i.ch-1)),i.ch>0)i=new H(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),H(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=xe(e.doc,i.line-1).text;a&&(i=new H(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),H(i.line-1,a.length-1),i,"+transpose"))}}n.push(new Ue(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Mt(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Br(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function nl(e,t){var n=xe(e.doc,t),r=jt(n);return r!=n&&(t=He(r)),lo(!0,e,r,t,1)}function af(e,t){var n=xe(e.doc,t),r=Bu(n);return r!=n&&(t=He(r)),lo(!0,e,n,t,-1)}function il(e,t){var n=nl(e,t.line),r=xe(e.doc,n.line),i=Nt(r,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return H(n.line,a?0:o,n.sticky)}return n}function hi(e,t,n){if(typeof t=="string"&&(t=zn[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=fe}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function lf(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Xr(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Xr(t,e.options.extraKeys,n,e)||Xr(t,e.options.keyMap,n,e)}var sf=new Te;function Mn(e,t,n,r){var i=e.state.keySeq;if(i){if(el(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:sf.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ol(e,i+" "+t,n,r))return!0}return ol(e,t,n,r)}function ol(e,t,n,r){var i=lf(e,t,r);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&st(e,"keyHandled",e,t,n),(i=="handled"||i=="multi")&&(gt(n),Hi(e)),!!i}function al(e,t){var n=rl(t,!0);return n?t.shiftKey&&!e.state.keySeq?Mn(e,"Shift-"+n,t,function(r){return hi(e,r,!0)})||Mn(e,n,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return hi(e,r)}):Mn(e,n,t,function(r){return hi(e,r)}):!1}function uf(e,t,n){return Mn(e,"'"+n+"'",t,function(r){return hi(e,r,!0)})}var so=null;function ll(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=C(h(t)),!Ve(t,e))){p&&D<11&&e.keyCode==27&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=n==16||e.shiftKey;var r=al(t,e);b&&(so=r?n:null,!r&&n==88&&!$t&&(W?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),z&&!W&&!r&&n==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),n==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&cf(t)}}function cf(e){var t=e.display.lineDiv;V(t,"CodeMirror-crosshair");function n(r){(r.keyCode==18||!r.altKey)&&(G(t,"CodeMirror-crosshair"),mt(document,"keyup",n),mt(document,"mouseover",n))}me(document,"keyup",n),me(document,"mouseover",n)}function sl(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ve(this,e)}function ul(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(ir(t.display,e)||Ve(t,e)||e.ctrlKey&&!e.altKey||W&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(b&&n==so){so=null,gt(e);return}if(!(b&&(!e.which||e.which<10)&&al(t,e))){var i=String.fromCharCode(r??n);i!="\b"&&(uf(t,e,i)||t.display.input.onKeyPress(e))}}}var ff=400,uo=function(e,t,n){this.time=e,this.pos=t,this.button=n};uo.prototype.compare=function(e,t,n){return this.time+ff>e&&te(t,this.pos)==0&&n==this.button};var An,Dn;function df(e,t){var n=+new Date;return Dn&&Dn.compare(n,e,t)?(An=Dn=null,"triple"):An&&An.compare(n,e,t)?(Dn=new uo(n,e,t),An=null,"double"):(An=new uo(n,e,t),Dn=null,"single")}function cl(e){var t=this,n=t.display;if(!(Ve(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,ir(n,e)){w||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!co(t,e)){var r=Tr(t,e),i=nn(e),o=r?df(r,i):"single";se(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&pf(t,i,r,o,e))&&(i==1?r?mf(t,r,o,e):wt(e)==n.scroller&&gt(e):i==2?(r&&si(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(j?t.display.input.onContextMenu(e):Ui(t)))}}}function pf(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Mn(e,tl(o,i),i,function(a){if(typeof a=="string"&&(a=zn[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,n)!=fe}finally{e.state.suppressEdits=!1}return l})}function hf(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=Z?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=W?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(W?n.altKey:n.ctrlKey)),i}function mf(e,t,n,r){p?setTimeout(_e(fa,e),0):e.curOp.focus=C(h(e));var i=hf(e,n,r),o=e.doc.sel,a;e.options.dragDrop&&ki&&!e.isReadOnly()&&n=="single"&&(a=o.contains(t))>-1&&(te((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(te(a.to(),t)>0||t.xRel<0)?gf(e,r,t,i):vf(e,r,t,i)}function gf(e,t,n,r){var i=e.display,o=!1,a=ut(e,function(f){w&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ui(e)),mt(i.wrapper.ownerDocument,"mouseup",a),mt(i.wrapper.ownerDocument,"mousemove",l),mt(i.scroller,"dragstart",s),mt(i.scroller,"drop",a),o||(gt(f),r.addNew||si(e.doc,n,null,null,r.extend),w&&!d||p&&D==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),l=function(f){o=o||Math.abs(t.clientX-f.clientX)+Math.abs(t.clientY-f.clientY)>=10},s=function(){return o=!0};w&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",a),me(i.wrapper.ownerDocument,"mousemove",l),me(i.scroller,"dragstart",s),me(i.scroller,"drop",a),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function fl(e,t,n){if(n=="char")return new Ue(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new Ue(H(t.line,0),Me(e.doc,H(t.line+1,0)));var r=n(e,t);return new Ue(r.from,r.to)}function vf(e,t,n,r){p&&Ui(e);var i=e.display,o=e.doc;gt(t);var a,l,s=o.sel,f=s.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),l>-1?a=f[l]:a=new Ue(n,n)):(a=o.sel.primary(),l=o.sel.primIndex),r.unit=="rectangle")r.addNew||(a=new Ue(n,n)),n=Tr(e,t,!0,!0),l=-1;else{var E=fl(e,n,r.unit);r.extend?a=no(a,E.anchor,E.head,r.extend):a=E}r.addNew?l==-1?(l=f.length,vt(o,Ht(e,f.concat([a]),l),{scroll:!1,origin:"*mouse"})):f.length>1&&f[l].empty()&&r.unit=="char"&&!r.extend?(vt(o,Ht(e,f.slice(0,l).concat(f.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):io(o,l,a,De):(l=0,vt(o,new It([a],0),De),s=o.sel);var F=n;function X(pe){if(te(F,pe)!=0)if(F=pe,r.unit=="rectangle"){for(var ye=[],Ce=e.options.tabSize,we=he(xe(o,n.line).text,n.ch,Ce),Ie=he(xe(o,pe.line).text,pe.ch,Ce),Ze=Math.min(we,Ie),ft=Math.max(we,Ie),Je=Math.min(n.line,pe.line),At=Math.min(e.lastLine(),Math.max(n.line,pe.line));Je<=At;Je++){var Ct=xe(o,Je).text,it=ht(Ct,Ze,Ce);Ze==ft?ye.push(new Ue(H(Je,it),H(Je,it))):Ct.length>it&&ye.push(new Ue(H(Je,it),H(Je,ht(Ct,ft,Ce))))}ye.length||ye.push(new Ue(n,n)),vt(o,Ht(e,s.ranges.slice(0,l).concat(ye),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(pe)}else{var Et=a,pt=fl(e,pe,r.unit),lt=Et.anchor,ot;te(pt.anchor,lt)>0?(ot=pt.head,lt=at(Et.from(),pt.anchor)):(ot=pt.anchor,lt=Be(Et.to(),pt.head));var tt=s.ranges.slice(0);tt[l]=yf(e,new Ue(Me(o,lt),ot)),vt(o,Ht(e,tt,l),De)}}var K=i.wrapper.getBoundingClientRect(),re=0;function ie(pe){var ye=++re,Ce=Tr(e,pe,!0,r.unit=="rectangle");if(Ce)if(te(Ce,F)!=0){e.curOp.focus=C(h(e)),X(Ce);var we=ri(i,o);(Ce.line>=we.to||Ce.line<we.from)&&setTimeout(ut(e,function(){re==ye&&ie(pe)}),150)}else{var Ie=pe.clientY<K.top?-20:pe.clientY>K.bottom?20:0;Ie&&setTimeout(ut(e,function(){re==ye&&(i.scroller.scrollTop+=Ie,ie(pe))}),50)}}function ce(pe){e.state.selectingText=!1,re=1/0,pe&&(gt(pe),i.input.focus()),mt(i.wrapper.ownerDocument,"mousemove",de),mt(i.wrapper.ownerDocument,"mouseup",ge),o.history.lastSelOrigin=null}var de=ut(e,function(pe){pe.buttons===0||!nn(pe)?ce(pe):ie(pe)}),ge=ut(e,ce);e.state.selectingText=ge,me(i.wrapper.ownerDocument,"mousemove",de),me(i.wrapper.ownerDocument,"mouseup",ge)}function yf(e,t){var n=t.anchor,r=t.head,i=xe(e.doc,n.line);if(te(n,r)==0&&n.sticky==r.sticky)return t;var o=Nt(i);if(!o)return t;var a=Ot(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s=a+(l.from==n.ch==(l.level!=1)?0:1);if(s==0||s==o.length)return t;var f;if(r.line!=n.line)f=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var E=Ot(o,r.ch,r.sticky),F=E-a||(r.ch-n.ch)*(l.level==1?-1:1);E==s-1||E==s?f=F<0:f=F>0}var X=o[s+(f?-1:0)],K=f==(X.level==1),re=K?X.from:X.to,ie=K?"after":"before";return n.ch==re&&n.sticky==ie?t:new Ue(new H(n.line,re,ie),r)}function dl(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&gt(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!bt(e,n))return rn(t);o-=l.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var f=a.gutters.childNodes[s];if(f&&f.getBoundingClientRect().right>=i){var E=Gt(e.doc,o),F=e.display.gutterSpecs[s];return Xe(e,n,e,E,F.className,t),rn(t)}}}function co(e,t){return dl(e,t,"gutterClick",!0)}function pl(e,t){ir(e.display,t)||bf(e,t)||Ve(e,t,"contextmenu")||j||e.display.input.onContextMenu(t)}function bf(e,t){return bt(e,"gutterContextMenu")?dl(e,t,"gutterContextMenu",!1):!1}function hl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dn(e)}var Yr={toString:function(){return"CodeMirror.Init"}},ml={},mi={};function xf(e){var t=e.optionHandlers;function n(r,i,o,a){e.defaults[r]=i,o&&(t[r]=a?function(l,s,f){f!=Yr&&o(l,s,f)}:o)}e.defineOption=n,e.Init=Yr,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,eo(r)},!0),n("indentUnit",2,eo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){xn(r),dn(r),St(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],a=r.doc.first;r.doc.iter(function(s){for(var f=0;;){var E=s.text.indexOf(i,f);if(E==-1)break;f=E+i.length,o.push(H(a,E))}a++});for(var l=o.length-1;l>=0;l--)Gr(r.doc,i,o[l],H(o[l].line,o[l].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=Yr&&r.refresh()}),n("specialCharPlaceholder",Zu,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",_?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!ee),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){hl(r),bn(r)},!0),n("keyMap","default",function(r,i,o){var a=pi(i),l=o!=Yr&&pi(o);l&&l.detach&&l.detach(r,a),a.attach&&a.attach(r,l||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,kf,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Ji(i,r.options.lineNumbers),bn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Wi(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Hr(r)},!0),n("scrollbarStyle","native",function(r){va(r),Hr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Ji(r.options.gutters,i),bn(r)},!0),n("firstLineNumber",1,bn,!0),n("lineNumberFormatter",function(r){return r},bn,!0),n("showCursorWhenSelecting",!1,pn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(jr(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,_f),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,pn,!0),n("singleCursorHeightPerLine",!0,pn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,xn,!0),n("addModeClass",!1,xn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,xn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function _f(e,t,n){var r=n&&n!=Yr;if(!t!=!r){var i=e.display.dragFunctions,o=t?me:mt;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function kf(e){e.options.lineWrapping?(V(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(G(e.display.wrapper,"CodeMirror-wrap"),Mi(e)),ji(e),St(e),dn(e),setTimeout(function(){return Hr(e)},100)}function Ye(e,t){var n=this;if(!(this instanceof Ye))return new Ye(e,t);this.options=t=t?ue(t):{},ue(ml,t,!1);var r=t.value;typeof r=="string"?r=new Tt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ye.inputStyles[t.inputStyle](this),o=this.display=new Ic(e,r,i,t);o.wrapper.CodeMirror=this,hl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),va(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Te,keySeq:null,specialChars:null},t.autofocus&&!_&&o.input.focus(),p&&D<11&&setTimeout(function(){return n.display.input.reset(!0)},20),wf(this),Vc(),zr(this),this.curOp.forceUpdate=!0,Ea(this,r),t.autofocus&&!_||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&$i(n)},20):jr(this);for(var a in mi)mi.hasOwnProperty(a)&&mi[a](this,t[a],Yr);xa(this),t.finishInit&&t.finishInit(this);for(var l=0;l<fo.length;++l)fo[l](this);Mr(this),w&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}Ye.defaults=ml,Ye.optionHandlers=mi;function wf(e){var t=e.display;me(t.scroller,"mousedown",ut(e,cl)),p&&D<11?me(t.scroller,"dblclick",ut(e,function(s){if(!Ve(e,s)){var f=Tr(e,s);if(!(!f||co(e,s)||ir(e.display,s))){gt(s);var E=e.findWordAt(f);si(e.doc,E.anchor,E.head)}}})):me(t.scroller,"dblclick",function(s){return Ve(e,s)||gt(s)}),me(t.scroller,"contextmenu",function(s){return pl(e,s)}),me(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||pl(e,s)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function o(s){if(s.touches.length!=1)return!1;var f=s.touches[0];return f.radiusX<=1&&f.radiusY<=1}function a(s,f){if(f.left==null)return!0;var E=f.left-s.left,F=f.top-s.top;return E*E+F*F>20*20}me(t.scroller,"touchstart",function(s){if(!Ve(e,s)&&!o(s)&&!co(e,s)){t.input.ensurePolled(),clearTimeout(n);var f=+new Date;t.activeTouch={start:f,moved:!1,prev:f-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),me(t.scroller,"touchend",function(s){var f=t.activeTouch;if(f&&!ir(t,s)&&f.left!=null&&!f.moved&&new Date-f.start<300){var E=e.coordsChar(t.activeTouch,"page"),F;!f.prev||a(f,f.prev)?F=new Ue(E,E):!f.prev.prev||a(f,f.prev.prev)?F=e.findWordAt(E):F=new Ue(H(E.line,0),Me(e.doc,H(E.line+1,0))),e.setSelection(F.anchor,F.head),e.focus(),gt(s)}i()}),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(mn(e,t.scroller.scrollTop),Er(e,t.scroller.scrollLeft,!0),Xe(e,"scroll",e))}),me(t.scroller,"mousewheel",function(s){return wa(e,s)}),me(t.scroller,"DOMMouseScroll",function(s){return wa(e,s)}),me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Ve(e,s)||Jt(s)},over:function(s){Ve(e,s)||(Jc(e,s),Jt(s))},start:function(s){return Yc(e,s)},drop:ut(e,Qc),leave:function(s){Ve(e,s)||Ya(e)}};var l=t.input.getField();me(l,"keyup",function(s){return sl.call(e,s)}),me(l,"keydown",ut(e,ll)),me(l,"keypress",ut(e,ul)),me(l,"focus",function(s){return $i(e,s)}),me(l,"blur",function(s){return jr(e,s)})}var fo=[];Ye.defineInitHook=function(e){return fo.push(e)};function Fn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=ln(e,t).state:n="prev");var a=e.options.tabSize,l=xe(i,t),s=he(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var f=l.text.match(/^\s*/)[0],E;if(!r&&!/\S/.test(l.text))E=0,n="not";else if(n=="smart"&&(E=i.mode.indent(o,l.text.slice(f.length),l.text),E==fe||E>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?E=he(xe(i,t-1).text,null,a):E=0:n=="add"?E=s+e.options.indentUnit:n=="subtract"?E=s-e.options.indentUnit:typeof n=="number"&&(E=s+n),E=Math.max(0,E);var F="",X=0;if(e.options.indentWithTabs)for(var K=Math.floor(E/a);K;--K)X+=a,F+=" ";if(X<E&&(F+=$e(E-X)),F!=f)return Gr(i,F,H(t,0),H(t,f.length),"+input"),l.stateAfter=null,!0;for(var re=0;re<i.sel.ranges.length;re++){var ie=i.sel.ranges[re];if(ie.head.line==t&&ie.head.ch<f.length){var ce=H(t,f.length);io(i,re,new Ue(ce,ce));break}}}var Ut=null;function gi(e){Ut=e}function po(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,l=i=="paste"||e.state.pasteIncoming>a,s=on(t),f=null;if(l&&r.ranges.length>1)if(Ut&&Ut.text.join(`
`)==t){if(r.ranges.length%Ut.text.length==0){f=[];for(var E=0;E<Ut.text.length;E++)f.push(o.splitLines(Ut.text[E]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(f=rt(s,function(de){return[de]}));for(var F=e.curOp.updateInput,X=r.ranges.length-1;X>=0;X--){var K=r.ranges[X],re=K.from(),ie=K.to();K.empty()&&(n&&n>0?re=H(re.line,re.ch-n):e.state.overwrite&&!l?ie=H(ie.line,Math.min(xe(o,ie.line).text.length,ie.ch+Ee(s).length)):l&&Ut&&Ut.lineWise&&Ut.text.join(`
`)==s.join(`
`)&&(re=ie=H(re.line,0)));var ce={from:re,to:ie,text:f?f[X%f.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};Kr(e.doc,ce),st(e,"inputRead",e,ce)}t&&!l&&vl(e,t),Br(e),e.curOp.updateInput<2&&(e.curOp.updateInput=F),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function gl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Mt(t,function(){return po(t,n,0,null,"paste")}),!0}function vl(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Fn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Fn(e,i.head.line,"smart"));a&&st(e,"electricInput",e,i.head.line)}}}function yl(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:H(i,0),head:H(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function bl(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function xl(){var e=c("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=c("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return w?e.style.width="1000px":e.setAttribute("wrap","off"),y&&(e.style.border="1px solid black"),bl(e),t}function Sf(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){se(this).focus(),this.display.input.focus()},setOption:function(r,i){var o=this.options,a=o[r];o[r]==i&&r!="mode"||(o[r]=i,t.hasOwnProperty(r)&&ut(this,t[r])(this,i,a),Xe(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,i){this.state.keyMaps[i?"push":"unshift"](pi(r))},removeKeyMap:function(r){for(var i=this.state.keyMaps,o=0;o<i.length;++o)if(i[o]==r||i[o].name==r)return i.splice(o,1),!0},addOverlay:_t(function(r,i){var o=r.token?r:e.getMode(this.options,r);if(o.startState)throw new Error("Overlays may not be stateful.");Ge(this.state.overlays,{mode:o,modeSpec:r,opaque:i&&i.opaque,priority:i&&i.priority||0},function(a){return a.priority}),this.state.modeGen++,St(this)}),removeOverlay:_t(function(r){for(var i=this.state.overlays,o=0;o<i.length;++o){var a=i[o].modeSpec;if(a==r||typeof r=="string"&&a.name==r){i.splice(o,1),this.state.modeGen++,St(this);return}}}),indentLine:_t(function(r,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),v(this.doc,r)&&Fn(this,r,i,o)}),indentSelection:_t(function(r){for(var i=this.doc.sel.ranges,o=-1,a=0;a<i.length;a++){var l=i[a];if(l.empty())l.head.line>o&&(Fn(this,l.head.line,r,!0),o=l.head.line,a==this.doc.sel.primIndex&&Br(this));else{var s=l.from(),f=l.to(),E=Math.max(o,s.line);o=Math.min(this.lastLine(),f.line-(f.ch?0:1))+1;for(var F=E;F<o;++F)Fn(this,F,r);var X=this.doc.sel.ranges;s.ch==0&&i.length==X.length&&X[a].from().ch>0&&io(this.doc,a,new Ue(s,X[a].to()),ve)}}}),getTokenAt:function(r,i){return zo(this,r,i)},getLineTokens:function(r,i){return zo(this,H(r),i,!0)},getTokenTypeAt:function(r){r=Me(this.doc,r);var i=Co(this,xe(this.doc,r.line)),o=0,a=(i.length-1)/2,l=r.ch,s;if(l==0)s=i[2];else for(;;){var f=o+a>>1;if((f?i[f*2-1]:0)>=l)a=f;else if(i[f*2+1]<l)o=f+1;else{s=i[f*2+2];break}}var E=s?s.indexOf("overlay "):-1;return E<0?s:E==0?null:s.slice(0,E-1)},getModeAt:function(r){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(r).state).mode:i},getHelper:function(r,i){return this.getHelpers(r,i)[0]},getHelpers:function(r,i){var o=[];if(!n.hasOwnProperty(i))return o;var a=n[i],l=this.getModeAt(r);if(typeof l[i]=="string")a[l[i]]&&o.push(a[l[i]]);else if(l[i])for(var s=0;s<l[i].length;s++){var f=a[l[i][s]];f&&o.push(f)}else l.helperType&&a[l.helperType]?o.push(a[l.helperType]):a[l.name]&&o.push(a[l.name]);for(var E=0;E<a._global.length;E++){var F=a._global[E];F.pred(l,this)&&Se(o,F.val)==-1&&o.push(F.val)}return o},getStateAfter:function(r,i){var o=this.doc;return r=Ft(o,r??o.first+o.size-1),ln(this,r+1,i).state},cursorCoords:function(r,i){var o,a=this.doc.sel.primary();return r==null?o=a.head:typeof r=="object"?o=Me(this.doc,r):o=r?a.from():a.to(),Bt(this,o,i||"page")},charCoords:function(r,i){return Jn(this,Me(this.doc,r),i||"page")},coordsChar:function(r,i){return r=ia(this,r,i||"page"),Ni(this,r.left,r.top)},lineAtHeight:function(r,i){return r=ia(this,{top:r,left:0},i||"page").top,Gt(this.doc,r+this.display.viewOffset)},heightAtLine:function(r,i,o){var a=!1,l;if(typeof r=="number"){var s=this.doc.first+this.doc.size-1;r<this.doc.first?r=this.doc.first:r>s&&(r=s,a=!0),l=xe(this.doc,r)}else l=r;return Yn(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-nr(l):0)},defaultTextHeight:function(){return Rr(this.display)},defaultCharWidth:function(){return Wr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,a,l){var s=this.display;r=Bt(this,Me(this.doc,r));var f=r.bottom,E=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),a=="over")f=r.top;else if(a=="above"||a=="near"){var F=Math.max(s.wrapper.clientHeight,this.doc.height),X=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||r.bottom+i.offsetHeight>F)&&r.top>i.offsetHeight?f=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=F&&(f=r.bottom),E+i.offsetWidth>X&&(E=X-i.offsetWidth)}i.style.top=f+"px",i.style.left=i.style.right="",l=="right"?(E=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?E=0:l=="middle"&&(E=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=E+"px"),o&&xc(this,{left:E,top:f,right:E+i.offsetWidth,bottom:f+i.offsetHeight})},triggerOnKeyDown:_t(ll),triggerOnKeyPress:_t(ul),triggerOnKeyUp:sl,triggerOnMouseDown:_t(cl),execCommand:function(r){if(zn.hasOwnProperty(r))return zn[r].call(null,this)},triggerElectric:_t(function(r){vl(this,r)}),findPosH:function(r,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=Me(this.doc,r),f=0;f<i&&(s=ho(this.doc,s,l,o,a),!s.hitSide);++f);return s},moveH:_t(function(r,i){var o=this;this.extendSelectionsBy(function(a){return o.display.shift||o.doc.extend||a.empty()?ho(o.doc,a.head,r,i,o.options.rtlMoveVisually):r<0?a.from():a.to()},Qe)}),deleteH:_t(function(r,i){var o=this.doc.sel,a=this.doc;o.somethingSelected()?a.replaceSelection("",null,"+delete"):Qr(this,function(l){var s=ho(a,l.head,r,i,!1);return r<0?{from:s,to:l.head}:{from:l.head,to:s}})}),findPosV:function(r,i,o,a){var l=1,s=a;i<0&&(l=-1,i=-i);for(var f=Me(this.doc,r),E=0;E<i;++E){var F=Bt(this,f,"div");if(s==null?s=F.left:F.left=s,f=_l(this,F,l,o),f.hitSide)break}return f},moveV:_t(function(r,i){var o=this,a=this.doc,l=[],s=!this.display.shift&&!a.extend&&a.sel.somethingSelected();if(a.extendSelectionsBy(function(E){if(s)return r<0?E.from():E.to();var F=Bt(o,E.head,"div");E.goalColumn!=null&&(F.left=E.goalColumn),l.push(F.left);var X=_l(o,F,r,i);return i=="page"&&E==a.sel.primary()&&Gi(o,Jn(o,X,"div").top-F.top),X},Qe),l.length)for(var f=0;f<a.sel.ranges.length;f++)a.sel.ranges[f].goalColumn=l[f]}),findWordAt:function(r){var i=this.doc,o=xe(i,r.line).text,a=r.ch,l=r.ch;if(o){var s=this.getHelper(r,"wordChars");(r.sticky=="before"||l==o.length)&&a?--a:++l;for(var f=o.charAt(a),E=Fe(f,s)?function(F){return Fe(F,s)}:/\s/.test(f)?function(F){return/\s/.test(F)}:function(F){return!/\s/.test(F)&&!Fe(F)};a>0&&E(o.charAt(a-1));)--a;for(;l<o.length&&E(o.charAt(l));)++l}return new Ue(H(r.line,a),H(r.line,l))},toggleOverwrite:function(r){r!=null&&r==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?V(this.display.cursorDiv,"CodeMirror-overwrite"):G(this.display.cursorDiv,"CodeMirror-overwrite"),Xe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==C(h(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:_t(function(r,i){hn(this,r,i)}),getScrollInfo:function(){var r=this.display.scroller;return{left:r.scrollLeft,top:r.scrollTop,height:r.scrollHeight-Xt(this)-this.display.barHeight,width:r.scrollWidth-Xt(this)-this.display.barWidth,clientHeight:Fi(this),clientWidth:wr(this)}},scrollIntoView:_t(function(r,i){r==null?(r={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof r=="number"?r={from:H(r,0),to:null}:r.from==null&&(r={from:r,to:null}),r.to||(r.to=r.from),r.margin=i||0,r.from.line!=null?_c(this,r):pa(this,r.from,r.to,r.margin)}),setSize:_t(function(r,i){var o=this,a=function(s){return typeof s=="number"||/^\d+$/.test(String(s))?s+"px":s};r!=null&&(this.display.wrapper.style.width=a(r)),i!=null&&(this.display.wrapper.style.height=a(i)),this.options.lineWrapping&&ta(this);var l=this.display.viewFrom;this.doc.iter(l,this.display.viewTo,function(s){if(s.widgets){for(var f=0;f<s.widgets.length;f++)if(s.widgets[f].noHScroll){pr(o,l,"widget");break}}++l}),this.curOp.forceUpdate=!0,Xe(this,"refresh",this)}),operation:function(r){return Mt(this,r)},startOperation:function(){return zr(this)},endOperation:function(){return Mr(this)},refresh:_t(function(){var r=this.display.cachedTextHeight;St(this),this.curOp.forceUpdate=!0,dn(this),hn(this,this.doc.scrollLeft,this.doc.scrollTop),Qi(this.display),(r==null||Math.abs(r-Rr(this.display))>.5||this.options.lineWrapping)&&ji(this),Xe(this,"refresh",this)}),swapDoc:_t(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Ea(this,r),dn(this),this.display.input.reset(),hn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,st(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xt(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,a){e.registerHelper(r,i,a),n[r]._global.push({pred:o,val:a})}}function ho(e,t,n,r,i){var o=t,a=n,l=xe(e,t.line),s=i&&e.direction=="rtl"?-n:n;function f(){var ge=t.line+s;return ge<e.first||ge>=e.first+e.size?!1:(t=new H(ge,t.ch,t.sticky),l=xe(e,ge))}function E(ge){var pe;if(r=="codepoint"){var ye=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(ye))pe=null;else{var Ce=n>0?ye>=55296&&ye<56320:ye>=56320&&ye<57343;pe=new H(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(Ce?2:1))),-n)}}else i?pe=of(e.cm,l,t,n):pe=ao(l,t,n);if(pe==null)if(!ge&&f())t=lo(i,e.cm,l,t.line,s);else return!1;else t=pe;return!0}if(r=="char"||r=="codepoint")E();else if(r=="column")E(!0);else if(r=="word"||r=="group")for(var F=null,X=r=="group",K=e.cm&&e.cm.getHelper(t,"wordChars"),re=!0;!(n<0&&!E(!re));re=!1){var ie=l.text.charAt(t.ch)||`
`,ce=Fe(ie,K)?"w":X&&ie==`
`?"n":!X||/\s/.test(ie)?null:"p";if(X&&!re&&!ce&&(ce="s"),F&&F!=ce){n<0&&(n=1,E(),t.sticky="after");break}if(ce&&(F=ce),n>0&&!E(!re))break}var de=ci(e,t,o,a,!0);return ze(o,de)&&(de.hitSide=!0),de}function _l(e,t,n,r){var i=e.doc,o=t.left,a;if(r=="page"){var l=Math.min(e.display.wrapper.clientHeight,se(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(l-.5*Rr(e.display),3);a=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(a=n>0?t.bottom+3:t.top-3);for(var f;f=Ni(e,o,a),!!f.outside;){if(n<0?a<=0:a>=i.height){f.hitSide=!0;break}a+=n*5}return f}var Ke=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Te,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ke.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,bl(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(l){for(var s=l.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}me(i,"paste",function(l){!o(l)||Ve(r,l)||gl(l,r)||D<=11&&setTimeout(ut(r,function(){return t.updateFromDOM()}),20)}),me(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),me(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),me(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),me(i,"touchstart",function(){return n.forceCompositionEnd()}),me(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||Ve(r,l))){if(r.somethingSelected())gi({lineWise:!1,text:r.getSelections()}),l.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=yl(r);gi({lineWise:!0,text:s.text}),l.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,ve),r.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var f=Ut.text.join(`
`);if(l.clipboardData.setData("Text",f),l.clipboardData.getData("Text")==f){l.preventDefault();return}}var E=xl(),F=E.firstChild;r.display.lineSpace.insertBefore(E,r.display.lineSpace.firstChild),F.value=Ut.text.join(`
`);var X=C(i.ownerDocument);x(F),setTimeout(function(){r.display.lineSpace.removeChild(E),X.focus(),X==i&&n.showPrimarySelection()},50)}}me(i,"copy",a),me(i,"cut",a)},Ke.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ke.prototype.prepareSelection=function(){var e=ca(this.cm,!1);return e.focus=C(this.div.ownerDocument)==this.div,e},Ke.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ke.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ke.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=vi(t,e.anchorNode,e.anchorOffset),a=vi(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&a&&!a.bad&&te(at(o,a),r)==0&&te(Be(o,a),i)==0)){var l=t.display.view,s=r.line>=t.display.viewFrom&&kl(t,r)||{node:l[0].measure.map[2],offset:0},f=i.line<t.display.viewTo&&kl(t,i);if(!f){var E=l[l.length-1].measure,F=E.maps?E.maps[E.maps.length-1]:E.map;f={node:F[F.length-1],offset:F[F.length-2]-F[F.length-3]}}if(!s||!f){e.removeAllRanges();return}var X=e.rangeCount&&e.getRangeAt(0),K;try{K=$(s.node,s.offset,f.offset,f.node)}catch{}K&&(!z&&t.state.focused?(e.collapse(s.node,s.offset),K.collapsed||(e.removeAllRanges(),e.addRange(K))):(e.removeAllRanges(),e.addRange(K)),X&&e.anchorNode==null?e.addRange(X):z&&this.startGracePeriod()),this.rememberSelection()}},Ke.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ke.prototype.showMultipleSelections=function(e){I(this.cm.display.cursorDiv,e.cursors),I(this.cm.display.selectionDiv,e.selection)},Ke.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ke.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return M(this.div,t)},Ke.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||C(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ke.prototype.blur=function(){this.div.blur()},Ke.prototype.getField=function(){return this.div},Ke.prototype.supportsTouch=function(){return!0},Ke.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Mt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.polling.set(this.cm.options.pollInterval,n)},Ke.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ke.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(U&&T&&this.cm.display.gutterSpecs.length&&Tf(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var n=vi(t,e.anchorNode,e.anchorOffset),r=vi(t,e.focusNode,e.focusOffset);n&&r&&Mt(t,function(){vt(t.doc,mr(n,r),ve),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ke.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(r.ch==0&&r.line>e.firstLine()&&(r=H(r.line-1,xe(e.doc,r.line-1).length)),i.ch==xe(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=H(i.line+1,0)),r.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,l;r.line==t.viewFrom||(o=Cr(e,r.line))==0?(a=He(t.view[0].line),l=t.view[0].node):(a=He(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=Cr(e,i.line),f,E;if(s==t.view.length-1?(f=t.viewTo-1,E=t.lineDiv.lastChild):(f=He(t.view[s+1].line)-1,E=t.view[s+1].node.previousSibling),!l)return!1;for(var F=e.doc.splitLines(Cf(e,l,E,a,f)),X=tr(e.doc,H(a,0),H(f,xe(e.doc,f).text.length));F.length>1&&X.length>1;)if(Ee(F)==Ee(X))F.pop(),X.pop(),f--;else if(F[0]==X[0])F.shift(),X.shift(),a++;else break;for(var K=0,re=0,ie=F[0],ce=X[0],de=Math.min(ie.length,ce.length);K<de&&ie.charCodeAt(K)==ce.charCodeAt(K);)++K;for(var ge=Ee(F),pe=Ee(X),ye=Math.min(ge.length-(F.length==1?K:0),pe.length-(X.length==1?K:0));re<ye&&ge.charCodeAt(ge.length-re-1)==pe.charCodeAt(pe.length-re-1);)++re;if(F.length==1&&X.length==1&&a==r.line)for(;K&&K>r.ch&&ge.charCodeAt(ge.length-re-1)==pe.charCodeAt(pe.length-re-1);)K--,re++;F[F.length-1]=ge.slice(0,ge.length-re).replace(/^\u200b+/,""),F[0]=F[0].slice(K).replace(/\u200b+$/,"");var Ce=H(a,K),we=H(f,X.length?Ee(X).length-re:0);if(F.length>1||F[0]||te(Ce,we))return Gr(e.doc,F,Ce,we,"+input"),!0},Ke.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ke.prototype.reset=function(){this.forceCompositionEnd()},Ke.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ke.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Ke.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Mt(this.cm,function(){return St(e.cm)})},Ke.prototype.setUneditable=function(e){e.contentEditable="false"},Ke.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ut(this.cm,po)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ke.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ke.prototype.onContextMenu=function(){},Ke.prototype.resetPosition=function(){},Ke.prototype.needsContentAttribute=!0;function kl(e,t){var n=Ii(e,t.line);if(!n||n.hidden)return null;var r=xe(e.doc,t.line),i=Qo(n,r,t.line),o=Nt(r,e.doc.direction),a="left";if(o){var l=Ot(o,t.ch);a=l%2?"right":"left"}var s=Vo(i.map,t.ch,a);return s.offset=s.collapse=="right"?s.end:s.start,s}function Tf(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Jr(e,t){return t&&(e.bad=!0),e}function Cf(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function f(K){return function(re){return re.id==K}}function E(){a&&(o+=l,s&&(o+=l),a=s=!1)}function F(K){K&&(E(),o+=K)}function X(K){if(K.nodeType==1){var re=K.getAttribute("cm-text");if(re){F(re);return}var ie=K.getAttribute("cm-marker"),ce;if(ie){var de=e.findMarks(H(r,0),H(i+1,0),f(+ie));de.length&&(ce=de[0].find(0))&&F(tr(e.doc,ce.from,ce.to).join(l));return}if(K.getAttribute("contenteditable")=="false")return;var ge=/^(pre|div|p|li|table|br)$/i.test(K.nodeName);if(!/^br$/i.test(K.nodeName)&&K.textContent.length==0)return;ge&&E();for(var pe=0;pe<K.childNodes.length;pe++)X(K.childNodes[pe]);/^(pre|p)$/i.test(K.nodeName)&&(s=!0),ge&&(a=!0)}else K.nodeType==3&&F(K.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;X(t),t!=n;)t=t.nextSibling,s=!1;return o}function vi(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return Jr(e.clipPos(H(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ef(o,t,n)}}function Ef(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!M(r,t))return Jr(H(He(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Ee(e.rest):e.line;return Jr(H(He(o),o.text.length),i)}var a=t.nodeType==3?t:null,l=t;for(!a&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(a=t.firstChild,n&&(n=a.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var s=e.measure,f=s.maps;function E(ce,de,ge){for(var pe=-1;pe<(f?f.length:0);pe++)for(var ye=pe<0?s.map:f[pe],Ce=0;Ce<ye.length;Ce+=3){var we=ye[Ce+2];if(we==ce||we==de){var Ie=He(pe<0?e.line:e.rest[pe]),Ze=ye[Ce]+ge;return(ge<0||we!=ce)&&(Ze=ye[Ce+(ge?1:0)]),H(Ie,Ze)}}}var F=E(a,l,n);if(F)return Jr(F,i);for(var X=l.nextSibling,K=a?a.nodeValue.length-n:0;X;X=X.nextSibling){if(F=E(X,X.firstChild,0),F)return Jr(H(F.line,F.ch-K),i);K+=X.textContent.length}for(var re=l.previousSibling,ie=n;re;re=re.previousSibling){if(F=E(re,re.firstChild,-1),F)return Jr(H(F.line,F.ch+ie),i);ie+=re.textContent.length}}var nt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Te,this.hasSelection=!1,this.composing=null,this.resetting=!1};nt.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),y&&(i.style.width="0px"),me(i,"input",function(){p&&D>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),me(i,"paste",function(a){Ve(r,a)||gl(a,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(a){if(!Ve(r,a)){if(r.somethingSelected())gi({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var l=yl(r);gi({lineWise:!0,text:l.text}),a.type=="cut"?r.setSelections(l.ranges,null,ve):(n.prevInput="",i.value=l.text.join(`
`),x(i))}else return;a.type=="cut"&&(r.state.cutIncoming=+new Date)}}me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",function(a){if(!(ir(e,a)||Ve(r,a))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),me(e.lineSpace,"selectstart",function(a){ir(e,a)||gt(a)}),me(i,"compositionstart",function(){var a=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:a,range:r.markText(a,r.getCursor("to"),{className:"CodeMirror-composing"})}}),me(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},nt.prototype.createField=function(e){this.wrapper=xl(),this.textarea=this.wrapper.firstChild},nt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},nt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ca(e);if(e.options.moveInputWithCursor){var i=Bt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},nt.prototype.showSelection=function(e){var t=this.cm,n=t.display;I(n.cursorDiv,e.cursors),I(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},nt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&x(this.textarea),p&&D>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",p&&D>=9&&(this.hasSelection=null));this.resetting=!1}},nt.prototype.getField=function(){return this.textarea},nt.prototype.supportsTouch=function(){return!1},nt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||C(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},nt.prototype.blur=function(){this.textarea.blur()},nt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},nt.prototype.receivedFocus=function(){this.slowPoll()},nt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},nt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},nt.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||sr(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(p&&D>=9&&this.hasSelection===i||W&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="\u200B"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a<l&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return Mt(t,function(){po(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},nt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nt.prototype.onKeyPress=function(){p&&D>=9&&(this.hasSelection=null),this.fastPoll()},nt.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Tr(n,e),a=r.scroller.scrollTop;if(!o||b)return;var l=n.options.resetSelectionOnContextMenu;l&&n.doc.sel.contains(o)==-1&&ut(n,vt)(n.doc,mr(o),ve);var s=i.style.cssText,f=t.wrapper.style.cssText,E=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-E.top-5)+"px; left: "+(e.clientX-E.left-5)+`px;
z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var F;w&&(F=i.ownerDocument.defaultView.scrollY),r.input.focus(),w&&i.ownerDocument.defaultView.scrollTo(null,F),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=K,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function X(){if(i.selectionStart!=null){var ie=n.somethingSelected(),ce="\u200B"+(ie?i.value:"");i.value="\u21DA",i.value=ce,t.prevInput=ie?"":"\u200B",i.selectionStart=1,i.selectionEnd=ce.length,r.selForContextMenu=n.doc.sel}}function K(){if(t.contextMenuPending==K&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=s,p&&D<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),i.selectionStart!=null)){(!p||p&&D<9)&&X();var ie=0,ce=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?ut(n,Wa)(n):ie++<10?r.detectingSelectAll=setTimeout(ce,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(ce,200)}}if(p&&D>=9&&X(),j){Jt(e);var re=function(){mt(window,"mouseup",re),setTimeout(K,20)};me(window,"mouseup",re)}else setTimeout(K,50)},nt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},nt.prototype.setUneditable=function(){},nt.prototype.needsContentAttribute=!1;function Lf(e,t){if(t=t?ue(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=C(e.ownerDocument);t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(mt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=Ye(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function zf(e){e.off=mt,e.on=me,e.wheelEventPixels=qc,e.Doc=Tt,e.splitLines=on,e.countColumn=he,e.findColumn=ht,e.isWordChar=ne,e.Pass=fe,e.signal=Xe,e.Line=Or,e.changeEnd=gr,e.scrollbarModel=ga,e.Pos=H,e.cmpPos=te,e.modes=Wt,e.mimeModes=ur,e.resolveMode=zt,e.getMode=Vt,e.modeExtensions=cr,e.extendMode=Bn,e.copyState=er,e.startState=an,e.innerMode=fr,e.commands=zn,e.keyMap=ar,e.keyName=rl,e.isModifierKey=el,e.lookupKey=Xr,e.normalizeKeyMap=nf,e.StringStream=et,e.SharedTextMarker=Cn,e.TextMarker=yr,e.LineWidget=Tn,e.e_preventDefault=gt,e.e_stopPropagation=kr,e.e_stop=Jt,e.addClass=V,e.contains=M,e.rmClass=G,e.keyNames=br}xf(Ye),Sf(Ye);var Mf="iter insert remove copy getEditor constructor".split(" ");for(var yi in Tt.prototype)Tt.prototype.hasOwnProperty(yi)&&Se(Mf,yi)<0&&(Ye.prototype[yi]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tt.prototype[yi]));return xt(Tt),Ye.inputStyles={textarea:nt,contenteditable:Ke},Ye.defineMode=function(e){!Ye.defaults.mode&&e!="null"&&(Ye.defaults.mode=e),jn.apply(this,arguments)},Ye.defineMIME=Ir,Ye.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ye.defineMIME("text/plain","null"),Ye.defineExtension=function(e,t){Ye.prototype[e]=t},Ye.defineDocExtension=function(e,t){Tt.prototype[e]=t},Ye.fromTextArea=Lf,zf(Ye),Ye.version="5.65.9",Ye})});var Sl=qe((In,bo)=>{(function(u,P){typeof In=="object"&&typeof bo=="object"?bo.exports=P():typeof define=="function"&&define.amd?define([],P):typeof In=="object"?In.ClipboardJS=P():u.ClipboardJS=P()})(In,function(){return P={686:function(O,w,A){"use strict";A.d(w,{default:function(){return oe}});var w=A(279),p=A.n(w),w=A(370),D=A.n(w),w=A(817),L=A.n(w);function T(Q){try{return document.execCommand(Q)}catch{return}}var m=function(Q){return Q=L()(Q),T("cut"),Q};function b(R,j){var N,G,R=(N=R,G=document.documentElement.getAttribute("dir")==="rtl",(R=document.createElement("textarea")).style.fontSize="12pt",R.style.border="0",R.style.padding="0",R.style.margin="0",R.style.position="absolute",R.style[G?"right":"left"]="-9999px",G=window.pageYOffset||document.documentElement.scrollTop,R.style.top="".concat(G,"px"),R.setAttribute("readonly",""),R.value=N,R);return j.container.appendChild(R),j=L()(R),T("copy"),R.remove(),j}var d=function(Q){var j=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body},N="";return typeof Q=="string"?N=b(Q,j):Q instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Q?.type)?N=b(Q.value,j):(N=L()(Q),T("copy")),N};function g(Q){return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(Q)}var k=function(){var G=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},N=G.action,Q=N===void 0?"copy":N,j=G.container,N=G.target,G=G.text;if(Q!=="copy"&&Q!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(N!==void 0){if(!N||g(N)!=="object"||N.nodeType!==1)throw new Error('Invalid "target" value, use a valid Element');if(Q==="copy"&&N.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Q==="cut"&&(N.hasAttribute("readonly")||N.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}return G?d(G,{container:j}):N?Q==="cut"?m(N):d(N,{container:j}):void 0};function y(Q){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(Q)}function U(Q,j){for(var N=0;N<j.length;N++){var G=j[N];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(Q,G.key,G)}}function _(Q,j){return(_=Object.setPrototypeOf||function(N,G){return N.__proto__=G,N})(Q,j)}function W(Q){var j=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var N,G=Z(Q);return N=j?(N=Z(this).constructor,Reflect.construct(G,arguments,N)):G.apply(this,arguments),G=this,!(N=N)||y(N)!=="object"&&typeof N!="function"?function(R){if(R!==void 0)return R;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(G):N}}function Z(Q){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)})(Q)}function ee(Q,j){if(Q="data-clipboard-".concat(Q),j.hasAttribute(Q))return j.getAttribute(Q)}var oe=function(){(function(I,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(c&&c.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),c&&_(I,c)})(R,p());var Q,j,N,G=W(R);function R(I,c){var B;return function($){if(!($ instanceof R))throw new TypeError("Cannot call a class as a function")}(this),(B=G.call(this)).resolveOptions(c),B.listenClick(I),B}return Q=R,N=[{key:"copy",value:function(I){var c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body};return d(I,c)}},{key:"cut",value:function(I){return m(I)}},{key:"isSupported",value:function(){var I=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],I=typeof I=="string"?[I]:I,c=!!document.queryCommandSupported;return I.forEach(function(B){c=c&&!!document.queryCommandSupported(B)}),c}}],(j=[{key:"resolveOptions",value:function(){var I=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof I.action=="function"?I.action:this.defaultAction,this.target=typeof I.target=="function"?I.target:this.defaultTarget,this.text=typeof I.text=="function"?I.text:this.defaultText,this.container=y(I.container)==="object"?I.container:document.body}},{key:"listenClick",value:function(I){var c=this;this.listener=D()(I,"click",function(B){return c.onClick(B)})}},{key:"onClick",value:function($){var c=$.delegateTarget||$.currentTarget,B=this.action(c)||"copy",$=k({action:B,container:this.container,target:this.target(c),text:this.text(c)});this.emit($?"success":"error",{action:B,text:$,trigger:c,clearSelection:function(){c&&c.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(I){return ee("action",I)}},{key:"defaultTarget",value:function(I){if(I=ee("target",I),I)return document.querySelector(I)}},{key:"defaultText",value:function(I){return ee("text",I)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&U(Q.prototype,j),N&&U(Q,N),R}()},828:function(O){var S;typeof Element>"u"||Element.prototype.matches||((S=Element.prototype).matches=S.matchesSelector||S.mozMatchesSelector||S.msMatchesSelector||S.oMatchesSelector||S.webkitMatchesSelector),O.exports=function(A,p){for(;A&&A.nodeType!==9;){if(typeof A.matches=="function"&&A.matches(p))return A;A=A.parentNode}}},438:function(O,S,A){var p=A(828);function D(w,L,T,m,b){var d=function(g,k,y,U){return function(_){_.delegateTarget=p(_.target,k),_.delegateTarget&&U.call(g,_)}}.apply(this,arguments);return w.addEventListener(T,d,b),{destroy:function(){w.removeEventListener(T,d,b)}}}O.exports=function(w,L,T,m,b){return typeof w.addEventListener=="function"?D.apply(null,arguments):typeof T=="function"?D.bind(null,document).apply(null,arguments):(typeof w=="string"&&(w=document.querySelectorAll(w)),Array.prototype.map.call(w,function(d){return D(d,L,T,m,b)}))}},879:function(O,S){S.node=function(A){return A!==void 0&&A instanceof HTMLElement&&A.nodeType===1},S.nodeList=function(A){var p=Object.prototype.toString.call(A);return A!==void 0&&(p==="[object NodeList]"||p==="[object HTMLCollection]")&&"length"in A&&(A.length===0||S.node(A[0]))},S.string=function(A){return typeof A=="string"||A instanceof String},S.fn=function(A){return Object.prototype.toString.call(A)==="[object Function]"}},370:function(O,S,A){var p=A(879),D=A(438);O.exports=function(w,L,T){if(!w&&!L&&!T)throw new Error("Missing required arguments");if(!p.string(L))throw new TypeError("Second argument must be a String");if(!p.fn(T))throw new TypeError("Third argument must be a Function");if(p.node(w))return k=L,y=T,(g=w).addEventListener(k,y),{destroy:function(){g.removeEventListener(k,y)}};if(p.nodeList(w))return m=w,b=L,d=T,Array.prototype.forEach.call(m,function(U){U.addEventListener(b,d)}),{destroy:function(){Array.prototype.forEach.call(m,function(U){U.removeEventListener(b,d)})}};if(p.string(w))return w=w,L=L,T=T,D(document.body,w,L,T);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var m,b,d,g,k,y}},817:function(O){O.exports=function(S){var A,p=S.nodeName==="SELECT"?(S.focus(),S.value):S.nodeName==="INPUT"||S.nodeName==="TEXTAREA"?((A=S.hasAttribute("readonly"))||S.setAttribute("readonly",""),S.select(),S.setSelectionRange(0,S.value.length),A||S.removeAttribute("readonly"),S.value):(S.hasAttribute("contenteditable")&&S.focus(),p=window.getSelection(),(A=document.createRange()).selectNodeContents(S),p.removeAllRanges(),p.addRange(A),p.toString());return p}},279:function(O){function S(){}S.prototype={on:function(A,p,D){var w=this.e||(this.e={});return(w[A]||(w[A]=[])).push({fn:p,ctx:D}),this},once:function(A,p,D){var w=this;function L(){w.off(A,L),p.apply(D,arguments)}return L._=p,this.on(A,L,D)},emit:function(A){for(var p=[].slice.call(arguments,1),D=((this.e||(this.e={}))[A]||[]).slice(),w=0,L=D.length;w<L;w++)D[w].fn.apply(D[w].ctx,p);return this},off:function(A,p){var D=this.e||(this.e={}),w=D[A],L=[];if(w&&p)for(var T=0,m=w.length;T<m;T++)w[T].fn!==p&&w[T].fn._!==p&&L.push(w[T]);return L.length?D[A]=L:delete D[A],this}},O.exports=S,O.exports.TinyEmitter=S}},z={},u.n=function(O){var S=O&&O.__esModule?function(){return O.default}:function(){return O};return u.d(S,{a:S}),S},u.d=function(O,S){for(var A in S)u.o(S,A)&&!u.o(O,A)&&Object.defineProperty(O,A,{enumerable:!0,get:S[A]})},u.o=function(O,S){return Object.prototype.hasOwnProperty.call(O,S)},u(686).default;function u(O){if(z[O])return z[O].exports;var S=z[O]={exports:{}};return P[O](S,S.exports,u),S.exports}var P,z})});var xo=qe((Tl,Cl)=>{(function(u){typeof Tl=="object"&&typeof Cl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("css",function(j,N){var G=N.inline;N.propertyKeywords||(N=u.resolveMode("text/css"));var R=j.indentUnit,I=N.tokenHooks,c=N.documentTypes||{},B=N.mediaTypes||{},$=N.mediaFeatures||{},M=N.mediaValueKeywords||{},C=N.propertyKeywords||{},V=N.nonStandardPropertyKeywords||{},Y=N.fontProperties||{},x=N.counterDescriptors||{},h=N.colorKeywords||{},se=N.valueKeywords||{},_e=N.allowNested,ue=N.lineComment,he=N.supportsAtComponent===!0,Te=j.highlightNonStandardPropertyKeywords!==!1,Se,ae;function fe(J,le){return Se=le,J}function ve(J,le){var ne=J.next();if(I[ne]){var Fe=I[ne](J,le);if(Fe!==!1)return Fe}if(ne=="@")return J.eatWhile(/[\w\\\-]/),fe("def",J.current());if(ne=="="||(ne=="~"||ne=="|")&&J.eat("="))return fe(null,"compare");if(ne=='"'||ne=="'")return le.tokenize=De(ne),le.tokenize(J,le);if(ne=="#")return J.eatWhile(/[\w\\\-]/),fe("atom","hash");if(ne=="!")return J.match(/^\s*\w*/),fe("keyword","important");if(/\d/.test(ne)||ne=="."&&J.eat(/\d/))return J.eatWhile(/[\w.%]/),fe("number","unit");if(ne==="-"){if(/[\d.]/.test(J.peek()))return J.eatWhile(/[\w.%]/),fe("number","unit");if(J.match(/^-[\w\\\-]*/))return J.eatWhile(/[\w\\\-]/),J.match(/^\s*:/,!1)?fe("variable-2","variable-definition"):fe("variable-2","variable");if(J.match(/^\w+-/))return fe("meta","meta")}else return/[,+>*\/]/.test(ne)?fe(null,"select-op"):ne=="."&&J.match(/^-?[_a-z][_a-z0-9-]*/i)?fe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ne)?fe(null,ne):J.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(J.current())&&(le.tokenize=Qe),fe("variable callee","variable")):/[\w\\\-]/.test(ne)?(J.eatWhile(/[\w\\\-]/),fe("property","word")):fe(null,null)}function De(J){return function(le,ne){for(var Fe=!1,be;(be=le.next())!=null;){if(be==J&&!Fe){J==")"&&le.backUp(1);break}Fe=!Fe&&be=="\\"}return(be==J||!Fe&&J!=")")&&(ne.tokenize=null),fe("string","string")}}function Qe(J,le){return J.next(),J.match(/^\s*[\"\')]/,!1)?le.tokenize=null:le.tokenize=De(")"),fe(null,"(")}function ht(J,le,ne){this.type=J,this.indent=le,this.prev=ne}function Ne(J,le,ne,Fe){return J.context=new ht(ne,le.indentation()+(Fe===!1?0:R),J.context),ne}function $e(J){return J.context.prev&&(J.context=J.context.prev),J.context.type}function Ee(J,le,ne){return Re[ne.context.type](J,le,ne)}function rt(J,le,ne,Fe){for(var be=Fe||1;be>0;be--)ne.context=ne.context.prev;return Ee(J,le,ne)}function Ge(J){var le=J.current().toLowerCase();se.hasOwnProperty(le)?ae="atom":h.hasOwnProperty(le)?ae="keyword":ae="variable"}var Re={};return Re.top=function(J,le,ne){if(J=="{")return Ne(ne,le,"block");if(J=="}"&&ne.context.prev)return $e(ne);if(he&&/@component/i.test(J))return Ne(ne,le,"atComponentBlock");if(/^@(-moz-)?document$/i.test(J))return Ne(ne,le,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(J))return Ne(ne,le,"atBlock");if(/^@(font-face|counter-style)/i.test(J))return ne.stateArg=J,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(J))return"keyframes";if(J&&J.charAt(0)=="@")return Ne(ne,le,"at");if(J=="hash")ae="builtin";else if(J=="word")ae="tag";else{if(J=="variable-definition")return"maybeprop";if(J=="interpolation")return Ne(ne,le,"interpolation");if(J==":")return"pseudo";if(_e&&J=="(")return Ne(ne,le,"parens")}return ne.context.type},Re.block=function(J,le,ne){if(J=="word"){var Fe=le.current().toLowerCase();return C.hasOwnProperty(Fe)?(ae="property","maybeprop"):V.hasOwnProperty(Fe)?(ae=Te?"string-2":"property","maybeprop"):_e?(ae=le.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ae+=" error","maybeprop")}else return J=="meta"?"block":!_e&&(J=="hash"||J=="qualifier")?(ae="error","block"):Re.top(J,le,ne)},Re.maybeprop=function(J,le,ne){return J==":"?Ne(ne,le,"prop"):Ee(J,le,ne)},Re.prop=function(J,le,ne){if(J==";")return $e(ne);if(J=="{"&&_e)return Ne(ne,le,"propBlock");if(J=="}"||J=="{")return rt(J,le,ne);if(J=="(")return Ne(ne,le,"parens");if(J=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(le.current()))ae+=" error";else if(J=="word")Ge(le);else if(J=="interpolation")return Ne(ne,le,"interpolation");return"prop"},Re.propBlock=function(J,le,ne){return J=="}"?$e(ne):J=="word"?(ae="property","maybeprop"):ne.context.type},Re.parens=function(J,le,ne){return J=="{"||J=="}"?rt(J,le,ne):J==")"?$e(ne):J=="("?Ne(ne,le,"parens"):J=="interpolation"?Ne(ne,le,"interpolation"):(J=="word"&&Ge(le),"parens")},Re.pseudo=function(J,le,ne){return J=="meta"?"pseudo":J=="word"?(ae="variable-3",ne.context.type):Ee(J,le,ne)},Re.documentTypes=function(J,le,ne){return J=="word"&&c.hasOwnProperty(le.current())?(ae="tag",ne.context.type):Re.atBlock(J,le,ne)},Re.atBlock=function(J,le,ne){if(J=="(")return Ne(ne,le,"atBlock_parens");if(J=="}"||J==";")return rt(J,le,ne);if(J=="{")return $e(ne)&&Ne(ne,le,_e?"block":"top");if(J=="interpolation")return Ne(ne,le,"interpolation");if(J=="word"){var Fe=le.current().toLowerCase();Fe=="only"||Fe=="not"||Fe=="and"||Fe=="or"?ae="keyword":B.hasOwnProperty(Fe)?ae="attribute":$.hasOwnProperty(Fe)?ae="property":M.hasOwnProperty(Fe)?ae="keyword":C.hasOwnProperty(Fe)?ae="property":V.hasOwnProperty(Fe)?ae=Te?"string-2":"property":se.hasOwnProperty(Fe)?ae="atom":h.hasOwnProperty(Fe)?ae="keyword":ae="error"}return ne.context.type},Re.atComponentBlock=function(J,le,ne){return J=="}"?rt(J,le,ne):J=="{"?$e(ne)&&Ne(ne,le,_e?"block":"top",!1):(J=="word"&&(ae="error"),ne.context.type)},Re.atBlock_parens=function(J,le,ne){return J==")"?$e(ne):J=="{"||J=="}"?rt(J,le,ne,2):Re.atBlock(J,le,ne)},Re.restricted_atBlock_before=function(J,le,ne){return J=="{"?Ne(ne,le,"restricted_atBlock"):J=="word"&&ne.stateArg=="@counter-style"?(ae="variable","restricted_atBlock_before"):Ee(J,le,ne)},Re.restricted_atBlock=function(J,le,ne){return J=="}"?(ne.stateArg=null,$e(ne)):J=="word"?(ne.stateArg=="@font-face"&&!Y.hasOwnProperty(le.current().toLowerCase())||ne.stateArg=="@counter-style"&&!x.hasOwnProperty(le.current().toLowerCase())?ae="error":ae="property","maybeprop"):"restricted_atBlock"},Re.keyframes=function(J,le,ne){return J=="word"?(ae="variable","keyframes"):J=="{"?Ne(ne,le,"top"):Ee(J,le,ne)},Re.at=function(J,le,ne){return J==";"?$e(ne):J=="{"||J=="}"?rt(J,le,ne):(J=="word"?ae="tag":J=="hash"&&(ae="builtin"),"at")},Re.interpolation=function(J,le,ne){return J=="}"?$e(ne):J=="{"||J==";"?rt(J,le,ne):(J=="word"?ae="variable":J!="variable"&&J!="("&&J!=")"&&(ae="error"),"interpolation")},{startState:function(J){return{tokenize:null,state:G?"block":"top",stateArg:null,context:new ht(G?"block":"top",J||0,null)}},token:function(J,le){if(!le.tokenize&&J.eatSpace())return null;var ne=(le.tokenize||ve)(J,le);return ne&&typeof ne=="object"&&(Se=ne[1],ne=ne[0]),ae=ne,Se!="comment"&&(le.state=Re[le.state](Se,J,le)),ae},indent:function(J,le){var ne=J.context,Fe=le&&le.charAt(0),be=ne.indent;return ne.type=="prop"&&(Fe=="}"||Fe==")")&&(ne=ne.prev),ne.prev&&(Fe=="}"&&(ne.type=="block"||ne.type=="top"||ne.type=="interpolation"||ne.type=="restricted_atBlock")?(ne=ne.prev,be=ne.indent):(Fe==")"&&(ne.type=="parens"||ne.type=="atBlock_parens")||Fe=="{"&&(ne.type=="at"||ne.type=="atBlock"))&&(be=Math.max(0,ne.indent-R))),be},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ue,fold:"brace"}});function P(j){for(var N={},G=0;G<j.length;++G)N[j[G].toLowerCase()]=!0;return N}var z=["domain","regexp","url","url-prefix"],O=P(z),S=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],A=P(S),p=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],D=P(p),w=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],L=P(w),T=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","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","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],m=P(T),b=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],d=P(b),g=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],k=P(g),y=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],U=P(y),_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],W=P(_),Z=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],ee=P(Z),oe=z.concat(S).concat(p).concat(w).concat(T).concat(b).concat(_).concat(Z);u.registerHelper("hintWords","css",oe);function Q(j,N){for(var G=!1,R;(R=j.next())!=null;){if(G&&R=="/"){N.tokenize=null;break}G=R=="*"}return["comment","comment"]}u.defineMIME("text/css",{documentTypes:O,mediaTypes:A,mediaFeatures:D,mediaValueKeywords:L,propertyKeywords:m,nonStandardPropertyKeywords:d,fontProperties:k,counterDescriptors:U,colorKeywords:W,valueKeywords:ee,tokenHooks:{"/":function(j,N){return j.eat("*")?(N.tokenize=Q,Q(j,N)):!1}},name:"css"}),u.defineMIME("text/x-scss",{mediaTypes:A,mediaFeatures:D,mediaValueKeywords:L,propertyKeywords:m,nonStandardPropertyKeywords:d,colorKeywords:W,valueKeywords:ee,fontProperties:k,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(j,N){return j.eat("/")?(j.skipToEnd(),["comment","comment"]):j.eat("*")?(N.tokenize=Q,Q(j,N)):["operator","operator"]},":":function(j){return j.match(/^\s*\{/,!1)?[null,null]:!1},$:function(j){return j.match(/^[\w-]+/),j.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(j){return j.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),u.defineMIME("text/x-less",{mediaTypes:A,mediaFeatures:D,mediaValueKeywords:L,propertyKeywords:m,nonStandardPropertyKeywords:d,colorKeywords:W,valueKeywords:ee,fontProperties:k,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(j,N){return j.eat("/")?(j.skipToEnd(),["comment","comment"]):j.eat("*")?(N.tokenize=Q,Q(j,N)):["operator","operator"]},"@":function(j){return j.eat("{")?[null,"interpolation"]:j.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(j.eatWhile(/[\w\\\-]/),j.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),u.defineMIME("text/x-gss",{documentTypes:O,mediaTypes:A,mediaFeatures:D,propertyKeywords:m,nonStandardPropertyKeywords:d,fontProperties:k,counterDescriptors:U,colorKeywords:W,valueKeywords:ee,supportsAtComponent:!0,tokenHooks:{"/":function(j,N){return j.eat("*")?(N.tokenize=Q,Q(j,N)):!1}},name:"css",helperType:"gss"})})});var bi=qe((El,Ll)=>{(function(u){typeof El=="object"&&typeof Ll=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";function P(M,C,V,Y,x,h){this.indented=M,this.column=C,this.type=V,this.info=Y,this.align=x,this.prev=h}function z(M,C,V,Y){var x=M.indented;return M.context&&M.context.type=="statement"&&V!="statement"&&(x=M.context.indented),M.context=new P(x,C,V,Y,null,M.context)}function O(M){var C=M.context.type;return(C==")"||C=="]"||C=="}")&&(M.indented=M.context.indented),M.context=M.context.prev}function S(M,C,V){if(C.prevToken=="variable"||C.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(M.string.slice(0,V))||C.typeAtEndOfLine&&M.column()==M.indentation())return!0}function A(M){for(;;){if(!M||M.type=="top")return!0;if(M.type=="}"&&M.prev.info!="namespace")return!1;M=M.prev}}u.defineMode("clike",function(M,C){var V=M.indentUnit,Y=C.statementIndentUnit||V,x=C.dontAlignCalls,h=C.keywords||{},se=C.types||{},_e=C.builtin||{},ue=C.blockKeywords||{},he=C.defKeywords||{},Te=C.atoms||{},Se=C.hooks||{},ae=C.multiLineStrings,fe=C.indentStatements!==!1,ve=C.indentSwitch!==!1,De=C.namespaceSeparator,Qe=C.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,ht=C.numberStart||/[\d\.]/,Ne=C.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,$e=C.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ee=C.isIdentifierChar||/[\w\$_\xa1-\uffff]/,rt=C.isReservedIdentifier||!1,Ge,Re;function J(be,Le){var ke=be.next();if(Se[ke]){var Pe=Se[ke](be,Le);if(Pe!==!1)return Pe}if(ke=='"'||ke=="'")return Le.tokenize=le(ke),Le.tokenize(be,Le);if(ht.test(ke)){if(be.backUp(1),be.match(Ne))return"number";be.next()}if(Qe.test(ke))return Ge=ke,null;if(ke=="/"){if(be.eat("*"))return Le.tokenize=ne,ne(be,Le);if(be.eat("/"))return be.skipToEnd(),"comment"}if($e.test(ke)){for(;!be.match(/^\/[\/*]/,!1)&&be.eat($e););return"operator"}if(be.eatWhile(Ee),De)for(;be.match(De);)be.eatWhile(Ee);var Ae=be.current();return D(h,Ae)?(D(ue,Ae)&&(Ge="newstatement"),D(he,Ae)&&(Re=!0),"keyword"):D(se,Ae)?"type":D(_e,Ae)||rt&&rt(Ae)?(D(ue,Ae)&&(Ge="newstatement"),"builtin"):D(Te,Ae)?"atom":"variable"}function le(be){return function(Le,ke){for(var Pe=!1,Ae,Dt=!1;(Ae=Le.next())!=null;){if(Ae==be&&!Pe){Dt=!0;break}Pe=!Pe&&Ae=="\\"}return(Dt||!(Pe||ae))&&(ke.tokenize=null),"string"}}function ne(be,Le){for(var ke=!1,Pe;Pe=be.next();){if(Pe=="/"&&ke){Le.tokenize=null;break}ke=Pe=="*"}return"comment"}function Fe(be,Le){C.typeFirstDefinitions&&be.eol()&&A(Le.context)&&(Le.typeAtEndOfLine=S(be,Le,be.pos))}return{startState:function(be){return{tokenize:null,context:new P((be||0)-V,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(be,Le){var ke=Le.context;if(be.sol()&&(ke.align==null&&(ke.align=!1),Le.indented=be.indentation(),Le.startOfLine=!0),be.eatSpace())return Fe(be,Le),null;Ge=Re=null;var Pe=(Le.tokenize||J)(be,Le);if(Pe=="comment"||Pe=="meta")return Pe;if(ke.align==null&&(ke.align=!0),Ge==";"||Ge==":"||Ge==","&&be.match(/^\s*(?:\/\/.*)?$/,!1))for(;Le.context.type=="statement";)O(Le);else if(Ge=="{")z(Le,be.column(),"}");else if(Ge=="[")z(Le,be.column(),"]");else if(Ge=="(")z(Le,be.column(),")");else if(Ge=="}"){for(;ke.type=="statement";)ke=O(Le);for(ke.type=="}"&&(ke=O(Le));ke.type=="statement";)ke=O(Le)}else Ge==ke.type?O(Le):fe&&((ke.type=="}"||ke.type=="top")&&Ge!=";"||ke.type=="statement"&&Ge=="newstatement")&&z(Le,be.column(),"statement",be.current());if(Pe=="variable"&&(Le.prevToken=="def"||C.typeFirstDefinitions&&S(be,Le,be.start)&&A(Le.context)&&be.match(/^\s*\(/,!1))&&(Pe="def"),Se.token){var Ae=Se.token(be,Le,Pe);Ae!==void 0&&(Pe=Ae)}return Pe=="def"&&C.styleDefs===!1&&(Pe="variable"),Le.startOfLine=!1,Le.prevToken=Re?"def":Pe||Ge,Fe(be,Le),Pe},indent:function(be,Le){if(be.tokenize!=J&&be.tokenize!=null||be.typeAtEndOfLine)return u.Pass;var ke=be.context,Pe=Le&&Le.charAt(0),Ae=Pe==ke.type;if(ke.type=="statement"&&Pe=="}"&&(ke=ke.prev),C.dontIndentStatements)for(;ke.type=="statement"&&C.dontIndentStatements.test(ke.info);)ke=ke.prev;if(Se.indent){var Dt=Se.indent(be,ke,Le,V);if(typeof Dt=="number")return Dt}var qt=ke.prev&&ke.prev.info=="switch";if(C.allmanIndentation&&/[{(]/.test(Pe)){for(;ke.type!="top"&&ke.type!="}";)ke=ke.prev;return ke.indented}return ke.type=="statement"?ke.indented+(Pe=="{"?0:Y):ke.align&&(!x||ke.type!=")")?ke.column+(Ae?0:1):ke.type==")"&&!Ae?ke.indented+Y:ke.indented+(Ae?0:V)+(!Ae&&qt&&!/^(?:case|default)\b/.test(Le)?V:0)},electricInput:ve?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function p(M){for(var C={},V=M.split(" "),Y=0;Y<V.length;++Y)C[V[Y]]=!0;return C}function D(M,C){return typeof M=="function"?M(C):M.propertyIsEnumerable(C)}var w="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",L="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",T="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",m="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",b=p("int long char short double float unsigned signed void bool"),d=p("SEL instancetype id Class Protocol BOOL");function g(M){return D(b,M)||/.+_t$/.test(M)}function k(M){return g(M)||D(d,M)}var y="case do else for if switch while struct enum union",U="struct enum union";function _(M,C){if(!C.startOfLine)return!1;for(var V,Y=null;V=M.peek();){if(V=="\\"&&M.match(/^.$/)){Y=_;break}else if(V=="/"&&M.match(/^\/[\/\*]/,!1))break;M.next()}return C.tokenize=Y,"meta"}function W(M,C){return C.prevToken=="type"?"type":!1}function Z(M){return!M||M.length<2||M[0]!="_"?!1:M[1]=="_"||M[1]!==M[1].toLowerCase()}function ee(M){return M.eatWhile(/[\w\.']/),"number"}function oe(M,C){if(M.backUp(1),M.match(/^(?:R|u8R|uR|UR|LR)/)){var V=M.match(/^"([^\s\\()]{0,16})\(/);return V?(C.cpp11RawStringDelim=V[1],C.tokenize=N,N(M,C)):!1}return M.match(/^(?:u8|u|U|L)/)?M.match(/^["']/,!1)?"string":!1:(M.next(),!1)}function Q(M){var C=/(\w+)::~?(\w+)$/.exec(M);return C&&C[1]==C[2]}function j(M,C){for(var V;(V=M.next())!=null;)if(V=='"'&&!M.eat('"')){C.tokenize=null;break}return"string"}function N(M,C){var V=C.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),Y=M.match(new RegExp(".*?\\)"+V+'"'));return Y?C.tokenize=null:M.skipToEnd(),"string"}function G(M,C){typeof M=="string"&&(M=[M]);var V=[];function Y(h){if(h)for(var se in h)h.hasOwnProperty(se)&&V.push(se)}Y(C.keywords),Y(C.types),Y(C.builtin),Y(C.atoms),V.length&&(C.helperType=M[0],u.registerHelper("hintWords",M[0],V));for(var x=0;x<M.length;++x)u.defineMIME(M[x],C)}G(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:p(w),types:g,blockKeywords:p(y),defKeywords:p(U),typeFirstDefinitions:!0,atoms:p("NULL true false"),isReservedIdentifier:Z,hooks:{"#":_,"*":W},modeProps:{fold:["brace","include"]}}),G(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:p(w+" "+L),types:g,blockKeywords:p(y+" class try catch"),defKeywords:p(U+" class namespace"),typeFirstDefinitions:!0,atoms:p("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:Z,hooks:{"#":_,"*":W,u:oe,U:oe,L:oe,R:oe,0:ee,1:ee,2:ee,3:ee,4:ee,5:ee,6:ee,7:ee,8:ee,9:ee,token:function(M,C,V){if(V=="variable"&&M.peek()=="("&&(C.prevToken==";"||C.prevToken==null||C.prevToken=="}")&&Q(M.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),G("text/x-java",{name:"clike",keywords:p("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:p("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:p("catch class do else finally for if switch try while"),defKeywords:p("class interface enum @interface"),typeFirstDefinitions:!0,atoms:p("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(M){return M.match("interface",!1)?!1:(M.eatWhile(/[\w\$_]/),"meta")},'"':function(M,C){return M.match(/""$/)?(C.tokenize=R,C.tokenize(M,C)):!1}},modeProps:{fold:["brace","import"]}}),G("text/x-csharp",{name:"clike",keywords:p("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:p("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:p("catch class do else finally for foreach if struct switch try while"),defKeywords:p("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:p("true false null"),hooks:{"@":function(M,C){return M.eat('"')?(C.tokenize=j,j(M,C)):(M.eatWhile(/[\w\$_]/),"meta")}}});function R(M,C){for(var V=!1;!M.eol();){if(!V&&M.match('"""')){C.tokenize=null;break}V=M.next()=="\\"&&!V}return"string"}function I(M){return function(C,V){for(var Y;Y=C.next();)if(Y=="*"&&C.eat("/"))if(M==1){V.tokenize=null;break}else return V.tokenize=I(M-1),V.tokenize(C,V);else if(Y=="/"&&C.eat("*"))return V.tokenize=I(M+1),V.tokenize(C,V);return"comment"}}G("text/x-scala",{name:"clike",keywords:p("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:p("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:p("catch class enum do else finally for forSome if match switch try while"),defKeywords:p("class enum def object package trait type val var"),atoms:p("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(M){return M.eatWhile(/[\w\$_]/),"meta"},'"':function(M,C){return M.match('""')?(C.tokenize=R,C.tokenize(M,C)):!1},"'":function(M){return M.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(M,C){var V=C.context;return V.type=="}"&&V.align&&M.eat(">")?(C.context=new P(V.indented,V.column,V.type,V.info,null,V.prev),"operator"):!1},"/":function(M,C){return M.eat("*")?(C.tokenize=I(1),C.tokenize(M,C)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(M){return function(C,V){for(var Y=!1,x,h=!1;!C.eol();){if(!M&&!Y&&C.match('"')){h=!0;break}if(M&&C.match('"""')){h=!0;break}x=C.next(),!Y&&x=="$"&&C.match("{")&&C.skipTo("}"),Y=!Y&&x=="\\"&&!M}return(h||!M)&&(V.tokenize=null),"string"}}G("text/x-kotlin",{name:"clike",keywords:p("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:p("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:p("catch class do else finally for if where try while enum"),defKeywords:p("class val var object interface fun"),atoms:p("true false null this"),hooks:{"@":function(M){return M.eatWhile(/[\w\$_]/),"meta"},"*":function(M,C){return C.prevToken=="."?"variable":"operator"},'"':function(M,C){return C.tokenize=c(M.match('""')),C.tokenize(M,C)},"/":function(M,C){return M.eat("*")?(C.tokenize=I(1),C.tokenize(M,C)):!1},indent:function(M,C,V,Y){var x=V&&V.charAt(0);if((M.prevToken=="}"||M.prevToken==")")&&V=="")return M.indented;if(M.prevToken=="operator"&&V!="}"&&M.context.type!="}"||M.prevToken=="variable"&&x=="."||(M.prevToken=="}"||M.prevToken==")")&&x==".")return Y*2+C.indented;if(C.align&&C.type=="}")return C.indented+(M.context.type==(V||"").charAt(0)?0:Y)}},modeProps:{closeBrackets:{triples:'"'}}}),G(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:p("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:p("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:p("for while do if else struct"),builtin:p("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:p("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":_},modeProps:{fold:["brace","include"]}}),G("text/x-nesc",{name:"clike",keywords:p(w+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:g,blockKeywords:p(y),atoms:p("null true false"),hooks:{"#":_},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec",{name:"clike",keywords:p(w+" "+T),types:k,builtin:p(m),blockKeywords:p(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:p(U+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:p("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Z,hooks:{"#":_,"*":W},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec++",{name:"clike",keywords:p(w+" "+T+" "+L),types:k,builtin:p(m),blockKeywords:p(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:p(U+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:p("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Z,hooks:{"#":_,"*":W,u:oe,U:oe,L:oe,R:oe,0:ee,1:ee,2:ee,3:ee,4:ee,5:ee,6:ee,7:ee,8:ee,9:ee,token:function(M,C,V){if(V=="variable"&&M.peek()=="("&&(C.prevToken==";"||C.prevToken==null||C.prevToken=="}")&&Q(M.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),G("text/x-squirrel",{name:"clike",keywords:p("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:g,blockKeywords:p("case catch class else for foreach if switch try while"),defKeywords:p("function local class"),typeFirstDefinitions:!0,atoms:p("true false null"),hooks:{"#":_},modeProps:{fold:["brace","include"]}});var B=null;function $(M){return function(C,V){for(var Y=!1,x,h=!1;!C.eol();){if(!Y&&C.match('"')&&(M=="single"||C.match('""'))){h=!0;break}if(!Y&&C.match("``")){B=$(M),h=!0;break}x=C.next(),Y=M=="single"&&!Y&&x=="\\"}return h&&(V.tokenize=null),"string"}}G("text/x-ceylon",{name:"clike",keywords:p("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(M){var C=M.charAt(0);return C===C.toUpperCase()&&C!==C.toLowerCase()},blockKeywords:p("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:p("class dynamic function interface module object package value"),builtin:p("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:p("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(M){return M.eatWhile(/[\w\$_]/),"meta"},'"':function(M,C){return C.tokenize=$(M.match('""')?"triple":"single"),C.tokenize(M,C)},"`":function(M,C){return!B||!M.match("`")?!1:(C.tokenize=B,B=null,C.tokenize(M,C))},"'":function(M){return M.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(M,C,V){if((V=="variable"||V=="type")&&C.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var Al=qe((zl,Ml)=>{(function(u){typeof zl=="object"&&typeof Ml=="object"?u(Oe(),bi()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../clike/clike"],u):u(CodeMirror)})(function(u){"use strict";var P="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required".split(" "),z="try catch finally do else for if switch while".split(" "),O="true false null".split(" "),S="void bool num int double dynamic var String Null Never".split(" ");function A(d){for(var g={},k=0;k<d.length;++k)g[d[k]]=!0;return g}function p(d){(d.interpolationStack||(d.interpolationStack=[])).push(d.tokenize)}function D(d){return(d.interpolationStack||(d.interpolationStack=[])).pop()}function w(d){return d.interpolationStack?d.interpolationStack.length:0}u.defineMIME("application/dart",{name:"clike",keywords:A(P),blockKeywords:A(z),builtin:A(S),atoms:A(O),hooks:{"@":function(d){return d.eatWhile(/[\w\$_\.]/),"meta"},"'":function(d,g){return L("'",d,g,!1)},'"':function(d,g){return L('"',d,g,!1)},r:function(d,g){var k=d.peek();return k=="'"||k=='"'?L(d.next(),d,g,!0):!1},"}":function(d,g){return w(g)>0?(g.tokenize=D(g),null):!1},"/":function(d,g){return d.eat("*")?(g.tokenize=b(1),g.tokenize(d,g)):!1},token:function(d,g,k){if(k=="variable"){var y=RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g");if(y.test(d.current()))return"variable-2"}}}});function L(d,g,k,y){var U=!1;if(g.eat(d))if(g.eat(d))U=!0;else return"string";function _(W,Z){for(var ee=!1;!W.eol();){if(!y&&!ee&&W.peek()=="$")return p(Z),Z.tokenize=T,"string";var oe=W.next();if(oe==d&&!ee&&(!U||W.match(d+d))){Z.tokenize=null;break}ee=!y&&!ee&&oe=="\\"}return"string"}return k.tokenize=_,_(g,k)}function T(d,g){return d.eat("$"),d.eat("{")?g.tokenize=null:g.tokenize=m,null}function m(d,g){return d.eatWhile(/[\w_]/),g.tokenize=D(g),"variable"}function b(d){return function(g,k){for(var y;y=g.next();)if(y=="*"&&g.eat("/"))if(d==1){k.tokenize=null;break}else return k.tokenize=b(d-1),k.tokenize(g,k);else if(y=="/"&&g.eat("*"))return k.tokenize=b(d+1),k.tokenize(g,k);return"comment"}}u.registerHelper("hintWords","application/dart",P.concat(O).concat(S)),u.defineMode("dart",function(d){return u.getMode(d,"application/dart")},"clike")})});var Il=qe((Dl,Fl)=>{(function(u){typeof Dl=="object"&&typeof Fl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("diff",function(){var P={"+":"positive","-":"negative","@":"meta"};return{token:function(z){var O=z.string.search(/[\t ]+?$/);if(!z.sol()||O===0)return z.skipToEnd(),("error "+(P[z.string.charAt(0)]||"")).replace(/ $/,"");var S=P[z.peek()]||z.skipToEnd();return O===-1?z.skipToEnd():z.pos=O,S}}}),u.defineMIME("text/x-diff","diff")})});var Nl=qe((ql,Ol)=>{(function(u){typeof ql=="object"&&typeof Ol=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("fortran",function(){function P(L){for(var T={},m=0;m<L.length;++m)T[L[m]]=!0;return T}var z=P(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),O=P(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),S=P(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),A=/[+\-*&=<>\/\:]/,p=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function D(L,T){if(L.match(p))return"operator";var m=L.next();if(m=="!")return L.skipToEnd(),"comment";if(m=='"'||m=="'")return T.tokenize=w(m),T.tokenize(L,T);if(/[\[\]\(\),]/.test(m))return null;if(/\d/.test(m))return L.eatWhile(/[\w\.]/),"number";if(A.test(m))return L.eatWhile(A),"operator";L.eatWhile(/[\w\$_]/);var b=L.current().toLowerCase();return z.hasOwnProperty(b)?"keyword":O.hasOwnProperty(b)||S.hasOwnProperty(b)?"builtin":"variable"}function w(L){return function(T,m){for(var b=!1,d,g=!1;(d=T.next())!=null;){if(d==L&&!b){g=!0;break}b=!b&&d=="\\"}return(g||!b)&&(m.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(L,T){if(L.eatSpace())return null;var m=(T.tokenize||D)(L,T);return m=="comment"||m=="meta",m}}}),u.defineMIME("text/x-fortran","fortran")})});var Wl=qe((Pl,Rl)=>{(function(u){typeof Pl=="object"&&typeof Rl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("go",function(P){var z=P.indentUnit,O={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},S={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},A=/[+\-*&^%:=<>!|\/]/,p;function D(d,g){var k=d.next();if(k=='"'||k=="'"||k=="`")return g.tokenize=w(k),g.tokenize(d,g);if(/[\d\.]/.test(k))return k=="."?d.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):k=="0"?d.match(/^[xX][0-9a-fA-F]+/)||d.match(/^0[0-7]+/):d.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(k))return p=k,null;if(k=="/"){if(d.eat("*"))return g.tokenize=L,L(d,g);if(d.eat("/"))return d.skipToEnd(),"comment"}if(A.test(k))return d.eatWhile(A),"operator";d.eatWhile(/[\w\$_\xa1-\uffff]/);var y=d.current();return O.propertyIsEnumerable(y)?((y=="case"||y=="default")&&(p="case"),"keyword"):S.propertyIsEnumerable(y)?"atom":"variable"}function w(d){return function(g,k){for(var y=!1,U,_=!1;(U=g.next())!=null;){if(U==d&&!y){_=!0;break}y=!y&&d!="`"&&U=="\\"}return(_||!(y||d=="`"))&&(k.tokenize=D),"string"}}function L(d,g){for(var k=!1,y;y=d.next();){if(y=="/"&&k){g.tokenize=D;break}k=y=="*"}return"comment"}function T(d,g,k,y,U){this.indented=d,this.column=g,this.type=k,this.align=y,this.prev=U}function m(d,g,k){return d.context=new T(d.indented,g,k,null,d.context)}function b(d){if(d.context.prev){var g=d.context.type;return(g==")"||g=="]"||g=="}")&&(d.indented=d.context.indented),d.context=d.context.prev}}return{startState:function(d){return{tokenize:null,context:new T((d||0)-z,0,"top",!1),indented:0,startOfLine:!0}},token:function(d,g){var k=g.context;if(d.sol()&&(k.align==null&&(k.align=!1),g.indented=d.indentation(),g.startOfLine=!0,k.type=="case"&&(k.type="}")),d.eatSpace())return null;p=null;var y=(g.tokenize||D)(d,g);return y=="comment"||(k.align==null&&(k.align=!0),p=="{"?m(g,d.column(),"}"):p=="["?m(g,d.column(),"]"):p=="("?m(g,d.column(),")"):p=="case"?k.type="case":(p=="}"&&k.type=="}"||p==k.type)&&b(g),g.startOfLine=!1),y},indent:function(d,g){if(d.tokenize!=D&&d.tokenize!=null)return u.Pass;var k=d.context,y=g&&g.charAt(0);if(k.type=="case"&&/^(?:case|default)\b/.test(g))return d.context.type="}",k.indented;var U=y==k.type;return k.align?k.column+(U?0:1):k.indented+(U?0:z)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),u.defineMIME("text/x-go","go")})});var Hl=qe((jl,Bl)=>{(function(u){typeof jl=="object"&&typeof Bl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("haskell",function(P,z){function O(_,W,Z){return W(Z),Z(_,W)}var S=/[a-z_]/,A=/[A-Z]/,p=/\d/,D=/[0-9A-Fa-f]/,w=/[0-7]/,L=/[a-z_A-Z0-9'\xa1-\uffff]/,T=/[-!#$%&*+.\/<=>?@\\^|~:]/,m=/[(),;[\]`{}]/,b=/[ \t\v\f]/;function d(_,W){if(_.eatWhile(b))return null;var Z=_.next();if(m.test(Z)){if(Z=="{"&&_.eat("-")){var ee="comment";return _.eat("#")&&(ee="meta"),O(_,W,g(ee,1))}return null}if(Z=="'")return _.eat("\\"),_.next(),_.eat("'")?"string":"string error";if(Z=='"')return O(_,W,k);if(A.test(Z))return _.eatWhile(L),_.eat(".")?"qualifier":"variable-2";if(S.test(Z))return _.eatWhile(L),"variable";if(p.test(Z)){if(Z=="0"){if(_.eat(/[xX]/))return _.eatWhile(D),"integer";if(_.eat(/[oO]/))return _.eatWhile(w),"number"}_.eatWhile(p);var ee="number";return _.match(/^\.\d+/)&&(ee="number"),_.eat(/[eE]/)&&(ee="number",_.eat(/[-+]/),_.eatWhile(p)),ee}if(Z=="."&&_.eat("."))return"keyword";if(T.test(Z)){if(Z=="-"&&_.eat(/-/)&&(_.eatWhile(/-/),!_.eat(T)))return _.skipToEnd(),"comment";var ee="variable";return Z==":"&&(ee="variable-2"),_.eatWhile(T),ee}return"error"}function g(_,W){return W==0?d:function(Z,ee){for(var oe=W;!Z.eol();){var Q=Z.next();if(Q=="{"&&Z.eat("-"))++oe;else if(Q=="-"&&Z.eat("}")&&(--oe,oe==0))return ee(d),_}return ee(g(_,oe)),_}}function k(_,W){for(;!_.eol();){var Z=_.next();if(Z=='"')return W(d),"string";if(Z=="\\"){if(_.eol()||_.eat(b))return W(y),"string";_.eat("&")||_.next()}}return W(d),"string error"}function y(_,W){return _.eat("\\")?O(_,W,k):(_.next(),W(d),"error")}var U=function(){var _={};function W(oe){return function(){for(var Q=0;Q<arguments.length;Q++)_[arguments[Q]]=oe}}W("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),W("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),W("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),W("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),W("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var Z=z.overrideKeywords;if(Z)for(var ee in Z)Z.hasOwnProperty(ee)&&(_[ee]=Z[ee]);return _}();return{startState:function(){return{f:d}},copyState:function(_){return{f:_.f}},token:function(_,W){var Z=W.f(_,function(oe){W.f=oe}),ee=_.current();return U.hasOwnProperty(ee)?U[ee]:Z},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),u.defineMIME("text/x-haskell","haskell")})});var xi=qe((Ul,$l)=>{(function(u){typeof Ul=="object"&&typeof $l=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";var P={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},z={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};u.defineMode("xml",function(O,S){var A=O.indentUnit,p={},D=S.htmlMode?P:z;for(var w in D)p[w]=D[w];for(var w in S)p[w]=S[w];var L,T;function m(c,B){function $(V){return B.tokenize=V,V(c,B)}var M=c.next();if(M=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?$(g("atom","]]>")):null:c.match("--")?$(g("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),$(k(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),B.tokenize=g("meta","?>"),"meta"):(L=c.eat("/")?"closeTag":"openTag",B.tokenize=b,"tag bracket");if(M=="&"){var C;return c.eat("#")?c.eat("x")?C=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):C=c.eatWhile(/[\d]/)&&c.eat(";"):C=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),C?"atom":"error"}else return c.eatWhile(/[^&<]/),null}m.isInText=!0;function b(c,B){var $=c.next();if($==">"||$=="/"&&c.eat(">"))return B.tokenize=m,L=$==">"?"endTag":"selfcloseTag","tag bracket";if($=="=")return L="equals",null;if($=="<"){B.tokenize=m,B.state=Z,B.tagName=B.tagStart=null;var M=B.tokenize(c,B);return M?M+" tag error":"tag error"}else return/[\'\"]/.test($)?(B.tokenize=d($),B.stringStartCol=c.column(),B.tokenize(c,B)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(c){var B=function($,M){for(;!$.eol();)if($.next()==c){M.tokenize=b;break}return"string"};return B.isInAttribute=!0,B}function g(c,B){return function($,M){for(;!$.eol();){if($.match(B)){M.tokenize=m;break}$.next()}return c}}function k(c){return function(B,$){for(var M;(M=B.next())!=null;){if(M=="<")return $.tokenize=k(c+1),$.tokenize(B,$);if(M==">")if(c==1){$.tokenize=m;break}else return $.tokenize=k(c-1),$.tokenize(B,$)}return"meta"}}function y(c){return c&&c.toLowerCase()}function U(c,B,$){this.prev=c.context,this.tagName=B||"",this.indent=c.indented,this.startOfLine=$,(p.doNotIndent.hasOwnProperty(B)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function _(c){c.context&&(c.context=c.context.prev)}function W(c,B){for(var $;;){if(!c.context||($=c.context.tagName,!p.contextGrabbers.hasOwnProperty(y($))||!p.contextGrabbers[y($)].hasOwnProperty(y(B))))return;_(c)}}function Z(c,B,$){return c=="openTag"?($.tagStart=B.column(),ee):c=="closeTag"?oe:Z}function ee(c,B,$){return c=="word"?($.tagName=B.current(),T="tag",N):p.allowMissingTagName&&c=="endTag"?(T="tag bracket",N(c,B,$)):(T="error",ee)}function oe(c,B,$){if(c=="word"){var M=B.current();return $.context&&$.context.tagName!=M&&p.implicitlyClosed.hasOwnProperty(y($.context.tagName))&&_($),$.context&&$.context.tagName==M||p.matchClosing===!1?(T="tag",Q):(T="tag error",j)}else return p.allowMissingTagName&&c=="endTag"?(T="tag bracket",Q(c,B,$)):(T="error",j)}function Q(c,B,$){return c!="endTag"?(T="error",Q):(_($),Z)}function j(c,B,$){return T="error",Q(c,B,$)}function N(c,B,$){if(c=="word")return T="attribute",G;if(c=="endTag"||c=="selfcloseTag"){var M=$.tagName,C=$.tagStart;return $.tagName=$.tagStart=null,c=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(y(M))?W($,M):(W($,M),$.context=new U($,M,C==$.indented)),Z}return T="error",N}function G(c,B,$){return c=="equals"?R:(p.allowMissing||(T="error"),N(c,B,$))}function R(c,B,$){return c=="string"?I:c=="word"&&p.allowUnquoted?(T="string",N):(T="error",N(c,B,$))}function I(c,B,$){return c=="string"?I:N(c,B,$)}return{startState:function(c){var B={tokenize:m,state:Z,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(B.baseIndent=c),B},token:function(c,B){if(!B.tagName&&c.sol()&&(B.indented=c.indentation()),c.eatSpace())return null;L=null;var $=B.tokenize(c,B);return($||L)&&$!="comment"&&(T=null,B.state=B.state(L||$,c,B),T&&($=T=="error"?$+" error":T)),$},indent:function(c,B,$){var M=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+A;if(M&&M.noIndent)return u.Pass;if(c.tokenize!=b&&c.tokenize!=m)return $?$.match(/^(\s*)/)[0].length:0;if(c.tagName)return p.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+A*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(B))return 0;var C=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(C&&C[1])for(;M;)if(M.tagName==C[2]){M=M.prev;break}else if(p.implicitlyClosed.hasOwnProperty(y(M.tagName)))M=M.prev;else break;else if(C)for(;M;){var V=p.contextGrabbers[y(M.tagName)];if(V&&V.hasOwnProperty(y(C[2])))M=M.prev;else break}for(;M&&M.prev&&!M.startOfLine;)M=M.prev;return M?M.indent+A:c.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(c){c.state==R&&(c.state=N)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var B=[],$=c.context;$;$=$.prev)B.push($.tagName);return B.reverse()}}}),u.defineMIME("text/xml","xml"),u.defineMIME("application/xml","xml"),u.mimeModes.hasOwnProperty("text/html")||u.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var _o=qe((Kl,Gl)=>{(function(u){typeof Kl=="object"&&typeof Gl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("javascript",function(P,z){var O=P.indentUnit,S=z.statementIndent,A=z.jsonld,p=z.json||A,D=z.trackScope!==!1,w=z.typescript,L=z.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function v(at){return{type:at,style:"keyword"}}var q=v("keyword a"),H=v("keyword b"),te=v("keyword c"),ze=v("keyword d"),je=v("operator"),Be={type:"atom",style:"atom"};return{if:v("if"),while:q,with:q,else:H,do:H,try:H,finally:H,return:ze,break:ze,continue:ze,new:v("new"),delete:te,void:te,throw:te,debugger:v("debugger"),var:v("var"),const:v("var"),let:v("var"),function:v("function"),catch:v("catch"),for:v("for"),switch:v("switch"),case:v("case"),default:v("default"),in:je,typeof:je,instanceof:je,true:Be,false:Be,null:Be,undefined:Be,NaN:Be,Infinity:Be,this:v("this"),class:v("class"),super:v("atom"),yield:te,export:v("export"),import:v("import"),extends:te,await:te}}(),m=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function d(v){for(var q=!1,H,te=!1;(H=v.next())!=null;){if(!q){if(H=="/"&&!te)return;H=="["?te=!0:te&&H=="]"&&(te=!1)}q=!q&&H=="\\"}}var g,k;function y(v,q,H){return g=v,k=H,q}function U(v,q){var H=v.next();if(H=='"'||H=="'")return q.tokenize=_(H),q.tokenize(v,q);if(H=="."&&v.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return y("number","number");if(H=="."&&v.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(H))return y(H);if(H=="="&&v.eat(">"))return y("=>","operator");if(H=="0"&&v.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return y("number","number");if(/\d/.test(H))return v.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),y("number","number");if(H=="/")return v.eat("*")?(q.tokenize=W,W(v,q)):v.eat("/")?(v.skipToEnd(),y("comment","comment")):Gt(v,q,1)?(d(v),v.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string-2")):(v.eat("="),y("operator","operator",v.current()));if(H=="`")return q.tokenize=Z,Z(v,q);if(H=="#"&&v.peek()=="!")return v.skipToEnd(),y("meta","meta");if(H=="#"&&v.eatWhile(L))return y("variable","property");if(H=="<"&&v.match("!--")||H=="-"&&v.match("->")&&!/\S/.test(v.string.slice(0,v.start)))return v.skipToEnd(),y("comment","comment");if(m.test(H))return(H!=">"||!q.lexical||q.lexical.type!=">")&&(v.eat("=")?(H=="!"||H=="=")&&v.eat("="):/[<>*+\-|&?]/.test(H)&&(v.eat(H),H==">"&&v.eat(H))),H=="?"&&v.eat(".")?y("."):y("operator","operator",v.current());if(L.test(H)){v.eatWhile(L);var te=v.current();if(q.lastType!="."){if(T.propertyIsEnumerable(te)){var ze=T[te];return y(ze.type,ze.style,te)}if(te=="async"&&v.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",te)}return y("variable","variable",te)}}function _(v){return function(q,H){var te=!1,ze;if(A&&q.peek()=="@"&&q.match(b))return H.tokenize=U,y("jsonld-keyword","meta");for(;(ze=q.next())!=null&&!(ze==v&&!te);)te=!te&&ze=="\\";return te||(H.tokenize=U),y("string","string")}}function W(v,q){for(var H=!1,te;te=v.next();){if(te=="/"&&H){q.tokenize=U;break}H=te=="*"}return y("comment","comment")}function Z(v,q){for(var H=!1,te;(te=v.next())!=null;){if(!H&&(te=="`"||te=="$"&&v.eat("{"))){q.tokenize=U;break}H=!H&&te=="\\"}return y("quasi","string-2",v.current())}var ee="([{}])";function oe(v,q){q.fatArrowAt&&(q.fatArrowAt=null);var H=v.string.indexOf("=>",v.start);if(!(H<0)){if(w){var te=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(v.string.slice(v.start,H));te&&(H=te.index)}for(var ze=0,je=!1,Be=H-1;Be>=0;--Be){var at=v.string.charAt(Be),Ft=ee.indexOf(at);if(Ft>=0&&Ft<3){if(!ze){++Be;break}if(--ze==0){at=="("&&(je=!0);break}}else if(Ft>=3&&Ft<6)++ze;else if(L.test(at))je=!0;else if(/["'\/`]/.test(at))for(;;--Be){if(Be==0)return;var Me=v.string.charAt(Be-1);if(Me==at&&v.string.charAt(Be-2)!="\\"){Be--;break}}else if(je&&!ze){++Be;break}}je&&!ze&&(q.fatArrowAt=Be)}}var Q={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(v,q,H,te,ze,je){this.indented=v,this.column=q,this.type=H,this.prev=ze,this.info=je,te!=null&&(this.align=te)}function N(v,q){if(!D)return!1;for(var H=v.localVars;H;H=H.next)if(H.name==q)return!0;for(var te=v.context;te;te=te.prev)for(var H=te.vars;H;H=H.next)if(H.name==q)return!0}function G(v,q,H,te,ze){var je=v.cc;for(R.state=v,R.stream=ze,R.marked=null,R.cc=je,R.style=q,v.lexical.hasOwnProperty("align")||(v.lexical.align=!0);;){var Be=je.length?je.pop():p?fe:Se;if(Be(H,te)){for(;je.length&&je[je.length-1].lex;)je.pop()();return R.marked?R.marked:H=="variable"&&N(v,te)?"variable-2":q}}}var R={state:null,column:null,marked:null,cc:null};function I(){for(var v=arguments.length-1;v>=0;v--)R.cc.push(arguments[v])}function c(){return I.apply(null,arguments),!0}function B(v,q){for(var H=q;H;H=H.next)if(H.name==v)return!0;return!1}function $(v){var q=R.state;if(R.marked="def",!!D){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var H=M(v,q.context);if(H!=null){q.context=H;return}}else if(!B(v,q.localVars)){q.localVars=new Y(v,q.localVars);return}}z.globalVars&&!B(v,q.globalVars)&&(q.globalVars=new Y(v,q.globalVars))}}function M(v,q){if(q)if(q.block){var H=M(v,q.prev);return H?H==q.prev?q:new V(H,q.vars,!0):null}else return B(v,q.vars)?q:new V(q.prev,new Y(v,q.vars),!1);else return null}function C(v){return v=="public"||v=="private"||v=="protected"||v=="abstract"||v=="readonly"}function V(v,q,H){this.prev=v,this.vars=q,this.block=H}function Y(v,q){this.name=v,this.next=q}var x=new Y("this",new Y("arguments",null));function h(){R.state.context=new V(R.state.context,R.state.localVars,!1),R.state.localVars=x}function se(){R.state.context=new V(R.state.context,R.state.localVars,!0),R.state.localVars=null}h.lex=se.lex=!0;function _e(){R.state.localVars=R.state.context.vars,R.state.context=R.state.context.prev}_e.lex=!0;function ue(v,q){var H=function(){var te=R.state,ze=te.indented;if(te.lexical.type=="stat")ze=te.lexical.indented;else for(var je=te.lexical;je&&je.type==")"&&je.align;je=je.prev)ze=je.indented;te.lexical=new j(ze,R.stream.column(),v,null,te.lexical,q)};return H.lex=!0,H}function he(){var v=R.state;v.lexical.prev&&(v.lexical.type==")"&&(v.indented=v.lexical.indented),v.lexical=v.lexical.prev)}he.lex=!0;function Te(v){function q(H){return H==v?c():v==";"||H=="}"||H==")"||H=="]"?I():c(q)}return q}function Se(v,q){return v=="var"?c(ue("vardef",q),Jt,Te(";"),he):v=="keyword a"?c(ue("form"),De,Se,he):v=="keyword b"?c(ue("form"),Se,he):v=="keyword d"?R.stream.match(/^\s*$/,!1)?c():c(ue("stat"),ht,Te(";"),he):v=="debugger"?c(Te(";")):v=="{"?c(ue("}"),se,qt,he,_e):v==";"?c():v=="if"?(R.state.lexical.info=="else"&&R.state.cc[R.state.cc.length-1]==he&&R.state.cc.pop()(),c(ue("form"),De,Se,he,Fr)):v=="function"?c($t):v=="for"?c(ue("form"),se,Rn,Se,_e,he):v=="class"||w&&q=="interface"?(R.marked="keyword",c(ue("form",v=="class"?v:q),jn,he)):v=="variable"?w&&q=="declare"?(R.marked="keyword",c(Se)):w&&(q=="module"||q=="enum"||q=="type")&&R.stream.match(/^\s*\w/,!1)?(R.marked="keyword",q=="enum"?c(qr):q=="type"?c(Wn,Te("operator"),me,Te(";")):c(ue("form"),wt,Te("{"),ue("}"),qt,he,he)):w&&q=="namespace"?(R.marked="keyword",c(ue("form"),fe,Se,he)):w&&q=="abstract"?(R.marked="keyword",c(Se)):c(ue("stat"),Fe):v=="switch"?c(ue("form"),De,Te("{"),ue("}","switch"),se,qt,he,he,_e):v=="case"?c(fe,Te(":")):v=="default"?c(Te(":")):v=="catch"?c(ue("form"),h,ae,Se,he,_e):v=="export"?c(ue("stat"),cr,he):v=="import"?c(ue("stat"),er,he):v=="async"?c(Se):q=="@"?c(fe,Se):I(ue("stat"),fe,Te(";"),he)}function ae(v){if(v=="(")return c(Wt,Te(")"))}function fe(v,q){return Qe(v,q,!1)}function ve(v,q){return Qe(v,q,!0)}function De(v){return v!="("?I():c(ue(")"),ht,Te(")"),he)}function Qe(v,q,H){if(R.state.fatArrowAt==R.stream.start){var te=H?Re:Ge;if(v=="(")return c(h,ue(")"),Ae(Wt,")"),he,Te("=>"),te,_e);if(v=="variable")return I(h,wt,Te("=>"),te,_e)}var ze=H?$e:Ne;return Q.hasOwnProperty(v)?c(ze):v=="function"?c($t,ze):v=="class"||w&&q=="interface"?(R.marked="keyword",c(ue("form"),ur,he)):v=="keyword c"||v=="async"?c(H?ve:fe):v=="("?c(ue(")"),ht,Te(")"),he,ze):v=="operator"||v=="spread"?c(H?ve:fe):v=="["?c(ue("]"),tr,he,ze):v=="{"?Dt(Le,"}",null,ze):v=="quasi"?I(Ee,ze):v=="new"?c(J(H)):c()}function ht(v){return v.match(/[;\}\)\],]/)?I():I(fe)}function Ne(v,q){return v==","?c(ht):$e(v,q,!1)}function $e(v,q,H){var te=H==!1?Ne:$e,ze=H==!1?fe:ve;if(v=="=>")return c(h,H?Re:Ge,_e);if(v=="operator")return/\+\+|--/.test(q)||w&&q=="!"?c(te):w&&q=="<"&&R.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(ue(">"),Ae(me,">"),he,te):q=="?"?c(fe,Te(":"),ze):c(ze);if(v=="quasi")return I(Ee,te);if(v!=";"){if(v=="(")return Dt(ve,")","call",te);if(v==".")return c(be,te);if(v=="[")return c(ue("]"),ht,Te("]"),he,te);if(w&&q=="as")return R.marked="keyword",c(me,te);if(v=="regexp")return R.state.lastType=R.marked="operator",R.stream.backUp(R.stream.pos-R.stream.start-1),c(ze)}}function Ee(v,q){return v!="quasi"?I():q.slice(q.length-2)!="${"?c(Ee):c(ht,rt)}function rt(v){if(v=="}")return R.marked="string-2",R.state.tokenize=Z,c(Ee)}function Ge(v){return oe(R.stream,R.state),I(v=="{"?Se:fe)}function Re(v){return oe(R.stream,R.state),I(v=="{"?Se:ve)}function J(v){return function(q){return q=="."?c(v?ne:le):q=="variable"&&w?c(gt,v?$e:Ne):I(v?ve:fe)}}function le(v,q){if(q=="target")return R.marked="keyword",c(Ne)}function ne(v,q){if(q=="target")return R.marked="keyword",c($e)}function Fe(v){return v==":"?c(he,Se):I(Ne,Te(";"),he)}function be(v){if(v=="variable")return R.marked="property",c()}function Le(v,q){if(v=="async")return R.marked="property",c(Le);if(v=="variable"||R.style=="keyword"){if(R.marked="property",q=="get"||q=="set")return c(ke);var H;return w&&R.state.fatArrowAt==R.stream.start&&(H=R.stream.match(/^\s*:\s*/,!1))&&(R.state.fatArrowAt=R.stream.pos+H[0].length),c(Pe)}else{if(v=="number"||v=="string")return R.marked=A?"property":R.style+" property",c(Pe);if(v=="jsonld-keyword")return c(Pe);if(w&&C(q))return R.marked="keyword",c(Le);if(v=="[")return c(fe,Ot,Te("]"),Pe);if(v=="spread")return c(ve,Pe);if(q=="*")return R.marked="keyword",c(Le);if(v==":")return I(Pe)}}function ke(v){return v!="variable"?I(Pe):(R.marked="property",c($t))}function Pe(v){if(v==":")return c(ve);if(v=="(")return I($t)}function Ae(v,q,H){function te(ze,je){if(H?H.indexOf(ze)>-1:ze==","){var Be=R.state.lexical;return Be.info=="call"&&(Be.pos=(Be.pos||0)+1),c(function(at,Ft){return at==q||Ft==q?I():I(v)},te)}return ze==q||je==q?c():H&&H.indexOf(";")>-1?I(v):c(Te(q))}return function(ze,je){return ze==q||je==q?c():I(v,te)}}function Dt(v,q,H){for(var te=3;te<arguments.length;te++)R.cc.push(arguments[te]);return c(ue(q,H),Ae(v,q),he)}function qt(v){return v=="}"?c():I(Se,qt)}function Ot(v,q){if(w){if(v==":")return c(me);if(q=="?")return c(Ot)}}function _i(v,q){if(w&&(v==":"||q=="in"))return c(me)}function Nt(v){if(w&&v==":")return R.stream.match(/^\s*\w+\s+is\b/,!1)?c(fe,Nn,me):c(me)}function Nn(v,q){if(q=="is")return R.marked="keyword",c()}function me(v,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return R.marked="keyword",c(q=="typeof"?ve:me);if(v=="variable"||q=="void")return R.marked="type",c(xt);if(q=="|"||q=="&")return c(me);if(v=="string"||v=="number"||v=="atom")return c(xt);if(v=="[")return c(ue("]"),Ae(me,"]",","),he,xt);if(v=="{")return c(ue("}"),mt,he,xt);if(v=="(")return c(Ae(bt,")"),tn,xt);if(v=="<")return c(Ae(me,">"),me);if(v=="quasi")return I(Ve,xt)}function tn(v){if(v=="=>")return c(me)}function mt(v){return v.match(/[\}\)\]]/)?c():v==","||v==";"?c(mt):I(Xe,mt)}function Xe(v,q){if(v=="variable"||R.style=="keyword")return R.marked="property",c(Xe);if(q=="?"||v=="number"||v=="string")return c(Xe);if(v==":")return c(me);if(v=="[")return c(Te("variable"),_i,Te("]"),Xe);if(v=="(")return I(Kt,Xe);if(!v.match(/[;\}\)\],]/))return c()}function Ve(v,q){return v!="quasi"?I():q.slice(q.length-2)!="${"?c(Ve):c(me,Pn)}function Pn(v){if(v=="}")return R.marked="string-2",R.state.tokenize=Z,c(Ve)}function bt(v,q){return v=="variable"&&R.stream.match(/^\s*[?:]/,!1)||q=="?"?c(bt):v==":"?c(me):v=="spread"?c(bt):I(me)}function xt(v,q){if(q=="<")return c(ue(">"),Ae(me,">"),he,xt);if(q=="|"||v=="."||q=="&")return c(me);if(v=="[")return c(me,Te("]"),xt);if(q=="extends"||q=="implements")return R.marked="keyword",c(me);if(q=="?")return c(me,Te(":"),me)}function gt(v,q){if(q=="<")return c(ue(">"),Ae(me,">"),he,xt)}function kr(){return I(me,rn)}function rn(v,q){if(q=="=")return c(me)}function Jt(v,q){return q=="enum"?(R.marked="keyword",c(qr)):I(wt,Ot,Pt,wi)}function wt(v,q){if(w&&C(q))return R.marked="keyword",c(wt);if(v=="variable")return $(q),c();if(v=="spread")return c(wt);if(v=="[")return Dt(ki,"]");if(v=="{")return Dt(nn,"}")}function nn(v,q){return v=="variable"&&!R.stream.match(/^\s*:/,!1)?($(q),c(Pt)):(v=="variable"&&(R.marked="property"),v=="spread"?c(wt):v=="}"?I():v=="["?c(fe,Te("]"),Te(":"),nn):c(Te(":"),wt,Pt))}function ki(){return I(wt,Pt)}function Pt(v,q){if(q=="=")return c(ve)}function wi(v){if(v==",")return c(Jt)}function Fr(v,q){if(v=="keyword b"&&q=="else")return c(ue("form","else"),Se,he)}function Rn(v,q){if(q=="await")return c(Rn);if(v=="(")return c(ue(")"),on,he)}function on(v){return v=="var"?c(Jt,sr):v=="variable"?c(sr):I(sr)}function sr(v,q){return v==")"?c():v==";"?c(sr):q=="in"||q=="of"?(R.marked="keyword",c(fe,sr)):I(fe,sr)}function $t(v,q){if(q=="*")return R.marked="keyword",c($t);if(v=="variable")return $(q),c($t);if(v=="(")return c(h,ue(")"),Ae(Wt,")"),he,Nt,Se,_e);if(w&&q=="<")return c(ue(">"),Ae(kr,">"),he,$t)}function Kt(v,q){if(q=="*")return R.marked="keyword",c(Kt);if(v=="variable")return $(q),c(Kt);if(v=="(")return c(h,ue(")"),Ae(Wt,")"),he,Nt,_e);if(w&&q=="<")return c(ue(">"),Ae(kr,">"),he,Kt)}function Wn(v,q){if(v=="keyword"||v=="variable")return R.marked="type",c(Wn);if(q=="<")return c(ue(">"),Ae(kr,">"),he)}function Wt(v,q){return q=="@"&&c(fe,Wt),v=="spread"?c(Wt):w&&C(q)?(R.marked="keyword",c(Wt)):w&&v=="this"?c(Ot,Pt):I(wt,Ot,Pt)}function ur(v,q){return v=="variable"?jn(v,q):Ir(v,q)}function jn(v,q){if(v=="variable")return $(q),c(Ir)}function Ir(v,q){if(q=="<")return c(ue(">"),Ae(kr,">"),he,Ir);if(q=="extends"||q=="implements"||w&&v==",")return q=="implements"&&(R.marked="keyword"),c(w?me:fe,Ir);if(v=="{")return c(ue("}"),zt,he)}function zt(v,q){if(v=="async"||v=="variable"&&(q=="static"||q=="get"||q=="set"||w&&C(q))&&R.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return R.marked="keyword",c(zt);if(v=="variable"||R.style=="keyword")return R.marked="property",c(Vt,zt);if(v=="number"||v=="string")return c(Vt,zt);if(v=="[")return c(fe,Ot,Te("]"),Vt,zt);if(q=="*")return R.marked="keyword",c(zt);if(w&&v=="(")return I(Kt,zt);if(v==";"||v==",")return c(zt);if(v=="}")return c();if(q=="@")return c(fe,zt)}function Vt(v,q){if(q=="!"||q=="?")return c(Vt);if(v==":")return c(me,Pt);if(q=="=")return c(ve);var H=R.state.lexical.prev,te=H&&H.info=="interface";return I(te?Kt:$t)}function cr(v,q){return q=="*"?(R.marked="keyword",c(xe,Te(";"))):q=="default"?(R.marked="keyword",c(fe,Te(";"))):v=="{"?c(Ae(Bn,"}"),xe,Te(";")):I(Se)}function Bn(v,q){if(q=="as")return R.marked="keyword",c(Te("variable"));if(v=="variable")return I(ve,Bn)}function er(v){return v=="string"?c():v=="("?I(fe):v=="."?I(Ne):I(fr,an,xe)}function fr(v,q){return v=="{"?Dt(fr,"}"):(v=="variable"&&$(q),q=="*"&&(R.marked="keyword"),c(et))}function an(v){if(v==",")return c(fr,an)}function et(v,q){if(q=="as")return R.marked="keyword",c(fr)}function xe(v,q){if(q=="from")return R.marked="keyword",c(fe)}function tr(v){return v=="]"?c():I(Ae(ve,"]"))}function qr(){return I(ue("form"),wt,Te("{"),ue("}"),Ae(Rt,"}"),he,he)}function Rt(){return I(wt,Pt)}function He(v,q){return v.lastType=="operator"||v.lastType==","||m.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Gt(v,q,H){return q.tokenize==U&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(v.string.slice(0,v.pos-(H||0)))}return{startState:function(v){var q={tokenize:U,lastType:"sof",cc:[],lexical:new j((v||0)-O,0,"block",!1),localVars:z.localVars,context:z.localVars&&new V(null,null,!1),indented:v||0};return z.globalVars&&typeof z.globalVars=="object"&&(q.globalVars=z.globalVars),q},token:function(v,q){if(v.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=v.indentation(),oe(v,q)),q.tokenize!=W&&v.eatSpace())return null;var H=q.tokenize(v,q);return g=="comment"?H:(q.lastType=g=="operator"&&(k=="++"||k=="--")?"incdec":g,G(q,H,g,k,v))},indent:function(v,q){if(v.tokenize==W||v.tokenize==Z)return u.Pass;if(v.tokenize!=U)return 0;var H=q&&q.charAt(0),te=v.lexical,ze;if(!/^\s*else\b/.test(q))for(var je=v.cc.length-1;je>=0;--je){var Be=v.cc[je];if(Be==he)te=te.prev;else if(Be!=Fr&&Be!=_e)break}for(;(te.type=="stat"||te.type=="form")&&(H=="}"||(ze=v.cc[v.cc.length-1])&&(ze==Ne||ze==$e)&&!/^[,\.=+\-*:?[\(]/.test(q));)te=te.prev;S&&te.type==")"&&te.prev.type=="stat"&&(te=te.prev);var at=te.type,Ft=H==at;return at=="vardef"?te.indented+(v.lastType=="operator"||v.lastType==","?te.info.length+1:0):at=="form"&&H=="{"?te.indented:at=="form"?te.indented+O:at=="stat"?te.indented+(He(v,q)?S||O:0):te.info=="switch"&&!Ft&&z.doubleIndentSwitch!=!1?te.indented+(/^(?:case|default)\b/.test(q)?O:2*O):te.align?te.column+(Ft?0:1):te.indented+(Ft?0:O)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:A,jsonMode:p,expressionAllowed:Gt,skipExpression:function(v){G(v,"atom","atom","true",new u.StringStream("",2,null))}}}),u.registerHelper("wordChars","javascript",/[\w$]/),u.defineMIME("text/javascript","javascript"),u.defineMIME("text/ecmascript","javascript"),u.defineMIME("application/javascript","javascript"),u.defineMIME("application/x-javascript","javascript"),u.defineMIME("application/ecmascript","javascript"),u.defineMIME("application/json",{name:"javascript",json:!0}),u.defineMIME("application/x-json",{name:"javascript",json:!0}),u.defineMIME("application/manifest+json",{name:"javascript",json:!0}),u.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),u.defineMIME("text/typescript",{name:"javascript",typescript:!0}),u.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var ko=qe((Zl,Xl)=>{(function(u){typeof Zl=="object"&&typeof Xl=="object"?u(Oe(),xi(),_o(),xo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],u):u(CodeMirror)})(function(u){"use strict";var P={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function z(L,T,m){var b=L.current(),d=b.search(T);return d>-1?L.backUp(b.length-d):b.match(/<\/?$/)&&(L.backUp(b.length),L.match(T,!1)||L.match(b)),m}var O={};function S(L){var T=O[L];return T||(O[L]=new RegExp("\\s+"+L+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function A(L,T){var m=L.match(S(T));return m?/^\s*(.*?)\s*$/.exec(m[2])[1]:""}function p(L,T){return new RegExp((T?"^":"")+"</\\s*"+L+"\\s*>","i")}function D(L,T){for(var m in L)for(var b=T[m]||(T[m]=[]),d=L[m],g=d.length-1;g>=0;g--)b.unshift(d[g])}function w(L,T){for(var m=0;m<L.length;m++){var b=L[m];if(!b[0]||b[1].test(A(T,b[0])))return b[2]}}u.defineMode("htmlmixed",function(L,T){var m=u.getMode(L,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),b={},d=T&&T.tags,g=T&&T.scriptTypes;if(D(P,b),d&&D(d,b),g)for(var k=g.length-1;k>=0;k--)b.script.unshift(["type",g[k].matches,g[k].mode]);function y(U,_){var W=m.token(U,_.htmlState),Z=/\btag\b/.test(W),ee;if(Z&&!/[<>\s\/]/.test(U.current())&&(ee=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&b.hasOwnProperty(ee))_.inTag=ee+" ";else if(_.inTag&&Z&&/>$/.test(U.current())){var oe=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var Q=U.current()==">"&&w(b[oe[1]],oe[2]),j=u.getMode(L,Q),N=p(oe[1],!0),G=p(oe[1],!1);_.token=function(R,I){return R.match(N,!1)?(I.token=y,I.localState=I.localMode=null,null):z(R,G,I.localMode.token(R,I.localState))},_.localMode=j,_.localState=u.startState(j,m.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=U.current(),U.eol()&&(_.inTag+=" "));return W}return{startState:function(){var U=u.startState(m);return{token:y,inTag:null,localMode:null,localState:null,htmlState:U}},copyState:function(U){var _;return U.localState&&(_=u.copyState(U.localMode,U.localState)),{token:U.token,inTag:U.inTag,localMode:U.localMode,localState:_,htmlState:u.copyState(m,U.htmlState)}},token:function(U,_){return _.token(U,_)},indent:function(U,_,W){return!U.localMode||/^\s*<\//.test(_)?m.indent(U.htmlState,_,W):U.localMode.indent?U.localMode.indent(U.localState,_,W):u.Pass},innerMode:function(U){return{state:U.localState||U.htmlState,mode:U.localMode||m}}}},"xml","javascript","css"),u.defineMIME("text/html","htmlmixed")})});var Jl=qe((Ql,Yl)=>{(function(u){typeof Ql=="object"&&typeof Yl=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("julia",function(P,z){function O(Y,x,h){return typeof h>"u"&&(h=""),typeof x>"u"&&(x="\\b"),new RegExp("^"+h+"(("+Y.join(")|(")+"))"+x)}var S="\\\\[0-7]{1,3}",A="\\\\x[A-Fa-f0-9]{1,2}",p=`\\\\[abefnrtv0%?'"\\\\]`,D="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",w=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],L=z.operators||O(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),T=z.delimiters||/^[;,()[\]{}]/,m=z.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,b=O([S,A,p,D],"'"),d=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],g=["end","else","elseif","catch","finally"],k=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],y=["true","false","nothing","NaN","Inf"];u.registerHelper("hintWords","julia",k.concat(y));var U=O(d),_=O(g),W=O(k),Z=O(y),ee=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,oe=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,Q=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,j=O(w,"","@"),N=O(w,"",":");function G(Y){return Y.nestedArrays>0}function R(Y){return Y.nestedGenerators>0}function I(Y,x){return typeof x>"u"&&(x=0),Y.scopes.length<=x?null:Y.scopes[Y.scopes.length-(x+1)]}function c(Y,x){if(Y.match("#=",!1))return x.tokenize=$,x.tokenize(Y,x);var h=x.leavingExpr;if(Y.sol()&&(h=!1),x.leavingExpr=!1,h&&Y.match(/^'+/))return"operator";if(Y.match(/\.{4,}/))return"error";if(Y.match(/\.{1,3}/))return"operator";if(Y.eatSpace())return null;var se=Y.peek();if(se==="#")return Y.skipToEnd(),"comment";if(se==="["&&(x.scopes.push("["),x.nestedArrays++),se==="("&&(x.scopes.push("("),x.nestedGenerators++),G(x)&&se==="]"){for(;x.scopes.length&&I(x)!=="[";)x.scopes.pop();x.scopes.pop(),x.nestedArrays--,x.leavingExpr=!0}if(R(x)&&se===")"){for(;x.scopes.length&&I(x)!=="(";)x.scopes.pop();x.scopes.pop(),x.nestedGenerators--,x.leavingExpr=!0}if(G(x)){if(x.lastToken=="end"&&Y.match(":"))return"operator";if(Y.match("end"))return"number"}var _e;if((_e=Y.match(U,!1))&&x.scopes.push(_e[0]),Y.match(_,!1)&&x.scopes.pop(),Y.match(/^::(?![:\$])/))return x.tokenize=B,x.tokenize(Y,x);if(!h&&(Y.match(oe)||Y.match(N)))return"builtin";if(Y.match(L))return"operator";if(Y.match(/^\.?\d/,!1)){var ue=RegExp(/^im\b/),he=!1;if(Y.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(he=!0),Y.match(/^0x[0-9a-f_]+/i)&&(he=!0),Y.match(/^0b[01_]+/i)&&(he=!0),Y.match(/^0o[0-7_]+/i)&&(he=!0),Y.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(he=!0),Y.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(he=!0),he)return Y.match(ue),x.leavingExpr=!0,"number"}if(Y.match("'"))return x.tokenize=M,x.tokenize(Y,x);if(Y.match(Q))return x.tokenize=C(Y.current()),x.tokenize(Y,x);if(Y.match(ee)||Y.match(j))return"meta";if(Y.match(T))return null;if(Y.match(W))return"keyword";if(Y.match(Z))return"builtin";var Te=x.isDefinition||x.lastToken=="function"||x.lastToken=="macro"||x.lastToken=="type"||x.lastToken=="struct"||x.lastToken=="immutable";return Y.match(m)?Te?Y.peek()==="."?(x.isDefinition=!0,"variable"):(x.isDefinition=!1,"def"):(x.leavingExpr=!0,"variable"):(Y.next(),"error")}function B(Y,x){return Y.match(/.*?(?=[,;{}()=\s]|$)/),Y.match("{")?x.nestedParameters++:Y.match("}")&&x.nestedParameters>0&&x.nestedParameters--,x.nestedParameters>0?Y.match(/.*?(?={|})/)||Y.next():x.nestedParameters==0&&(x.tokenize=c),"builtin"}function $(Y,x){return Y.match("#=")&&x.nestedComments++,Y.match(/.*?(?=(#=|=#))/)||Y.skipToEnd(),Y.match("=#")&&(x.nestedComments--,x.nestedComments==0&&(x.tokenize=c)),"comment"}function M(Y,x){var h=!1,se;if(Y.match(b))h=!0;else if(se=Y.match(/\\u([a-f0-9]{1,4})(?=')/i)){var _e=parseInt(se[1],16);(_e<=55295||_e>=57344)&&(h=!0,Y.next())}else if(se=Y.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var _e=parseInt(se[1],16);_e<=1114111&&(h=!0,Y.next())}return h?(x.leavingExpr=!0,x.tokenize=c,"string"):(Y.match(/^[^']+(?=')/)||Y.skipToEnd(),Y.match("'")&&(x.tokenize=c),"error")}function C(Y){Y.substr(-3)==='"""'?Y='"""':Y.substr(-1)==='"'&&(Y='"');function x(h,se){if(h.eat("\\"))h.next();else{if(h.match(Y))return se.tokenize=c,se.leavingExpr=!0,"string";h.eat(/[`"]/)}return h.eatWhile(/[^\\`"]/),"string"}return x}var V={startState:function(){return{tokenize:c,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(Y,x){var h=x.tokenize(Y,x),se=Y.current();return se&&h&&(x.lastToken=se),h},indent:function(Y,x){var h=0;return(x==="]"||x===")"||/^end\b/.test(x)||/^else/.test(x)||/^catch\b/.test(x)||/^elseif\b/.test(x)||/^finally/.test(x))&&(h=-1),(Y.scopes.length+h)*P.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return V}),u.defineMIME("text/x-julia","julia")})});var ts=qe((Vl,es)=>{(function(u){typeof Vl=="object"&&typeof es=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("lua",function(P,z){var O=P.indentUnit;function S(y){return new RegExp("^(?:"+y.join("|")+")","i")}function A(y){return new RegExp("^(?:"+y.join("|")+")$","i")}var p=A(z.specials||[]),D=A(["_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.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),w=A(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),L=A(["function","if","repeat","do","\\(","{"]),T=A(["end","until","\\)","}"]),m=S(["end","until","\\)","}","else","elseif"]);function b(y){for(var U=0;y.eat("=");)++U;return y.eat("["),U}function d(y,U){var _=y.next();return _=="-"&&y.eat("-")?y.eat("[")&&y.eat("[")?(U.cur=g(b(y),"comment"))(y,U):(y.skipToEnd(),"comment"):_=='"'||_=="'"?(U.cur=k(_))(y,U):_=="["&&/[\[=]/.test(y.peek())?(U.cur=g(b(y),"string"))(y,U):/\d/.test(_)?(y.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(_)?(y.eatWhile(/[\w\\\-_.]/),"variable"):null}function g(y,U){return function(_,W){for(var Z=null,ee;(ee=_.next())!=null;)if(Z==null)ee=="]"&&(Z=0);else if(ee=="=")++Z;else if(ee=="]"&&Z==y){W.cur=d;break}else Z=null;return U}}function k(y){return function(U,_){for(var W=!1,Z;(Z=U.next())!=null&&!(Z==y&&!W);)W=!W&&Z=="\\";return W||(_.cur=d),"string"}}return{startState:function(y){return{basecol:y||0,indentDepth:0,cur:d}},token:function(y,U){if(y.eatSpace())return null;var _=U.cur(y,U),W=y.current();return _=="variable"&&(w.test(W)?_="keyword":D.test(W)?_="builtin":p.test(W)&&(_="variable-2")),_!="comment"&&_!="string"&&(L.test(W)?++U.indentDepth:T.test(W)&&--U.indentDepth),_},indent:function(y,U){var _=m.test(U);return y.basecol+O*(y.indentDepth-(_?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),u.defineMIME("text/x-lua","lua")})});var is=qe((rs,ns)=>{(function(u){typeof rs=="object"&&typeof ns=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var P=0;P<u.modeInfo.length;P++){var z=u.modeInfo[P];z.mimes&&(z.mime=z.mimes[0])}u.findModeByMIME=function(O){O=O.toLowerCase();for(var S=0;S<u.modeInfo.length;S++){var A=u.modeInfo[S];if(A.mime==O)return A;if(A.mimes){for(var p=0;p<A.mimes.length;p++)if(A.mimes[p]==O)return A}}if(/\+xml$/.test(O))return u.findModeByMIME("application/xml");if(/\+json$/.test(O))return u.findModeByMIME("application/json")},u.findModeByExtension=function(O){O=O.toLowerCase();for(var S=0;S<u.modeInfo.length;S++){var A=u.modeInfo[S];if(A.ext){for(var p=0;p<A.ext.length;p++)if(A.ext[p]==O)return A}}},u.findModeByFileName=function(O){for(var S=0;S<u.modeInfo.length;S++){var A=u.modeInfo[S];if(A.file&&A.file.test(O))return A}var p=O.lastIndexOf("."),D=p>-1&&O.substring(p+1,O.length);if(D)return u.findModeByExtension(D)},u.findModeByName=function(O){O=O.toLowerCase();for(var S=0;S<u.modeInfo.length;S++){var A=u.modeInfo[S];if(A.name.toLowerCase()==O)return A;if(A.alias){for(var p=0;p<A.alias.length;p++)if(A.alias[p].toLowerCase()==O)return A}}}})});var ls=qe((os,as)=>{(function(u){typeof os=="object"&&typeof as=="object"?u(Oe(),xi(),is()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("markdown",function(P,z){var O=u.getMode(P,"text/html"),S=O.name=="null";function A(x){if(u.findModeByName){var h=u.findModeByName(x);h&&(x=h.mime||h.mimes[0])}var se=u.getMode(P,x);return se.name=="null"?null:se}z.highlightFormatting===void 0&&(z.highlightFormatting=!1),z.maxBlockquoteDepth===void 0&&(z.maxBlockquoteDepth=0),z.taskLists===void 0&&(z.taskLists=!1),z.strikethrough===void 0&&(z.strikethrough=!1),z.emoji===void 0&&(z.emoji=!1),z.fencedCodeBlockHighlighting===void 0&&(z.fencedCodeBlockHighlighting=!0),z.fencedCodeBlockDefaultMode===void 0&&(z.fencedCodeBlockDefaultMode="text/plain"),z.xml===void 0&&(z.xml=!0),z.tokenTypeOverrides===void 0&&(z.tokenTypeOverrides={});var p={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var D in p)p.hasOwnProperty(D)&&z.tokenTypeOverrides[D]&&(p[D]=z.tokenTypeOverrides[D]);var w=/^([*\-_])(?:\s*\1){2,}\s*$/,L=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,T=/^\[(x| )\](?=\s)/i,m=z.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,b=/^ {0,3}(?:\={1,}|-{2,})\s*$/,d=/^[^#!\[\]*_\\<>` "'(~:]+/,g=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,k=/^\s*\[[^\]]+?\]:.*$/,y=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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\u0AF0\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,U=" ";function _(x,h,se){return h.f=h.inline=se,se(x,h)}function W(x,h,se){return h.f=h.block=se,se(x,h)}function Z(x){return!x||!/\S/.test(x.string)}function ee(x){if(x.linkTitle=!1,x.linkHref=!1,x.linkText=!1,x.em=!1,x.strong=!1,x.strikethrough=!1,x.quote=0,x.indentedCode=!1,x.f==Q){var h=S;if(!h){var se=u.innerMode(O,x.htmlState);h=se.mode.name=="xml"&&se.state.tagStart===null&&!se.state.context&&se.state.tokenize.isInText}h&&(x.f=R,x.block=oe,x.htmlState=null)}return x.trailingSpace=0,x.trailingSpaceNewLine=!1,x.prevLine=x.thisLine,x.thisLine={stream:null},null}function oe(x,h){var se=x.column()===h.indentation,_e=Z(h.prevLine.stream),ue=h.indentedCode,he=h.prevLine.hr,Te=h.list!==!1,Se=(h.listStack[h.listStack.length-1]||0)+3;h.indentedCode=!1;var ae=h.indentation;if(h.indentationDiff===null&&(h.indentationDiff=h.indentation,Te)){for(h.list=null;ae<h.listStack[h.listStack.length-1];)h.listStack.pop(),h.listStack.length?h.indentation=h.listStack[h.listStack.length-1]:h.list=!1;h.list!==!1&&(h.indentationDiff=ae-h.listStack[h.listStack.length-1])}var fe=!_e&&!he&&!h.prevLine.header&&(!Te||!ue)&&!h.prevLine.fencedCodeEnd,ve=(h.list===!1||he||_e)&&h.indentation<=Se&&x.match(w),De=null;if(h.indentationDiff>=4&&(ue||h.prevLine.fencedCodeEnd||h.prevLine.header||_e))return x.skipToEnd(),h.indentedCode=!0,p.code;if(x.eatSpace())return null;if(se&&h.indentation<=Se&&(De=x.match(m))&&De[1].length<=6)return h.quote=0,h.header=De[1].length,h.thisLine.header=!0,z.highlightFormatting&&(h.formatting="header"),h.f=h.inline,N(h);if(h.indentation<=Se&&x.eat(">"))return h.quote=se?1:h.quote+1,z.highlightFormatting&&(h.formatting="quote"),x.eatSpace(),N(h);if(!ve&&!h.setext&&se&&h.indentation<=Se&&(De=x.match(L))){var Qe=De[1]?"ol":"ul";return h.indentation=ae+x.current().length,h.list=!0,h.quote=0,h.listStack.push(h.indentation),h.em=!1,h.strong=!1,h.code=!1,h.strikethrough=!1,z.taskLists&&x.match(T,!1)&&(h.taskList=!0),h.f=h.inline,z.highlightFormatting&&(h.formatting=["list","list-"+Qe]),N(h)}else{if(se&&h.indentation<=Se&&(De=x.match(g,!0)))return h.quote=0,h.fencedEndRE=new RegExp(De[1]+"+ *$"),h.localMode=z.fencedCodeBlockHighlighting&&A(De[2]||z.fencedCodeBlockDefaultMode),h.localMode&&(h.localState=u.startState(h.localMode)),h.f=h.block=j,z.highlightFormatting&&(h.formatting="code-block"),h.code=-1,N(h);if(h.setext||(!fe||!Te)&&!h.quote&&h.list===!1&&!h.code&&!ve&&!k.test(x.string)&&(De=x.lookAhead(1))&&(De=De.match(b)))return h.setext?(h.header=h.setext,h.setext=0,x.skipToEnd(),z.highlightFormatting&&(h.formatting="header")):(h.header=De[0].charAt(0)=="="?1:2,h.setext=h.header),h.thisLine.header=!0,h.f=h.inline,N(h);if(ve)return x.skipToEnd(),h.hr=!0,h.thisLine.hr=!0,p.hr;if(x.peek()==="[")return _(x,h,M)}return _(x,h,h.inline)}function Q(x,h){var se=O.token(x,h.htmlState);if(!S){var _e=u.innerMode(O,h.htmlState);(_e.mode.name=="xml"&&_e.state.tagStart===null&&!_e.state.context&&_e.state.tokenize.isInText||h.md_inside&&x.current().indexOf(">")>-1)&&(h.f=R,h.block=oe,h.htmlState=null)}return se}function j(x,h){var se=h.listStack[h.listStack.length-1]||0,_e=h.indentation<se,ue=se+3;if(h.fencedEndRE&&h.indentation<=ue&&(_e||x.match(h.fencedEndRE))){z.highlightFormatting&&(h.formatting="code-block");var he;return _e||(he=N(h)),h.localMode=h.localState=null,h.block=oe,h.f=R,h.fencedEndRE=null,h.code=0,h.thisLine.fencedCodeEnd=!0,_e?W(x,h,h.block):he}else return h.localMode?h.localMode.token(x,h.localState):(x.skipToEnd(),p.code)}function N(x){var h=[];if(x.formatting){h.push(p.formatting),typeof x.formatting=="string"&&(x.formatting=[x.formatting]);for(var se=0;se<x.formatting.length;se++)h.push(p.formatting+"-"+x.formatting[se]),x.formatting[se]==="header"&&h.push(p.formatting+"-"+x.formatting[se]+"-"+x.header),x.formatting[se]==="quote"&&(!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=x.quote?h.push(p.formatting+"-"+x.formatting[se]+"-"+x.quote):h.push("error"))}if(x.taskOpen)return h.push("meta"),h.length?h.join(" "):null;if(x.taskClosed)return h.push("property"),h.length?h.join(" "):null;if(x.linkHref?h.push(p.linkHref,"url"):(x.strong&&h.push(p.strong),x.em&&h.push(p.em),x.strikethrough&&h.push(p.strikethrough),x.emoji&&h.push(p.emoji),x.linkText&&h.push(p.linkText),x.code&&h.push(p.code),x.image&&h.push(p.image),x.imageAltText&&h.push(p.imageAltText,"link"),x.imageMarker&&h.push(p.imageMarker)),x.header&&h.push(p.header,p.header+"-"+x.header),x.quote&&(h.push(p.quote),!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=x.quote?h.push(p.quote+"-"+x.quote):h.push(p.quote+"-"+z.maxBlockquoteDepth)),x.list!==!1){var _e=(x.listStack.length-1)%3;_e?_e===1?h.push(p.list2):h.push(p.list3):h.push(p.list1)}return x.trailingSpaceNewLine?h.push("trailing-space-new-line"):x.trailingSpace&&h.push("trailing-space-"+(x.trailingSpace%2?"a":"b")),h.length?h.join(" "):null}function G(x,h){if(x.match(d,!0))return N(h)}function R(x,h){var se=h.text(x,h);if(typeof se<"u")return se;if(h.list)return h.list=null,N(h);if(h.taskList){var _e=x.match(T,!0)[1]===" ";return _e?h.taskOpen=!0:h.taskClosed=!0,z.highlightFormatting&&(h.formatting="task"),h.taskList=!1,N(h)}if(h.taskOpen=!1,h.taskClosed=!1,h.header&&x.match(/^#+$/,!0))return z.highlightFormatting&&(h.formatting="header"),N(h);var ue=x.next();if(h.linkTitle){h.linkTitle=!1;var he=ue;ue==="("&&(he=")"),he=(he+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Te="^\\s*(?:[^"+he+"\\\\]+|\\\\\\\\|\\\\.)"+he;if(x.match(new RegExp(Te),!0))return p.linkHref}if(ue==="`"){var Se=h.formatting;z.highlightFormatting&&(h.formatting="code"),x.eatWhile("`");var ae=x.current().length;if(h.code==0&&(!h.quote||ae==1))return h.code=ae,N(h);if(ae==h.code){var fe=N(h);return h.code=0,fe}else return h.formatting=Se,N(h)}else if(h.code)return N(h);if(ue==="\\"&&(x.next(),z.highlightFormatting)){var ve=N(h),De=p.formatting+"-escape";return ve?ve+" "+De:De}if(ue==="!"&&x.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return h.imageMarker=!0,h.image=!0,z.highlightFormatting&&(h.formatting="image"),N(h);if(ue==="["&&h.imageMarker&&x.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return h.imageMarker=!1,h.imageAltText=!0,z.highlightFormatting&&(h.formatting="image"),N(h);if(ue==="]"&&h.imageAltText){z.highlightFormatting&&(h.formatting="image");var ve=N(h);return h.imageAltText=!1,h.image=!1,h.inline=h.f=c,ve}if(ue==="["&&!h.image)return h.linkText&&x.match(/^.*?\]/)||(h.linkText=!0,z.highlightFormatting&&(h.formatting="link")),N(h);if(ue==="]"&&h.linkText){z.highlightFormatting&&(h.formatting="link");var ve=N(h);return h.linkText=!1,h.inline=h.f=x.match(/\(.*?\)| ?\[.*?\]/,!1)?c:R,ve}if(ue==="<"&&x.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){h.f=h.inline=I,z.highlightFormatting&&(h.formatting="link");var ve=N(h);return ve?ve+=" ":ve="",ve+p.linkInline}if(ue==="<"&&x.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){h.f=h.inline=I,z.highlightFormatting&&(h.formatting="link");var ve=N(h);return ve?ve+=" ":ve="",ve+p.linkEmail}if(z.xml&&ue==="<"&&x.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Qe=x.string.indexOf(">",x.pos);if(Qe!=-1){var ht=x.string.substring(x.start,Qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ht)&&(h.md_inside=!0)}return x.backUp(1),h.htmlState=u.startState(O),W(x,h,Q)}if(z.xml&&ue==="<"&&x.match(/^\/\w*?>/))return h.md_inside=!1,"tag";if(ue==="*"||ue==="_"){for(var Ne=1,$e=x.pos==1?" ":x.string.charAt(x.pos-2);Ne<3&&x.eat(ue);)Ne++;var Ee=x.peek()||" ",rt=!/\s/.test(Ee)&&(!y.test(Ee)||/\s/.test($e)||y.test($e)),Ge=!/\s/.test($e)&&(!y.test($e)||/\s/.test(Ee)||y.test(Ee)),Re=null,J=null;if(Ne%2&&(!h.em&&rt&&(ue==="*"||!Ge||y.test($e))?Re=!0:h.em==ue&&Ge&&(ue==="*"||!rt||y.test(Ee))&&(Re=!1)),Ne>1&&(!h.strong&&rt&&(ue==="*"||!Ge||y.test($e))?J=!0:h.strong==ue&&Ge&&(ue==="*"||!rt||y.test(Ee))&&(J=!1)),J!=null||Re!=null){z.highlightFormatting&&(h.formatting=Re==null?"strong":J==null?"em":"strong em"),Re===!0&&(h.em=ue),J===!0&&(h.strong=ue);var fe=N(h);return Re===!1&&(h.em=!1),J===!1&&(h.strong=!1),fe}}else if(ue===" "&&(x.eat("*")||x.eat("_"))){if(x.peek()===" ")return N(h);x.backUp(1)}if(z.strikethrough){if(ue==="~"&&x.eatWhile(ue)){if(h.strikethrough){z.highlightFormatting&&(h.formatting="strikethrough");var fe=N(h);return h.strikethrough=!1,fe}else if(x.match(/^[^\s]/,!1))return h.strikethrough=!0,z.highlightFormatting&&(h.formatting="strikethrough"),N(h)}else if(ue===" "&&x.match("~~",!0)){if(x.peek()===" ")return N(h);x.backUp(2)}}if(z.emoji&&ue===":"&&x.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){h.emoji=!0,z.highlightFormatting&&(h.formatting="emoji");var le=N(h);return h.emoji=!1,le}return ue===" "&&(x.match(/^ +$/,!1)?h.trailingSpace++:h.trailingSpace&&(h.trailingSpaceNewLine=!0)),N(h)}function I(x,h){var se=x.next();if(se===">"){h.f=h.inline=R,z.highlightFormatting&&(h.formatting="link");var _e=N(h);return _e?_e+=" ":_e="",_e+p.linkInline}return x.match(/^[^>]+/,!0),p.linkInline}function c(x,h){if(x.eatSpace())return null;var se=x.next();return se==="("||se==="["?(h.f=h.inline=$(se==="("?")":"]"),z.highlightFormatting&&(h.formatting="link-string"),h.linkHref=!0,N(h)):"error"}var B={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $(x){return function(h,se){var _e=h.next();if(_e===x){se.f=se.inline=R,z.highlightFormatting&&(se.formatting="link-string");var ue=N(se);return se.linkHref=!1,ue}return h.match(B[x]),se.linkHref=!0,N(se)}}function M(x,h){return x.match(/^([^\]\\]|\\.)*\]:/,!1)?(h.f=C,x.next(),z.highlightFormatting&&(h.formatting="link"),h.linkText=!0,N(h)):_(x,h,R)}function C(x,h){if(x.match("]:",!0)){h.f=h.inline=V,z.highlightFormatting&&(h.formatting="link");var se=N(h);return h.linkText=!1,se}return x.match(/^([^\]\\]|\\.)+/,!0),p.linkText}function V(x,h){return x.eatSpace()?null:(x.match(/^[^\s]+/,!0),x.peek()===void 0?h.linkTitle=!0:x.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),h.f=h.inline=R,p.linkHref+" url")}var Y={startState:function(){return{f:oe,prevLine:{stream:null},thisLine:{stream:null},block:oe,htmlState:null,indentation:0,inline:R,text:G,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(x){return{f:x.f,prevLine:x.prevLine,thisLine:x.thisLine,block:x.block,htmlState:x.htmlState&&u.copyState(O,x.htmlState),indentation:x.indentation,localMode:x.localMode,localState:x.localMode?u.copyState(x.localMode,x.localState):null,inline:x.inline,text:x.text,formatting:!1,linkText:x.linkText,linkTitle:x.linkTitle,linkHref:x.linkHref,code:x.code,em:x.em,strong:x.strong,strikethrough:x.strikethrough,emoji:x.emoji,header:x.header,setext:x.setext,hr:x.hr,taskList:x.taskList,list:x.list,listStack:x.listStack.slice(0),quote:x.quote,indentedCode:x.indentedCode,trailingSpace:x.trailingSpace,trailingSpaceNewLine:x.trailingSpaceNewLine,md_inside:x.md_inside,fencedEndRE:x.fencedEndRE}},token:function(x,h){if(h.formatting=!1,x!=h.thisLine.stream){if(h.header=0,h.hr=!1,x.match(/^\s*$/,!0))return ee(h),null;if(h.prevLine=h.thisLine,h.thisLine={stream:x},h.taskList=!1,h.trailingSpace=0,h.trailingSpaceNewLine=!1,!h.localState&&(h.f=h.block,h.f!=Q)){var se=x.match(/^\s*/,!0)[0].replace(/\t/g,U).length;if(h.indentation=se,h.indentationDiff=null,se>0)return null}}return h.f(x,h)},innerMode:function(x){return x.block==Q?{state:x.htmlState,mode:O}:x.localState?{state:x.localState,mode:x.localMode}:{state:x,mode:Y}},indent:function(x,h,se){return x.block==Q&&O.indent?O.indent(x.htmlState,h,se):x.localState&&x.localMode.indent?x.localMode.indent(x.localState,h,se):u.Pass},blankLine:ee,getType:N,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Y},"xml"),u.defineMIME("text/markdown","markdown"),u.defineMIME("text/x-markdown","markdown")})});var cs=qe((ss,us)=>{(function(u){typeof ss=="object"&&typeof us=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("mllike",function(P,z){var O={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},S=z.extraWords||{};for(var A in S)S.hasOwnProperty(A)&&(O[A]=z.extraWords[A]);var p=[];for(var D in O)p.push(D);u.registerHelper("hintWords","mllike",p);function w(b,d){var g=b.next();if(g==='"')return d.tokenize=L,d.tokenize(b,d);if(g==="{"&&b.eat("|"))return d.longString=!0,d.tokenize=m,d.tokenize(b,d);if(g==="("&&b.match(/^\*(?!\))/))return d.commentLevel++,d.tokenize=T,d.tokenize(b,d);if(g==="~"||g==="?")return b.eatWhile(/\w/),"variable-2";if(g==="`")return b.eatWhile(/\w/),"quote";if(g==="/"&&z.slashComments&&b.eat("/"))return b.skipToEnd(),"comment";if(/\d/.test(g))return g==="0"&&b.eat(/[bB]/)&&b.eatWhile(/[01]/),g==="0"&&b.eat(/[xX]/)&&b.eatWhile(/[0-9a-fA-F]/),g==="0"&&b.eat(/[oO]/)?b.eatWhile(/[0-7]/):(b.eatWhile(/[\d_]/),b.eat(".")&&b.eatWhile(/[\d]/),b.eat(/[eE]/)&&b.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(g))return"operator";if(/[\w\xa1-\uffff]/.test(g)){b.eatWhile(/[\w\xa1-\uffff]/);var k=b.current();return O.hasOwnProperty(k)?O[k]:"variable"}return null}function L(b,d){for(var g,k=!1,y=!1;(g=b.next())!=null;){if(g==='"'&&!y){k=!0;break}y=!y&&g==="\\"}return k&&!y&&(d.tokenize=w),"string"}function T(b,d){for(var g,k;d.commentLevel>0&&(k=b.next())!=null;)g==="("&&k==="*"&&d.commentLevel++,g==="*"&&k===")"&&d.commentLevel--,g=k;return d.commentLevel<=0&&(d.tokenize=w),"comment"}function m(b,d){for(var g,k;d.longString&&(k=b.next())!=null;)g==="|"&&k==="}"&&(d.longString=!1),g=k;return d.longString||(d.tokenize=w),"string"}return{startState:function(){return{tokenize:w,commentLevel:0,longString:!1}},token:function(b,d){return b.eatSpace()?null:d.tokenize(b,d)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:z.slashComments?"//":null}}),u.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),u.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),u.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})});var ps=qe((fs,ds)=>{(function(u){typeof fs=="object"&&typeof ds=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("nginx",function(P){function z(d){for(var g={},k=d.split(" "),y=0;y<k.length;++y)g[k[y]]=!0;return g}var O=z("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),S=z("http mail events server types location upstream charset_map limit_except if geo map"),A=z("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),p=P.indentUnit,D;function w(d,g){return D=g,d}function L(d,g){d.eatWhile(/[\w\$_]/);var k=d.current();if(O.propertyIsEnumerable(k))return"keyword";if(S.propertyIsEnumerable(k))return"variable-2";if(A.propertyIsEnumerable(k))return"string-2";var y=d.next();if(y=="@")return d.eatWhile(/[\w\\\-]/),w("meta",d.current());if(y=="/"&&d.eat("*"))return g.tokenize=T,T(d,g);if(y=="<"&&d.eat("!"))return g.tokenize=m,m(d,g);if(y=="=")w(null,"compare");else return(y=="~"||y=="|")&&d.eat("=")?w(null,"compare"):y=='"'||y=="'"?(g.tokenize=b(y),g.tokenize(d,g)):y=="#"?(d.skipToEnd(),w("comment","comment")):y=="!"?(d.match(/^\s*\w*/),w("keyword","important")):/\d/.test(y)?(d.eatWhile(/[\w.%]/),w("number","unit")):/[,.+>*\/]/.test(y)?w(null,"select-op"):/[;{}:\[\]]/.test(y)?w(null,y):(d.eatWhile(/[\w\\\-]/),w("variable","variable"))}function T(d,g){for(var k=!1,y;(y=d.next())!=null;){if(k&&y=="/"){g.tokenize=L;break}k=y=="*"}return w("comment","comment")}function m(d,g){for(var k=0,y;(y=d.next())!=null;){if(k>=2&&y==">"){g.tokenize=L;break}k=y=="-"?k+1:0}return w("comment","comment")}function b(d){return function(g,k){for(var y=!1,U;(U=g.next())!=null&&!(U==d&&!y);)y=!y&&U=="\\";return y||(k.tokenize=L),w("string","string")}}return{startState:function(d){return{tokenize:L,baseIndent:d||0,stack:[]}},token:function(d,g){if(d.eatSpace())return null;D=null;var k=g.tokenize(d,g),y=g.stack[g.stack.length-1];return D=="hash"&&y=="rule"?k="atom":k=="variable"&&(y=="rule"?k="number":(!y||y=="@media{")&&(k="tag")),y=="rule"&&/^[\{\};]$/.test(D)&&g.stack.pop(),D=="{"?y=="@media"?g.stack[g.stack.length-1]="@media{":g.stack.push("{"):D=="}"?g.stack.pop():D=="@media"?g.stack.push("@media"):y=="{"&&D!="comment"&&g.stack.push("rule"),k},indent:function(d,g){var k=d.stack.length;return/^\}/.test(g)&&(k-=d.stack[d.stack.length-1]=="rule"?2:1),d.baseIndent+k*p},electricChars:"}"}}),u.defineMIME("text/x-nginx-conf","nginx")})});var gs=qe((hs,ms)=>{(function(u){typeof hs=="object"&&typeof ms=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("octave",function(){function P(g){return new RegExp("^(("+g.join(")|(")+"))\\b")}var z=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),O=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),S=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),A=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),p=new RegExp("^((>>=)|(<<=))"),D=new RegExp("^[\\]\\)]"),w=new RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*"),L=P(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),T=P(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function m(g,k){return!g.sol()&&g.peek()==="'"?(g.next(),k.tokenize=d,"operator"):(k.tokenize=d,d(g,k))}function b(g,k){return g.match(/^.*%}/)?(k.tokenize=d,"comment"):(g.skipToEnd(),"comment")}function d(g,k){if(g.eatSpace())return null;if(g.match("%{"))return k.tokenize=b,g.skipToEnd(),"comment";if(g.match(/^[%#]/))return g.skipToEnd(),"comment";if(g.match(/^[0-9\.+-]/,!1)){if(g.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return g.tokenize=d,"number";if(g.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)||g.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(g.match(P(["nan","NaN","inf","Inf"])))return"number";var y=g.match(/^"(?:[^"]|"")*("|$)/)||g.match(/^'(?:[^']|'')*('|$)/);return y?y[1]?"string":"string error":g.match(T)?"keyword":g.match(L)?"builtin":g.match(w)?"variable":g.match(z)||g.match(S)?"operator":g.match(O)||g.match(A)||g.match(p)?null:g.match(D)?(k.tokenize=m,null):(g.next(),"error")}return{startState:function(){return{tokenize:d}},token:function(g,k){var y=k.tokenize(g,k);return(y==="number"||y==="variable")&&(k.tokenize=m),y},lineComment:"%",fold:"indent"}}),u.defineMIME("text/x-octave","octave")})});var bs=qe((vs,ys)=>{(function(u){typeof vs=="object"&&typeof ys=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("perl",function(){var A={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},p="string-2",D=/[goseximacplud]/;function w(m,b,d,g,k){return b.chain=null,b.style=null,b.tail=null,b.tokenize=function(y,U){for(var _=!1,W,Z=0;W=y.next();){if(W===d[Z]&&!_)return d[++Z]!==void 0?(U.chain=d[Z],U.style=g,U.tail=k):k&&y.eatWhile(k),U.tokenize=T,g;_=!_&&W=="\\"}return g},b.tokenize(m,b)}function L(m,b,d){return b.tokenize=function(g,k){return g.string==d&&(k.tokenize=T),g.skipToEnd(),"string"},b.tokenize(m,b)}function T(m,b){if(m.eatSpace())return null;if(b.chain)return w(m,b,b.chain,b.style,b.tail);if(m.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(m.match(/^<<(?=[_a-zA-Z])/))return m.eatWhile(/\w/),L(m,b,m.current().substr(2));if(m.sol()&&m.match(/^\=item(?!\w)/))return L(m,b,"=cut");var d=m.next();if(d=='"'||d=="'"){if(z(m,3)=="<<"+d){var g=m.pos;m.eatWhile(/\w/);var k=m.current().substr(1);if(k&&m.eat(d))return L(m,b,k);m.pos=g}return w(m,b,[d],"string")}if(d=="q"){var y=P(m,-2);if(!(y&&/\w/.test(y))){if(y=P(m,0),y=="x"){if(y=P(m,1),y=="(")return S(m,2),w(m,b,[")"],p,D);if(y=="[")return S(m,2),w(m,b,["]"],p,D);if(y=="{")return S(m,2),w(m,b,["}"],p,D);if(y=="<")return S(m,2),w(m,b,[">"],p,D);if(/[\^'"!~\/]/.test(y))return S(m,1),w(m,b,[m.eat(y)],p,D)}else if(y=="q"){if(y=P(m,1),y=="(")return S(m,2),w(m,b,[")"],"string");if(y=="[")return S(m,2),w(m,b,["]"],"string");if(y=="{")return S(m,2),w(m,b,["}"],"string");if(y=="<")return S(m,2),w(m,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return S(m,1),w(m,b,[m.eat(y)],"string")}else if(y=="w"){if(y=P(m,1),y=="(")return S(m,2),w(m,b,[")"],"bracket");if(y=="[")return S(m,2),w(m,b,["]"],"bracket");if(y=="{")return S(m,2),w(m,b,["}"],"bracket");if(y=="<")return S(m,2),w(m,b,[">"],"bracket");if(/[\^'"!~\/]/.test(y))return S(m,1),w(m,b,[m.eat(y)],"bracket")}else if(y=="r"){if(y=P(m,1),y=="(")return S(m,2),w(m,b,[")"],p,D);if(y=="[")return S(m,2),w(m,b,["]"],p,D);if(y=="{")return S(m,2),w(m,b,["}"],p,D);if(y=="<")return S(m,2),w(m,b,[">"],p,D);if(/[\^'"!~\/]/.test(y))return S(m,1),w(m,b,[m.eat(y)],p,D)}else if(/[\^'"!~\/(\[{<]/.test(y)){if(y=="(")return S(m,1),w(m,b,[")"],"string");if(y=="[")return S(m,1),w(m,b,["]"],"string");if(y=="{")return S(m,1),w(m,b,["}"],"string");if(y=="<")return S(m,1),w(m,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return w(m,b,[m.eat(y)],"string")}}}if(d=="m"){var y=P(m,-2);if(!(y&&/\w/.test(y))&&(y=m.eat(/[(\[{<\^'"!~\/]/),y)){if(/[\^'"!~\/]/.test(y))return w(m,b,[y],p,D);if(y=="(")return w(m,b,[")"],p,D);if(y=="[")return w(m,b,["]"],p,D);if(y=="{")return w(m,b,["}"],p,D);if(y=="<")return w(m,b,[">"],p,D)}}if(d=="s"){var y=/[\/>\]})\w]/.test(P(m,-2));if(!y&&(y=m.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?w(m,b,["]","]"],p,D):y=="{"?w(m,b,["}","}"],p,D):y=="<"?w(m,b,[">",">"],p,D):y=="("?w(m,b,[")",")"],p,D):w(m,b,[y,y],p,D)}if(d=="y"){var y=/[\/>\]})\w]/.test(P(m,-2));if(!y&&(y=m.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?w(m,b,["]","]"],p,D):y=="{"?w(m,b,["}","}"],p,D):y=="<"?w(m,b,[">",">"],p,D):y=="("?w(m,b,[")",")"],p,D):w(m,b,[y,y],p,D)}if(d=="t"){var y=/[\/>\]})\w]/.test(P(m,-2));if(!y&&(y=m.eat("r"),y&&(y=m.eat(/[(\[{<\^'"!~\/]/),y)))return y=="["?w(m,b,["]","]"],p,D):y=="{"?w(m,b,["}","}"],p,D):y=="<"?w(m,b,[">",">"],p,D):y=="("?w(m,b,[")",")"],p,D):w(m,b,[y,y],p,D)}if(d=="`")return w(m,b,[d],"variable-2");if(d=="/")return/~\s*$/.test(z(m))?w(m,b,[d],p,D):"operator";if(d=="$"){var g=m.pos;if(m.eatWhile(/\d/)||m.eat("{")&&m.eatWhile(/\d/)&&m.eat("}"))return"variable-2";m.pos=g}if(/[$@%]/.test(d)){var g=m.pos;if(m.eat("^")&&m.eat(/[A-Z]/)||!/[@$%&]/.test(P(m,-2))&&m.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var y=m.current();if(A[y])return"variable-2"}m.pos=g}if(/[$@%&]/.test(d)&&(m.eatWhile(/[\w$]/)||m.eat("{")&&m.eatWhile(/[\w$]/)&&m.eat("}"))){var y=m.current();return A[y]?"variable-2":"variable"}if(d=="#"&&P(m,-2)!="$")return m.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){var g=m.pos;if(m.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),A[m.current()])return"operator";m.pos=g}if(d=="_"&&m.pos==1){if(O(m,6)=="_END__")return w(m,b,["\0"],"comment");if(O(m,7)=="_DATA__")return w(m,b,["\0"],"variable-2");if(O(m,7)=="_C__")return w(m,b,["\0"],"string")}if(/\w/.test(d)){var g=m.pos;if(P(m,-2)=="{"&&(P(m,0)=="}"||m.eatWhile(/\w/)&&P(m,0)=="}"))return"string";m.pos=g}if(/[A-Z]/.test(d)){var U=P(m,-2),g=m.pos;if(m.eatWhile(/[A-Z_]/),/[\da-z]/.test(P(m,0)))m.pos=g;else{var y=A[m.current()];return y?(y[1]&&(y=y[0]),U!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(d)){var U=P(m,-2);m.eatWhile(/\w/);var y=A[m.current()];return y?(y[1]&&(y=y[0]),U!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:T,chain:null,style:null,tail:null}},token:function(m,b){return(b.tokenize||T)(m,b)},lineComment:"#"}}),u.registerHelper("wordChars","perl",/[\w$]/),u.defineMIME("text/x-perl","perl");function P(A,p){return A.string.charAt(A.pos+(p||0))}function z(A,p){if(p){var D=A.pos-p;return A.string.substr(D>=0?D:0,p)}else return A.string.substr(0,A.pos-1)}function O(A,p){var D=A.string.length,w=D-A.pos+1;return A.string.substr(A.pos,p&&p<D?p:w)}function S(A,p){var D=A.pos+p,w;D<=0?A.pos=0:D>=(w=A.string.length-1)?A.pos=w:A.pos=D}})});var ks=qe((xs,_s)=>{(function(u){typeof xs=="object"&&typeof _s=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("pascal",function(){function P(L){for(var T={},m=L.split(" "),b=0;b<m.length;++b)T[m[b]]=!0;return T}var z=P("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),O={null:!0},S=/[+\-*&%=<>!?|\/]/;function A(L,T){var m=L.next();if(m=="#"&&T.startOfLine)return L.skipToEnd(),"meta";if(m=='"'||m=="'")return T.tokenize=p(m),T.tokenize(L,T);if(m=="("&&L.eat("*"))return T.tokenize=D,D(L,T);if(m=="{")return T.tokenize=w,w(L,T);if(/[\[\]\(\),;\:\.]/.test(m))return null;if(/\d/.test(m))return L.eatWhile(/[\w\.]/),"number";if(m=="/"&&L.eat("/"))return L.skipToEnd(),"comment";if(S.test(m))return L.eatWhile(S),"operator";L.eatWhile(/[\w\$_]/);var b=L.current();return z.propertyIsEnumerable(b)?"keyword":O.propertyIsEnumerable(b)?"atom":"variable"}function p(L){return function(T,m){for(var b=!1,d,g=!1;(d=T.next())!=null;){if(d==L&&!b){g=!0;break}b=!b&&d=="\\"}return(g||!b)&&(m.tokenize=null),"string"}}function D(L,T){for(var m=!1,b;b=L.next();){if(b==")"&&m){T.tokenize=null;break}m=b=="*"}return"comment"}function w(L,T){for(var m;m=L.next();)if(m=="}"){T.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(L,T){if(L.eatSpace())return null;var m=(T.tokenize||A)(L,T);return m=="comment"||m=="meta",m},electricChars:"{}"}}),u.defineMIME("text/x-pascal","pascal")})});var Ts=qe((ws,Ss)=>{(function(u){typeof ws=="object"&&typeof Ss=="object"?u(Oe(),ko(),bi()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],u):u(CodeMirror)})(function(u){"use strict";function P(L){for(var T={},m=L.split(" "),b=0;b<m.length;++b)T[m[b]]=!0;return T}function z(L,T,m){return L.length==0?O(T):function(b,d){for(var g=L[0],k=0;k<g.length;k++)if(b.match(g[k][0]))return d.tokenize=z(L.slice(1),T),g[k][1];return d.tokenize=O(T,m),"string"}}function O(L,T){return function(m,b){return S(m,b,L,T)}}function S(L,T,m,b){if(b!==!1&&L.match("${",!1)||L.match("{$",!1))return T.tokenize=null,"string";if(b!==!1&&L.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return L.match("[",!1)&&(T.tokenize=z([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],m,b)),L.match(/^->\w/,!1)&&(T.tokenize=z([[["->",null]],[[/[\w]+/,"variable"]]],m,b)),"variable-2";for(var d=!1;!L.eol()&&(d||b===!1||!L.match("{$",!1)&&!L.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!d&&L.match(m)){T.tokenize=null,T.tokStack.pop(),T.tokStack.pop();break}d=L.next()=="\\"&&!d}return"string"}var A="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",p="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",D="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";u.registerHelper("hintWords","php",[A,p,D].join(" ").split(" ")),u.registerHelper("wordChars","php",/[\w$]/);var w={name:"clike",helperType:"php",keywords:P(A),blockKeywords:P("catch do else elseif for foreach if switch try while finally"),defKeywords:P("class enum function interface namespace trait"),atoms:P(p),builtin:P(D),multiLineStrings:!0,hooks:{$:function(L){return L.eatWhile(/[\w\$_]/),"variable-2"},"<":function(L,T){var m;if(m=L.match(/^<<\s*/)){var b=L.eat(/['"]/);L.eatWhile(/[\w\.]/);var d=L.current().slice(m[0].length+(b?2:1));if(b&&L.eat(b),d)return(T.tokStack||(T.tokStack=[])).push(d,0),T.tokenize=O(d,b!="'"),"string"}return!1},"#":function(L){for(;!L.eol()&&!L.match("?>",!1);)L.next();return"comment"},"/":function(L){if(L.eat("/")){for(;!L.eol()&&!L.match("?>",!1);)L.next();return"comment"}return!1},'"':function(L,T){return(T.tokStack||(T.tokStack=[])).push('"',0),T.tokenize=O('"'),"string"},"{":function(L,T){return T.tokStack&&T.tokStack.length&&T.tokStack[T.tokStack.length-1]++,!1},"}":function(L,T){return T.tokStack&&T.tokStack.length>0&&!--T.tokStack[T.tokStack.length-1]&&(T.tokenize=O(T.tokStack[T.tokStack.length-2])),!1}}};u.defineMode("php",function(L,T){var m=u.getMode(L,T&&T.htmlMode||"text/html"),b=u.getMode(L,w);function d(g,k){var y=k.curMode==b;if(g.sol()&&k.pending&&k.pending!='"'&&k.pending!="'"&&(k.pending=null),y)return y&&k.php.tokenize==null&&g.match("?>")?(k.curMode=m,k.curState=k.html,k.php.context.prev||(k.php=null),"meta"):b.token(g,k.curState);if(g.match(/^<\?\w*/))return k.curMode=b,k.php||(k.php=u.startState(b,m.indent(k.html,"",""))),k.curState=k.php,"meta";if(k.pending=='"'||k.pending=="'"){for(;!g.eol()&&g.next()!=k.pending;);var U="string"}else if(k.pending&&g.pos<k.pending.end){g.pos=k.pending.end;var U=k.pending.style}else var U=m.token(g,k.curState);k.pending&&(k.pending=null);var _=g.current(),W=_.search(/<\?/),Z;return W!=-1&&(U=="string"&&(Z=_.match(/[\'\"]$/))&&!/\?>/.test(_)?k.pending=Z[0]:k.pending={end:g.pos,style:U},g.backUp(_.length-W)),U}return{startState:function(){var g=u.startState(m),k=T.startOpen?u.startState(b):null;return{html:g,php:k,curMode:T.startOpen?b:m,curState:T.startOpen?k:g,pending:null}},copyState:function(g){var k=g.html,y=u.copyState(m,k),U=g.php,_=U&&u.copyState(b,U),W;return g.curMode==m?W=y:W=_,{html:y,php:_,curMode:g.curMode,curState:W,pending:g.pending}},token:d,indent:function(g,k,y){return g.curMode!=b&&/^\s*<\//.test(k)||g.curMode==b&&/^\?>/.test(k)?m.indent(g.html,k,y):g.curMode.indent(g.curState,k,y)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(g){return{state:g.curState,mode:g.curMode}}}},"htmlmixed","clike"),u.defineMIME("application/x-httpd-php","php"),u.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),u.defineMIME("text/x-php",w)})});var Ls=qe((Cs,Es)=>{(function(u){"use strict";typeof Cs=="object"&&typeof Es=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(window.CodeMirror)})(function(u){"use strict";u.defineMode("powershell",function(){function P(I,c){c=c||{};for(var B=c.prefix!==void 0?c.prefix:"^",$=c.suffix!==void 0?c.suffix:"\\b",M=0;M<I.length;M++)I[M]instanceof RegExp?I[M]=I[M].source:I[M]=I[M].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(B+"("+I.join("|")+")"+$,"i")}var z="(?=[^A-Za-z\\d\\-_]|$)",O=/[\w\-:]/,S=P([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:z}),A=/[\[\]{},;`\\\.]|@[({]/,p=P(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),D=/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/,w=P([p,D],{suffix:""}),L=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,T=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,m=/[A-Z]:|%|\?/i,b=P([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),d=P([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),g=P([m,b,d],{suffix:z}),k={keyword:S,number:L,operator:w,builtin:g,punctuation:A,identifier:T};function y(I,c){var B=c.returnStack[c.returnStack.length-1];if(B&&B.shouldReturnFrom(c))return c.tokenize=B.tokenize,c.returnStack.pop(),c.tokenize(I,c);if(I.eatSpace())return null;if(I.eat("("))return c.bracketNesting+=1,"punctuation";if(I.eat(")"))return c.bracketNesting-=1,"punctuation";for(var $ in k)if(I.match(k[$]))return $;var M=I.next();if(M==="'")return U(I,c);if(M==="$")return j(I,c);if(M==='"')return _(I,c);if(M==="<"&&I.eat("#"))return c.tokenize=Q,Q(I,c);if(M==="#")return I.skipToEnd(),"comment";if(M==="@"){var C=I.eat(/["']/);if(C&&I.eol())return c.tokenize=G,c.startQuote=C[0],G(I,c);if(I.eol())return"error";if(I.peek().match(/[({]/))return"punctuation";if(I.peek().match(O))return j(I,c)}return"error"}function U(I,c){for(var B;(B=I.peek())!=null;)if(I.next(),B==="'"&&!I.eat("'"))return c.tokenize=y,"string";return"error"}function _(I,c){for(var B;(B=I.peek())!=null;){if(B==="$")return c.tokenize=W,"string";if(I.next(),B==="`"){I.next();continue}if(B==='"'&&!I.eat('"'))return c.tokenize=y,"string"}return"error"}function W(I,c){return oe(I,c,_)}function Z(I,c){return c.tokenize=G,c.startQuote='"',G(I,c)}function ee(I,c){return oe(I,c,Z)}function oe(I,c,B){if(I.match("$(")){var $=c.bracketNesting;return c.returnStack.push({shouldReturnFrom:function(M){return M.bracketNesting===$},tokenize:B}),c.tokenize=y,c.bracketNesting+=1,"punctuation"}else return I.next(),c.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:B}),c.tokenize=j,c.tokenize(I,c)}function Q(I,c){for(var B=!1,$;($=I.next())!=null;){if(B&&$==">"){c.tokenize=y;break}B=$==="#"}return"comment"}function j(I,c){var B=I.peek();return I.eat("{")?(c.tokenize=N,N(I,c)):B!=null&&B.match(O)?(I.eatWhile(O),c.tokenize=y,"variable-2"):(c.tokenize=y,"error")}function N(I,c){for(var B;(B=I.next())!=null;)if(B==="}"){c.tokenize=y;break}return"variable-2"}function G(I,c){var B=c.startQuote;if(I.sol()&&I.match(new RegExp(B+"@")))c.tokenize=y;else if(B==='"')for(;!I.eol();){var $=I.peek();if($==="$")return c.tokenize=ee,"string";I.next(),$==="`"&&I.next()}else I.skipToEnd();return"string"}var R={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:y}},token:function(I,c){return c.tokenize(I,c)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return R}),u.defineMIME("application/x-powershell","powershell")})});var As=qe((zs,Ms)=>{(function(u){typeof zs=="object"&&typeof Ms=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("properties",function(){return{token:function(P,z){var O=P.sol()||z.afterSection,S=P.eol();if(z.afterSection=!1,O&&(z.nextMultiline?(z.inMultiline=!0,z.nextMultiline=!1):z.position="def"),S&&!z.nextMultiline&&(z.inMultiline=!1,z.position="def"),O)for(;P.eatSpace(););var A=P.next();return O&&(A==="#"||A==="!"||A===";")?(z.position="comment",P.skipToEnd(),"comment"):O&&A==="["?(z.afterSection=!0,P.skipTo("]"),P.eat("]"),"header"):A==="="||A===":"?(z.position="quote",null):(A==="\\"&&z.position==="quote"&&P.eol()&&(z.nextMultiline=!0),z.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),u.defineMIME("text/x-properties","properties"),u.defineMIME("text/x-ini","properties")})});var Is=qe((Ds,Fs)=>{(function(u){typeof Ds=="object"&&typeof Fs=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";function P(D){return new RegExp("^(("+D.join(")|(")+"))\\b")}var z=P(["and","or","not","is"]),O=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],S=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];u.registerHelper("hintWords","python",O.concat(S).concat(["exec","print"]));function A(D){return D.scopes[D.scopes.length-1]}u.defineMode("python",function(D,w){for(var L="error",T=w.delimiters||w.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,m=[w.singleOperators,w.doubleOperators,w.doubleDelimiters,w.tripleDelimiters,w.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],b=0;b<m.length;b++)m[b]||m.splice(b--,1);var d=w.hangingIndent||D.indentUnit,g=O,k=S;w.extra_keywords!=null&&(g=g.concat(w.extra_keywords)),w.extra_builtins!=null&&(k=k.concat(w.extra_builtins));var y=!(w.version&&Number(w.version)<3);if(y){var U=w.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;g=g.concat(["nonlocal","False","True","None","async","await"]),k=k.concat(["ascii","bytes","exec","print"]);var _=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var U=w.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;g=g.concat(["exec","print"]),k=k.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var _=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var W=P(g),Z=P(k);function ee(B,$){var M=B.sol()&&$.lastToken!="\\";if(M&&($.indent=B.indentation()),M&&A($).type=="py"){var C=A($).offset;if(B.eatSpace()){var V=B.indentation();return V>C?N($):V<C&&R(B,$)&&B.peek()!="#"&&($.errorToken=!0),null}else{var Y=oe(B,$);return C>0&&R(B,$)&&(Y+=" "+L),Y}}return oe(B,$)}function oe(B,$,M){if(B.eatSpace())return null;if(!M&&B.match(/^#.*/))return"comment";if(B.match(/^[0-9\.]/,!1)){var C=!1;if(B.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(C=!0),B.match(/^[\d_]+\.\d*/)&&(C=!0),B.match(/^\.\d+/)&&(C=!0),C)return B.eat(/J/i),"number";var V=!1;if(B.match(/^0x[0-9a-f_]+/i)&&(V=!0),B.match(/^0b[01_]+/i)&&(V=!0),B.match(/^0o[0-7_]+/i)&&(V=!0),B.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(B.eat(/J/i),V=!0),B.match(/^0(?![\dx])/i)&&(V=!0),V)return B.eat(/L/i),"number"}if(B.match(_)){var Y=B.current().toLowerCase().indexOf("f")!==-1;return Y?($.tokenize=Q(B.current(),$.tokenize),$.tokenize(B,$)):($.tokenize=j(B.current(),$.tokenize),$.tokenize(B,$))}for(var x=0;x<m.length;x++)if(B.match(m[x]))return"operator";return B.match(T)?"punctuation":$.lastToken=="."&&B.match(U)?"property":B.match(W)||B.match(z)?"keyword":B.match(Z)?"builtin":B.match(/^(self|cls)\b/)?"variable-2":B.match(U)?$.lastToken=="def"||$.lastToken=="class"?"def":"variable":(B.next(),M?null:L)}function Q(B,$){for(;"rubf".indexOf(B.charAt(0).toLowerCase())>=0;)B=B.substr(1);var M=B.length==1,C="string";function V(x){return function(h,se){var _e=oe(h,se,!0);return _e=="punctuation"&&(h.current()=="{"?se.tokenize=V(x+1):h.current()=="}"&&(x>1?se.tokenize=V(x-1):se.tokenize=Y)),_e}}function Y(x,h){for(;!x.eol();)if(x.eatWhile(/[^'"\{\}\\]/),x.eat("\\")){if(x.next(),M&&x.eol())return C}else{if(x.match(B))return h.tokenize=$,C;if(x.match("{{"))return C;if(x.match("{",!1))return h.tokenize=V(0),x.current()?C:h.tokenize(x,h);if(x.match("}}"))return C;if(x.match("}"))return L;x.eat(/['"]/)}if(M){if(w.singleLineStringErrors)return L;h.tokenize=$}return C}return Y.isString=!0,Y}function j(B,$){for(;"rubf".indexOf(B.charAt(0).toLowerCase())>=0;)B=B.substr(1);var M=B.length==1,C="string";function V(Y,x){for(;!Y.eol();)if(Y.eatWhile(/[^'"\\]/),Y.eat("\\")){if(Y.next(),M&&Y.eol())return C}else{if(Y.match(B))return x.tokenize=$,C;Y.eat(/['"]/)}if(M){if(w.singleLineStringErrors)return L;x.tokenize=$}return C}return V.isString=!0,V}function N(B){for(;A(B).type!="py";)B.scopes.pop();B.scopes.push({offset:A(B).offset+D.indentUnit,type:"py",align:null})}function G(B,$,M){var C=B.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:B.column()+1;$.scopes.push({offset:$.indent+d,type:M,align:C})}function R(B,$){for(var M=B.indentation();$.scopes.length>1&&A($).offset>M;){if(A($).type!="py")return!0;$.scopes.pop()}return A($).offset!=M}function I(B,$){B.sol()&&($.beginningOfLine=!0,$.dedent=!1);var M=$.tokenize(B,$),C=B.current();if($.beginningOfLine&&C=="@")return B.match(U,!1)?"meta":y?"operator":L;if(/\S/.test(C)&&($.beginningOfLine=!1),(M=="variable"||M=="builtin")&&$.lastToken=="meta"&&(M="meta"),(C=="pass"||C=="return")&&($.dedent=!0),C=="lambda"&&($.lambda=!0),C==":"&&!$.lambda&&A($).type=="py"&&B.match(/^\s*(?:#|$)/,!1)&&N($),C.length==1&&!/string|comment/.test(M)){var V="[({".indexOf(C);if(V!=-1&&G(B,$,"])}".slice(V,V+1)),V="])}".indexOf(C),V!=-1)if(A($).type==C)$.indent=$.scopes.pop().offset-d;else return L}return $.dedent&&B.eol()&&A($).type=="py"&&$.scopes.length>1&&$.scopes.pop(),M}var c={startState:function(B){return{tokenize:ee,scopes:[{offset:B||0,type:"py",align:null}],indent:B||0,lastToken:null,lambda:!1,dedent:0}},token:function(B,$){var M=$.errorToken;M&&($.errorToken=!1);var C=I(B,$);return C&&C!="comment"&&($.lastToken=C=="keyword"||C=="punctuation"?B.current():C),C=="punctuation"&&(C=null),B.eol()&&$.lambda&&($.lambda=!1),M?C+" "+L:C},indent:function(B,$){if(B.tokenize!=ee)return B.tokenize.isString?u.Pass:0;var M=A(B),C=M.type==$.charAt(0)||M.type=="py"&&!B.dedent&&/^(else:|elif |except |finally:)/.test($);return M.align!=null?M.align-(C?1:0):M.offset-(C?d:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),u.defineMIME("text/x-python","python");var p=function(D){return D.split(" ")};u.defineMIME("text/x-cython",{name:"python",extra_keywords:p("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var Ns=qe((qs,Os)=>{(function(u){typeof qs=="object"&&typeof Os=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";function P(w){for(var L={},T=0,m=w.length;T<m;++T)L[w[T]]=!0;return L}var z=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],O=P(z),S=P(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),A=P(["end","until"]),p={"[":"]","{":"}","(":")"},D={"]":"[","}":"{",")":"("};u.defineMode("ruby",function(w){var L;function T(_,W,Z){return Z.tokenize.push(_),_(W,Z)}function m(_,W){if(_.sol()&&_.match("=begin")&&_.eol())return W.tokenize.push(U),"comment";if(_.eatSpace())return null;var Z=_.next(),ee;if(Z=="`"||Z=="'"||Z=='"')return T(k(Z,"string",Z=='"'||Z=="`"),_,W);if(Z=="/")return b(_)?T(k(Z,"string-2",!0),_,W):"operator";if(Z=="%"){var oe="string",Q=!0;_.eat("s")?oe="atom":_.eat(/[WQ]/)?oe="string":_.eat(/[r]/)?oe="string-2":_.eat(/[wxq]/)&&(oe="string",Q=!1);var j=_.eat(/[^\w\s=]/);return j?(p.propertyIsEnumerable(j)&&(j=p[j]),T(k(j,oe,Q,!0),_,W)):"operator"}else{if(Z=="#")return _.skipToEnd(),"comment";if(Z=="<"&&(ee=_.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return T(y(ee[2],ee[1]),_,W);if(Z=="0")return _.eat("x")?_.eatWhile(/[\da-fA-F]/):_.eat("b")?_.eatWhile(/[01]/):_.eatWhile(/[0-7]/),"number";if(/\d/.test(Z))return _.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(Z=="?"){for(;_.match(/^\\[CM]-/););return _.eat("\\")?_.eatWhile(/\w/):_.next(),"string"}else{if(Z==":")return _.eat("'")?T(k("'","atom",!1),_,W):_.eat('"')?T(k('"',"atom",!0),_,W):_.eat(/[\<\>]/)?(_.eat(/[\<\>]/),"atom"):_.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":_.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(_.eatWhile(/[\w$\xa1-\uffff]/),_.eat(/[\?\!\=]/),"atom"):"operator";if(Z=="@"&&_.match(/^@?[a-zA-Z_\xa1-\uffff]/))return _.eat("@"),_.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(Z=="$")return _.eat(/[a-zA-Z_]/)?_.eatWhile(/[\w]/):_.eat(/\d/)?_.eat(/\d/):_.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(Z))return _.eatWhile(/[\w\xa1-\uffff]/),_.eat(/[\?\!]/),_.eat(":")?"atom":"ident";if(Z=="|"&&(W.varList||W.lastTok=="{"||W.lastTok=="do"))return L="|",null;if(/[\(\)\[\]{}\\;]/.test(Z))return L=Z,null;if(Z=="-"&&_.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(Z)){var N=_.eatWhile(/[=+\-\/*:\.^%<>~|]/);return Z=="."&&!N&&(L="."),"operator"}else return null}}}function b(_){for(var W=_.pos,Z=0,ee,oe=!1,Q=!1;(ee=_.next())!=null;)if(Q)Q=!1;else{if("[{(".indexOf(ee)>-1)Z++;else if("]})".indexOf(ee)>-1){if(Z--,Z<0)break}else if(ee=="/"&&Z==0){oe=!0;break}Q=ee=="\\"}return _.backUp(_.pos-W),oe}function d(_){return _||(_=1),function(W,Z){if(W.peek()=="}"){if(_==1)return Z.tokenize.pop(),Z.tokenize[Z.tokenize.length-1](W,Z);Z.tokenize[Z.tokenize.length-1]=d(_-1)}else W.peek()=="{"&&(Z.tokenize[Z.tokenize.length-1]=d(_+1));return m(W,Z)}}function g(){var _=!1;return function(W,Z){return _?(Z.tokenize.pop(),Z.tokenize[Z.tokenize.length-1](W,Z)):(_=!0,m(W,Z))}}function k(_,W,Z,ee){return function(oe,Q){var j=!1,N;for(Q.context.type==="read-quoted-paused"&&(Q.context=Q.context.prev,oe.eat("}"));(N=oe.next())!=null;){if(N==_&&(ee||!j)){Q.tokenize.pop();break}if(Z&&N=="#"&&!j){if(oe.eat("{")){_=="}"&&(Q.context={prev:Q.context,type:"read-quoted-paused"}),Q.tokenize.push(d());break}else if(/[@\$]/.test(oe.peek())){Q.tokenize.push(g());break}}j=!j&&N=="\\"}return W}}function y(_,W){return function(Z,ee){return W&&Z.eatSpace(),Z.match(_)?ee.tokenize.pop():Z.skipToEnd(),"string"}}function U(_,W){return _.sol()&&_.match("=end")&&_.eol()&&W.tokenize.pop(),_.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[m],indented:0,context:{type:"top",indented:-w.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(_,W){L=null,_.sol()&&(W.indented=_.indentation());var Z=W.tokenize[W.tokenize.length-1](_,W),ee,oe=L;if(Z=="ident"){var Q=_.current();Z=W.lastTok=="."?"property":O.propertyIsEnumerable(_.current())?"keyword":/^[A-Z]/.test(Q)?"tag":W.lastTok=="def"||W.lastTok=="class"||W.varList?"def":"variable",Z=="keyword"&&(oe=Q,S.propertyIsEnumerable(Q)?ee="indent":A.propertyIsEnumerable(Q)?ee="dedent":((Q=="if"||Q=="unless")&&_.column()==_.indentation()||Q=="do"&&W.context.indented<W.indented)&&(ee="indent"))}return(L||Z&&Z!="comment")&&(W.lastTok=oe),L=="|"&&(W.varList=!W.varList),ee=="indent"||/[\(\[\{]/.test(L)?W.context={prev:W.context,type:L||Z,indented:W.indented}:(ee=="dedent"||/[\)\]\}]/.test(L))&&W.context.prev&&(W.context=W.context.prev),_.eol()&&(W.continuedLine=L=="\\"||Z=="operator"),Z},indent:function(_,W){if(_.tokenize[_.tokenize.length-1]!=m)return u.Pass;var Z=W&&W.charAt(0),ee=_.context,oe=ee.type==D[Z]||ee.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(W);return ee.indented+(oe?0:w.indentUnit)+(_.continuedLine?w.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),u.defineMIME("text/x-ruby","ruby"),u.registerHelper("hintWords","ruby",z)})});var Ws=qe((Ps,Rs)=>{(function(u){typeof Ps=="object"&&typeof Rs=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineSimpleMode=function(T,m){u.defineMode(T,function(b){return u.simpleMode(b,m)})},u.simpleMode=function(T,m){P(m,"start");var b={},d=m.meta||{},g=!1;for(var k in m)if(k!=d&&m.hasOwnProperty(k))for(var y=b[k]=[],U=m[k],_=0;_<U.length;_++){var W=U[_];y.push(new S(W,m)),(W.indent||W.dedent)&&(g=!0)}var Z={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:g?[]:null}},copyState:function(oe){var Q={state:oe.state,pending:oe.pending,local:oe.local,localState:null,indent:oe.indent&&oe.indent.slice(0)};oe.localState&&(Q.localState=u.copyState(oe.local.mode,oe.localState)),oe.stack&&(Q.stack=oe.stack.slice(0));for(var j=oe.persistentStates;j;j=j.next)Q.persistentStates={mode:j.mode,spec:j.spec,state:j.state==oe.localState?Q.localState:u.copyState(j.mode,j.state),next:Q.persistentStates};return Q},token:A(b,T),innerMode:function(oe){return oe.local&&{mode:oe.local.mode,state:oe.localState}},indent:L(b,d)};if(d)for(var ee in d)d.hasOwnProperty(ee)&&(Z[ee]=d[ee]);return Z};function P(T,m){if(!T.hasOwnProperty(m))throw new Error("Undefined state "+m+" in simple mode")}function z(T,m){if(!T)return/(?:)/;var b="";return T instanceof RegExp?(T.ignoreCase&&(b="i"),T.unicode&&(b+="u"),T=T.source):T=String(T),new RegExp((m===!1?"":"^")+"(?:"+T+")",b)}function O(T){if(!T)return null;if(T.apply)return T;if(typeof T=="string")return T.replace(/\./g," ");for(var m=[],b=0;b<T.length;b++)m.push(T[b]&&T[b].replace(/\./g," "));return m}function S(T,m){(T.next||T.push)&&P(m,T.next||T.push),this.regex=z(T.regex),this.token=O(T.token),this.data=T}function A(T,m){return function(b,d){if(d.pending){var g=d.pending.shift();return d.pending.length==0&&(d.pending=null),b.pos+=g.text.length,g.token}if(d.local)if(d.local.end&&b.match(d.local.end)){var k=d.local.endToken||null;return d.local=d.localState=null,k}else{var k=d.local.mode.token(b,d.localState),y;return d.local.endScan&&(y=d.local.endScan.exec(b.current()))&&(b.pos=b.start+y.index),k}for(var U=T[d.state],_=0;_<U.length;_++){var W=U[_],Z=(!W.data.sol||b.sol())&&b.match(W.regex);if(Z){W.data.next?d.state=W.data.next:W.data.push?((d.stack||(d.stack=[])).push(d.state),d.state=W.data.push):W.data.pop&&d.stack&&d.stack.length&&(d.state=d.stack.pop()),W.data.mode&&D(m,d,W.data.mode,W.token),W.data.indent&&d.indent.push(b.indentation()+m.indentUnit),W.data.dedent&&d.indent.pop();var ee=W.token;if(ee&&ee.apply&&(ee=ee(Z)),Z.length>2&&W.token&&typeof W.token!="string"){for(var oe=2;oe<Z.length;oe++)Z[oe]&&(d.pending||(d.pending=[])).push({text:Z[oe],token:W.token[oe-1]});return b.backUp(Z[0].length-(Z[1]?Z[1].length:0)),ee[0]}else return ee&&ee.join?ee[0]:ee}}return b.next(),null}}function p(T,m){if(T===m)return!0;if(!T||typeof T!="object"||!m||typeof m!="object")return!1;var b=0;for(var d in T)if(T.hasOwnProperty(d)){if(!m.hasOwnProperty(d)||!p(T[d],m[d]))return!1;b++}for(var d in m)m.hasOwnProperty(d)&&b--;return b==0}function D(T,m,b,d){var g;if(b.persistent)for(var k=m.persistentStates;k&&!g;k=k.next)(b.spec?p(b.spec,k.spec):b.mode==k.mode)&&(g=k);var y=g?g.mode:b.mode||u.getMode(T,b.spec),U=g?g.state:u.startState(y);b.persistent&&!g&&(m.persistentStates={mode:y,spec:b.spec,state:U,next:m.persistentStates}),m.localState=U,m.local={mode:y,end:b.end&&z(b.end),endScan:b.end&&b.forceEnd!==!1&&z(b.end,!1),endToken:d&&d.join?d[d.length-1]:d}}function w(T,m){for(var b=0;b<m.length;b++)if(m[b]===T)return!0}function L(T,m){return function(b,d,g){if(b.local&&b.local.mode.indent)return b.local.mode.indent(b.localState,d,g);if(b.indent==null||b.local||m.dontIndentStates&&w(b.state,m.dontIndentStates)>-1)return u.Pass;var k=b.indent.length-1,y=T[b.state];e:for(;;){for(var U=0;U<y.length;U++){var _=y[U];if(_.data.dedent&&_.data.dedentIfLineStart!==!1){var W=_.regex.exec(d);if(W&&W[0]){k--,(_.next||_.push)&&(y=T[_.next||_.push]),d=d.slice(W[0].length);continue e}}}break}return k<0?0:b.indent[k]}}})});var Hs=qe((js,Bs)=>{(function(u){typeof js=="object"&&typeof Bs=="object"?u(Oe(),Ws()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],u):u(CodeMirror)})(function(u){"use strict";u.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),u.defineMIME("text/x-rustsrc","rust"),u.defineMIME("text/rust","rust")})});var Ks=qe((Us,$s)=>{(function(u){typeof Us=="object"&&typeof $s=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("scheme",function(){var P="builtin",z="comment",O="string",S="symbol",A="atom",p="number",D="bracket",w=2;function L(j){for(var N={},G=j.split(" "),R=0;R<G.length;++R)N[G[R]]=!0;return N}var T=L("\u03BB case-lambda call/cc class cond-expand define-class define-values 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 define-macro defmacro delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t 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?"),m=L("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function b(j,N,G){this.indent=j,this.type=N,this.prev=G}function d(j,N,G){j.indentStack=new b(N,G,j.indentStack)}function g(j){j.indentStack=j.indentStack.prev}var k=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),y=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),U=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),_=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function W(j){return j.match(k)}function Z(j){return j.match(y)}function ee(j,N){return N===!0&&j.backUp(1),j.match(_)}function oe(j){return j.match(U)}function Q(j,N){for(var G,R=!1;(G=j.next())!=null;){if(G==N.token&&!R){N.state.mode=!1;break}R=!R&&G=="\\"}}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(j,N){if(N.indentStack==null&&j.sol()&&(N.indentation=j.indentation()),j.eatSpace())return null;var G=null;switch(N.mode){case"string":Q(j,{token:'"',state:N}),G=O;break;case"symbol":Q(j,{token:"|",state:N}),G=S;break;case"comment":for(var R,I=!1;(R=j.next())!=null;){if(R=="#"&&I){N.mode=!1;break}I=R=="|"}G=z;break;case"s-expr-comment":if(N.mode=!1,j.peek()=="("||j.peek()=="[")N.sExprComment=0;else{j.eatWhile(/[^\s\(\)\[\]]/),G=z;break}default:var c=j.next();if(c=='"')N.mode="string",G=O;else if(c=="'")j.peek()=="("||j.peek()=="["?(typeof N.sExprQuote!="number"&&(N.sExprQuote=0),G=A):(j.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),G=A);else if(c=="|")N.mode="symbol",G=S;else if(c=="#")if(j.eat("|"))N.mode="comment",G=z;else if(j.eat(/[tf]/i))G=A;else if(j.eat(";"))N.mode="s-expr-comment",G=z;else{var B=null,$=!1,M=!0;j.eat(/[ei]/i)?$=!0:j.backUp(1),j.match(/^#b/i)?B=W:j.match(/^#o/i)?B=Z:j.match(/^#x/i)?B=oe:j.match(/^#d/i)?B=ee:j.match(/^[-+0-9.]/,!1)?(M=!1,B=ee):$||j.eat("#"),B!=null&&(M&&!$&&j.match(/^#[ei]/i),B(j)&&(G=p))}else if(/^[-+0-9.]/.test(c)&&ee(j,!0))G=p;else if(c==";")j.skipToEnd(),G=z;else if(c=="("||c=="["){for(var C="",V=j.column(),Y;(Y=j.eat(/[^\s\(\[\;\)\]]/))!=null;)C+=Y;C.length>0&&m.propertyIsEnumerable(C)?d(N,V+w,c):(j.eatSpace(),j.eol()||j.peek()==";"?d(N,V+1,c):d(N,V+j.current().length,c)),j.backUp(j.current().length-1),typeof N.sExprComment=="number"&&N.sExprComment++,typeof N.sExprQuote=="number"&&N.sExprQuote++,G=D}else c==")"||c=="]"?(G=D,N.indentStack!=null&&N.indentStack.type==(c==")"?"(":"[")&&(g(N),typeof N.sExprComment=="number"&&--N.sExprComment==0&&(G=z,N.sExprComment=!1),typeof N.sExprQuote=="number"&&--N.sExprQuote==0&&(G=A,N.sExprQuote=!1))):(j.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),T&&T.propertyIsEnumerable(j.current())?G=P:G="variable")}return typeof N.sExprComment=="number"?z:typeof N.sExprQuote=="number"?A:G},indent:function(j){return j.indentStack==null?j.indentation:j.indentStack.indent},fold:"brace-paren",closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}}),u.defineMIME("text/x-scheme","scheme")})});var Xs=qe((Gs,Zs)=>{(function(u){typeof Gs=="object"&&typeof Zs=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("shell",function(){var P={};function z(b,d){for(var g=0;g<d.length;g++)P[d[g]]=b}var O=["true","false"],S=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],A=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];u.registerHelper("hintWords","shell",O.concat(S,A)),z("atom",O),z("keyword",S),z("builtin",A);function p(b,d){if(b.eatSpace())return null;var g=b.sol(),k=b.next();if(k==="\\")return b.next(),null;if(k==="'"||k==='"'||k==="`")return d.tokens.unshift(D(k,k==="`"?"quote":"string")),m(b,d);if(k==="#")return g&&b.eat("!")?(b.skipToEnd(),"meta"):(b.skipToEnd(),"comment");if(k==="$")return d.tokens.unshift(L),m(b,d);if(k==="+"||k==="=")return"operator";if(k==="-")return b.eat("-"),b.eatWhile(/\w/),"attribute";if(k=="<"){if(b.match("<<"))return"operator";var y=b.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(y)return d.tokens.unshift(T(y[1])),"string-2"}if(/\d/.test(k)&&(b.eatWhile(/\d/),b.eol()||!/\w/.test(b.peek())))return"number";b.eatWhile(/[\w-]/);var U=b.current();return b.peek()==="="&&/\w+/.test(U)?"def":P.hasOwnProperty(U)?P[U]:null}function D(b,d){var g=b=="("?")":b=="{"?"}":b;return function(k,y){for(var U,_=!1;(U=k.next())!=null;){if(U===g&&!_){y.tokens.shift();break}else if(U==="$"&&!_&&b!=="'"&&k.peek()!=g){_=!0,k.backUp(1),y.tokens.unshift(L);break}else{if(!_&&b!==g&&U===b)return y.tokens.unshift(D(b,d)),m(k,y);if(!_&&/['"]/.test(U)&&!/['"]/.test(b)){y.tokens.unshift(w(U,"string")),k.backUp(1);break}}_=!_&&U==="\\"}return d}}function w(b,d){return function(g,k){return k.tokens[0]=D(b,d),g.next(),m(g,k)}}var L=function(b,d){d.tokens.length>1&&b.eat("$");var g=b.next();return/['"({]/.test(g)?(d.tokens[0]=D(g,g=="("?"quote":g=="{"?"def":"string"),m(b,d)):(/\d/.test(g)||b.eatWhile(/\w/),d.tokens.shift(),"def")};function T(b){return function(d,g){return d.sol()&&d.string==b&&g.tokens.shift(),d.skipToEnd(),"string-2"}}function m(b,d){return(d.tokens[0]||p)(b,d)}return{startState:function(){return{tokens:[]}},token:function(b,d){return m(b,d)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),u.defineMIME("text/x-sh","shell"),u.defineMIME("application/x-sh","shell")})});var Js=qe((Qs,Ys)=>{(function(u){typeof Qs=="object"&&typeof Ys=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("smarty",function(P,z){var O=z.rightDelimiter||"}",S=z.leftDelimiter||"{",A=z.version||2,p=u.getMode(P,z.baseMode||"null"),D=["debug","extends","function","include","literal"],w={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},L;function T(U,_){return L=_,U}function m(U,_,W){return _.tokenize=W,W(U,_)}function b(U,_){return _==null&&(_=U.pos),A===3&&S=="{"&&(_==U.string.length||/\s/.test(U.string.charAt(_)))}function d(U,_){for(var W=U.string,Z=U.pos;;){var ee=W.indexOf(S,Z);if(Z=ee+S.length,ee==-1||!b(U,ee+S.length))break}if(ee==U.pos)return U.match(S),U.eat("*")?m(U,_,y("comment","*"+O)):(_.depth++,_.tokenize=g,L="startTag","tag");ee>-1&&(U.string=W.slice(0,ee));var oe=p.token(U,_.base);return ee>-1&&(U.string=W),oe}function g(U,_){if(U.match(O,!0))return A===3?(_.depth--,_.depth<=0&&(_.tokenize=d)):_.tokenize=d,T("tag",null);if(U.match(S,!0))return _.depth++,T("tag","startTag");var W=U.next();if(W=="$")return U.eatWhile(w.validIdentifier),T("variable-2","variable");if(W=="|")return T("operator","pipe");if(W==".")return T("operator","property");if(w.stringChar.test(W))return _.tokenize=k(W),T("string","string");if(w.operatorChars.test(W))return U.eatWhile(w.operatorChars),T("operator","operator");if(W=="["||W=="]")return T("bracket","bracket");if(W=="("||W==")")return T("bracket","operator");if(/\d/.test(W))return U.eatWhile(/\d/),T("number","number");if(_.last=="variable"){if(W=="@")return U.eatWhile(w.validIdentifier),T("property","property");if(W=="|")return U.eatWhile(w.validIdentifier),T("qualifier","modifier")}else{if(_.last=="pipe")return U.eatWhile(w.validIdentifier),T("qualifier","modifier");if(_.last=="whitespace")return U.eatWhile(w.validIdentifier),T("attribute","modifier")}if(_.last=="property")return U.eatWhile(w.validIdentifier),T("property",null);if(/\s/.test(W))return L="whitespace",null;var Z="";W!="/"&&(Z+=W);for(var ee=null;ee=U.eat(w.validIdentifier);)Z+=ee;for(var oe=0,Q=D.length;oe<Q;oe++)if(D[oe]==Z)return T("keyword","keyword");return/\s/.test(W)?null:T("tag","tag")}function k(U){return function(_,W){for(var Z=null,ee=null;!_.eol();){if(ee=_.peek(),_.next()==U&&Z!=="\\"){W.tokenize=g;break}Z=ee}return"string"}}function y(U,_){return function(W,Z){for(;!W.eol();){if(W.match(_)){Z.tokenize=d;break}W.next()}return U}}return{startState:function(){return{base:u.startState(p),tokenize:d,last:null,depth:0}},copyState:function(U){return{base:u.copyState(p,U.base),tokenize:U.tokenize,last:U.last,depth:U.depth}},innerMode:function(U){if(U.tokenize==d)return{mode:p,state:U.base}},token:function(U,_){var W=_.tokenize(U,_);return _.last=L,W},indent:function(U,_,W){return U.tokenize==d&&p.indent?p.indent(U.base,_,W):u.Pass},blockCommentStart:S+"*",blockCommentEnd:"*"+O}}),u.defineMIME("text/x-smarty","smarty")})});var tu=qe((Vs,eu)=>{(function(u){typeof Vs=="object"&&typeof eu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("sql",function(w,L){var T=L.client||{},m=L.atoms||{false:!0,true:!0,null:!0},b=L.builtin||p(D),d=L.keywords||p(A),g=L.operatorChars||/^[*+\-%<>!=&|~^\/]/,k=L.support||{},y=L.hooks||{},U=L.dateSQL||{date:!0,time:!0,timestamp:!0},_=L.backslashStringEscapes!==!1,W=L.brackets||/^[\{}\(\)\[\]]/,Z=L.punctuation||/^[;.,:]/;function ee(G,R){var I=G.next();if(y[I]){var c=y[I](G,R);if(c!==!1)return c}if(k.hexNumber&&(I=="0"&&G.match(/^[xX][0-9a-fA-F]+/)||(I=="x"||I=="X")&&G.match(/^'[0-9a-fA-F]*'/)))return"number";if(k.binaryNumber&&((I=="b"||I=="B")&&G.match(/^'[01]*'/)||I=="0"&&G.match(/^b[01]+/)))return"number";if(I.charCodeAt(0)>47&&I.charCodeAt(0)<58)return G.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),k.decimallessFloat&&G.match(/^\.(?!\.)/),"number";if(I=="?"&&(G.eatSpace()||G.eol()||G.eat(";")))return"variable-3";if(I=="'"||I=='"'&&k.doubleQuote)return R.tokenize=oe(I),R.tokenize(G,R);if((k.nCharCast&&(I=="n"||I=="N")||k.charsetCast&&I=="_"&&G.match(/[a-z][a-z0-9]*/i))&&(G.peek()=="'"||G.peek()=='"'))return"keyword";if(k.escapeConstant&&(I=="e"||I=="E")&&(G.peek()=="'"||G.peek()=='"'&&k.doubleQuote))return R.tokenize=function($,M){return(M.tokenize=oe($.next(),!0))($,M)},"keyword";if(k.commentSlashSlash&&I=="/"&&G.eat("/"))return G.skipToEnd(),"comment";if(k.commentHash&&I=="#"||I=="-"&&G.eat("-")&&(!k.commentSpaceRequired||G.eat(" ")))return G.skipToEnd(),"comment";if(I=="/"&&G.eat("*"))return R.tokenize=Q(1),R.tokenize(G,R);if(I=="."){if(k.zerolessFloat&&G.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(G.match(/^\.+/))return null;if(k.ODBCdotTable&&G.match(/^[\w\d_$#]+/))return"variable-2"}else{if(g.test(I))return G.eatWhile(g),"operator";if(W.test(I))return"bracket";if(Z.test(I))return G.eatWhile(Z),"punctuation";if(I=="{"&&(G.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||G.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";G.eatWhile(/^[_\w\d]/);var B=G.current().toLowerCase();return U.hasOwnProperty(B)&&(G.match(/^( )+'[^']*'/)||G.match(/^( )+"[^"]*"/))?"number":m.hasOwnProperty(B)?"atom":b.hasOwnProperty(B)?"type":d.hasOwnProperty(B)?"keyword":T.hasOwnProperty(B)?"builtin":null}}function oe(G,R){return function(I,c){for(var B=!1,$;($=I.next())!=null;){if($==G&&!B){c.tokenize=ee;break}B=(_||R)&&!B&&$=="\\"}return"string"}}function Q(G){return function(R,I){var c=R.match(/^.*?(\/\*|\*\/)/);return c?c[1]=="/*"?I.tokenize=Q(G+1):G>1?I.tokenize=Q(G-1):I.tokenize=ee:R.skipToEnd(),"comment"}}function j(G,R,I){R.context={prev:R.context,indent:G.indentation(),col:G.column(),type:I}}function N(G){G.indent=G.context.indent,G.context=G.context.prev}return{startState:function(){return{tokenize:ee,context:null}},token:function(G,R){if(G.sol()&&R.context&&R.context.align==null&&(R.context.align=!1),R.tokenize==ee&&G.eatSpace())return null;var I=R.tokenize(G,R);if(I=="comment")return I;R.context&&R.context.align==null&&(R.context.align=!0);var c=G.current();return c=="("?j(G,R,")"):c=="["?j(G,R,"]"):R.context&&R.context.type==c&&N(R),I},indent:function(G,R){var I=G.context;if(!I)return u.Pass;var c=R.charAt(0)==I.type;return I.align?I.col+(c?0:1):I.indent+(c?0:w.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:k.commentSlashSlash?"//":k.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function P(w){for(var L;(L=w.next())!=null;)if(L=="`"&&!w.eat("`"))return"variable-2";return w.backUp(w.current().length-1),w.eatWhile(/\w/)?"variable-2":null}function z(w){for(var L;(L=w.next())!=null;)if(L=='"'&&!w.eat('"'))return"variable-2";return w.backUp(w.current().length-1),w.eatWhile(/\w/)?"variable-2":null}function O(w){return w.eat("@")&&(w.match("session."),w.match("local."),w.match("global.")),w.eat("'")?(w.match(/^.*'/),"variable-2"):w.eat('"')?(w.match(/^.*"/),"variable-2"):w.eat("`")?(w.match(/^.*`/),"variable-2"):w.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function S(w){return w.eat("N")?"atom":w.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var A="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function p(w){for(var L={},T=w.split(" "),m=0;m<T.length;++m)L[T[m]]=!0;return L}var D="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";u.defineMIME("text/x-sql",{name:"sql",keywords:p(A+"begin"),builtin:p(D),atoms:p("false true null unknown"),dateSQL:p("date time timestamp"),support:p("ODBCdotTable doubleQuote binaryNumber hexNumber")}),u.defineMIME("text/x-mssql",{name:"sql",client:p("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:p(A+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:p("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:p("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:p("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":O}}),u.defineMIME("text/x-mysql",{name:"sql",client:p("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:p(A+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:p("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:p("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:p("date time timestamp"),support:p("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":O,"`":P,"\\":S}}),u.defineMIME("text/x-mariadb",{name:"sql",client:p("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:p(A+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:p("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:p("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:p("date time timestamp"),support:p("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":O,"`":P,"\\":S}}),u.defineMIME("text/x-sqlite",{name:"sql",client:p("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:p(A+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:p("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:p("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:p("date time timestamp datetime"),support:p("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":O,":":O,"?":O,$:O,'"':z,"`":P}}),u.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:p("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:p("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:p("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:p("commentSlashSlash decimallessFloat"),hooks:{}}),u.defineMIME("text/x-plsql",{name:"sql",client:p("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:p("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:p("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:p("date time timestamp"),support:p("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),u.defineMIME("text/x-hive",{name:"sql",keywords:p("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:p("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:p("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:p("date timestamp"),support:p("ODBCdotTable doubleQuote binaryNumber hexNumber")}),u.defineMIME("text/x-pgsql",{name:"sql",client:p("source"),keywords:p(A+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:p("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:p("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:p("date time timestamp"),support:p("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),u.defineMIME("text/x-gql",{name:"sql",keywords:p("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:p("false true"),builtin:p("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),u.defineMIME("text/x-gpsql",{name:"sql",client:p("source"),keywords:p("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:p("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:p("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:p("date time timestamp"),support:p("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),u.defineMIME("text/x-sparksql",{name:"sql",keywords:p("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:p("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:p("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:p("date time timestamp"),support:p("ODBCdotTable doubleQuote zerolessFloat")}),u.defineMIME("text/x-esper",{name:"sql",client:p("source"),keywords:p("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:p("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:p("time"),support:p("decimallessFloat zerolessFloat binaryNumber hexNumber")}),u.defineMIME("text/x-trino",{name:"sql",keywords:p("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:p("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:p("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:p("date time timestamp zone"),support:p("ODBCdotTable decimallessFloat zerolessFloat hexNumber")})})});var iu=qe((ru,nu)=>{(function(u){typeof ru=="object"&&typeof nu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("stex",function(P,z){"use strict";function O(d,g){d.cmdState.push(g)}function S(d){return d.cmdState.length>0?d.cmdState[d.cmdState.length-1]:null}function A(d){var g=d.cmdState.pop();g&&g.closeBracket()}function p(d){for(var g=d.cmdState,k=g.length-1;k>=0;k--){var y=g[k];if(y.name!="DEFAULT")return y}return{styleIdentifier:function(){return null}}}function D(d,g,k){return function(){this.name=d,this.bracketNo=0,this.style=g,this.styles=k,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var w={};w.importmodule=D("importmodule","tag",["string","builtin"]),w.documentclass=D("documentclass","tag",["","atom"]),w.usepackage=D("usepackage","tag",["atom"]),w.begin=D("begin","tag",["atom"]),w.end=D("end","tag",["atom"]),w.label=D("label","tag",["atom"]),w.ref=D("ref","tag",["atom"]),w.eqref=D("eqref","tag",["atom"]),w.cite=D("cite","tag",["atom"]),w.bibitem=D("bibitem","tag",["atom"]),w.Bibitem=D("Bibitem","tag",["atom"]),w.RBibitem=D("RBibitem","tag",["atom"]),w.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function L(d,g){d.f=g}function T(d,g){var k;if(d.match(/^\\[a-zA-Z@]+/)){var y=d.current().slice(1);return k=w.hasOwnProperty(y)?w[y]:w.DEFAULT,k=new k,O(g,k),L(g,b),k.style}if(d.match(/^\\[$&%#{}_]/)||d.match(/^\\[,;!\/\\]/))return"tag";if(d.match("\\["))return L(g,function(_,W){return m(_,W,"\\]")}),"keyword";if(d.match("\\("))return L(g,function(_,W){return m(_,W,"\\)")}),"keyword";if(d.match("$$"))return L(g,function(_,W){return m(_,W,"$$")}),"keyword";if(d.match("$"))return L(g,function(_,W){return m(_,W,"$")}),"keyword";var U=d.next();if(U=="%")return d.skipToEnd(),"comment";if(U=="}"||U=="]"){if(k=S(g),k)k.closeBracket(U),L(g,b);else return"error";return"bracket"}else return U=="{"||U=="["?(k=w.DEFAULT,k=new k,O(g,k),"bracket"):/\d/.test(U)?(d.eatWhile(/[\w.%]/),"atom"):(d.eatWhile(/[\w\-_]/),k=p(g),k.name=="begin"&&(k.argument=d.current()),k.styleIdentifier())}function m(d,g,k){if(d.eatSpace())return null;if(k&&d.match(k))return L(g,T),"keyword";if(d.match(/^\\[a-zA-Z@]+/))return"tag";if(d.match(/^[a-zA-Z]+/))return"variable-2";if(d.match(/^\\[$&%#{}_]/)||d.match(/^\\[,;!\/]/)||d.match(/^[\^_&]/))return"tag";if(d.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(d.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var y=d.next();return y=="{"||y=="}"||y=="["||y=="]"||y=="("||y==")"?"bracket":y=="%"?(d.skipToEnd(),"comment"):"error"}function b(d,g){var k=d.peek(),y;return k=="{"||k=="["?(y=S(g),y.openBracket(k),d.eat(k),L(g,T),"bracket"):/[ \t\r]/.test(k)?(d.eat(k),null):(L(g,T),A(g),T(d,g))}return{startState:function(){var d=z.inMathMode?function(g,k){return m(g,k)}:T;return{cmdState:[],f:d}},copyState:function(d){return{cmdState:d.cmdState.slice(),f:d.f}},token:function(d,g){return g.f(d,g)},blankLine:function(d){d.f=T,d.cmdState.length=0},lineComment:"%"}}),u.defineMIME("text/x-stex","stex"),u.defineMIME("text/x-latex","stex")})});var lu=qe((ou,au)=>{(function(u){typeof ou=="object"&&typeof au=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";function P(Q){for(var j={},N=0;N<Q.length;N++)j[Q[N]]=!0;return j}var z=P(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),O=P(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),S=P(["true","false","nil","self","super","_"]),A=P(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),p="+-/*%=|&<>~^?!",D=":;,.(){}[]",w=/^\-?0b[01][01_]*/,L=/^\-?0o[0-7][0-7_]*/,T=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,m=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,b=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,d=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,g=/^\#[A-Za-z]+/,k=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function y(Q,j,N){if(Q.sol()&&(j.indented=Q.indentation()),Q.eatSpace())return null;var G=Q.peek();if(G=="/"){if(Q.match("//"))return Q.skipToEnd(),"comment";if(Q.match("/*"))return j.tokenize.push(W),W(Q,j)}if(Q.match(g))return"builtin";if(Q.match(k))return"attribute";if(Q.match(w)||Q.match(L)||Q.match(T)||Q.match(m))return"number";if(Q.match(d))return"property";if(p.indexOf(G)>-1)return Q.next(),"operator";if(D.indexOf(G)>-1)return Q.next(),Q.match(".."),"punctuation";var R;if(R=Q.match(/("""|"|')/)){var I=_.bind(null,R[0]);return j.tokenize.push(I),I(Q,j)}if(Q.match(b)){var c=Q.current();return A.hasOwnProperty(c)?"variable-2":S.hasOwnProperty(c)?"atom":z.hasOwnProperty(c)?(O.hasOwnProperty(c)&&(j.prev="define"),"keyword"):N=="define"?"def":"variable"}return Q.next(),null}function U(){var Q=0;return function(j,N,G){var R=y(j,N,G);if(R=="punctuation"){if(j.current()=="(")++Q;else if(j.current()==")"){if(Q==0)return j.backUp(1),N.tokenize.pop(),N.tokenize[N.tokenize.length-1](j,N);--Q}}return R}}function _(Q,j,N){for(var G=Q.length==1,R,I=!1;R=j.peek();)if(I){if(j.next(),R=="(")return N.tokenize.push(U()),"string";I=!1}else{if(j.match(Q))return N.tokenize.pop(),"string";j.next(),I=R=="\\"}return G&&N.tokenize.pop(),"string"}function W(Q,j){for(var N;N=Q.next();)if(N==="/"&&Q.eat("*"))j.tokenize.push(W);else if(N==="*"&&Q.eat("/")){j.tokenize.pop();break}return"comment"}function Z(Q,j,N){this.prev=Q,this.align=j,this.indented=N}function ee(Q,j){var N=j.match(/^\s*($|\/[\/\*])/,!1)?null:j.column()+1;Q.context=new Z(Q.context,N,Q.indented)}function oe(Q){Q.context&&(Q.indented=Q.context.indented,Q.context=Q.context.prev)}u.defineMode("swift",function(Q){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(j,N){var G=N.prev;N.prev=null;var R=N.tokenize[N.tokenize.length-1]||y,I=R(j,N,G);if(!I||I=="comment"?N.prev=G:N.prev||(N.prev=I),I=="punctuation"){var c=/[\(\[\{]|([\]\)\}])/.exec(j.current());c&&(c[1]?oe:ee)(N,j)}return I},indent:function(j,N){var G=j.context;if(!G)return 0;var R=/^[\]\}\)]/.test(N);return G.align!=null?G.align-(R?1:0):G.indented+(R?0:Q.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}}),u.defineMIME("text/x-swift","swift")})});var cu=qe((su,uu)=>{(function(u){typeof su=="object"&&typeof uu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(P,z){if(!z.inString&&(P.peek()=='"'||P.peek()=="'")&&(z.stringType=P.peek(),P.next(),z.inString=!0),P.sol()&&z.inArray===0&&(z.lhs=!0),z.inString){for(;z.inString&&!P.eol();)P.peek()===z.stringType?(P.next(),z.inString=!1):P.peek()==="\\"?(P.next(),P.next()):P.match(/^.[^\\\"\']*/);return z.lhs?"property string":"string"}else{if(z.inArray&&P.peek()==="]")return P.next(),z.inArray--,"bracket";if(z.lhs&&P.peek()==="["&&P.skipTo("]"))return P.next(),P.peek()==="]"&&P.next(),"atom";if(P.peek()==="#")return P.skipToEnd(),"comment";if(P.eatSpace())return null;if(z.lhs&&P.eatWhile(function(O){return O!="="&&O!=" "}))return"property";if(z.lhs&&P.peek()==="=")return P.next(),z.lhs=!1,null;if(!z.lhs&&P.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!z.lhs&&(P.match("true")||P.match("false")))return"atom";if(!z.lhs&&P.peek()==="[")return z.inArray++,P.next(),"bracket";if(!z.lhs&&P.match(/^\-?\d+(?:\.\d+)?/))return"number";P.eatSpace()||P.next()}return null}}}),u.defineMIME("text/x-toml","toml")})});var pu=qe((fu,du)=>{(function(u){typeof fu=="object"&&typeof du=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.multiplexingMode=function(P){var z=Array.prototype.slice.call(arguments,1);function O(S,A,p,D){if(typeof A=="string"){var w=S.indexOf(A,p);return D&&w>-1?w+A.length:w}var L=A.exec(p?S.slice(p):S);return L?L.index+p+(D?L[0].length:0):-1}return{startState:function(){return{outer:u.startState(P),innerActive:null,inner:null,startingInner:!1}},copyState:function(S){return{outer:u.copyState(P,S.outer),innerActive:S.innerActive,inner:S.innerActive&&u.copyState(S.innerActive.mode,S.inner),startingInner:S.startingInner}},token:function(S,A){if(A.innerActive){var g=A.innerActive,D=S.string;if(!g.close&&S.sol())return A.innerActive=A.inner=null,this.token(S,A);var T=g.close&&!A.startingInner?O(D,g.close,S.pos,g.parseDelimiters):-1;if(T==S.pos&&!g.parseDelimiters)return S.match(g.close),A.innerActive=A.inner=null,g.delimStyle&&g.delimStyle+" "+g.delimStyle+"-close";T>-1&&(S.string=D.slice(0,T));var k=g.mode.token(S,A.inner);return T>-1?S.string=D:S.pos>S.start&&(A.startingInner=!1),T==S.pos&&g.parseDelimiters&&(A.innerActive=A.inner=null),g.innerStyle&&(k?k=k+" "+g.innerStyle:k=g.innerStyle),k}else{for(var p=1/0,D=S.string,w=0;w<z.length;++w){var L=z[w],T=O(D,L.open,S.pos);if(T==S.pos){L.parseDelimiters||S.match(L.open),A.startingInner=!!L.parseDelimiters,A.innerActive=L;var m=0;if(P.indent){var b=P.indent(A.outer,"","");b!==u.Pass&&(m=b)}return A.inner=u.startState(L.mode,m),L.delimStyle&&L.delimStyle+" "+L.delimStyle+"-open"}else T!=-1&&T<p&&(p=T)}p!=1/0&&(S.string=D.slice(0,p));var d=P.token(S,A.outer);return p!=1/0&&(S.string=D),d}},indent:function(S,A,p){var D=S.innerActive?S.innerActive.mode:P;return D.indent?D.indent(S.innerActive?S.inner:S.outer,A,p):u.Pass},blankLine:function(S){var A=S.innerActive?S.innerActive.mode:P;if(A.blankLine&&A.blankLine(S.innerActive?S.inner:S.outer),S.innerActive)S.innerActive.close===`
`&&(S.innerActive=S.inner=null);else for(var p=0;p<z.length;++p){var D=z[p];D.open===`
`&&(S.innerActive=D,S.inner=u.startState(D.mode,A.indent?A.indent(S.outer,"",""):0))}},electricChars:P.electricChars,innerMode:function(S){return S.inner?{state:S.inner,mode:S.innerActive.mode}:{state:S.outer,mode:P}}}}})});var gu=qe((hu,mu)=>{(function(u){typeof hu=="object"&&typeof mu=="object"?u(Oe(),pu()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/multiplex"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("twig:inner",function(){var P=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],z=/^[+\-*&%=<>!?|~^]/,O=/^[:\[\(\{]/,S=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],A=/^(\d[+\-\*\/])?\d+(\.\d+)?/;P=new RegExp("(("+P.join(")|(")+"))\\b"),S=new RegExp("(("+S.join(")|(")+"))\\b");function p(D,w){var L=D.peek();if(w.incomment)return D.skipTo("#}")?(D.eatWhile(/\#|}/),w.incomment=!1):D.skipToEnd(),"comment";if(w.intag){if(w.operator){if(w.operator=!1,D.match(S))return"atom";if(D.match(A))return"number"}if(w.sign){if(w.sign=!1,D.match(S))return"atom";if(D.match(A))return"number"}if(w.instring)return L==w.instring&&(w.instring=!1),D.next(),"string";if(L=="'"||L=='"')return w.instring=L,D.next(),"string";if(D.match(w.intag+"}")||D.eat("-")&&D.match(w.intag+"}"))return w.intag=!1,"tag";if(D.match(z))return w.operator=!0,"operator";if(D.match(O))w.sign=!0;else if(D.eat(" ")||D.sol()){if(D.match(P))return"keyword";if(D.match(S))return"atom";if(D.match(A))return"number";D.sol()&&D.next()}else D.next();return"variable"}else if(D.eat("{")){if(D.eat("#"))return w.incomment=!0,D.skipTo("#}")?(D.eatWhile(/\#|}/),w.incomment=!1):D.skipToEnd(),"comment";if(L=D.eat(/\{|%/))return w.intag=L,L=="{"&&(w.intag="}"),D.eat("-"),"tag"}D.next()}return{startState:function(){return{}},token:function(D,w){return p(D,w)}}}),u.defineMode("twig",function(P,z){var O=u.getMode(P,"twig:inner");return!z||!z.base?O:u.multiplexingMode(u.getMode(P,z.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:O,parseDelimiters:!0})}),u.defineMIME("text/x-twig","twig")})});var bu=qe((vu,yu)=>{(function(u){typeof vu=="object"&&typeof yu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("vb",function(P,z){var O="error";function S(C){return new RegExp("^(("+C.join(")|(")+"))\\b","i")}var A=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),p=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),D=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),w=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),L=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),T=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),m=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],b=["else","elseif","case","catch","finally"],d=["next","loop"],g=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],k=S(g),y=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],U=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],_=S(y),W=S(U),Z='"',ee=S(m),oe=S(b),Q=S(d),j=S(["end"]),N=S(["do"]),G=null;u.registerHelper("hintWords","vb",m.concat(b).concat(d).concat(g).concat(y).concat(U));function R(C,V){V.currentIndent++}function I(C,V){V.currentIndent--}function c(C,V){if(C.eatSpace())return null;var Y=C.peek();if(Y==="'")return C.skipToEnd(),"comment";if(C.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var x=!1;if((C.match(/^\d*\.\d+F?/i)||C.match(/^\d+\.\d*F?/)||C.match(/^\.\d+F?/))&&(x=!0),x)return C.eat(/J/i),"number";var h=!1;if(C.match(/^&H[0-9a-f]+/i)||C.match(/^&O[0-7]+/i)?h=!0:C.match(/^[1-9]\d*F?/)?(C.eat(/J/i),h=!0):C.match(/^0(?![\dx])/i)&&(h=!0),h)return C.eat(/L/i),"number"}return C.match(Z)?(V.tokenize=B(C.current()),V.tokenize(C,V)):C.match(L)||C.match(w)?null:C.match(D)||C.match(A)||C.match(k)?"operator":C.match(p)?null:C.match(N)?(R(C,V),V.doInCurrentLine=!0,"keyword"):C.match(ee)?(V.doInCurrentLine?V.doInCurrentLine=!1:R(C,V),"keyword"):C.match(oe)?"keyword":C.match(j)?(I(C,V),I(C,V),"keyword"):C.match(Q)?(I(C,V),"keyword"):C.match(W)||C.match(_)?"keyword":C.match(T)?"variable":(C.next(),O)}function B(C){var V=C.length==1,Y="string";return function(x,h){for(;!x.eol();){if(x.eatWhile(/[^'"]/),x.match(C))return h.tokenize=c,Y;x.eat(/['"]/)}if(V){if(z.singleLineStringErrors)return O;h.tokenize=c}return Y}}function $(C,V){var Y=V.tokenize(C,V),x=C.current();if(x===".")return Y=V.tokenize(C,V),Y==="variable"?"variable":O;var h="[({".indexOf(x);return h!==-1&&R(C,V),G==="dedent"&&I(C,V)||(h="])}".indexOf(x),h!==-1&&I(C,V))?O:Y}var M={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:c,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(C,V){C.sol()&&(V.currentIndent+=V.nextLineIndent,V.nextLineIndent=0,V.doInCurrentLine=0);var Y=$(C,V);return V.lastToken={style:Y,content:C.current()},Y},indent:function(C,V){var Y=V.replace(/^\s+|\s+$/g,"");return Y.match(Q)||Y.match(j)||Y.match(oe)?P.indentUnit*(C.currentIndent-1):C.currentIndent<0?0:C.currentIndent*P.indentUnit},lineComment:"'"};return M}),u.defineMIME("text/x-vb","vb")})});var ku=qe((xu,_u)=>{(function(u){typeof xu=="object"&&typeof _u=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("vbscript",function(P,z){var O="error";function S(ae){return new RegExp("^(("+ae.join(")|(")+"))\\b","i")}var A=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),p=new RegExp("^((<>)|(<=)|(>=))"),D=new RegExp("^[\\.,]"),w=new RegExp("^[\\(\\)]"),L=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),T=["class","sub","select","while","if","function","property","with","for"],m=["else","elseif","case"],b=["next","loop","wend"],d=S(["and","or","not","xor","is","mod","eqv","imp"]),g=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],k=["true","false","nothing","empty","null"],y=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],U=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],_=["WScript","err","debug","RegExp"],W=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],Z=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],ee=["server","response","request","session","application"],oe=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],Q=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],j=Z.concat(W);_=_.concat(U),P.isASP&&(_=_.concat(ee),j=j.concat(Q,oe));var N=S(g),G=S(k),R=S(y),I=S(_),c=S(j),B='"',$=S(T),M=S(m),C=S(b),V=S(["end"]),Y=S(["do"]),x=S(["on error resume next","exit"]),h=S(["rem"]);function se(ae,fe){fe.currentIndent++}function _e(ae,fe){fe.currentIndent--}function ue(ae,fe){if(ae.eatSpace())return"space";var ve=ae.peek();if(ve==="'"||ae.match(h))return ae.skipToEnd(),"comment";if(ae.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!ae.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var De=!1;if((ae.match(/^\d*\.\d+/i)||ae.match(/^\d+\.\d*/)||ae.match(/^\.\d+/))&&(De=!0),De)return ae.eat(/J/i),"number";var Qe=!1;if(ae.match(/^&H[0-9a-f]+/i)||ae.match(/^&O[0-7]+/i)?Qe=!0:ae.match(/^[1-9]\d*F?/)?(ae.eat(/J/i),Qe=!0):ae.match(/^0(?![\dx])/i)&&(Qe=!0),Qe)return ae.eat(/L/i),"number"}return ae.match(B)?(fe.tokenize=he(ae.current()),fe.tokenize(ae,fe)):ae.match(p)||ae.match(A)||ae.match(d)?"operator":ae.match(D)?null:ae.match(w)?"bracket":ae.match(x)?(fe.doInCurrentLine=!0,"keyword"):ae.match(Y)?(se(ae,fe),fe.doInCurrentLine=!0,"keyword"):ae.match($)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:se(ae,fe),"keyword"):ae.match(M)?"keyword":ae.match(V)?(_e(ae,fe),_e(ae,fe),"keyword"):ae.match(C)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:_e(ae,fe),"keyword"):ae.match(N)?"keyword":ae.match(G)?"atom":ae.match(c)?"variable-2":ae.match(R)?"builtin":ae.match(I)?"variable-2":ae.match(L)?"variable":(ae.next(),O)}function he(ae){var fe=ae.length==1,ve="string";return function(De,Qe){for(;!De.eol();){if(De.eatWhile(/[^'"]/),De.match(ae))return Qe.tokenize=ue,ve;De.eat(/['"]/)}if(fe){if(z.singleLineStringErrors)return O;Qe.tokenize=ue}return ve}}function Te(ae,fe){var ve=fe.tokenize(ae,fe),De=ae.current();return De==="."?(ve=fe.tokenize(ae,fe),De=ae.current(),ve&&(ve.substr(0,8)==="variable"||ve==="builtin"||ve==="keyword")?((ve==="builtin"||ve==="keyword")&&(ve="variable"),j.indexOf(De.substr(1))>-1&&(ve="variable-2"),ve):O):ve}var Se={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:ue,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(ae,fe){ae.sol()&&(fe.currentIndent+=fe.nextLineIndent,fe.nextLineIndent=0,fe.doInCurrentLine=0);var ve=Te(ae,fe);return fe.lastToken={style:ve,content:ae.current()},ve==="space"&&(ve=null),ve},indent:function(ae,fe){var ve=fe.replace(/^\s+|\s+$/g,"");return ve.match(C)||ve.match(V)||ve.match(M)?P.indentUnit*(ae.currentIndent-1):ae.currentIndent<0?0:ae.currentIndent*P.indentUnit}};return Se}),u.defineMIME("text/vbscript","vbscript")})});var Tu=qe((wu,Su)=>{(function(u){typeof wu=="object"&&typeof Su=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineMode("yaml",function(){var P=["true","false","on","off","yes","no"],z=new RegExp("\\b(("+P.join(")|(")+"))$","i");return{token:function(O,S){var A=O.peek(),p=S.escaped;if(S.escaped=!1,A=="#"&&(O.pos==0||/\s/.test(O.string.charAt(O.pos-1))))return O.skipToEnd(),"comment";if(O.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(S.literal&&O.indentation()>S.keyCol)return O.skipToEnd(),"string";if(S.literal&&(S.literal=!1),O.sol()){if(S.keyCol=0,S.pair=!1,S.pairStart=!1,O.match("---")||O.match("..."))return"def";if(O.match(/\s*-\s+/))return"meta"}if(O.match(/^(\{|\}|\[|\])/))return A=="{"?S.inlinePairs++:A=="}"?S.inlinePairs--:A=="["?S.inlineList++:S.inlineList--,"meta";if(S.inlineList>0&&!p&&A==",")return O.next(),"meta";if(S.inlinePairs>0&&!p&&A==",")return S.keyCol=0,S.pair=!1,S.pairStart=!1,O.next(),"meta";if(S.pairStart){if(O.match(/^\s*(\||\>)\s*/))return S.literal=!0,"meta";if(O.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(S.inlinePairs==0&&O.match(/^\s*-?[0-9\.\,]+\s?$/)||S.inlinePairs>0&&O.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(O.match(z))return"keyword"}return!S.pair&&O.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(S.pair=!0,S.keyCol=O.indentation(),"atom"):S.pair&&O.match(/^:\s*/)?(S.pairStart=!0,"meta"):(S.pairStart=!1,S.escaped=A=="\\",O.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),u.defineMIME("text/x-yaml","yaml"),u.defineMIME("text/yaml","yaml")})});var Lu=qe((Cu,Eu)=>{(function(u){typeof Cu=="object"&&typeof Eu=="object"?u(Oe()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],u):u(CodeMirror)})(function(u){"use strict";u.defineOption("scrollPastEnd",!1,function(O,S,A){A&&A!=u.Init&&(O.off("change",P),O.off("refresh",z),O.display.lineSpace.parentNode.style.paddingBottom="",O.state.scrollPastEndPadding=null),S&&(O.on("change",P),O.on("refresh",z),z(O))});function P(O,S){u.changeEnd(S).line==O.lastLine()&&z(O)}function z(O){var S="";if(O.lineCount()>1){var A=O.display.scroller.clientHeight-30,p=O.getLineHandle(O.lastLine()).height;S=A-p+"px"}O.state.scrollPastEndPadding!=S&&(O.state.scrollPastEndPadding=S,O.display.lineSpace.parentNode.style.paddingBottom=S,O.off("refresh",z),O.setSize(),O.on("refresh",z))}})});var _r=We(Oe(),1),zu=We(Sl(),1),Wf=We(xo(),1),jf=We(bi(),1),Bf=We(Al(),1),Hf=We(Il(),1),Uf=We(Nl(),1),$f=We(Wl(),1),Kf=We(Hl(),1),Gf=We(ko(),1),Zf=We(_o(),1),Xf=We(Jl(),1),Qf=We(ts(),1),Yf=We(ls(),1),Jf=We(cs(),1),Vf=We(ps(),1),ed=We(gs(),1),td=We(bs(),1),rd=We(ks(),1),nd=We(Ts(),1),id=We(Ls(),1),od=We(As(),1),ad=We(Is(),1),ld=We(Ns(),1),sd=We(Hs(),1),ud=We(Ks(),1),cd=We(Xs(),1),fd=We(Js(),1),dd=We(tu(),1),pd=We(iu(),1),hd=We(lu(),1),md=We(cu(),1),gd=We(gu(),1),vd=We(bu(),1),yd=We(ku(),1),bd=We(xi(),1),xd=We(Tu(),1),_d=We(Lu(),1),wo={bash:"shell",css:"css",c:"text/x-csrc",java:"text/x-java",scala:"text/x-scala",kotlin:"text/x-kotlin","c++":"text/x-c++src","c#":"text/x-csharp",csharp:"text/x-csharp",dart:"application/dart",diff:"diff",for:"fortran",fortran:"fortran","f#":"text/x-fsharp",fsharp:"text/x-fsharp",go:"go",haskell:"haskell",hs:"haskell",html:"htmlmixed",ini:"properties",javascript:"text/javascript",json:"application/json",js:"text/javascript",jl:"text/x-julia",julia:"text/x-julia",latex:"text/x-stex",lua:"lua",matlab:"text/x-octave",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",mssql:"text/x-mssql",mysql:"text/x-mysql",nginx:"nginx",octave:"text/x-octave",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"text/x-ocaml",pascal:"text/x-pascal",pas:"text/x-pascal",php:u=>u.includes("<?php")?"php":"text/x-php",pgsql:"text/x-pgsql","pl/sql":"text/x-plsql",postgresql:"text/x-pgsql",py:"python",python:"python",ruby:"ruby",rust:"rust",rb:"ruby",rs:"rust",scheme:"scheme",shell:"shell",sh:"shell",smarty:"smarty",sql:"text/x-sql",sqlite:"text/x-sqlite",stext:"text/x-stex",swift:"text/x-swift",toml:"toml",ts:"text/typescript",twig:"twig",typescript:"text/typescript",vbs:"vbscript",vbscript:"vbscript","vb.net":"text/x-vb",vbnet:"text/x-vb",xml:"xml",yaml:"yaml",yml:"yaml"};function kd(){let u=document.querySelectorAll(".page-content pre, .comment-box .content pre");for(let P of u)Mu(P)}function wd(u){let P=u.querySelectorAll("pre");for(let z of P)Mu(z)}function Mu(u){let P=u.querySelector("code[class^=language-]");u.innerHTML=u.innerHTML.replace(/<br\s*[\/]?>/gi,`
`);let z=u.textContent.trimEnd(),O="";if(P!==null){let A=P.className.replace("language-","");O=qn(A,z)}let S=(0,_r.default)(function(A){u.parentNode.replaceChild(A,u)},{value:z,mode:O,lineNumbers:!0,lineWrapping:!1,theme:On(),readOnly:!0});Nf(S)}function Nf(u){let P='<svg viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',z=document.createElement("div");z.classList.add("CodeMirror-copy"),z.innerHTML=P,u.display.wrapper.appendChild(z),new zu.default(z,{text:function(S){return u.getValue()}}).on("success",S=>{z.classList.add("success"),setTimeout(()=>{z.classList.remove("success")},240)})}function qn(u,P){u=u.trim().replace(/^\./g,"").toLowerCase();let z=typeof wo[u];return z==="undefined"?"":z==="function"?wo[u](P):wo[u]}function On(){let u=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(u?"darcula":"default")}function Sd(u,P,z){return(0,_r.default)(u,{value:P,mode:qn(z,P),lineNumbers:!0,lineWrapping:!1,theme:On(),readOnly:!0})}function Td(u,P){let z=u.textContent;return(0,_r.default)(function(O){u.parentNode.insertBefore(O,u),u.style.display="none"},{value:z,mode:qn(P,z),lineNumbers:!0,lineWrapping:!1,theme:On()})}function Cd(u,P){return _r.default.fromTextArea(u,{mode:qn(P,u.value),lineNumbers:!0,lineWrapping:!1,theme:On()})}function Ed(u,P,z){u.setOption("mode",qn(P,z))}function Ld(u,P){u.setValue(P),setTimeout(()=>{Pf(u)},10)}function Pf(u){u.refresh()}function zd(u){let z={value:u.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:On(),scrollPastEnd:!0};return window.$events.emitPublic(u,"editor-markdown-cm::pre-init",{config:z}),(0,_r.default)(function(O){u.parentNode.insertBefore(O,u),u.style.display="none"},z)}function Md(){return _r.default.keyMap.default==_r.default.keyMap.macDefault?"Cmd":"Ctrl"}export{Md as getMetaKey,kd as highlight,wd as highlightWithin,Cd as inlineEditor,zd as markdownEditor,Td as popupEditor,Ld as setContent,Ed as setMode,Pf as updateLayout,Sd as wysiwygView};
/*! Bundled license information:
clipboard/dist/clipboard.min.js:
(*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*)
*/
//# sourceMappingURL=code.js.map