text: var yu=Object.defineProperty,ku=Object.defineProperties;var wu=Object.getOwnPropertyDescriptors;var ha=Object.getOwnPropertySymbols;var _u=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable;var pa=(Pe,We,m)=>We in Pe?yu(Pe,We,{enumerable:!0,configurable:!0,writable:!0,value:m}):Pe[We]=m,ga=(Pe,We)=>{for(var m in We||(We={}))_u.call(We,m)&&pa(Pe,m,We[m]);if(ha)for(var m of ha(We))Su.call(We,m)&&pa(Pe,m,We[m]);return Pe},ma=(Pe,We)=>ku(Pe,wu(We));import{a0 as Cu,x as Lu,t as va,r as Tu,a as Mu,o as Au,A as ba,n as zu,e as xa,f as mi,h as vi,i as Eu,G as Du,F as Fu,E as Ou,D as Nu}from"./vendor.42638b6b.js";var Je={exports:{}};(function(Pe,We){(function(m,ee){Pe.exports=ee()})(Cu,function(){var m=navigator.userAgent,ee=navigator.platform,B=/gecko\/\d/i.test(m),X=/MSIE \d/.test(m),P=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(m),q=/Edge\/(\d+)/.exec(m),k=X||P||q,Z=k&&(X?document.documentMode||6:+(q||P)[1]),E=!q&&/WebKit\//.test(m),K=E&&/Qt\/\d+\.\d+/.test(m),v=!q&&/Chrome\//.test(m),y=/Opera\//.test(m),_=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(m),p=/PhantomJS/.test(m),h=_&&(/Mobile\/\w+/.test(m)||navigator.maxTouchPoints>2),L=/Android/.test(m),O=h||L||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(m),W=h||/Mac/.test(ee),Y=/\bCrOS\b/.test(m),re=/win/i.test(ee),ne=y&&m.match(/Version\/(\d*\.\d*)/);ne&&(ne=Number(ne[1])),ne&&ne>=15&&(y=!1,E=!0);var ce=W&&(K||y&&(ne==null||ne<12.11)),U=B||k&&Z>=9;function M(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var z=function(e,t){var r=e.className,n=M(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function G(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return G(e).appendChild(t)}function g(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),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,r,n){var i=g(e,t,r,n);return i.setAttribute("role","presentation"),i}var N;document.createRange?N=function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:N=function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(i){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};function Q(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 me(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function ge(e,t){var r=e.className;M(t).test(r)||(e.className+=(r?" ":"")+t)}function ze(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!M(r[n]).test(t)&&(t+=" "+r[n]);return t}var Ie=function(e){e.select()};h?Ie=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:k&&(Ie=function(e){try{e.select()}catch(t){}});function S(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function f(e,t,r){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(r!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function le(e,t,r,n,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=n||0,l=i||0;;){var a=e.indexOf("	",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}var ye=function(){this.id=null,this.f=null,this.time=0,this.handler=S(this.onTimeout,this)};ye.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ye.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};function oe(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}var ve=50,de={toString:function(){return"CodeMirror.Pass"}},Oe={scroll:!1},Fe={origin:"*mouse"},Ce={origin:"+move"};function He(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("	",n);o==-1&&(o=e.length);var l=o-n;if(o==e.length||i+l>=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var Ke=[""];function _e(e){for(;Ke.length<=e;)Ke.push(Ee(Ke)+" ");return Ke[e]}function Ee(e){return e[e.length-1]}function Be(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function Ge(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function T(){}function F(e,t){var r;return Object.create?r=Object.create(e):(T.prototype=e,r=new T),t&&f(t,r),r}var ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function qe(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ke.test(e))}function j(e,t){return t?t.source.indexOf("\\w")>-1&&qe(e)?!0:t.test(e):qe(e)}function se(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var $=/[\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 je(e){return e.charCodeAt(0)>=768&&$.test(e)}function nt(e,t,r){for(;(r<0?t>0:t<e.length)&&je(e.charAt(t));)t+=r;return t}function Ve(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function wt(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<r&&l.to>t||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),l.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var I=null;function D(e,t,r){var n;I=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&&r=="before"?n=i:I=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:I=i)}return n!=null?n:I}var te=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,x,w){this.level=u,this.from=x,this.to=w}return function(u,x){var w=x=="ltr"?"L":"R";if(u.length==0||x=="ltr"&&!n.test(u))return!1;for(var R=u.length,H=[],J=0;J<R;++J)H.push(r(u.charCodeAt(J)));for(var ie=0,fe=w;ie<R;++ie){var he=H[ie];he=="m"?H[ie]=fe:fe=he}for(var xe=0,pe=w;xe<R;++xe){var we=H[xe];we=="1"&&pe=="r"?H[xe]="n":o.test(we)&&(pe=we,we=="r"&&(H[xe]="R"))}for(var De=1,Ae=H[0];De<R-1;++De){var Re=H[De];Re=="+"&&Ae=="1"&&H[De+1]=="1"?H[De]="1":Re==","&&Ae==H[De+1]&&(Ae=="1"||Ae=="n")&&(H[De]=Ae),Ae=Re}for(var $e=0;$e<R;++$e){var pt=H[$e];if(pt==",")H[$e]="N";else if(pt=="%"){var it=void 0;for(it=$e+1;it<R&&H[it]=="%";++it);for(var Ft=$e&&H[$e-1]=="!"||it<R&&H[it]=="1"?"1":"N",Mt=$e;Mt<it;++Mt)H[Mt]=Ft;$e=it-1}}for(var st=0,At=w;st<R;++st){var vt=H[st];At=="L"&&vt=="1"?H[st]="L":o.test(vt)&&(At=vt)}for(var ct=0;ct<R;++ct)if(i.test(H[ct])){var ut=void 0;for(ut=ct+1;ut<R&&i.test(H[ut]);++ut);for(var lt=(ct?H[ct-1]:w)=="L",zt=(ut<R?H[ut]:w)=="L",er=lt==zt?lt?"L":"R":w,xn=ct;xn<ut;++xn)H[xn]=er;ct=ut-1}for(var kt=[],tn,gt=0;gt<R;)if(l.test(H[gt])){var uo=gt;for(++gt;gt<R&&l.test(H[gt]);++gt);kt.push(new s(0,uo,gt))}else{var sn=gt,zn=kt.length,En=x=="rtl"?1:0;for(++gt;gt<R&&H[gt]!="L";++gt);for(var St=sn;St<gt;)if(a.test(H[St])){sn<St&&(kt.splice(zn,0,new s(1,sn,St)),zn+=En);var tr=St;for(++St;St<gt&&a.test(H[St]);++St);kt.splice(zn,0,new s(2,tr,St)),zn+=En,sn=St}else++St;sn<gt&&kt.splice(zn,0,new s(1,sn,gt))}return x=="ltr"&&(kt[0].level==1&&(tn=u.match(/^\s+/))&&(kt[0].from=tn[0].length,kt.unshift(new s(0,0,tn[0].length))),Ee(kt).level==1&&(tn=u.match(/\s+$/))&&(Ee(kt).to-=tn[0].length,kt.push(new s(0,R-tn[0].length,R)))),x=="rtl"?kt.reverse():kt}}();function Te(e,t){var r=e.order;return r==null&&(r=e.order=te(e.text,t)),r}var rt=[],Se=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||rt).concat(r)}};function qt(e,t){return e._handlers&&e._handlers[t]||rt}function et(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=oe(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Me(e,t){var r=qt(e,t);if(!!r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function Xe(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Me(e,r||t.type,e,t),Ot(t)||t.codemirrorIgnore}function Dn(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)oe(r,t[n])==-1&&r.push(t[n])}function mt(e,t){return qt(e,t).length>0}function Xt(e){e.prototype.on=function(t,r){Se(this,t,r)},e.prototype.off=function(t,r){et(this,t,r)}}function bt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Fn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ot(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function yn(e){bt(e),Fn(e)}function un(e){return e.target||e.srcElement}function Ir(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 nr=function(){if(k&&Z<9)return!1;var e=g("div");return"draggable"in e||"dragDrop"in e}(),Ct;function Hr(e){if(Ct==null){var t=g("span","\u200B");A(e,g("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ct=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&Z<8))}var r=Ct?g("span","\u200B"):g("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var rr;function Yt(e){if(rr!=null)return rr;var t=A(e,document.createTextNode("A\u062EA")),r=N(t,0,1).getBoundingClientRect(),n=N(t,1,2).getBoundingClientRect();return G(e),!r||r.left==r.right?!1:rr=n.right-r.right<3}var ir=`
  
  b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(`
  `,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Wr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Br=function(){var e=g("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),or=null;function cn(e){if(or!=null)return or;var t=A(e,g("span","x")),r=t.getBoundingClientRect(),n=N(t,0,1).getBoundingClientRect();return or=Math.abs(r.left-n.left)>1}var Bt={},Nt={};function qr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Bt[e]=t}function nn(e,t){Nt[e]=t}function On(e){if(typeof e=="string"&&Nt.hasOwnProperty(e))e=Nt[e];else if(e&&typeof e.name=="string"&&Nt.hasOwnProperty(e.name)){var t=Nt[e.name];typeof t=="string"&&(t={name:t}),e=F(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return On("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return On("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Nn(e,t){t=On(t);var r=Bt[t.name];if(!r)return Nn(e,"text/plain");var n=r(e,t);if(Rt.hasOwnProperty(t.name)){var i=Rt[t.name];for(var o in i)!i.hasOwnProperty(o)||(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var Rt={};function jt(e,t){var r=Rt.hasOwnProperty(e)?Rt[e]:Rt[e]={};f(t,r)}function Pt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function lr(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function ar(e,t,r){return e.startState?e.startState(t,r):!0}var ot=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};ot.prototype.eol=function(){return this.pos>=this.string.length},ot.prototype.sol=function(){return this.pos==this.lineStart},ot.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ot.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ot.prototype.eat=function(e){var t=this.string.charAt(this.pos),r;if(typeof e=="string"?r=t==e:r=t&&(e.test?e.test(t):e(t)),r)return++this.pos,t},ot.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},ot.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ot.prototype.skipToEnd=function(){this.pos=this.string.length},ot.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ot.prototype.backUp=function(e){this.pos-=e},ot.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?le(this.string,this.lineStart,this.tabSize):0)},ot.prototype.indentation=function(){return le(this.string,null,this.tabSize)-(this.lineStart?le(this.string,this.lineStart,this.tabSize):0)},ot.prototype.match=function(e,t,r){if(typeof e=="string"){var n=function(l){return r?l.toLowerCase():l},i=this.string.substr(this.pos,e.length);if(n(i)==n(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)}},ot.prototype.current=function(){return this.string.slice(this.start,this.pos)},ot.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ot.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ot.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Le(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 r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function Qt(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(o){var l=o.text;i==r.line&&(l=l.slice(0,r.ch)),i==t.line&&(l=l.slice(t.ch)),n.push(l),++i}),n}function sr(e,t,r){var n=[];return e.iter(t,r,function(i){n.push(i.text)}),n}function Et(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function Ye(e){if(e.parent==null)return null;for(var t=e.parent,r=oe(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function Zt(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var l=0;l<e.lines.length;++l){var a=e.lines[l],s=a.height;if(t<s)break;t-=s}return r+l}function kn(e,t){return t>=e.first&&t<e.first+e.size}function ur(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ae(e,t,r){if(r===void 0&&(r=null),!(this instanceof ae))return new ae(e,t,r);this.line=e,this.ch=t,this.sticky=r}function c(e,t){return e.line-t.line||e.ch-t.ch}function C(e,t){return e.sticky==t.sticky&&c(e,t)==0}function V(e){return ae(e.line,e.ch)}function ue(e,t){return c(e,t)<0?t:e}function Ne(e,t){return c(e,t)<0?e:t}function Ue(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function be(e,t){if(t.line<e.first)return ae(e.first,0);var r=e.first+e.size-1;return t.line>r?ae(r,Le(e,r).text.length):xt(t,Le(e,t.line).text.length)}function xt(e,t){var r=e.ch;return r==null||r>t?ae(e.line,t):r<0?ae(e.line,0):e}function It(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=be(e,t[n]);return r}var Pn=function(e,t){this.state=e,this.lookAhead=t},$t=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};$t.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},$t.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}},$t.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$t.fromSaved=function(e,t,r){return t instanceof Pn?new $t(e,Pt(e.mode,t.state),r,t.lookAhead):new $t(e,Pt(e.mode,t),r)},$t.prototype.save=function(e){var t=e!==!1?Pt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Pn(t,this.maxLookAhead):t};function po(e,t,r,n){var i=[e.state.modeGen],o={};yo(e,t.text,e.doc.mode,r,function(u,x){return i.push(u,x)},o,n);for(var l=r.state,a=function(u){r.baseTokens=i;var x=e.state.overlays[u],w=1,R=0;r.state=!0,yo(e,t.text,x.mode,r,function(H,J){for(var ie=w;R<H;){var fe=i[w];fe>H&&i.splice(w,1,H,i[w+1],fe),w+=2,R=Math.min(H,fe)}if(!!J)if(x.opaque)i.splice(ie,w-ie,H,"overlay "+J),w=ie+2;else for(;ie<w;ie+=2){var he=i[ie+1];i[ie+1]=(he?he+" ":"")+"overlay "+J}},o),r.state=l,r.baseTokens=null,r.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)a(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function go(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=cr(e,Ye(t)),i=t.text.length>e.options.maxHighlightLength&&Pt(e.doc.mode,n.state),o=po(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function cr(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new $t(n,!0,t);var o=wa(e,t,r),l=o>n.first&&Le(n,o-1).stateAfter,a=l?$t.fromSaved(n,l,o):new $t(n,ar(n.mode),o);return n.iter(o,t,function(s){xi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&u<i.viewTo?a.save():null,a.nextLine()}),r&&(n.modeFrontier=a.line),a}function xi(e,t,r,n){var i=e.doc.mode,o=new ot(t,e.options.tabSize,r);for(o.start=o.pos=n||0,t==""&&mo(i,r.state);!o.eol();)yi(i,o,r.state),o.start=o.pos}function mo(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var r=lr(e,t);if(r.mode.blankLine)return r.mode.blankLine(r.state)}}function yi(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=lr(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var vo=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function bo(e,t,r,n){var i=e.doc,o=i.mode,l;t=be(i,t);var a=Le(i,t.line),s=cr(e,t.line,r),u=new ot(a.text,e.options.tabSize,s),x;for(n&&(x=[]);(n||u.pos<t.ch)&&!u.eol();)u.start=u.pos,l=yi(o,u,s.state),n&&x.push(new vo(u,l,Pt(i.mode,s.state)));return n?x:new vo(u,l,s.state)}function xo(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";t[n]==null?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function yo(e,t,r,n,i,o,l){var a=r.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,u=null,x=new ot(t,e.options.tabSize,n),w,R=e.options.addModeClass&&[null];for(t==""&&xo(mo(r,n.state),o);!x.eol();){if(x.pos>e.options.maxHighlightLength?(a=!1,l&&xi(e,t,n,x.pos),x.pos=t.length,w=null):w=xo(yi(r,x,n.state,R),o),R){var H=R[0].name;H&&(w="m-"+(w?H+" "+w:H))}if(!a||u!=w){for(;s<x.start;)s=Math.min(x.start,s+5e3),i(s,u);u=w}x.start=x.pos}for(;s<x.pos;){var J=Math.min(x.pos,s+5e3);i(J,u),s=J}}function wa(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=Le(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof Pn?u.lookAhead:0)<=o.modeFrontier))return a;var x=le(s.text,null,e.options.tabSize);(i==null||n>x)&&(i=a-1,n=x)}return i}function _a(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=Le(e,n).stateAfter;if(i&&(!(i instanceof Pn)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var ko=!1,rn=!1;function Sa(){ko=!0}function Ca(){rn=!0}function Rr(e,t,r){this.marker=e,this.from=t,this.to=r}function fr(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function La(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Ta(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function Ma(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,a=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);if(a||o.from==t&&l.type=="bookmark"&&(!r||!o.marker.insertLeft)){var s=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new Rr(l,o.from,s?null:o.to))}}return n}function Aa(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,a=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!r||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new Rr(l,s?null:o.from-t,o.to==null?null:o.to-t))}}return n}function ki(e,t){if(t.full)return null;var r=kn(e,t.from.line)&&Le(e,t.from.line).markedSpans,n=kn(e,t.to.line)&&Le(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,l=c(t.from,t.to)==0,a=Ma(r,i,l),s=Aa(n,o,l),u=t.text.length==1,x=Ee(t.text).length+(u?i:0);if(a)for(var w=0;w<a.length;++w){var R=a[w];if(R.to==null){var H=fr(s,R.marker);H?u&&(R.to=H.to==null?null:H.to+x):R.to=i}}if(s)for(var J=0;J<s.length;++J){var ie=s[J];if(ie.to!=null&&(ie.to+=x),ie.from==null){var fe=fr(a,ie.marker);fe||(ie.from=x,u&&(a||(a=[])).push(ie))}else ie.from+=x,u&&(a||(a=[])).push(ie)}a&&(a=wo(a)),s&&s!=a&&(s=wo(s));var he=[a];if(!u){var xe=t.text.length-2,pe;if(xe>0&&a)for(var we=0;we<a.length;++we)a[we].to==null&&(pe||(pe=[])).push(new Rr(a[we].marker,null,null));for(var De=0;De<xe;++De)he.push(pe);he.push(s)}return he}function wo(e){for(var t=0;t<e.length;++t){var r=e[t];r.from!=null&&r.from==r.to&&r.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function za(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(H){if(H.markedSpans)for(var J=0;J<H.markedSpans.length;++J){var ie=H.markedSpans[J].marker;ie.readOnly&&(!n||oe(n,ie)==-1)&&(n||(n=[])).push(ie)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var l=n[o],a=l.find(0),s=0;s<i.length;++s){var u=i[s];if(!(c(u.to,a.from)<0||c(u.from,a.to)>0)){var x=[s,1],w=c(u.from,a.from),R=c(u.to,a.to);(w<0||!l.inclusiveLeft&&!w)&&x.push({from:u.from,to:a.from}),(R>0||!l.inclusiveRight&&!R)&&x.push({from:a.to,to:u.to}),i.splice.apply(i,x),s+=x.length-3}}return i}function _o(e){var t=e.markedSpans;if(!!t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function So(e,t){if(!!t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function jr(e){return e.inclusiveLeft?-1:0}function Kr(e){return e.inclusiveRight?1:0}function wi(e,t){var r=e.lines.length-t.lines.length;if(r!=0)return r;var n=e.find(),i=t.find(),o=c(n.from,i.from)||jr(e)-jr(t);if(o)return-o;var l=c(n.to,i.to)||Kr(e)-Kr(t);return l||t.id-e.id}function Co(e,t){var r=rn&&e.markedSpans,n;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&(t?i.from:i.to)==null&&(!n||wi(n,i.marker)<0)&&(n=i.marker);return n}function Lo(e){return Co(e,!0)}function Ur(e){return Co(e,!1)}function Ea(e,t){var r=rn&&e.markedSpans,n;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!n||wi(n,o.marker)<0)&&(n=o.marker)}return n}function To(e,t,r,n,i){var o=Le(e,t),l=rn&&o.markedSpans;if(l)for(var a=0;a<l.length;++a){var s=l[a];if(!!s.marker.collapsed){var u=s.marker.find(0),x=c(u.from,r)||jr(s.marker)-jr(i),w=c(u.to,n)||Kr(s.marker)-Kr(i);if(!(x>=0&&w<=0||x<=0&&w>=0)&&(x<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?c(u.to,r)>=0:c(u.to,r)>0)||x>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?c(u.from,n)<=0:c(u.from,n)<0)))return!0}}}function Jt(e){for(var t;t=Lo(e);)e=t.find(-1,!0).line;return e}function Da(e){for(var t;t=Ur(e);)e=t.find(1,!0).line;return e}function Fa(e){for(var t,r;t=Ur(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function _i(e,t){var r=Le(e,t),n=Jt(r);return r==n?t:Ye(n)}function Mo(e,t){if(t>e.lastLine())return t;var r=Le(e,t),n;if(!fn(e,r))return t;for(;n=Ur(r);)r=n.find(1,!0).line;return Ye(r)+1}function fn(e,t){var r=rn&&t.markedSpans;if(r){for(var n=void 0,i=0;i<r.length;++i)if(n=r[i],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&Si(e,t,n))return!0}}}function Si(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return Si(e,n.line,fr(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.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==r.to&&(i.to==null||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&Si(e,t,i))return!0}function on(e){e=Jt(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;r=o,o=r.parent)for(var l=0;l<o.children.length;++l){var a=o.children[l];if(a==r)break;t+=a.height}return t}function Gr(e){if(e.height==0)return 0;for(var t=e.text.length,r,n=e;r=Lo(n);){var i=r.find(0,!0);n=i.from.line,t+=i.from.ch-i.to.ch}for(n=e;r=Ur(n);){var o=r.find(0,!0);t-=n.text.length-o.from.ch,n=o.to.line,t+=n.text.length-o.to.ch}return t}function Ci(e){var t=e.display,r=e.doc;t.maxLine=Le(r,r.first),t.maxLineLength=Gr(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var i=Gr(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var In=function(e,t,r){this.text=e,So(this,t),this.height=r?r(this):1};In.prototype.lineNo=function(){return Ye(this)},Xt(In);function Oa(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),_o(e),So(e,r);var i=n?n(e):1;i!=e.height&&Et(e,i)}function Na(e){e.parent=null,_o(e)}var Pa={},Ia={};function Ao(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Ia:Pa;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function zo(e,t){var r=b("span",null,null,E?"padding-right: .1px":null),n={pre:b("pre",[r],"CodeMirror-line"),content:r,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,l=void 0;n.pos=0,n.addToken=Wa,Yt(e.display.measure)&&(l=Te(o,e.doc.direction))&&(n.addToken=qa(n.addToken,l)),n.map=[];var a=t!=e.display.externalMeasured&&Ye(o);Ra(o,n,go(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=ze(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=ze(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Hr(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(E){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Me(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=ze(n.pre.className,n.textClass||"")),n}function Ha(e){var t=g("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Wa(e,t,r,n,i,o,l){if(!!t){var a=e.splitSpaces?Ba(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,x;if(!s.test(t))e.col+=t.length,x=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,x),k&&Z<9&&(u=!0),e.pos+=t.length;else{x=document.createDocumentFragment();for(var w=0;;){s.lastIndex=w;var R=s.exec(t),H=R?R.index-w:t.length-w;if(H){var J=document.createTextNode(a.slice(w,w+H));k&&Z<9?x.appendChild(g("span",[J])):x.appendChild(J),e.map.push(e.pos,e.pos+H,J),e.col+=H,e.pos+=H}if(!R)break;w+=H+1;var ie=void 0;if(R[0]=="	"){var fe=e.cm.options.tabSize,he=fe-e.col%fe;ie=x.appendChild(g("span",_e(he),"cm-tab")),ie.setAttribute("role","presentation"),ie.setAttribute("cm-text","	"),e.col+=he}else R[0]=="\r"||R[0]==`
  `?(ie=x.appendChild(g("span",R[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ie.setAttribute("cm-text",R[0]),e.col+=1):(ie=e.cm.options.specialCharPlaceholder(R[0]),ie.setAttribute("cm-text",R[0]),k&&Z<9?x.appendChild(g("span",[ie])):x.appendChild(ie),e.col+=1);e.map.push(e.pos,e.pos+1,ie),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,r||n||i||u||o||l){var xe=r||"";n&&(xe+=n),i&&(xe+=i);var pe=g("span",[x],xe,o);if(l)for(var we in l)l.hasOwnProperty(we)&&we!="style"&&we!="class"&&pe.setAttribute(we,l[we]);return e.content.appendChild(pe)}e.content.appendChild(x)}}function Ba(e,t){if(e.length>1&&!/  /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);o==" "&&r&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(o="\xA0"),n+=o,r=o==" "}return n}function qa(e,t){return function(r,n,i,o,l,a,s){i=i?i+" cm-force-border":"cm-force-border";for(var u=r.pos,x=u+n.length;;){for(var w=void 0,R=0;R<t.length&&(w=t[R],!(w.to>u&&w.from<=u));R++);if(w.to>=x)return e(r,n,i,o,l,a,s);e(r,n.slice(0,w.to-u),i,o,null,a,s),o=null,n=n.slice(w.to-u),u=w.to}}}function Eo(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Ra(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(!n){for(var l=1;l<r.length;l+=2)t.addToken(t,i.slice(o,o=r[l]),Ao(r[l+1],t.cm.options));return}for(var a=i.length,s=0,u=1,x="",w,R,H=0,J,ie,fe,he,xe;;){if(H==s){J=ie=fe=R="",xe=null,he=null,H=Infinity;for(var pe=[],we=void 0,De=0;De<n.length;++De){var Ae=n[De],Re=Ae.marker;if(Re.type=="bookmark"&&Ae.from==s&&Re.widgetNode)pe.push(Re);else if(Ae.from<=s&&(Ae.to==null||Ae.to>s||Re.collapsed&&Ae.to==s&&Ae.from==s)){if(Ae.to!=null&&Ae.to!=s&&H>Ae.to&&(H=Ae.to,ie=""),Re.className&&(J+=" "+Re.className),Re.css&&(R=(R?R+";":"")+Re.css),Re.startStyle&&Ae.from==s&&(fe+=" "+Re.startStyle),Re.endStyle&&Ae.to==H&&(we||(we=[])).push(Re.endStyle,Ae.to),Re.title&&((xe||(xe={})).title=Re.title),Re.attributes)for(var $e in Re.attributes)(xe||(xe={}))[$e]=Re.attributes[$e];Re.collapsed&&(!he||wi(he.marker,Re)<0)&&(he=Ae)}else Ae.from>s&&H>Ae.from&&(H=Ae.from)}if(we)for(var pt=0;pt<we.length;pt+=2)we[pt+1]==H&&(ie+=" "+we[pt]);if(!he||he.from==s)for(var it=0;it<pe.length;++it)Eo(t,0,pe[it]);if(he&&(he.from||0)==s){if(Eo(t,(he.to==null?a+1:he.to)-s,he.marker,he.from==null),he.to==null)return;he.to==s&&(he=!1)}}if(s>=a)break;for(var Ft=Math.min(a,H);;){if(x){var Mt=s+x.length;if(!he){var st=Mt>Ft?x.slice(0,Ft-s):x;t.addToken(t,st,w?w+J:J,fe,s+st.length==H?ie:"",R,xe)}if(Mt>=Ft){x=x.slice(Ft-s),s=Ft;break}s=Mt,fe=""}x=i.slice(o,o=r[u++]),w=Ao(r[u++],t.cm.options)}}}function Do(e,t,r){this.line=t,this.rest=Fa(t),this.size=this.rest?Ye(Ee(this.rest))-r+1:1,this.node=this.text=null,this.hidden=fn(e,t)}function Xr(e,t,r){for(var n=[],i,o=t;o<r;o=i){var l=new Do(e.doc,Le(e.doc,o),o);i=o+l.size,n.push(l)}return n}var Hn=null;function ja(e){Hn?Hn.ops.push(e):e.ownsGroup=Hn={ops:[e],delayedCallbacks:[]}}function Ka(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Ua(e,t){var r=e.ownsGroup;if(!!r)try{Ka(r)}finally{Hn=null,t(r)}}var dr=null;function ft(e,t){var r=qt(e,t);if(!!r.length){var n=Array.prototype.slice.call(arguments,2),i;Hn?i=Hn.delayedCallbacks:dr?i=dr:(i=dr=[],setTimeout(Ga,0));for(var o=function(a){i.push(function(){return r[a].apply(null,n)})},l=0;l<r.length;++l)o(l)}}function Ga(){var e=dr;dr=null;for(var t=0;t<e.length;++t)e[t]()}function Fo(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?Ya(e,t):o=="gutter"?No(e,t,r,n):o=="class"?Li(e,t):o=="widget"&&Qa(e,t,n)}t.changes=null}function hr(e){return e.node==e.text&&(e.node=g("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),k&&Z<8&&(e.node.style.zIndex=2)),e.node}function Xa(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=hr(t);t.background=n.insertBefore(g("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function Oo(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):zo(e,t)}function Ya(e,t){var r=t.text.className,n=Oo(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,Li(e,t)):r&&(t.text.className=r)}function Li(e,t){Xa(e,t),t.line.wrapClass?hr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function No(e,t,r,n){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=hr(t);t.gutterBackground=g("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.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 l=hr(t),a=t.gutter=g("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),e.display.input.setUneditable(a),l.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=a.appendChild(g("div",ur(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var u=e.display.gutterSpecs[s].className,x=o.hasOwnProperty(u)&&o[u];x&&a.appendChild(g("div",[x],"CodeMirror-gutter-elt","left: "+n.gutterLeft[u]+"px; width: "+n.gutterWidth[u]+"px"))}}}function Qa(e,t,r){t.alignable&&(t.alignable=null);for(var n=M("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);Po(e,t,r)}function Za(e,t,r,n){var i=Oo(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Li(e,t),No(e,t,r,n),Po(e,t,n),t.node}function Po(e,t,r){if(Io(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Io(e,t.rest[n],t,r,!1)}function Io(e,t,r,n,i){if(!!t.widgets)for(var o=hr(r),l=0,a=t.widgets;l<a.length;++l){var s=a[l],u=g("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),$a(s,u,r,n),e.display.input.setUneditable(u),i&&s.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),ft(s,"redraw")}}function $a(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function pr(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!Q(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),A(t.display.measure,g("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function ln(e,t){for(var r=un(t);r!=e.wrapper;r=r.parentNode)if(!r||r.nodeType==1&&r.getAttribute("cm-ignore-events")=="true"||r.parentNode==e.sizer&&r!=e.mover)return!0}function Yr(e){return e.lineSpace.offsetTop}function Ti(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ho(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,g("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function Vt(e){return ve-e.display.nativeBarWidth}function wn(e){return e.display.scroller.clientWidth-Vt(e)-e.display.barWidth}function Mi(e){return e.display.scroller.clientHeight-Vt(e)-e.display.barHeight}function Ja(e,t,r){var n=e.options.lineWrapping,i=n&&wn(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var l=t.text.firstChild.getClientRects(),a=0;a<l.length-1;a++){var s=l[a],u=l[a+1];Math.abs(s.bottom-u.bottom)>2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Wo(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(Ye(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Va(e,t){t=Jt(t);var r=Ye(t),n=e.display.externalMeasured=new Do(e.doc,t,r);n.lineN=r;var i=n.built=zo(e,n);return n.text=i.pre,A(e.display.lineMeasure,i.pre),n}function Bo(e,t,r,n){return en(e,Wn(e,t),r,n)}function Ai(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Cn(e,t)];var r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size)return r}function Wn(e,t){var r=Ye(t),n=Ai(e,r);n&&!n.text?n=null:n&&n.changes&&(Fo(e,n,r,Ni(e)),e.curOp.forceUpdate=!0),n||(n=Va(e,t));var i=Wo(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function en(e,t,r,n,i){t.before&&(r=-1);var o=r+(n||""),l;return t.cache.hasOwnProperty(o)?l=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Ja(e,t.view,t.rect),t.hasHeights=!0),l=ts(e,t,r,n),l.bogus||(t.cache[o]=l)),{left:l.left,right:l.right,top:i?l.rtop:l.top,bottom:i?l.rbottom:l.bottom}}var qo={left:0,right:0,top:0,bottom:0};function Ro(e,t,r){for(var n,i,o,l,a,s,u=0;u<e.length;u+=3)if(a=e[u],s=e[u+1],t<a?(i=0,o=1,l="left"):t<s?(i=t-a,o=i+1):(u==e.length-3||t==s&&e[u+3]>t)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(n=e[u+2],a==s&&r==(n.insertLeft?"left":"right")&&(l=r),r=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[(u-=3)+2],l="left";if(r=="right"&&i==s-a)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)n=e[(u+=3)+2],l="right";break}return{node:n,start:i,end:o,collapse:l,coverStart:a,coverEnd:s}}function es(e,t){var r=qo;if(t=="left")for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function ts(e,t,r,n){var i=Ro(t.map,r,n),o=i.node,l=i.start,a=i.end,s=i.collapse,u;if(o.nodeType==3){for(var x=0;x<4;x++){for(;l&&je(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a<i.coverEnd&&je(t.line.text.charAt(i.coverStart+a));)++a;if(k&&Z<9&&l==0&&a==i.coverEnd-i.coverStart?u=o.parentNode.getBoundingClientRect():u=es(N(o,l,a).getClientRects(),n),u.left||u.right||l==0)break;a=l,l=l-1,s="right"}k&&Z<11&&(u=ns(e.display.measure,u))}else{l>0&&(s=n="right");var w;e.options.lineWrapping&&(w=o.getClientRects()).length>1?u=w[n=="right"?w.length-1:0]:u=o.getBoundingClientRect()}if(k&&Z<9&&!l&&(!u||!u.left&&!u.right)){var R=o.parentNode.getClientRects()[0];R?u={left:R.left,right:R.left+qn(e.display),top:R.top,bottom:R.bottom}:u=qo}for(var H=u.top-t.rect.top,J=u.bottom-t.rect.top,ie=(H+J)/2,fe=t.view.measure.heights,he=0;he<fe.length-1&&!(ie<fe[he]);he++);var xe=he?fe[he-1]:0,pe=fe[he],we={left:(s=="right"?u.right:u.left)-t.rect.left,right:(s=="left"?u.left:u.right)-t.rect.left,top:xe,bottom:pe};return!u.left&&!u.right&&(we.bogus=!0),e.options.singleCursorHeightPerLine||(we.rtop=H,we.rbottom=J),we}function ns(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!cn(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function jo(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 Ko(e){e.display.externalMeasure=null,G(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)jo(e.display.view[t])}function gr(e){Ko(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Uo(){return v&&L?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Go(){return v&&L?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function zi(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=pr(e.widgets[r]));return t}function Qr(e,t,r,n,i){if(!i){var o=zi(t);r.top+=o,r.bottom+=o}if(n=="line")return r;n||(n="local");var l=on(t);if(n=="local"?l+=Yr(e.display):l-=e.display.viewOffset,n=="page"||n=="window"){var a=e.display.lineSpace.getBoundingClientRect();l+=a.top+(n=="window"?0:Go());var s=a.left+(n=="window"?0:Uo());r.left+=s,r.right+=s}return r.top+=l,r.bottom+=l,r}function Xo(e,t,r){if(r=="div")return t;var n=t.left,i=t.top;if(r=="page")n-=Uo(),i-=Go();else if(r=="local"||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:n-l.left,top:i-l.top}}function Ei(e,t,r,n,i){return n||(n=Le(e.doc,t.line)),Qr(e,n,Bo(e,n,t.ch,i),r)}function Kt(e,t,r,n,i,o){n=n||Le(e.doc,t.line),i||(i=Wn(e,n));function l(J,ie){var fe=en(e,i,J,ie?"right":"left",o);return ie?fe.left=fe.right:fe.right=fe.left,Qr(e,n,fe,r)}var a=Te(n,e.doc.direction),s=t.ch,u=t.sticky;if(s>=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function x(J,ie,fe){var he=a[ie],xe=he.level==1;return l(fe?J-1:J,xe!=fe)}var w=D(a,s,u),R=I,H=x(s,w,u=="before");return R!=null&&(H.other=x(s,R,u!="before")),H}function Yo(e,t){var r=0;t=be(e.doc,t),e.options.lineWrapping||(r=qn(e.display)*t.ch);var n=Le(e.doc,t.line),i=on(n)+Yr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Di(e,t,r,n,i){var o=ae(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function Fi(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return Di(n.first,0,null,-1,-1);var i=Zt(n,r),o=n.first+n.size-1;if(i>o)return Di(n.first+n.size-1,Le(n,o).text.length,null,1,1);t<0&&(t=0);for(var l=Le(n,i);;){var a=rs(e,l,i,t,r),s=Ea(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=Le(n,i=u.line)}}function Qo(e,t,r,n){n-=zi(t);var i=t.text.length,o=Ve(function(l){return en(e,r,l-1).bottom<=n},i,0);return i=Ve(function(l){return en(e,r,l).top>n},o,i),{begin:o,end:i}}function Zo(e,t,r,n){r||(r=Wn(e,t));var i=Qr(e,t,en(e,r,n),"line").top;return Qo(e,t,r,i)}function Oi(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function rs(e,t,r,n,i){i-=on(t);var o=Wn(e,t),l=zi(t),a=0,s=t.text.length,u=!0,x=Te(t,e.doc.direction);if(x){var w=(e.options.lineWrapping?os:is)(e,t,r,o,x,n,i);u=w.level!=1,a=u?w.from:w.to-1,s=u?w.to:w.from-1}var R=null,H=null,J=Ve(function(De){var Ae=en(e,o,De);return Ae.top+=l,Ae.bottom+=l,Oi(Ae,n,i,!1)?(Ae.top<=i&&Ae.left<=n&&(R=De,H=Ae),!0):!1},a,s),ie,fe,he=!1;if(H){var xe=n-H.left<H.right-n,pe=xe==u;J=R+(pe?0:1),fe=pe?"after":"before",ie=xe?H.left:H.right}else{!u&&(J==s||J==a)&&J++,fe=J==0?"after":J==t.text.length?"before":en(e,o,J-(u?1:0)).bottom+l<=i==u?"after":"before";var we=Kt(e,ae(r,J,fe),"line",t,o);ie=we.left,he=i<we.top?-1:i>=we.bottom?1:0}return J=nt(t.text,J,1),Di(r,J,fe,he,n-ie)}function is(e,t,r,n,i,o,l){var a=Ve(function(w){var R=i[w],H=R.level!=1;return Oi(Kt(e,ae(r,H?R.to:R.from,H?"before":"after"),"line",t,n),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,x=Kt(e,ae(r,u?s.from:s.to,u?"after":"before"),"line",t,n);Oi(x,o,l,!0)&&x.top>l&&(s=i[a-1])}return s}function os(e,t,r,n,i,o,l){var a=Qo(e,t,n,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var x=null,w=null,R=0;R<i.length;R++){var H=i[R];if(!(H.from>=u||H.to<=s)){var J=H.level!=1,ie=en(e,n,J?Math.min(u,H.to)-1:Math.max(s,H.from)).right,fe=ie<o?o-ie+1e9:ie-o;(!x||w>fe)&&(x=H,w=fe)}}return x||(x=i[i.length-1]),x.from<s&&(x={from:s,to:x.to,level:x.level}),x.to>u&&(x={from:x.from,to:u,level:x.level}),x}var _n;function Bn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(_n==null){_n=g("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)_n.appendChild(document.createTextNode("x")),_n.appendChild(g("br"));_n.appendChild(document.createTextNode("x"))}A(e.measure,_n);var r=_n.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),G(e.measure),r||1}function qn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=g("span","xxxxxxxxxx"),r=g("pre",[t],"CodeMirror-line-like");A(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ni(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;r[a]=o.offsetLeft+o.clientLeft+i,n[a]=o.clientWidth}return{fixedPos:Pi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Pi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function $o(e){var t=Bn(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/qn(e.display)-3);return function(i){if(fn(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function Ii(e){var t=e.doc,r=$o(e);t.iter(function(n){var i=r(n);i!=n.height&&Et(n,i)})}function Sn(e,t,r,n){var i=e.display;if(!r&&un(t).getAttribute("cm-not-content")=="true")return null;var o,l,a=i.lineSpace.getBoundingClientRect();try{o=t.clientX-a.left,l=t.clientY-a.top}catch(w){return null}var s=Fi(e,o,l),u;if(n&&s.xRel>0&&(u=Le(e.doc,s.line).text).length==s.ch){var x=le(u,u.length,e.options.tabSize)-u.length;s=ae(s.line,Math.max(0,Math.round((o-Ho(e.display).left)/qn(e.display))-x))}return s}function Cn(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;n<r.length;n++)if(t-=r[n].size,t<0)return n}function Lt(e,t,r,n){t==null&&(t=e.doc.first),r==null&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)rn&&_i(e.doc,t)<i.viewTo&&hn(e);else if(r<=i.viewFrom)rn&&Mo(e.doc,r+n)>i.viewFrom?hn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)hn(e);else if(t<=i.viewFrom){var o=Zr(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):hn(e)}else if(r>=i.viewTo){var l=Zr(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):hn(e)}else{var a=Zr(e,t,t,-1),s=Zr(e,r,r+n,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Xr(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):hn(e)}var u=i.externalMeasured;u&&(r<u.lineN?u.lineN+=n:t<u.lineN+u.size&&(i.externalMeasured=null))}function dn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[Cn(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);oe(l,r)==-1&&l.push(r)}}}function hn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zr(e,t,r,n){var i=Cn(e,t),o,l=e.display.view;if(!rn||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var a=e.display.viewFrom,s=0;s<i;s++)a+=l[s].size;if(a!=t){if(n>0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,r+=o}for(;_i(e.doc,r)!=r;){if(i==(n<0?0:l.length-1))return null;r+=n*l[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function ls(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=Xr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Xr(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Cn(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(Xr(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,Cn(e,r)))),n.viewTo=r}function Jo(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];!i.hidden&&(!i.node||i.changes)&&++r}return r}function mr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Vo(e,t){t===void 0&&(t=!0);for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),l=0;l<r.sel.ranges.length;l++)if(!(!t&&l==r.sel.primIndex)){var a=r.sel.ranges[l];if(!(a.from().line>=e.display.viewTo||a.to().line<e.display.viewFrom)){var s=a.empty();(s||e.options.showCursorWhenSelecting)&&el(e,a.head,i),s||as(e,a,o)}}return n}function el(e,t,r){var n=Kt(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(g("div","\xA0","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var o=r.appendChild(g("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=n.other.left+"px",o.style.top=n.other.top+"px",o.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function $r(e,t){return e.top-t.top||e.left-t.left}function as(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),l=Ho(e.display),a=l.left,s=Math.max(n.sizerWidth,wn(e)-n.sizer.offsetLeft)-l.right,u=i.direction=="ltr";function x(pe,we,De,Ae){we<0&&(we=0),we=Math.round(we),Ae=Math.round(Ae),o.appendChild(g("div",null,"CodeMirror-selected","position: absolute; left: "+pe+`px;
                               top: `+we+"px; width: "+(De==null?s-pe:De)+`px;
                               height: `+(Ae-we)+"px"))}function w(pe,we,De){var Ae=Le(i,pe),Re=Ae.text.length,$e,pt;function it(st,At){return Ei(e,ae(pe,st),"div",Ae,At)}function Ft(st,At,vt){var ct=Zo(e,Ae,null,st),ut=At=="ltr"==(vt=="after")?"left":"right",lt=vt=="after"?ct.begin:ct.end-(/\s/.test(Ae.text.charAt(ct.end-1))?2:1);return it(lt,ut)[ut]}var Mt=Te(Ae,i.direction);return wt(Mt,we||0,De==null?Re:De,function(st,At,vt,ct){var ut=vt=="ltr",lt=it(st,ut?"left":"right"),zt=it(At-1,ut?"right":"left"),er=we==null&&st==0,xn=De==null&&At==Re,kt=ct==0,tn=!Mt||ct==Mt.length-1;if(zt.top-lt.top<=3){var gt=(u?er:xn)&&kt,uo=(u?xn:er)&&tn,sn=gt?a:(ut?lt:zt).left,zn=uo?s:(ut?zt:lt).right;x(sn,lt.top,zn-sn,lt.bottom)}else{var En,St,tr,co;ut?(En=u&&er&&kt?a:lt.left,St=u?s:Ft(st,vt,"before"),tr=u?a:Ft(At,vt,"after"),co=u&&xn&&tn?s:zt.right):(En=u?Ft(st,vt,"before"):a,St=!u&&er&&kt?s:lt.right,tr=!u&&xn&&tn?a:zt.left,co=u?Ft(At,vt,"after"):s),x(En,lt.top,St-En,lt.bottom),lt.bottom<zt.top&&x(a,lt.bottom,null,zt.top),x(tr,zt.top,co-tr,zt.bottom)}(!$e||$r(lt,$e)<0)&&($e=lt),$r(zt,$e)<0&&($e=zt),(!pt||$r(lt,pt)<0)&&(pt=lt),$r(zt,pt)<0&&(pt=zt)}),{start:$e,end:pt}}var R=t.from(),H=t.to();if(R.line==H.line)w(R.line,R.ch,H.ch);else{var J=Le(i,R.line),ie=Le(i,H.line),fe=Jt(J)==Jt(ie),he=w(R.line,R.ch,fe?J.text.length+1:null).end,xe=w(H.line,fe?0:null,H.ch).start;fe&&(he.top<xe.top-2?(x(he.right,he.top,null,he.bottom),x(a,xe.top,xe.left,xe.bottom)):x(he.right,he.top,xe.left-he.right,he.bottom)),he.bottom<xe.top&&x(a,he.bottom,null,xe.top)}r.appendChild(o)}function Hi(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Rn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function tl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Bi(e))}function Wi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Rn(e))},100)}function Bi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Me(e,"focus",e,t),e.state.focused=!0,ge(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),E&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Hi(e))}function Rn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Me(e,"blur",e,t),e.state.focused=!1,z(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Jr(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var i=t.view[n],o=e.options.lineWrapping,l=void 0,a=0;if(!i.hidden){if(k&&Z<8){var s=i.node.offsetTop+i.node.offsetHeight;l=s-r,r=s}else{var u=i.node.getBoundingClientRect();l=u.bottom-u.top,!o&&i.text.firstChild&&(a=i.text.firstChild.getBoundingClientRect().right-u.left-1)}var x=i.line.height-l;if((x>.005||x<-.005)&&(Et(i.line,l),nl(i.line),i.rest))for(var w=0;w<i.rest.length;w++)nl(i.rest[w]);if(a>e.display.sizerWidth){var R=Math.ceil(a/qn(e.display));R>e.display.maxLineLength&&(e.display.maxLineLength=R,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function nl(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Vr(e,t,r){var n=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Yr(e));var i=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,o=Zt(t,n),l=Zt(t,i);if(r&&r.ensure){var a=r.ensure.from.line,s=r.ensure.to.line;a<o?(o=a,l=Zt(t,on(Le(t,a))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=l&&(o=Zt(t,on(Le(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function ss(e,t){if(!Xe(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null;if(t.top+n.top<0?i=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),i!=null&&!p){var o=g("div","\u200B",null,`position: absolute;
                           top: `+(t.top-r.viewOffset-Yr(e.display))+`px;
                           height: `+(t.bottom-t.top+Vt(e)+r.barHeight)+`px;
                           left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function us(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(r=t.sticky=="before"?ae(t.line,t.ch+1,"before"):t,t=t.ch?ae(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Kt(e,t),s=!r||r==t?a:Kt(e,r);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-n,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+n};var u=qi(e,i),x=e.doc.scrollTop,w=e.doc.scrollLeft;if(u.scrollTop!=null&&(br(e,u.scrollTop),Math.abs(e.doc.scrollTop-x)>1&&(l=!0)),u.scrollLeft!=null&&(Ln(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-w)>1&&(l=!0)),!l)break}return i}function cs(e,t){var r=qi(e,t);r.scrollTop!=null&&br(e,r.scrollTop),r.scrollLeft!=null&&Ln(e,r.scrollLeft)}function qi(e,t){var r=e.display,n=Bn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,o=Mi(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Ti(r),s=t.top<n,u=t.bottom>a-n;if(t.top<i)l.scrollTop=s?0:t.top;else if(t.bottom>i+o){var x=Math.min(t.top,(u?a:t.bottom)-o);x!=i&&(l.scrollTop=x)}var w=e.options.fixedGutter?0:r.gutters.offsetWidth,R=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-w,H=wn(e)-r.gutters.offsetWidth,J=t.right-t.left>H;return J&&(t.right=t.left+H),t.left<10?l.scrollLeft=0:t.left<R?l.scrollLeft=Math.max(0,t.left+w-(J?0:10)):t.right>H+R-3&&(l.scrollLeft=t.right+(J?0:10)-H),l}function Ri(e,t){t!=null&&(ei(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function jn(e){ei(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function vr(e,t,r){(t!=null||r!=null)&&ei(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function fs(e,t){ei(e),e.curOp.scrollToPos=t}function ei(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=Yo(e,t.from),n=Yo(e,t.to);rl(e,r,n,t.margin)}}function rl(e,t,r,n){var i=qi(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});vr(e,i.scrollLeft,i.scrollTop)}function br(e,t){Math.abs(e.doc.scrollTop-t)<2||(B||Ki(e,{top:t}),il(e,t,!0),B&&Ki(e),kr(e,100))}function il(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ln(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,ul(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function xr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Ti(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?r:0,docHeight:n,scrollHeight:n+Vt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Tn=function(e,t,r){this.cm=r;var n=this.vert=g("div",[g("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=g("div",[g("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),Se(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Se(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,k&&Z<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n: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&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Tn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tn.prototype.zeroWidthHack=function(){var e=W&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ye,this.disableVert=new ye},Tn.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto";function n(){var i=e.getBoundingClientRect(),o=r=="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.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Tn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var yr=function(){};yr.prototype.update=function(){return{bottom:0,right:0}},yr.prototype.setScrollLeft=function(){},yr.prototype.setScrollTop=function(){},yr.prototype.clear=function(){};function Kn(e,t){t||(t=xr(e));var r=e.display.barWidth,n=e.display.barHeight;ol(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),ol(e,xr(e)),r=e.display.barWidth,n=e.display.barHeight}function ol(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var ll={native:Tn,null:yr};function al(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&z(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ll[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Se(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?Ln(e,t):br(e,t)},e),e.display.scrollbars.addClass&&ge(e.display.wrapper,e.display.scrollbars.addClass)}var ds=0;function Mn(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:++ds,markArrays:null},ja(e.curOp)}function An(e){var t=e.curOp;t&&Ua(t,function(r){for(var n=0;n<r.ops.length;n++)r.ops[n].cm.curOp=null;hs(r)})}function hs(e){for(var t=e.ops,r=0;r<t.length;r++)ps(t[r]);for(var n=0;n<t.length;n++)gs(t[n]);for(var i=0;i<t.length;i++)ms(t[i]);for(var o=0;o<t.length;o++)vs(t[o]);for(var l=0;l<t.length;l++)bs(t[l])}function ps(e){var t=e.cm,r=t.display;ys(t),e.updateMaxLine&&Ci(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ti(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function gs(e){e.updatedDisplay=e.mustUpdate&&ji(e.cm,e.update)}function ms(e){var t=e.cm,r=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=xr(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Bo(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Vt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-wn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function vs(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ln(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==me();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Kn(t,e.barMeasure),e.updatedDisplay&&Gi(t,e.barMeasure),e.selectionChanged&&Hi(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&tl(e.cm)}function bs(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&sl(t,e.update),r.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(r.wheelStartX=r.wheelStartY=null),e.scrollTop!=null&&il(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ln(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=us(t,be(n,e.scrollToPos.from),be(n,e.scrollToPos.to),e.scrollToPos.margin);ss(t,i)}var o=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||Me(o[a],"hide");if(l)for(var s=0;s<l.length;++s)l[s].lines.length&&Me(l[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Me(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Dt(e,t){if(e.curOp)return t();Mn(e);try{return t()}finally{An(e)}}function dt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Mn(e);try{return t.apply(e,arguments)}finally{An(e)}}}function _t(e){return function(){if(this.curOp)return e.apply(this,arguments);Mn(this);try{return e.apply(this,arguments)}finally{An(this)}}}function ht(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Mn(t);try{return e.apply(this,arguments)}finally{An(t)}}}function kr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,S(xs,e))}function xs(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=cr(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Pt(t.mode,n.state):null,s=po(e,o,n,!0);a&&(n.state=a),o.styles=s.styles;var u=o.styleClasses,x=s.classes;x?o.styleClasses=x:u&&(o.styleClasses=null);for(var w=!l||l.length!=o.styles.length||u!=x&&(!u||!x||u.bgClass!=x.bgClass||u.textClass!=x.textClass),R=0;!w&&R<l.length;++R)w=l[R]!=o.styles[R];w&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&xi(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return kr(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Dt(e,function(){for(var o=0;o<i.length;o++)dn(e,i[o],"text")})}}var ti=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Vr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=wn(e),this.force=r,this.dims=Ni(e),this.events=[]};ti.prototype.signal=function(e,t){mt(e,t)&&this.events.push(arguments)},ti.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Me.apply(null,this.events[e])};function ys(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Vt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Vt(e)+"px",t.scrollbarsClipped=!0)}function ks(e){if(e.hasFocus())return null;var t=me();if(!t||!Q(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&Q(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function ws(e){if(!(!e||!e.activeElt||e.activeElt==me())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&Q(document.body,e.anchorNode)&&Q(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}function ji(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return hn(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Jo(e)==0)return!1;cl(e)&&(hn(e),t.dims=Ni(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(n.first,r.viewFrom)),r.viewTo>l&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),rn&&(o=_i(e.doc,o),l=Mo(e.doc,l));var a=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;ls(e,o,l),r.viewOffset=on(Le(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Jo(e);if(!a&&s==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var u=ks(e);return s>4&&(r.lineDiv.style.display="none"),_s(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,ws(u),G(r.cursorDiv),G(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,a&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,kr(e,400)),r.updateLineNumbers=null,!0}function sl(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==wn(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+Ti(e.display)-Mi(e),r.top)}),t.visible=Vr(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vr(e.display,e.doc,r));if(!ji(e,t))break;Jr(e);var i=xr(e);mr(e),Kn(e,i),Gi(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 Ki(e,t){var r=new ti(e,t);if(ji(e,r)){Jr(e),sl(e,r);var n=xr(e);mr(e),Kn(e,n),Gi(e,n),r.finish()}}function _s(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,l=o.firstChild;function a(J){var ie=J.nextSibling;return E&&W&&e.display.currentWheelTarget==J?J.style.display="none":J.parentNode.removeChild(J),ie}for(var s=n.view,u=n.viewFrom,x=0;x<s.length;x++){var w=s[x];if(!w.hidden)if(!w.node||w.node.parentNode!=o){var R=Za(e,w,u,r);o.insertBefore(R,l)}else{for(;l!=w.node;)l=a(l);var H=i&&t!=null&&t<=u&&w.lineNumber;w.changes&&(oe(w.changes,"gutter")>-1&&(H=!1),Fo(e,w,u,r)),H&&(G(w.lineNumber),w.lineNumber.appendChild(document.createTextNode(ur(e.options,u)))),l=w.node.nextSibling}u+=w.size}for(;l;)l=a(l)}function Ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",ft(e,"gutterChanged",e)}function Gi(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+Vt(e)+"px"}function ul(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Pi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;l<r.length;l++)if(!r[l].hidden){e.options.fixedGutter&&(r[l].gutter&&(r[l].gutter.style.left=o),r[l].gutterBackground&&(r[l].gutterBackground.style.left=o));var a=r[l].alignable;if(a)for(var s=0;s<a.length;s++)a[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function cl(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=ur(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild(g("div",[g("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,l=i.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-l)+1,n.lineNumWidth=n.lineNumInnerWidth+l,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Ui(e.display),!0}return!1}function Xi(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var o=e[i],l=null;if(typeof o!="string"&&(l=o.style,o=o.className),o=="CodeMirror-linenumbers")if(t)n=!0;else continue;r.push({className:o,style:l})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function fl(e){var t=e.gutters,r=e.gutterSpecs;G(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],o=i.className,l=i.style,a=t.appendChild(g("div",null,"CodeMirror-gutter "+o));l&&(a.style.cssText=l),o=="CodeMirror-linenumbers"&&(e.lineGutter=a,a.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",Ui(e)}function wr(e){fl(e.display),Lt(e),ul(e)}function Ss(e,t,r,n){var i=this;this.input=r,i.scrollbarFiller=g("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=g("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=b("div",null,"CodeMirror-code"),i.selectionDiv=g("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=g("div",null,"CodeMirror-cursors"),i.measure=g("div",null,"CodeMirror-measure"),i.lineMeasure=g("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=g("div",[o],null,"position: relative"),i.sizer=g("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=g("div",null,null,"position: absolute; height: "+ve+"px; width: 1px;"),i.gutters=g("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=g("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=g("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),k&&Z<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!E&&!(B&&O)&&(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=Xi(n.gutters,n.lineNumbers),fl(i),r.init(i)}var ni=0,Ht=null;k?Ht=-.53:B?Ht=15:v?Ht=-.7:_&&(Ht=-1/3);function dl(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function Cs(e){var t=dl(e);return t.x*=Ht,t.y*=Ht,t}function hl(e,t){var r=dl(t),n=r.x,i=r.y,o=e.display,l=o.scroller,a=l.scrollWidth>l.clientWidth,s=l.scrollHeight>l.clientHeight;if(!!(n&&a||i&&s)){if(i&&W&&E){e:for(var u=t.target,x=o.view;u!=l;u=u.parentNode)for(var w=0;w<x.length;w++)if(x[w].node==u){e.display.currentWheelTarget=u;break e}}if(n&&!B&&!y&&Ht!=null){i&&s&&br(e,Math.max(0,l.scrollTop+i*Ht)),Ln(e,Math.max(0,l.scrollLeft+n*Ht)),(!i||i&&s)&&bt(t),o.wheelStartX=null;return}if(i&&Ht!=null){var R=i*Ht,H=e.doc.scrollTop,J=H+o.wrapper.clientHeight;R<0?H=Math.max(0,H+R-50):J=Math.min(e.doc.height,J+R+50),Ki(e,{top:H,bottom:J})}ni<20&&(o.wheelStartX==null?(o.wheelStartX=l.scrollLeft,o.wheelStartY=l.scrollTop,o.wheelDX=n,o.wheelDY=i,setTimeout(function(){if(o.wheelStartX!=null){var ie=l.scrollLeft-o.wheelStartX,fe=l.scrollTop-o.wheelStartY,he=fe&&o.wheelDY&&fe/o.wheelDY||ie&&o.wheelDX&&ie/o.wheelDX;o.wheelStartX=o.wheelStartY=null,!!he&&(Ht=(Ht*ni+he)/(ni+1),++ni)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}var Wt=function(e,t){this.ranges=e,this.primIndex=t};Wt.prototype.primary=function(){return this.ranges[this.primIndex]},Wt.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 r=this.ranges[t],n=e.ranges[t];if(!C(r.anchor,n.anchor)||!C(r.head,n.head))return!1}return!0},Wt.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Qe(V(this.ranges[t].anchor),V(this.ranges[t].head));return new Wt(e,this.primIndex)},Wt.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Wt.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(c(t,n.from())>=0&&c(e,n.to())<=0)return r}return-1};var Qe=function(e,t){this.anchor=e,this.head=t};Qe.prototype.from=function(){return Ne(this.anchor,this.head)},Qe.prototype.to=function(){return ue(this.anchor,this.head)},Qe.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ut(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(R,H){return c(R.from(),H.from())}),r=oe(t,i);for(var o=1;o<t.length;o++){var l=t[o],a=t[o-1],s=c(a.to(),l.from());if(n&&!l.empty()?s>0:s>=0){var u=Ne(a.from(),l.from()),x=ue(a.to(),l.to()),w=a.empty()?l.from()==l.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new Qe(w?x:u,w?u:x))}}return new Wt(t,r)}function pn(e,t){return new Wt([new Qe(e,t||e)],0)}function gn(e){return e.text?ae(e.from.line+e.text.length-1,Ee(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function pl(e,t){if(c(e,t.from)<0)return e;if(c(e,t.to)<=0)return gn(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=gn(t).ch-t.to.ch),ae(r,n)}function Yi(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new Qe(pl(i.anchor,t),pl(i.head,t)))}return Ut(e.cm,r,e.sel.primIndex)}function gl(e,t,r){return e.line==t.line?ae(r.line,e.ch-t.ch+r.ch):ae(r.line+(e.line-t.line),e.ch)}function Ls(e,t,r){for(var n=[],i=ae(e.first,0),o=i,l=0;l<t.length;l++){var a=t[l],s=gl(a.from,i,o),u=gl(gn(a),i,o);if(i=a.to,o=u,r=="around"){var x=e.sel.ranges[l],w=c(x.head,x.anchor)<0;n[l]=new Qe(w?u:s,w?s:u)}else n[l]=new Qe(s,s)}return new Wt(n,e.sel.primIndex)}function Qi(e){e.doc.mode=Nn(e.options,e.doc.modeOption),_r(e)}function _r(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,kr(e,100),e.state.modeGen++,e.curOp&&Lt(e)}function ml(e,t){return t.from.ch==0&&t.to.ch==0&&Ee(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Zi(e,t,r,n){function i(xe){return r?r[xe]:null}function o(xe,pe,we){Oa(xe,pe,we,n),ft(xe,"change",xe,t)}function l(xe,pe){for(var we=[],De=xe;De<pe;++De)we.push(new In(u[De],i(De),n));return we}var a=t.from,s=t.to,u=t.text,x=Le(e,a.line),w=Le(e,s.line),R=Ee(u),H=i(u.length-1),J=s.line-a.line;if(t.full)e.insert(0,l(0,u.length)),e.remove(u.length,e.size-u.length);else if(ml(e,t)){var ie=l(0,u.length-1);o(w,w.text,H),J&&e.remove(a.line,J),ie.length&&e.insert(a.line,ie)}else if(x==w)if(u.length==1)o(x,x.text.slice(0,a.ch)+R+x.text.slice(s.ch),H);else{var fe=l(1,u.length-1);fe.push(new In(R+x.text.slice(s.ch),H,n)),o(x,x.text.slice(0,a.ch)+u[0],i(0)),e.insert(a.line+1,fe)}else if(u.length==1)o(x,x.text.slice(0,a.ch)+u[0]+w.text.slice(s.ch),i(0)),e.remove(a.line+1,J);else{o(x,x.text.slice(0,a.ch)+u[0],i(0)),o(w,R+w.text.slice(s.ch),H);var he=l(1,u.length-1);J>1&&e.remove(a.line+1,J-1),e.insert(a.line+1,he)}ft(e,"change",e,t)}function mn(e,t,r){function n(i,o,l){if(i.linked)for(var a=0;a<i.linked.length;++a){var s=i.linked[a];if(s.doc!=o){var u=l&&s.sharedHist;r&&!u||(t(s.doc,u),n(s.doc,i,u))}}}n(e,null,!0)}function vl(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ii(e),Qi(e),bl(e),e.options.direction=t.direction,e.options.lineWrapping||Ci(e),e.options.mode=t.modeOption,Lt(e)}function bl(e){(e.doc.direction=="rtl"?ge:z)(e.display.lineDiv,"CodeMirror-rtl")}function Ts(e){Dt(e,function(){bl(e),Lt(e)})}function ri(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function $i(e,t){var r={from:V(t.from),to:gn(t),text:Qt(e,t.from,t.to)};return kl(e,r,t.from.line,t.to.line+1),mn(e,function(n){return kl(n,r,t.from.line,t.to.line+1)},!0),r}function xl(e){for(;e.length;){var t=Ee(e);if(t.ranges)e.pop();else break}}function Ms(e,t){if(t)return xl(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 yl(e,t,r,n){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=Ms(i,i.lastOp==n)))a=Ee(l.changes),c(t.from,t.to)==0&&c(t.from,a.to)==0?a.to=gn(t):l.changes.push($i(e,t));else{var s=Ee(i.done);for((!s||!s.ranges)&&ii(e.sel,i.done),l={changes:[$i(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,a||Me(e,"historyAdded")}function As(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function zs(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||As(e,o,Ee(i.done),t))?i.done[i.done.length-1]=t:ii(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&xl(i.undone)}function ii(e,t){var r=Ee(t);r&&r.ranges&&r.equals(e)||t.push(e)}function kl(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function Es(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Ds(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Es(r[i]));return n}function wl(e,t){var r=Ds(e,t),n=ki(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],l=n[i];if(o&&l){e:for(var a=0;a<l.length;++a){for(var s=l[a],u=0;u<o.length;++u)if(o[u].marker==s.marker)continue e;o.push(s)}}else l&&(r[i]=l)}return r}function Un(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges){n.push(r?Wt.prototype.deepCopy.call(o):o);continue}var l=o.changes,a=[];n.push({changes:a});for(var s=0;s<l.length;++s){var u=l[s],x=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),t)for(var w in u)(x=w.match(/^spans_(\d+)$/))&&oe(t,Number(x[1]))>-1&&(Ee(a)[w]=u[w],delete u[w])}}return n}function Ji(e,t,r,n){if(n){var i=e.anchor;if(r){var o=c(t,i)<0;o!=c(r,i)<0?(i=t,t=r):o!=c(t,r)<0&&(t=r)}return new Qe(i,t)}else return new Qe(r||t,t)}function oi(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),yt(e,new Wt([Ji(e.sel.primary(),t,r,i)],0),n)}function _l(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)n[o]=Ji(e.sel.ranges[o],t[o],null,i);var l=Ut(e.cm,n,e.sel.primIndex);yt(e,l,r)}function Vi(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,yt(e,Ut(e.cm,i,e.sel.primIndex),n)}function Sl(e,t,r,n){yt(e,pn(t,r),n)}function Fs(e,t,r){var n={ranges:t.ranges,update:function(i){this.ranges=[];for(var o=0;o<i.length;o++)this.ranges[o]=new Qe(be(e,i[o].anchor),be(e,i[o].head))},origin:r&&r.origin};return Me(e,"beforeSelectionChange",e,n),e.cm&&Me(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?Ut(e.cm,n.ranges,n.ranges.length-1):t}function Cl(e,t,r){var n=e.history.done,i=Ee(n);i&&i.ranges?(n[n.length-1]=t,li(e,t,r)):yt(e,t,r)}function yt(e,t,r){li(e,t,r),zs(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function li(e,t,r){(mt(e,"beforeSelectionChange")||e.cm&&mt(e.cm,"beforeSelectionChange"))&&(t=Fs(e,t,r));var n=r&&r.bias||(c(t.primary().head,e.sel.primary().head)<0?-1:1);Ll(e,Ml(e,t,n,!0)),!(r&&r.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&jn(e.cm)}function Ll(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Dn(e.cm)),ft(e,"cursorActivity",e))}function Tl(e){Ll(e,Ml(e,e.sel,null,!1))}function Ml(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=ai(e,l.anchor,a&&a.anchor,r,n),u=ai(e,l.head,a&&a.head,r,n);(i||s!=l.anchor||u!=l.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Qe(s,u))}return i?Ut(e.cm,i,t.primIndex):t}function Gn(e,t,r,n,i){var o=Le(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var a=o.markedSpans[l],s=a.marker,u="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,x="selectRight"in s?!s.selectRight:s.inclusiveRight;if((a.from==null||(u?a.from<=t.ch:a.from<t.ch))&&(a.to==null||(x?a.to>=t.ch:a.to>t.ch))){if(i&&(Me(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(r){var w=s.find(n<0?1:-1),R=void 0;if((n<0?x:u)&&(w=Al(e,w,-n,w&&w.line==t.line?o:null)),w&&w.line==t.line&&(R=c(w,r))&&(n<0?R<0:R>0))return Gn(e,w,t,n,i)}var H=s.find(n<0?-1:1);return(n<0?u:x)&&(H=Al(e,H,n,H.line==t.line?o:null)),H?Gn(e,H,t,n,i):null}}return t}function ai(e,t,r,n,i){var o=n||1,l=Gn(e,t,r,o,i)||!i&&Gn(e,t,r,o,!0)||Gn(e,t,r,-o,i)||!i&&Gn(e,t,r,-o,!0);return l||(e.cantEdit=!0,ae(e.first,0))}function Al(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?be(e,ae(t.line-1)):null:r>0&&t.ch==(n||Le(e,t.line)).text.length?t.line<e.first+e.size-1?ae(t.line+1,0):null:new ae(t.line,t.ch+r)}function zl(e){e.setSelection(ae(e.firstLine(),0),ae(e.lastLine()),Oe)}function El(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(i,o,l,a){i&&(n.from=be(e,i)),o&&(n.to=be(e,o)),l&&(n.text=l),a!==void 0&&(n.origin=a)}),Me(e,"beforeChange",e,n),e.cm&&Me(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Xn(e,t,r){if(e.cm){if(!e.cm.curOp)return dt(e.cm,Xn)(e,t,r);if(e.cm.state.suppressEdits)return}if(!((mt(e,"beforeChange")||e.cm&&mt(e.cm,"beforeChange"))&&(t=El(e,t,!0),!t))){var n=ko&&!r&&za(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)Dl(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else Dl(e,t)}}function Dl(e,t){if(!(t.text.length==1&&t.text[0]==""&&c(t.from,t.to)==0)){var r=Yi(e,t);yl(e,t,r,e.cm?e.cm.curOp.id:NaN),Sr(e,t,r,ki(e,t));var n=[];mn(e,function(i,o){!o&&oe(n,i.history)==-1&&(Pl(i.history,t),n.push(i.history)),Sr(i,t,null,ki(i,t))})}}function si(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u<a.length&&(o=a[u],!(r?o.ranges&&!o.equals(e.sel):!o.ranges));u++);if(u!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(o=a.pop(),o.ranges){if(ii(o,s),r&&!o.equals(e.sel)){yt(e,o,{clearRedo:!1});return}l=o}else if(n){a.push(o);return}else break;var x=[];ii(l,s),s.push({changes:x,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var w=mt(e,"beforeChange")||e.cm&&mt(e.cm,"beforeChange"),R=function(ie){var fe=o.changes[ie];if(fe.origin=t,w&&!El(e,fe,!1))return a.length=0,{};x.push($i(e,fe));var he=ie?Yi(e,fe):Ee(a);Sr(e,fe,he,wl(e,fe)),!ie&&e.cm&&e.cm.scrollIntoView({from:fe.from,to:gn(fe)});var xe=[];mn(e,function(pe,we){!we&&oe(xe,pe.history)==-1&&(Pl(pe.history,fe),xe.push(pe.history)),Sr(pe,fe,null,wl(pe,fe))})},H=o.changes.length-1;H>=0;--H){var J=R(H);if(J)return J.v}}}}function Fl(e,t){if(t!=0&&(e.first+=t,e.sel=new Wt(Be(e.sel.ranges,function(i){return new Qe(ae(i.anchor.line+t,i.anchor.ch),ae(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){Lt(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)dn(e.cm,n,"gutter")}}function Sr(e,t,r,n){if(e.cm&&!e.cm.curOp)return dt(e.cm,Sr)(e,t,r,n);if(t.to.line<e.first){Fl(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);Fl(e,i),t={from:ae(e.first,0),to:ae(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:ae(o,Le(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qt(e,t.from,t.to),r||(r=Yi(e,t)),e.cm?Os(e.cm,t,n):Zi(e,t,n),li(e,r,Oe),e.cantEdit&&ai(e,ae(e.firstLine(),0))&&(e.cantEdit=!1)}}function Os(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=Ye(Jt(Le(n,o.line))),n.iter(s,l.line+1,function(H){if(H==i.maxLine)return a=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Dn(e),Zi(n,t,r,$o(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(H){var J=Gr(H);J>i.maxLineLength&&(i.maxLine=H,i.maxLineLength=J,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),_a(n,o.line),kr(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?Lt(e):o.line==l.line&&t.text.length==1&&!ml(e.doc,t)?dn(e,o.line,"text"):Lt(e,o.line,l.line+1,u);var x=mt(e,"changes"),w=mt(e,"change");if(w||x){var R={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};w&&ft(e,"change",e,R),x&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(R)}e.display.selForContextMenu=null}function Yn(e,t,r,n,i){var o;n||(n=r),c(n,r)<0&&(o=[n,r],r=o[0],n=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Xn(e,{from:r,to:n,text:t,origin:i})}function Ol(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Nl(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var a=0;a<o.ranges.length;a++)Ol(o.ranges[a].anchor,t,r,n),Ol(o.ranges[a].head,t,r,n);continue}for(var s=0;s<o.changes.length;++s){var u=o.changes[s];if(r<u.from.line)u.from=ae(u.from.line+n,u.from.ch),u.to=ae(u.to.line+n,u.to.ch);else if(t<=u.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}function Pl(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;Nl(e.done,r,n,i),Nl(e.undone,r,n,i)}function Cr(e,t,r,n){var i=t,o=t;return typeof t=="number"?o=Le(e,Ue(e,t)):i=Ye(t),i==null?null:(n(o,i)&&e.cm&&dn(e.cm,i,r),o)}function Lr(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}Lr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,Na(i),ft(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}};function Tr(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}Tr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var o=Math.min(t,i-e),l=n.height;if(n.removeInner(e,o),this.height-=l-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),(t-=o)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Lr))){var a=[];this.collapse(a),this.children=[new Lr(a)],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,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var l=i.lines.length%25+25,a=l;a<i.lines.length;){var s=new Lr(i.lines.slice(a,a+=25));i.height-=s.height,this.children.splice(++n,0,s),s.parent=this}i.lines=i.lines.slice(0,l),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),r=new Tr(t);if(e.parent){e.size-=r.size,e.height-=r.height;var i=oe(e.parent.children,e);e.parent.children.splice(i+1,0,r)}else{var n=new Tr(e.children);n.parent=e,e.children=[n,r],e=n}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e);if(i.iterN(e,l,r))return!0;if((t-=l)==0)break;e=0}else e-=o}}};var Mr=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};Mr.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=Ye(r);if(!(n==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var o=pr(this);Et(r,Math.max(0,r.height-o)),e&&(Dt(e,function(){Il(e,r,-o),dn(e,n,"widget")}),ft(e,"lineWidgetCleared",e,this,n))}},Mr.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=pr(this)-t;!i||(fn(this.doc,n)||Et(n,n.height+i),r&&Dt(r,function(){r.curOp.forceUpdate=!0,Il(r,n,i),ft(r,"lineWidgetChanged",r,e,Ye(n))}))},Xt(Mr);function Il(e,t,r){on(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ri(e,r)}function Ns(e,t,r,n){var i=new Mr(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Cr(e,t,"widget",function(l){var a=l.widgets||(l.widgets=[]);if(i.insertAt==null?a.push(i):a.splice(Math.min(a.length,Math.max(0,i.insertAt)),0,i),i.line=l,o&&!fn(e,l)){var s=on(l)<e.scrollTop;Et(l,l.height+pr(i)),s&&Ri(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&ft(o,"lineWidgetAdded",o,i,typeof t=="number"?t:Ye(t)),i}var Hl=0,vn=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Hl};vn.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Mn(e),mt(this,"clear")){var r=this.find();r&&ft(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var l=this.lines[o],a=fr(l.markedSpans,this);e&&!this.collapsed?dn(e,Ye(l),"text"):e&&(a.to!=null&&(i=Ye(l)),a.from!=null&&(n=Ye(l))),l.markedSpans=La(l.markedSpans,a),a.from==null&&this.collapsed&&!fn(this.doc,l)&&e&&Et(l,Bn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=Jt(this.lines[s]),x=Gr(u);x>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=x,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Lt(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Tl(e.doc)),e&&ft(e,"markerCleared",e,this,n,i),t&&An(e),this.parent&&this.parent.clear()}},vn.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i<this.lines.length;++i){var o=this.lines[i],l=fr(o.markedSpans,this);if(l.from!=null&&(r=ae(t?o:Ye(o),l.from),e==-1))return r;if(l.to!=null&&(n=ae(t?o:Ye(o),l.to),e==1))return n}return r&&{from:r,to:n}},vn.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;!t||!n||Dt(n,function(){var i=t.line,o=Ye(t.line),l=Ai(n,o);if(l&&(jo(l),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!fn(r.doc,i)&&r.height!=null){var a=r.height;r.height=null;var s=pr(r)-a;s&&Et(i,i.height+s)}ft(n,"markerChanged",n,e)})},vn.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||oe(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},vn.prototype.detachLine=function(e){if(this.lines.splice(oe(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Xt(vn);function Qn(e,t,r,n,i){if(n&&n.shared)return Ps(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return dt(e.cm,Qn)(e,t,r,n,i);var o=new vn(e,i),l=c(t,r);if(n&&f(n,o,!1),l>0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=b("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(To(e,t.line,t,r,o)||t.line!=r.line&&To(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ca()}o.addToHistory&&yl(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,r.line+1,function(w){s&&o.collapsed&&!s.options.lineWrapping&&Jt(w)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Et(w,0),Ta(w,new Rr(o,a==t.line?t.ch:null,a==r.line?r.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,r.line+1,function(w){fn(e,w)&&Et(w,0)}),o.clearOnEnter&&Se(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Sa(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Hl,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)Lt(s,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var x=t.line;x<=r.line;x++)dn(s,x,"text");o.atomic&&Tl(s.doc),ft(s,"markerAdded",s,o)}return o}var Ar=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};Ar.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ft(this,"clear")}},Ar.prototype.find=function(e,t){return this.primary.find(e,t)},Xt(Ar);function Ps(e,t,r,n,i){n=f(n),n.shared=!1;var o=[Qn(e,t,r,n,i)],l=o[0],a=n.widgetNode;return mn(e,function(s){a&&(n.widgetNode=a.cloneNode(!0)),o.push(Qn(s,be(s,t),be(s,r),n,i));for(var u=0;u<s.linked.length;++u)if(s.linked[u].isParent)return;l=Ee(o)}),new Ar(o,l)}function Wl(e){return e.findMarks(ae(e.first,0),e.clipPos(ae(e.lastLine())),function(t){return t.parent})}function Is(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),l=e.clipPos(i.to);if(c(o,l)){var a=Qn(e,o,l,n.primary,n.primary.type);n.markers.push(a),a.parent=n}}}function Hs(e){for(var t=function(n){var i=e[n],o=[i.primary.doc];mn(i.primary.doc,function(s){return o.push(s)});for(var l=0;l<i.markers.length;l++){var a=i.markers[l];oe(o,a.doc)==-1&&(a.parent=null,i.markers.splice(l--,1))}},r=0;r<e.length;r++)t(r)}var Ws=0,Tt=function(e,t,r,n,i){if(!(this instanceof Tt))return new Tt(e,t,r,n,i);r==null&&(r=0),Tr.call(this,[new Lr([new In("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=ae(r,0);this.sel=pn(o),this.history=new ri(null),this.id=++Ws,this.modeOption=t,this.lineSep=n,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Zi(this,{from:o,to:o,text:e}),yt(this,pn(o),Oe)};Tt.prototype=F(Tr.prototype,{constructor:Tt,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=sr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:ht(function(e){var t=ae(this.first,0),r=this.first+this.size-1;Xn(this,{from:t,to:ae(r,Le(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&vr(this.cm,0,0),yt(this,pn(t),Oe)}),replaceRange:function(e,t,r,n){t=be(this,t),r=r?be(this,r):t,Yn(this,e,t,r,n)},getRange:function(e,t,r){var n=Qt(this,be(this,e),be(this,t));return r===!1?n:n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(kn(this,e))return Le(this,e)},getLineNumber:function(e){return Ye(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Le(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 be(this,e)},getCursor:function(e){var t=this.sel.primary(),r;return e==null||e=="head"?r=t.head:e=="anchor"?r=t.anchor:e=="end"||e=="to"||e===!1?r=t.to():r=t.from(),r},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ht(function(e,t,r){Sl(this,be(this,typeof e=="number"?ae(e,t||0):e),null,r)}),setSelection:ht(function(e,t,r){Sl(this,be(this,e),be(this,t||e),r)}),extendSelection:ht(function(e,t,r){oi(this,be(this,e),t&&be(this,t),r)}),extendSelections:ht(function(e,t){_l(this,It(this,e),t)}),extendSelectionsBy:ht(function(e,t){var r=Be(this.sel.ranges,e);_l(this,It(this,r),t)}),setSelections:ht(function(e,t,r){if(!!e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new Qe(be(this,e[i].anchor),be(this,e[i].head||e[i].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),yt(this,Ut(this.cm,n,t),r)}}),addSelection:ht(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new Qe(be(this,e),be(this,t||e))),yt(this,Ut(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t=this.sel.ranges,r,n=0;n<t.length;n++){var i=Qt(this,t[n].from(),t[n].to());r=r?r.concat(i):i}return e===!1?r:r.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=Qt(this,r[n].from(),r[n].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:ht(function(e,t,r){for(var n=[],i=this.sel,o=0;o<i.ranges.length;o++){var l=i.ranges[o];n[o]={from:l.from(),to:l.to(),text:this.splitLines(e[o]),origin:r}}for(var a=t&&t!="end"&&Ls(this,n,t),s=n.length-1;s>=0;s--)Xn(this,n[s]);a?Cl(this,a):this.cm&&jn(this.cm)}),undo:ht(function(){si(this,"undo")}),redo:ht(function(){si(this,"redo")}),undoSelection:ht(function(){si(this,"undo",!0)}),redoSelection:ht(function(){si(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new ri(this.history),mn(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:Un(this.history.done),undone:Un(this.history.undone)}},setHistory:function(e){var t=this.history=new ri(this.history);t.done=Un(e.done.slice(0),null,!0),t.undone=Un(e.undone.slice(0),null,!0)},setGutterMarker:ht(function(e,t,r){return Cr(this,e,"gutter",function(n){var i=n.gutterMarkers||(n.gutterMarkers={});return i[t]=r,!r&&se(i)&&(n.gutterMarkers=null),!0})}),clearGutter:ht(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&Cr(t,r,"gutter",function(){return r.gutterMarkers[e]=null,se(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!kn(this,e)||(t=e,e=Le(this,e),!e))return null}else if(t=Ye(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:ht(function(e,t,r){return Cr(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[i])n[i]=r;else{if(M(r).test(n[i]))return!1;n[i]+=" "+r}return!0})}),removeLineClass:ht(function(e,t,r){return Cr(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",o=n[i];if(o)if(r==null)n[i]=null;else{var l=o.match(M(r));if(!l)return!1;var a=l.index+l[0].length;n[i]=o.slice(0,l.index)+(!l.index||a==o.length?"":" ")+o.slice(a)||null}else return!1;return!0})}),addLineWidget:ht(function(e,t,r){return Ns(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Qn(this,be(this,e),be(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=be(this,e),Qn(this,e,e,r,"bookmark")},findMarksAt:function(e){e=be(this,e);var t=[],r=Le(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(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,r){e=be(this,e),t=be(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a<l.length;a++){var s=l[a];!(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)&&(!r||r(s.marker))&&n.push(s.marker.parent||s.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)r[n].from!=null&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),be(this,ae(r,t))},indexFromPos:function(e){e=be(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+r}),t},copy:function(e){var t=new Tt(sr(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,r=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<r&&(r=e.to);var n=new Tt(sr(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Is(n,Wl(this)),n},unlinkDoc:function(e){if(e instanceof tt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var r=this.linked[t];if(r.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Hs(Wl(this));break}}if(e.history==this.history){var n=[e.id];mn(e,function(i){return n.push(i.id)},!0),e.history=new ri(null),e.history.done=Un(this.history.done,n),e.history.undone=Un(this.history.undone,n)}},iterLinkedDocs:function(e){mn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ir(e)},lineSeparator:function(){return this.lineSep||`
  `},setDirection:ht(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ts(this.cm))})}),Tt.prototype.eachLine=Tt.prototype.iter;var Bl=0;function Bs(e){var t=this;if(ql(t),!(Xe(t,e)||ln(t.display,e))){bt(e),k&&(Bl=+new Date);var r=Sn(t,e,!0),n=e.dataTransfer.files;if(!(!r||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),l=0,a=function(){++l==i&&dt(t,function(){r=be(t.doc,r);var H={from:r,to:r,text:t.doc.splitLines(o.filter(function(J){return J!=null}).join(t.doc.lineSeparator())),origin:"paste"};Xn(t.doc,H),Cl(t.doc,pn(be(t.doc,r),be(t.doc,gn(H))))})()},s=function(H,J){if(t.options.allowDropFileTypes&&oe(t.options.allowDropFileTypes,H.type)==-1){a();return}var ie=new FileReader;ie.onerror=function(){return a()},ie.onload=function(){var fe=ie.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(fe)){a();return}o[J]=fe,a()},ie.readAsText(H)},u=0;u<n.length;u++)s(n[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var x=e.dataTransfer.getData("Text");if(x){var w;if(t.state.draggingText&&!t.state.draggingText.copy&&(w=t.listSelections()),li(t.doc,pn(r,r)),w)for(var R=0;R<w.length;++R)Yn(t.doc,"",w[R].anchor,w[R].head,"drag");t.replaceSelection(x,"around","paste"),t.display.input.focus()}}catch(H){}}}}function qs(e,t){if(k&&(!e.state.draggingText||+new Date-Bl<100)){yn(t);return}if(!(Xe(e,t)||ln(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!_)){var r=g("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),y&&r.parentNode.removeChild(r)}}function Rs(e,t){var r=Sn(e,t);if(!!r){var n=document.createDocumentFragment();el(e,r,n),e.display.dragCursor||(e.display.dragCursor=g("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,n)}}function ql(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Rl(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var o=0;o<r.length;o++)e(r[o])})}}var jl=!1;function js(){jl||(Ks(),jl=!0)}function Ks(){var e;Se(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Rl(Us)},100))}),Se(window,"blur",function(){return Rl(Rn)})}function Us(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var bn={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"},zr=0;zr<10;zr++)bn[zr+48]=bn[zr+96]=String(zr);for(var ui=65;ui<=90;ui++)bn[ui]=String.fromCharCode(ui);for(var Er=1;Er<=12;Er++)bn[Er+111]=bn[Er+63235]="F"+Er;var an={};an.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"},an.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"},an.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"},an.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"]},an.default=W?an.macDefault:an.pcDefault;function Gs(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,o,l=0;l<t.length-1;l++){var a=t[l];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))i=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Xs(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if(n=="..."){delete e[r];continue}for(var i=Be(r.split(" "),Gs),o=0;o<i.length;o++){var l=void 0,a=void 0;o==i.length-1?(a=i.join(" "),l=n):(a=i.slice(0,o+1).join(" "),l="...");var s=t[a];if(!s)t[a]=l;else if(s!=l)throw new Error("Inconsistent bindings for "+a)}delete e[r]}for(var u in t)e[u]=t[u];return e}function Zn(e,t,r,n){t=ci(t);var i=t.call?t.call(e,n):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&r(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Zn(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var l=Zn(e,t.fallthrough[o],r,n);if(l)return l}}}function Kl(e){var t=typeof e=="string"?e:bn[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Ul(e,t,r){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(ce?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(ce?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!r&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Gl(e,t){if(y&&e.keyCode==34&&e.char)return!1;var r=bn[e.keyCode];return r==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(r=e.code),Ul(r,e,t))}function ci(e){return typeof e=="string"?an[e]:e}function $n(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&c(o.from,Ee(n).to)<=0;){var l=n.pop();if(c(l.from,o.from)<0){o.from=l.from;break}}n.push(o)}Dt(e,function(){for(var a=n.length-1;a>=0;a--)Yn(e.doc,"",n[a].from,n[a].to,"+delete");jn(e)})}function eo(e,t,r){var n=nt(e.text,t+r,r);return n<0||n>e.text.length?null:n}function to(e,t,r){var n=eo(e,t.ch,r);return n==null?null:new ae(t.line,n,r<0?"after":"before")}function no(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Te(r,t.doc.direction);if(o){var l=i<0?Ee(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var x=Wn(t,r);u=i<0?r.text.length-1:0;var w=en(t,x,u).top;u=Ve(function(R){return en(t,x,R).top==w},i<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=eo(r,u,1))}else u=i<0?l.to:l.from;return new ae(n,u,s)}}return new ae(n,i<0?r.text.length:0,i<0?"before":"after")}function Ys(e,t,r,n){var i=Te(t,e.doc.direction);if(!i)return to(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=D(i,r.ch,r.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(n>0?l.to>r.ch:l.from<r.ch))return to(t,r,n);var a=function(he,xe){return eo(t,he instanceof ae?he.ch:he,xe)},s,u=function(he){return e.options.lineWrapping?(s=s||Wn(e,t),Zo(e,t,s,he)):{begin:0,end:t.text.length}},x=u(r.sticky=="before"?a(r,-1):r.ch);if(e.doc.direction=="rtl"||l.level==1){var w=l.level==1==n<0,R=a(r,w?1:-1);if(R!=null&&(w?R<=l.to&&R<=x.end:R>=l.from&&R>=x.begin)){var H=w?"before":"after";return new ae(r.line,R,H)}}var J=function(he,xe,pe){for(var we=function($e,pt){return pt?new ae(r.line,a($e,1),"before"):new ae(r.line,$e,"after")};he>=0&&he<i.length;he+=xe){var De=i[he],Ae=xe>0==(De.level!=1),Re=Ae?pe.begin:a(pe.end,-1);if(De.from<=Re&&Re<De.to||(Re=Ae?De.from:a(De.to,-1),pe.begin<=Re&&Re<pe.end))return we(Re,Ae)}},ie=J(o+n,n,x);if(ie)return ie;var fe=n>0?x.end:a(x.begin,-1);return fe!=null&&!(n>0&&fe==t.text.length)&&(ie=J(n>0?0:i.length-1,n,u(fe)),ie)?ie:null}var Dr={selectAll:zl,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Oe)},killLine:function(e){return $n(e,function(t){if(t.empty()){var r=Le(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:ae(t.head.line+1,0)}:{from:t.head,to:ae(t.head.line,r)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return $n(e,function(t){return{from:ae(t.from().line,0),to:be(e.doc,ae(t.to().line+1,0))}})},delLineLeft:function(e){return $n(e,function(t){return{from:ae(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return $n(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return $n(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},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(ae(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ae(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Xl(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Yl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Qs(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},Ce)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},Ce)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?Yl(e,t.head):n},Ce)},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=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),l=le(e.getLine(o.line),o.ch,n);t.push(_e(n-l%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Dt(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(!!t[n].empty()){var i=t[n].head,o=Le(e.doc,i.line).text;if(o){if(i.ch==o.length&&(i=new ae(i.line,i.ch-1)),i.ch>0)i=new ae(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ae(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=Le(e.doc,i.line-1).text;l&&(i=new ae(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),ae(i.line-1,l.length-1),i,"+transpose"))}}r.push(new Qe(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Dt(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);jn(e)})},openLine:function(e){return e.replaceSelection(`
  `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Xl(e,t){var r=Le(e.doc,t),n=Jt(r);return n!=r&&(t=Ye(n)),no(!0,e,n,t,1)}function Qs(e,t){var r=Le(e.doc,t),n=Da(r);return n!=r&&(t=Ye(n)),no(!0,e,r,t,-1)}function Yl(e,t){var r=Xl(e,t.line),n=Le(e.doc,r.line),i=Te(n,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(r.ch,n.text.search(/\S/)),l=t.line==r.line&&t.ch<=o&&t.ch;return ae(r.line,l?0:o,r.sticky)}return r}function fi(e,t,r){if(typeof t=="string"&&(t=Dr[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=de}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function Zs(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=Zn(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&Zn(t,e.options.extraKeys,r,e)||Zn(t,e.options.keyMap,r,e)}var $s=new ye;function Fr(e,t,r,n){var i=e.state.keySeq;if(i){if(Kl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:$s.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),Ql(e,i+" "+t,r,n))return!0}return Ql(e,t,r,n)}function Ql(e,t,r,n){var i=Zs(e,t,n);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&ft(e,"keyHandled",e,t,r),(i=="handled"||i=="multi")&&(bt(r),Hi(e)),!!i}function Zl(e,t){var r=Gl(t,!0);return r?t.shiftKey&&!e.state.keySeq?Fr(e,"Shift-"+r,t,function(n){return fi(e,n,!0)})||Fr(e,r,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return fi(e,n)}):Fr(e,r,t,function(n){return fi(e,n)}):!1}function Js(e,t,r){return Fr(e,"'"+r+"'",t,function(n){return fi(e,n,!0)})}var ro=null;function $l(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=me(),!Xe(t,e))){k&&Z<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var n=Zl(t,e);y&&(ro=n?r:null,!n&&r==88&&!Br&&(W?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),B&&!W&&!n&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Vs(t)}}function Vs(e){var t=e.display.lineDiv;ge(t,"CodeMirror-crosshair");function r(n){(n.keyCode==18||!n.altKey)&&(z(t,"CodeMirror-crosshair"),et(document,"keyup",r),et(document,"mouseover",r))}Se(document,"keyup",r),Se(document,"mouseover",r)}function Jl(e){e.keyCode==16&&(this.doc.sel.shift=!1),Xe(this,e)}function Vl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(ln(t.display,e)||Xe(t,e)||e.ctrlKey&&!e.altKey||W&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(y&&r==ro){ro=null,bt(e);return}if(!(y&&(!e.which||e.which<10)&&Zl(t,e))){var i=String.fromCharCode(n==null?r:n);i!="\b"&&(Js(t,e,i)||t.display.input.onKeyPress(e))}}}var eu=400,io=function(e,t,r){this.time=e,this.pos=t,this.button=r};io.prototype.compare=function(e,t,r){return this.time+eu>e&&c(t,this.pos)==0&&r==this.button};var Or,Nr;function tu(e,t){var r=+new Date;return Nr&&Nr.compare(r,e,t)?(Or=Nr=null,"triple"):Or&&Or.compare(r,e,t)?(Nr=new io(r,e,t),Or=null,"double"):(Or=new io(r,e,t),Nr=null,"single")}function ea(e){var t=this,r=t.display;if(!(Xe(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,ln(r,e)){E||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!oo(t,e)){var n=Sn(t,e),i=Ir(e),o=n?tu(n,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&nu(t,i,n,o,e))&&(i==1?n?iu(t,n,o,e):un(e)==r.scroller&&bt(e):i==2?(n&&oi(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(U?t.display.input.onContextMenu(e):Wi(t)))}}}function nu(e,t,r,n,i){var o="Click";return n=="double"?o="Double"+o:n=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Fr(e,Ul(o,i),i,function(l){if(typeof l=="string"&&(l=Dr[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,r)!=de}finally{e.state.suppressEdits=!1}return a})}function ru(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var o=Y?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=W?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(W?r.altKey:r.ctrlKey)),i}function iu(e,t,r,n){k?setTimeout(S(tl,e),0):e.curOp.focus=me();var i=ru(e,r,n),o=e.doc.sel,l;e.options.dragDrop&&nr&&!e.isReadOnly()&&r=="single"&&(l=o.contains(t))>-1&&(c((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(c(l.to(),t)>0||t.xRel<0)?ou(e,n,t,i):lu(e,n,t,i)}function ou(e,t,r,n){var i=e.display,o=!1,l=dt(e,function(u){E&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wi(e)),et(i.wrapper.ownerDocument,"mouseup",l),et(i.wrapper.ownerDocument,"mousemove",a),et(i.scroller,"dragstart",s),et(i.scroller,"drop",l),o||(bt(u),n.addNew||oi(e.doc,r,null,null,n.extend),E&&!_||k&&Z==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};E&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!n.moveOnDrag,Se(i.wrapper.ownerDocument,"mouseup",l),Se(i.wrapper.ownerDocument,"mousemove",a),Se(i.scroller,"dragstart",s),Se(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ta(e,t,r){if(r=="char")return new Qe(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Qe(ae(t.line,0),be(e.doc,ae(t.line+1,0)));var n=r(e,t);return new Qe(n.from,n.to)}function lu(e,t,r,n){k&&Wi(e);var i=e.display,o=e.doc;bt(t);var l,a,s=o.sel,u=s.ranges;if(n.addNew&&!n.extend?(a=o.sel.contains(r),a>-1?l=u[a]:l=new Qe(r,r)):(l=o.sel.primary(),a=o.sel.primIndex),n.unit=="rectangle")n.addNew||(l=new Qe(r,r)),r=Sn(e,t,!0,!0),a=-1;else{var x=ta(e,r,n.unit);n.extend?l=Ji(l,x.anchor,x.head,n.extend):l=x}n.addNew?a==-1?(a=u.length,yt(o,Ut(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&n.unit=="char"&&!n.extend?(yt(o,Ut(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Vi(o,a,l,Fe):(a=0,yt(o,new Wt([l],0),Fe),s=o.sel);var w=r;function R(pe){if(c(w,pe)!=0)if(w=pe,n.unit=="rectangle"){for(var we=[],De=e.options.tabSize,Ae=le(Le(o,r.line).text,r.ch,De),Re=le(Le(o,pe.line).text,pe.ch,De),$e=Math.min(Ae,Re),pt=Math.max(Ae,Re),it=Math.min(r.line,pe.line),Ft=Math.min(e.lastLine(),Math.max(r.line,pe.line));it<=Ft;it++){var Mt=Le(o,it).text,st=He(Mt,$e,De);$e==pt?we.push(new Qe(ae(it,st),ae(it,st))):Mt.length>st&&we.push(new Qe(ae(it,st),ae(it,He(Mt,pt,De))))}we.length||we.push(new Qe(r,r)),yt(o,Ut(e,s.ranges.slice(0,a).concat(we),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(pe)}else{var At=l,vt=ta(e,pe,n.unit),ct=At.anchor,ut;c(vt.anchor,ct)>0?(ut=vt.head,ct=Ne(At.from(),vt.anchor)):(ut=vt.anchor,ct=ue(At.to(),vt.head));var lt=s.ranges.slice(0);lt[a]=au(e,new Qe(be(o,ct),ut)),yt(o,Ut(e,lt,a),Fe)}}var H=i.wrapper.getBoundingClientRect(),J=0;function ie(pe){var we=++J,De=Sn(e,pe,!0,n.unit=="rectangle");if(!!De)if(c(De,w)!=0){e.curOp.focus=me(),R(De);var Ae=Vr(i,o);(De.line>=Ae.to||De.line<Ae.from)&&setTimeout(dt(e,function(){J==we&&ie(pe)}),150)}else{var Re=pe.clientY<H.top?-20:pe.clientY>H.bottom?20:0;Re&&setTimeout(dt(e,function(){J==we&&(i.scroller.scrollTop+=Re,ie(pe))}),50)}}function fe(pe){e.state.selectingText=!1,J=Infinity,pe&&(bt(pe),i.input.focus()),et(i.wrapper.ownerDocument,"mousemove",he),et(i.wrapper.ownerDocument,"mouseup",xe),o.history.lastSelOrigin=null}var he=dt(e,function(pe){pe.buttons===0||!Ir(pe)?fe(pe):ie(pe)}),xe=dt(e,fe);e.state.selectingText=xe,Se(i.wrapper.ownerDocument,"mousemove",he),Se(i.wrapper.ownerDocument,"mouseup",xe)}function au(e,t){var r=t.anchor,n=t.head,i=Le(e.doc,r.line);if(c(r,n)==0&&r.sticky==n.sticky)return t;var o=Te(i);if(!o)return t;var l=D(o,r.ch,r.sticky),a=o[l];if(a.from!=r.ch&&a.to!=r.ch)return t;var s=l+(a.from==r.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(n.line!=r.line)u=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var x=D(o,n.ch,n.sticky),w=x-l||(n.ch-r.ch)*(a.level==1?-1:1);x==s-1||x==s?u=w<0:u=w>0}var R=o[s+(u?-1:0)],H=u==(R.level==1),J=H?R.from:R.to,ie=H?"after":"before";return r.ch==J&&r.sticky==ie?t:new Qe(new ae(r.line,J,ie),n)}function na(e,t,r,n){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(R){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&bt(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!mt(e,r))return Ot(t);o-=a.top-l.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var u=l.gutters.childNodes[s];if(u&&u.getBoundingClientRect().right>=i){var x=Zt(e.doc,o),w=e.display.gutterSpecs[s];return Me(e,r,e,x,w.className,t),Ot(t)}}}function oo(e,t){return na(e,t,"gutterClick",!0)}function ra(e,t){ln(e.display,t)||su(e,t)||Xe(e,t,"contextmenu")||U||e.display.input.onContextMenu(t)}function su(e,t){return mt(e,"gutterContextMenu")?na(e,t,"gutterContextMenu",!1):!1}function ia(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gr(e)}var Jn={toString:function(){return"CodeMirror.Init"}},oa={},di={};function uu(e){var t=e.optionHandlers;function r(n,i,o,l){e.defaults[n]=i,o&&(t[n]=l?function(a,s,u){u!=Jn&&o(a,s,u)}:o)}e.defineOption=r,e.Init=Jn,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,Qi(n)},!0),r("indentUnit",2,Qi,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){_r(n),gr(n),Lt(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var o=[],l=n.doc.first;n.doc.iter(function(s){for(var u=0;;){var x=s.text.indexOf(i,u);if(x==-1)break;u=x+i.length,o.push(ae(l,x))}l++});for(var a=o.length-1;a>=0;a--)Yn(n.doc,i,o[a],ae(o[a].line,o[a].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,i,o){n.state.specialChars=new RegExp(i.source+(i.test("	")?"":"|	"),"g"),o!=Jn&&n.refresh()}),r("specialCharPlaceholder",Ha,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",O?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!re),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){ia(n),wr(n)},!0),r("keyMap","default",function(n,i,o){var l=ci(i),a=o!=Jn&&ci(o);a&&a.detach&&a.detach(n,l),l.attach&&l.attach(n,a||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,fu,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=Xi(i,n.options.lineNumbers),wr(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?Pi(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return Kn(n)},!0),r("scrollbarStyle","native",function(n){al(n),Kn(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=Xi(n.options.gutters,i),wr(n)},!0),r("firstLineNumber",1,wr,!0),r("lineNumberFormatter",function(n){return n},wr,!0),r("showCursorWhenSelecting",!1,mr,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(Rn(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,cu),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,mr,!0),r("singleCursorHeightPerLine",!0,mr,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,_r,!0),r("addModeClass",!1,_r,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,_r,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function cu(e,t,r){var n=r&&r!=Jn;if(!t!=!n){var i=e.display.dragFunctions,o=t?Se:et;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 fu(e){e.options.lineWrapping?(ge(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(z(e.display.wrapper,"CodeMirror-wrap"),Ci(e)),Ii(e),Lt(e),gr(e),setTimeout(function(){return Kn(e)},100)}function tt(e,t){var r=this;if(!(this instanceof tt))return new tt(e,t);this.options=t=t?f(t):{},f(oa,t,!1);var n=t.value;typeof n=="string"?n=new Tt(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new tt.inputStyles[t.inputStyle](this),o=this.display=new Ss(e,n,i,t);o.wrapper.CodeMirror=this,ia(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),al(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 ye,keySeq:null,specialChars:null},t.autofocus&&!O&&o.input.focus(),k&&Z<11&&setTimeout(function(){return r.display.input.reset(!0)},20),du(this),js(),Mn(this),this.curOp.forceUpdate=!0,vl(this,n),t.autofocus&&!O||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Bi(r)},20):Rn(this);for(var l in di)di.hasOwnProperty(l)&&di[l](this,t[l],Jn);cl(this),t.finishInit&&t.finishInit(this);for(var a=0;a<lo.length;++a)lo[a](this);An(this),E&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}tt.defaults=oa,tt.optionHandlers=di;function du(e){var t=e.display;Se(t.scroller,"mousedown",dt(e,ea)),k&&Z<11?Se(t.scroller,"dblclick",dt(e,function(s){if(!Xe(e,s)){var u=Sn(e,s);if(!(!u||oo(e,s)||ln(e.display,s))){bt(s);var x=e.findWordAt(u);oi(e.doc,x.anchor,x.head)}}})):Se(t.scroller,"dblclick",function(s){return Xe(e,s)||bt(s)}),Se(t.scroller,"contextmenu",function(s){return ra(e,s)}),Se(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||ra(e,s)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function o(s){if(s.touches.length!=1)return!1;var u=s.touches[0];return u.radiusX<=1&&u.radiusY<=1}function l(s,u){if(u.left==null)return!0;var x=u.left-s.left,w=u.top-s.top;return x*x+w*w>20*20}Se(t.scroller,"touchstart",function(s){if(!Xe(e,s)&&!o(s)&&!oo(e,s)){t.input.ensurePolled(),clearTimeout(r);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-n.end<=300?n:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),Se(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Se(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!ln(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var x=e.coordsChar(t.activeTouch,"page"),w;!u.prev||l(u,u.prev)?w=new Qe(x,x):!u.prev.prev||l(u,u.prev.prev)?w=e.findWordAt(x):w=new Qe(ae(x.line,0),be(e.doc,ae(x.line+1,0))),e.setSelection(w.anchor,w.head),e.focus(),bt(s)}i()}),Se(t.scroller,"touchcancel",i),Se(t.scroller,"scroll",function(){t.scroller.clientHeight&&(br(e,t.scroller.scrollTop),Ln(e,t.scroller.scrollLeft,!0),Me(e,"scroll",e))}),Se(t.scroller,"mousewheel",function(s){return hl(e,s)}),Se(t.scroller,"DOMMouseScroll",function(s){return hl(e,s)}),Se(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Xe(e,s)||yn(s)},over:function(s){Xe(e,s)||(Rs(e,s),yn(s))},start:function(s){return qs(e,s)},drop:dt(e,Bs),leave:function(s){Xe(e,s)||ql(e)}};var a=t.input.getField();Se(a,"keyup",function(s){return Jl.call(e,s)}),Se(a,"keydown",dt(e,$l)),Se(a,"keypress",dt(e,Vl)),Se(a,"focus",function(s){return Bi(e,s)}),Se(a,"blur",function(s){return Rn(e,s)})}var lo=[];tt.defineInitHook=function(e){return lo.push(e)};function Pr(e,t,r,n){var i=e.doc,o;r==null&&(r="add"),r=="smart"&&(i.mode.indent?o=cr(e,t).state:r="prev");var l=e.options.tabSize,a=Le(i,t),s=le(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],x;if(!n&&!/\S/.test(a.text))x=0,r="not";else if(r=="smart"&&(x=i.mode.indent(o,a.text.slice(u.length),a.text),x==de||x>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?x=le(Le(i,t-1).text,null,l):x=0:r=="add"?x=s+e.options.indentUnit:r=="subtract"?x=s-e.options.indentUnit:typeof r=="number"&&(x=s+r),x=Math.max(0,x);var w="",R=0;if(e.options.indentWithTabs)for(var H=Math.floor(x/l);H;--H)R+=l,w+="	";if(R<x&&(w+=_e(x-R)),w!=u)return Yn(i,w,ae(t,0),ae(t,u.length),"+input"),a.stateAfter=null,!0;for(var J=0;J<i.sel.ranges.length;J++){var ie=i.sel.ranges[J];if(ie.head.line==t&&ie.head.ch<u.length){var fe=ae(t,u.length);Vi(i,J,new Qe(fe,fe));break}}}var Gt=null;function hi(e){Gt=e}function ao(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var l=+new Date-200,a=i=="paste"||e.state.pasteIncoming>l,s=ir(t),u=null;if(a&&n.ranges.length>1)if(Gt&&Gt.text.join(`
  `)==t){if(n.ranges.length%Gt.text.length==0){u=[];for(var x=0;x<Gt.text.length;x++)u.push(o.splitLines(Gt.text[x]))}}else s.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(u=Be(s,function(he){return[he]}));for(var w=e.curOp.updateInput,R=n.ranges.length-1;R>=0;R--){var H=n.ranges[R],J=H.from(),ie=H.to();H.empty()&&(r&&r>0?J=ae(J.line,J.ch-r):e.state.overwrite&&!a?ie=ae(ie.line,Math.min(Le(o,ie.line).text.length,ie.ch+Ee(s).length)):a&&Gt&&Gt.lineWise&&Gt.text.join(`
  `)==s.join(`
  `)&&(J=ie=ae(J.line,0)));var fe={from:J,to:ie,text:u?u[R%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};Xn(e.doc,fe),ft(e,"inputRead",e,fe)}t&&!a&&aa(e,t),jn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=w),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function la(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Dt(t,function(){return ao(t,r,0,null,"paste")}),!0}function aa(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(t.indexOf(o.electricChars.charAt(a))>-1){l=Pr(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Le(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Pr(e,i.head.line,"smart"));l&&ft(e,"electricInput",e,i.head.line)}}}function sa(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:ae(i,0),head:ae(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function ua(e,t,r,n){e.setAttribute("autocorrect",r?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function ca(){var e=g("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=g("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?e.style.width="1000px":e.setAttribute("wrap","off"),h&&(e.style.border="1px solid black"),ua(e),t}function hu(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,i){var o=this.options,l=o[n];o[n]==i&&n!="mode"||(o[n]=i,t.hasOwnProperty(n)&&dt(this,t[n])(this,i,l),Me(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,i){this.state.keyMaps[i?"push":"unshift"](ci(n))},removeKeyMap:function(n){for(var i=this.state.keyMaps,o=0;o<i.length;++o)if(i[o]==n||i[o].name==n)return i.splice(o,1),!0},addOverlay:_t(function(n,i){var o=n.token?n:e.getMode(this.options,n);if(o.startState)throw new Error("Overlays may not be stateful.");Ge(this.state.overlays,{mode:o,modeSpec:n,opaque:i&&i.opaque,priority:i&&i.priority||0},function(l){return l.priority}),this.state.modeGen++,Lt(this)}),removeOverlay:_t(function(n){for(var i=this.state.overlays,o=0;o<i.length;++o){var l=i[o].modeSpec;if(l==n||typeof n=="string"&&l.name==n){i.splice(o,1),this.state.modeGen++,Lt(this);return}}}),indentLine:_t(function(n,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),kn(this.doc,n)&&Pr(this,n,i,o)}),indentSelection:_t(function(n){for(var i=this.doc.sel.ranges,o=-1,l=0;l<i.length;l++){var a=i[l];if(a.empty())a.head.line>o&&(Pr(this,a.head.line,n,!0),o=a.head.line,l==this.doc.sel.primIndex&&jn(this));else{var s=a.from(),u=a.to(),x=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var w=x;w<o;++w)Pr(this,w,n);var R=this.doc.sel.ranges;s.ch==0&&i.length==R.length&&R[l].from().ch>0&&Vi(this.doc,l,new Qe(s,R[l].to()),Oe)}}}),getTokenAt:function(n,i){return bo(this,n,i)},getLineTokens:function(n,i){return bo(this,ae(n),i,!0)},getTokenTypeAt:function(n){n=be(this.doc,n);var i=go(this,Le(this.doc,n.line)),o=0,l=(i.length-1)/2,a=n.ch,s;if(a==0)s=i[2];else for(;;){var u=o+l>>1;if((u?i[u*2-1]:0)>=a)l=u;else if(i[u*2+1]<a)o=u+1;else{s=i[u*2+2];break}}var x=s?s.indexOf("overlay "):-1;return x<0?s:x==0?null:s.slice(0,x-1)},getModeAt:function(n){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(n).state).mode:i},getHelper:function(n,i){return this.getHelpers(n,i)[0]},getHelpers:function(n,i){var o=[];if(!r.hasOwnProperty(i))return o;var l=r[i],a=this.getModeAt(n);if(typeof a[i]=="string")l[a[i]]&&o.push(l[a[i]]);else if(a[i])for(var s=0;s<a[i].length;s++){var u=l[a[i][s]];u&&o.push(u)}else a.helperType&&l[a.helperType]?o.push(l[a.helperType]):l[a.name]&&o.push(l[a.name]);for(var x=0;x<l._global.length;x++){var w=l._global[x];w.pred(a,this)&&oe(o,w.val)==-1&&o.push(w.val)}return o},getStateAfter:function(n,i){var o=this.doc;return n=Ue(o,n==null?o.first+o.size-1:n),cr(this,n+1,i).state},cursorCoords:function(n,i){var o,l=this.doc.sel.primary();return n==null?o=l.head:typeof n=="object"?o=be(this.doc,n):o=n?l.from():l.to(),Kt(this,o,i||"page")},charCoords:function(n,i){return Ei(this,be(this.doc,n),i||"page")},coordsChar:function(n,i){return n=Xo(this,n,i||"page"),Fi(this,n.left,n.top)},lineAtHeight:function(n,i){return n=Xo(this,{top:n,left:0},i||"page").top,Zt(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,i,o){var l=!1,a;if(typeof n=="number"){var s=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>s&&(n=s,l=!0),a=Le(this.doc,n)}else a=n;return Qr(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-on(a):0)},defaultTextHeight:function(){return Bn(this.display)},defaultCharWidth:function(){return qn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,o,l,a){var s=this.display;n=Kt(this,be(this.doc,n));var u=n.bottom,x=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")u=n.top;else if(l=="above"||l=="near"){var w=Math.max(s.wrapper.clientHeight,this.doc.height),R=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||n.bottom+i.offsetHeight>w)&&n.top>i.offsetHeight?u=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=w&&(u=n.bottom),x+i.offsetWidth>R&&(x=R-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(x=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?x=0:a=="middle"&&(x=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=x+"px"),o&&cs(this,{left:x,top:u,right:x+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:_t($l),triggerOnKeyPress:_t(Vl),triggerOnKeyUp:Jl,triggerOnMouseDown:_t(ea),execCommand:function(n){if(Dr.hasOwnProperty(n))return Dr[n].call(null,this)},triggerElectric:_t(function(n){aa(this,n)}),findPosH:function(n,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=be(this.doc,n),u=0;u<i&&(s=so(this.doc,s,a,o,l),!s.hitSide);++u);return s},moveH:_t(function(n,i){var o=this;this.extendSelectionsBy(function(l){return o.display.shift||o.doc.extend||l.empty()?so(o.doc,l.head,n,i,o.options.rtlMoveVisually):n<0?l.from():l.to()},Ce)}),deleteH:_t(function(n,i){var o=this.doc.sel,l=this.doc;o.somethingSelected()?l.replaceSelection("",null,"+delete"):$n(this,function(a){var s=so(l,a.head,n,i,!1);return n<0?{from:s,to:a.head}:{from:a.head,to:s}})}),findPosV:function(n,i,o,l){var a=1,s=l;i<0&&(a=-1,i=-i);for(var u=be(this.doc,n),x=0;x<i;++x){var w=Kt(this,u,"div");if(s==null?s=w.left:w.left=s,u=fa(this,w,a,o),u.hitSide)break}return u},moveV:_t(function(n,i){var o=this,l=this.doc,a=[],s=!this.display.shift&&!l.extend&&l.sel.somethingSelected();if(l.extendSelectionsBy(function(x){if(s)return n<0?x.from():x.to();var w=Kt(o,x.head,"div");x.goalColumn!=null&&(w.left=x.goalColumn),a.push(w.left);var R=fa(o,w,n,i);return i=="page"&&x==l.sel.primary()&&Ri(o,Ei(o,R,"div").top-w.top),R},Ce),a.length)for(var u=0;u<l.sel.ranges.length;u++)l.sel.ranges[u].goalColumn=a[u]}),findWordAt:function(n){var i=this.doc,o=Le(i,n.line).text,l=n.ch,a=n.ch;if(o){var s=this.getHelper(n,"wordChars");(n.sticky=="before"||a==o.length)&&l?--l:++a;for(var u=o.charAt(l),x=j(u,s)?function(w){return j(w,s)}:/\s/.test(u)?function(w){return/\s/.test(w)}:function(w){return!/\s/.test(w)&&!j(w)};l>0&&x(o.charAt(l-1));)--l;for(;a<o.length&&x(o.charAt(a));)++a}return new Qe(ae(n.line,l),ae(n.line,a))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ge(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),Me(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:_t(function(n,i){vr(this,n,i)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-Vt(this)-this.display.barHeight,width:n.scrollWidth-Vt(this)-this.display.barWidth,clientHeight:Mi(this),clientWidth:wn(this)}},scrollIntoView:_t(function(n,i){n==null?(n={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof n=="number"?n={from:ae(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=i||0,n.from.line!=null?fs(this,n):rl(this,n.from,n.to,n.margin)}),setSize:_t(function(n,i){var o=this,l=function(s){return typeof s=="number"||/^\d+$/.test(String(s))?s+"px":s};n!=null&&(this.display.wrapper.style.width=l(n)),i!=null&&(this.display.wrapper.style.height=l(i)),this.options.lineWrapping&&Ko(this);var a=this.display.viewFrom;this.doc.iter(a,this.display.viewTo,function(s){if(s.widgets){for(var u=0;u<s.widgets.length;u++)if(s.widgets[u].noHScroll){dn(o,a,"widget");break}}++a}),this.curOp.forceUpdate=!0,Me(this,"refresh",this)}),operation:function(n){return Dt(this,n)},startOperation:function(){return Mn(this)},endOperation:function(){return An(this)},refresh:_t(function(){var n=this.display.cachedTextHeight;Lt(this),this.curOp.forceUpdate=!0,gr(this),vr(this,this.doc.scrollLeft,this.doc.scrollTop),Ui(this.display),(n==null||Math.abs(n-Bn(this.display))>.5||this.options.lineWrapping)&&Ii(this),Me(this,"refresh",this)}),swapDoc:_t(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),vl(this,n),gr(this),this.display.input.reset(),vr(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,ft(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},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(n,i,o){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=o},e.registerGlobalHelper=function(n,i,o,l){e.registerHelper(n,i,l),r[n]._global.push({pred:o,val:l})}}function so(e,t,r,n,i){var o=t,l=r,a=Le(e,t.line),s=i&&e.direction=="rtl"?-r:r;function u(){var xe=t.line+s;return xe<e.first||xe>=e.first+e.size?!1:(t=new ae(xe,t.ch,t.sticky),a=Le(e,xe))}function x(xe){var pe;if(n=="codepoint"){var we=a.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(we))pe=null;else{var De=r>0?we>=55296&&we<56320:we>=56320&&we<57343;pe=new ae(t.line,Math.max(0,Math.min(a.text.length,t.ch+r*(De?2:1))),-r)}}else i?pe=Ys(e.cm,a,t,r):pe=to(a,t,r);if(pe==null)if(!xe&&u())t=no(i,e.cm,a,t.line,s);else return!1;else t=pe;return!0}if(n=="char"||n=="codepoint")x();else if(n=="column")x(!0);else if(n=="word"||n=="group")for(var w=null,R=n=="group",H=e.cm&&e.cm.getHelper(t,"wordChars"),J=!0;!(r<0&&!x(!J));J=!1){var ie=a.text.charAt(t.ch)||`
  `,fe=j(ie,H)?"w":R&&ie==`
  `?"n":!R||/\s/.test(ie)?null:"p";if(R&&!J&&!fe&&(fe="s"),w&&w!=fe){r<0&&(r=1,x(),t.sticky="after");break}if(fe&&(w=fe),r>0&&!x(!J))break}var he=ai(e,t,o,l,!0);return C(o,he)&&(he.hitSide=!0),he}function fa(e,t,r,n){var i=e.doc,o=t.left,l;if(n=="page"){var a=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(a-.5*Bn(e.display),3);l=(r>0?t.bottom:t.top)+r*s}else n=="line"&&(l=r>0?t.bottom+3:t.top-3);for(var u;u=Fi(e,o,l),!!u.outside;){if(r<0?l<=0:l>=i.height){u.hitSide=!0;break}l+=r*5}return u}var Ze=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ye,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ze.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;i.contentEditable=!0,ua(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}Se(i,"paste",function(a){!o(a)||Xe(n,a)||la(a,n)||Z<=11&&setTimeout(dt(n,function(){return t.updateFromDOM()}),20)}),Se(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),Se(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),Se(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Se(i,"touchstart",function(){return r.forceCompositionEnd()}),Se(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||Xe(n,a))){if(n.somethingSelected())hi({lineWise:!1,text:n.getSelections()}),a.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var s=sa(n);hi({lineWise:!0,text:s.text}),a.type=="cut"&&n.operation(function(){n.setSelections(s.ranges,0,Oe),n.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Gt.text.join(`
  `);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var x=ca(),w=x.firstChild;n.display.lineSpace.insertBefore(x,n.display.lineSpace.firstChild),w.value=Gt.text.join(`
  `);var R=me();Ie(w),setTimeout(function(){n.display.lineSpace.removeChild(x),R.focus(),R==i&&r.showPrimarySelection()},50)}}Se(i,"copy",l),Se(i,"cut",l)},Ze.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ze.prototype.prepareSelection=function(){var e=Vo(this.cm,!1);return e.focus=me()==this.div,e},Ze.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ze.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ze.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=pi(t,e.anchorNode,e.anchorOffset),l=pi(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&l&&!l.bad&&c(Ne(o,l),n)==0&&c(ue(o,l),i)==0)){var a=t.display.view,s=n.line>=t.display.viewFrom&&da(t,n)||{node:a[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&da(t,i);if(!u){var x=a[a.length-1].measure,w=x.maps?x.maps[x.maps.length-1]:x.map;u={node:w[w.length-1],offset:w[w.length-2]-w[w.length-3]}}if(!s||!u){e.removeAllRanges();return}var R=e.rangeCount&&e.getRangeAt(0),H;try{H=N(s.node,s.offset,u.offset,u.node)}catch(J){}H&&(!B&&t.state.focused?(e.collapse(s.node,s.offset),H.collapsed||(e.removeAllRanges(),e.addRange(H))):(e.removeAllRanges(),e.addRange(H)),R&&e.anchorNode==null?e.addRange(R):B&&this.startGracePeriod()),this.rememberSelection()}},Ze.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)},Ze.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},Ze.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ze.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Q(this.div,t)},Ze.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ze.prototype.blur=function(){this.div.blur()},Ze.prototype.getField=function(){return this.div},Ze.prototype.supportsTouch=function(){return!0},Ze.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Dt(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},Ze.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ze.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(L&&v&&this.cm.display.gutterSpecs.length&&pu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var r=pi(t,e.anchorNode,e.anchorOffset),n=pi(t,e.focusNode,e.focusOffset);r&&n&&Dt(t,function(){yt(t.doc,pn(r,n),Oe),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Ze.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),i=r.to();if(n.ch==0&&n.line>e.firstLine()&&(n=ae(n.line-1,Le(e.doc,n.line-1).length)),i.ch==Le(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=ae(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,l,a;n.line==t.viewFrom||(o=Cn(e,n.line))==0?(l=Ye(t.view[0].line),a=t.view[0].node):(l=Ye(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Cn(e,i.line),u,x;if(s==t.view.length-1?(u=t.viewTo-1,x=t.lineDiv.lastChild):(u=Ye(t.view[s+1].line)-1,x=t.view[s+1].node.previousSibling),!a)return!1;for(var w=e.doc.splitLines(gu(e,a,x,l,u)),R=Qt(e.doc,ae(l,0),ae(u,Le(e.doc,u).text.length));w.length>1&&R.length>1;)if(Ee(w)==Ee(R))w.pop(),R.pop(),u--;else if(w[0]==R[0])w.shift(),R.shift(),l++;else break;for(var H=0,J=0,ie=w[0],fe=R[0],he=Math.min(ie.length,fe.length);H<he&&ie.charCodeAt(H)==fe.charCodeAt(H);)++H;for(var xe=Ee(w),pe=Ee(R),we=Math.min(xe.length-(w.length==1?H:0),pe.length-(R.length==1?H:0));J<we&&xe.charCodeAt(xe.length-J-1)==pe.charCodeAt(pe.length-J-1);)++J;if(w.length==1&&R.length==1&&l==n.line)for(;H&&H>n.ch&&xe.charCodeAt(xe.length-J-1)==pe.charCodeAt(pe.length-J-1);)H--,J++;w[w.length-1]=xe.slice(0,xe.length-J).replace(/^\u200b+/,""),w[0]=w[0].slice(H).replace(/\u200b+$/,"");var De=ae(l,H),Ae=ae(u,R.length?Ee(R).length-J:0);if(w.length>1||w[0]||c(De,Ae))return Yn(e.doc,w,De,Ae,"+input"),!0},Ze.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ze.prototype.reset=function(){this.forceCompositionEnd()},Ze.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ze.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))},Ze.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Dt(this.cm,function(){return Lt(e.cm)})},Ze.prototype.setUneditable=function(e){e.contentEditable="false"},Ze.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||dt(this.cm,ao)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ze.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ze.prototype.onContextMenu=function(){},Ze.prototype.resetPosition=function(){},Ze.prototype.needsContentAttribute=!0;function da(e,t){var r=Ai(e,t.line);if(!r||r.hidden)return null;var n=Le(e.doc,t.line),i=Wo(r,n,t.line),o=Te(n,e.doc.direction),l="left";if(o){var a=D(o,t.ch);l=a%2?"right":"left"}var s=Ro(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function pu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Vn(e,t){return t&&(e.bad=!0),e}function gu(e,t,r,n,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(H){return function(J){return J.id==H}}function x(){l&&(o+=a,s&&(o+=a),l=s=!1)}function w(H){H&&(x(),o+=H)}function R(H){if(H.nodeType==1){var J=H.getAttribute("cm-text");if(J){w(J);return}var ie=H.getAttribute("cm-marker"),fe;if(ie){var he=e.findMarks(ae(n,0),ae(i+1,0),u(+ie));he.length&&(fe=he[0].find(0))&&w(Qt(e.doc,fe.from,fe.to).join(a));return}if(H.getAttribute("contenteditable")=="false")return;var xe=/^(pre|div|p|li|table|br)$/i.test(H.nodeName);if(!/^br$/i.test(H.nodeName)&&H.textContent.length==0)return;xe&&x();for(var pe=0;pe<H.childNodes.length;pe++)R(H.childNodes[pe]);/^(pre|p)$/i.test(H.nodeName)&&(s=!0),xe&&(l=!0)}else H.nodeType==3&&w(H.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;R(t),t!=r;)t=t.nextSibling,s=!1;return o}function pi(e,t,r){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[r],!n)return Vn(e.clipPos(ae(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return mu(o,t,r)}}function mu(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!Q(n,t))return Vn(ae(Ye(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var o=e.rest?Ee(e.rest):e.line;return Vn(ae(Ye(o),o.text.length),i)}var l=t.nodeType==3?t:null,a=t;for(!l&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(l=t.firstChild,r&&(r=l.nodeValue.length));a.parentNode!=n;)a=a.parentNode;var s=e.measure,u=s.maps;function x(fe,he,xe){for(var pe=-1;pe<(u?u.length:0);pe++)for(var we=pe<0?s.map:u[pe],De=0;De<we.length;De+=3){var Ae=we[De+2];if(Ae==fe||Ae==he){var Re=Ye(pe<0?e.line:e.rest[pe]),$e=we[De]+xe;return(xe<0||Ae!=fe)&&($e=we[De+(xe?1:0)]),ae(Re,$e)}}}var w=x(l,a,r);if(w)return Vn(w,i);for(var R=a.nextSibling,H=l?l.nodeValue.length-r:0;R;R=R.nextSibling){if(w=x(R,R.firstChild,0),w)return Vn(ae(w.line,w.ch-H),i);H+=R.textContent.length}for(var J=a.previousSibling,ie=r;J;J=J.previousSibling){if(w=x(J,J.firstChild,-1),w)return Vn(ae(w.line,w.ch+ie),i);ie+=J.textContent.length}}var at=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ye,this.hasSelection=!1,this.composing=null};at.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),h&&(i.style.width="0px"),Se(i,"input",function(){k&&Z>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),Se(i,"paste",function(l){Xe(n,l)||la(l,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function o(l){if(!Xe(n,l)){if(n.somethingSelected())hi({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var a=sa(n);hi({lineWise:!0,text:a.text}),l.type=="cut"?n.setSelections(a.ranges,null,Oe):(r.prevInput="",i.value=a.text.join(`
  `),Ie(i))}else return;l.type=="cut"&&(n.state.cutIncoming=+new Date)}}Se(i,"cut",o),Se(i,"copy",o),Se(e.scroller,"paste",function(l){if(!(ln(e,l)||Xe(n,l))){if(!i.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),Se(e.lineSpace,"selectstart",function(l){ln(e,l)||bt(l)}),Se(i,"compositionstart",function(){var l=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:l,range:n.markText(l,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},at.prototype.createField=function(e){this.wrapper=ca(),this.textarea=this.wrapper.firstChild},at.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},at.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Vo(e);if(e.options.moveInputWithCursor){var i=Kt(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},at.prototype.showSelection=function(e){var t=this.cm,r=t.display;A(r.cursorDiv,e.cursors),A(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},at.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&Ie(this.textarea),k&&Z>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",k&&Z>=9&&(this.hasSelection=null))}},at.prototype.getField=function(){return this.textarea},at.prototype.supportsTouch=function(){return!1},at.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!O||me()!=this.textarea))try{this.textarea.focus()}catch(e){}},at.prototype.blur=function(){this.textarea.blur()},at.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},at.prototype.receivedFocus=function(){this.slowPoll()},at.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},at.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},at.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Wr(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(k&&Z>=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&&!n&&(n="\u200B"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(n.length,i.length);l<a&&n.charCodeAt(l)==i.charCodeAt(l);)++l;return Dt(t,function(){ao(t,i.slice(l),n.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
  `)>-1?r.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},at.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},at.prototype.onKeyPress=function(){k&&Z>=9&&(this.hasSelection=null),this.fastPoll()},at.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Sn(r,e),l=n.scroller.scrollTop;if(!o||y)return;var a=r.options.resetSelectionOnContextMenu;a&&r.doc.sel.contains(o)==-1&&dt(r,yt)(r.doc,pn(o),Oe);var s=i.style.cssText,u=t.wrapper.style.cssText,x=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
        top: `+(e.clientY-x.top-5)+"px; left: "+(e.clientX-x.left-5)+`px;
        z-index: 1000; background: `+(k?"rgba(255, 255, 255, .05)":"transparent")+`;
        outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var w;E&&(w=window.scrollY),n.input.focus(),E&&window.scrollTo(null,w),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=H,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function R(){if(i.selectionStart!=null){var ie=r.somethingSelected(),fe="\u200B"+(ie?i.value:"");i.value="\u21DA",i.value=fe,t.prevInput=ie?"":"\u200B",i.selectionStart=1,i.selectionEnd=fe.length,n.selForContextMenu=r.doc.sel}}function H(){if(t.contextMenuPending==H&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,k&&Z<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=l),i.selectionStart!=null)){(!k||k&&Z<9)&&R();var ie=0,fe=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?dt(r,zl)(r):ie++<10?n.detectingSelectAll=setTimeout(fe,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(fe,200)}}if(k&&Z>=9&&R(),U){yn(e);var J=function(){et(window,"mouseup",J),setTimeout(H,20)};Se(window,"mouseup",J)}else setTimeout(H,50)},at.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},at.prototype.setUneditable=function(){},at.prototype.needsContentAttribute=!1;function vu(e,t){if(t=t?f(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 r=me();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=a.getValue()}var i;if(e.form&&(Se(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(s){}}t.finishInit=function(s){s.save=n,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,n(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(et(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=tt(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function bu(e){e.off=et,e.on=Se,e.wheelEventPixels=Cs,e.Doc=Tt,e.splitLines=ir,e.countColumn=le,e.findColumn=He,e.isWordChar=qe,e.Pass=de,e.signal=Me,e.Line=In,e.changeEnd=gn,e.scrollbarModel=ll,e.Pos=ae,e.cmpPos=c,e.modes=Bt,e.mimeModes=Nt,e.resolveMode=On,e.getMode=Nn,e.modeExtensions=Rt,e.extendMode=jt,e.copyState=Pt,e.startState=ar,e.innerMode=lr,e.commands=Dr,e.keyMap=an,e.keyName=Gl,e.isModifierKey=Kl,e.lookupKey=Zn,e.normalizeKeyMap=Xs,e.StringStream=ot,e.SharedTextMarker=Ar,e.TextMarker=vn,e.LineWidget=Mr,e.e_preventDefault=bt,e.e_stopPropagation=Fn,e.e_stop=yn,e.addClass=ge,e.contains=Q,e.rmClass=z,e.keyNames=bn}uu(tt),hu(tt);var xu="iter insert remove copy getEditor constructor".split(" ");for(var gi in Tt.prototype)Tt.prototype.hasOwnProperty(gi)&&oe(xu,gi)<0&&(tt.prototype[gi]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tt.prototype[gi]));return Xt(Tt),tt.inputStyles={textarea:at,contenteditable:Ze},tt.defineMode=function(e){!tt.defaults.mode&&e!="null"&&(tt.defaults.mode=e),qr.apply(this,arguments)},tt.defineMIME=nn,tt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),tt.defineMIME("text/plain","null"),tt.defineExtension=function(e,t){tt.prototype[e]=t},tt.defineDocExtension=function(e,t){Tt.prototype[e]=t},tt.fromTextArea=vu,bu(tt),tt.version="5.61.1",tt})})(Je);var Pu=Je.exports,Ju=`/* BASICS */
  
  .CodeMirror {
    /* Set height, width, borders, and global font properties here */
    font-family: monospace;
    height: 300px;
    color: black;
    direction: ltr;
  }
  
  /* PADDING */
  
  .CodeMirror-lines {
    padding: 4px 0; /* Vertical padding around content */
  }
  .CodeMirror pre.CodeMirror-line,
  .CodeMirror pre.CodeMirror-line-like {
    padding: 0 4px; /* Horizontal padding of content */
  }
  
  .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
    background-color: white; /* The little square between H and V scrollbars */
  }
  
  /* GUTTER */
  
  .CodeMirror-gutters {
    border-right: 1px solid #ddd;
    background-color: #f7f7f7;
    white-space: nowrap;
  }
  .CodeMirror-linenumbers {}
  .CodeMirror-linenumber {
    padding: 0 3px 0 5px;
    min-width: 20px;
    text-align: right;
    color: #999;
    white-space: nowrap;
  }
  
  .CodeMirror-guttermarker { color: black; }
  .CodeMirror-guttermarker-subtle { color: #999; }
  
  /* CURSOR */
  
  .CodeMirror-cursor {
    border-left: 1px solid black;
    border-right: none;
    width: 0;
  }
  /* Shown when moving in bi-directional text */
  .CodeMirror div.CodeMirror-secondarycursor {
    border-left: 1px solid silver;
  }
  .cm-fat-cursor .CodeMirror-cursor {
    width: auto;
    border: 0 !important;
    background: #7e7;
  }
  .cm-fat-cursor div.CodeMirror-cursors {
    z-index: 1;
  }
  .cm-fat-cursor-mark {
    background-color: rgba(20, 255, 20, 0.5);
    -webkit-animation: blink 1.06s steps(1) infinite;
    -moz-animation: blink 1.06s steps(1) infinite;
    animation: blink 1.06s steps(1) infinite;
  }
  .cm-animate-fat-cursor {
    width: auto;
    border: 0;
    -webkit-animation: blink 1.06s steps(1) infinite;
    -moz-animation: blink 1.06s steps(1) infinite;
    animation: blink 1.06s steps(1) infinite;
    background-color: #7e7;
  }
  @-moz-keyframes blink {
    0% {}
    50% { background-color: transparent; }
    100% {}
  }
  @-webkit-keyframes blink {
    0% {}
    50% { background-color: transparent; }
    100% {}
  }
  @keyframes blink {
    0% {}
    50% { background-color: transparent; }
    100% {}
  }
  
  /* Can style cursor different in overwrite (non-insert) mode */
  .CodeMirror-overwrite .CodeMirror-cursor {}
  
  .cm-tab { display: inline-block; text-decoration: inherit; }
  
  .CodeMirror-rulers {
    position: absolute;
    left: 0; right: 0; top: -50px; bottom: 0;
    overflow: hidden;
  }
  .CodeMirror-ruler {
    border-left: 1px solid #ccc;
    top: 0; bottom: 0;
    position: absolute;
  }
  
  /* DEFAULT THEME */
  
  .cm-s-default .cm-header {color: blue;}
  .cm-s-default .cm-quote {color: #090;}
  .cm-negative {color: #d44;}
  .cm-positive {color: #292;}
  .cm-header, .cm-strong {font-weight: bold;}
  .cm-em {font-style: italic;}
  .cm-link {text-decoration: underline;}
  .cm-strikethrough {text-decoration: line-through;}
  
  .cm-s-default .cm-keyword {color: #708;}
  .cm-s-default .cm-atom {color: #219;}
  .cm-s-default .cm-number {color: #164;}
  .cm-s-default .cm-def {color: #00f;}
  .cm-s-default .cm-variable,
  .cm-s-default .cm-punctuation,
  .cm-s-default .cm-property,
  .cm-s-default .cm-operator {}
  .cm-s-default .cm-variable-2 {color: #05a;}
  .cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
  .cm-s-default .cm-comment {color: #a50;}
  .cm-s-default .cm-string {color: #a11;}
  .cm-s-default .cm-string-2 {color: #f50;}
  .cm-s-default .cm-meta {color: #555;}
  .cm-s-default .cm-qualifier {color: #555;}
  .cm-s-default .cm-builtin {color: #30a;}
  .cm-s-default .cm-bracket {color: #997;}
  .cm-s-default .cm-tag {color: #170;}
  .cm-s-default .cm-attribute {color: #00c;}
  .cm-s-default .cm-hr {color: #999;}
  .cm-s-default .cm-link {color: #00c;}
  
  .cm-s-default .cm-error {color: #f00;}
  .cm-invalidchar {color: #f00;}
  
  .CodeMirror-composing { border-bottom: 2px solid; }
  
  /* Default styles for common addons */
  
  div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
  div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
  .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
  .CodeMirror-activeline-background {background: #e8f2ff;}
  
  /* STOP */
  
  /* The rest of this file contains styles related to the mechanics of
     the editor. You probably shouldn't touch them. */
  
  .CodeMirror {
    position: relative;
    overflow: hidden;
    background: white;
  }
  
  .CodeMirror-scroll {
    overflow: scroll !important; /* Things will break if this is overridden */
    /* 50px is the magic margin used to hide the element's real scrollbars */
    /* See overflow: hidden in .CodeMirror */
    margin-bottom: -50px; margin-right: -50px;
    padding-bottom: 50px;
    height: 100%;
    outline: none; /* Prevent dragging from highlighting the element */
    position: relative;
  }
  .CodeMirror-sizer {
    position: relative;
    border-right: 50px solid transparent;
  }
  
  /* The fake, visible scrollbars. Used to force redraw during scrolling
     before actual scrolling happens, thus preventing shaking and
     flickering artifacts. */
  .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
    position: absolute;
    z-index: 6;
    display: none;
    outline: none;
  }
  .CodeMirror-vscrollbar {
    right: 0; top: 0;
    overflow-x: hidden;
    overflow-y: scroll;
  }
  .CodeMirror-hscrollbar {
    bottom: 0; left: 0;
    overflow-y: hidden;
    overflow-x: scroll;
  }
  .CodeMirror-scrollbar-filler {
    right: 0; bottom: 0;
  }
  .CodeMirror-gutter-filler {
    left: 0; bottom: 0;
  }
  
  .CodeMirror-gutters {
    position: absolute; left: 0; top: 0;
    min-height: 100%;
    z-index: 3;
  }
  .CodeMirror-gutter {
    white-space: normal;
    height: 100%;
    display: inline-block;
    vertical-align: top;
    margin-bottom: -50px;
  }
  .CodeMirror-gutter-wrapper {
    position: absolute;
    z-index: 4;
    background: none !important;
    border: none !important;
  }
  .CodeMirror-gutter-background {
    position: absolute;
    top: 0; bottom: 0;
    z-index: 4;
  }
  .CodeMirror-gutter-elt {
    position: absolute;
    cursor: default;
    z-index: 4;
  }
  .CodeMirror-gutter-wrapper ::selection { background-color: transparent }
  .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
  
  .CodeMirror-lines {
    cursor: text;
    min-height: 1px; /* prevents collapsing before first draw */
  }
  .CodeMirror pre.CodeMirror-line,
  .CodeMirror pre.CodeMirror-line-like {
    /* Reset some styles that the rest of the page might have set */
    -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
    border-width: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    white-space: pre;
    word-wrap: normal;
    line-height: inherit;
    color: inherit;
    z-index: 2;
    position: relative;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-variant-ligatures: contextual;
    font-variant-ligatures: contextual;
  }
  .CodeMirror-wrap pre.CodeMirror-line,
  .CodeMirror-wrap pre.CodeMirror-line-like {
    word-wrap: break-word;
    white-space: pre-wrap;
    word-break: normal;
  }
  
  .CodeMirror-linebackground {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 0;
  }
  
  .CodeMirror-linewidget {
    position: relative;
    z-index: 2;
    padding: 0.1px; /* Force widget margins to stay inside of the container */
  }
  
  .CodeMirror-widget {}
  
  .CodeMirror-rtl pre { direction: rtl; }
  
  .CodeMirror-code {
    outline: none;
  }
  
  /* Force content-box sizing for the elements where we expect it */
  .CodeMirror-scroll,
  .CodeMirror-sizer,
  .CodeMirror-gutter,
  .CodeMirror-gutters,
  .CodeMirror-linenumber {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
  }
  
  .CodeMirror-measure {
    position: absolute;
    width: 100%;
    height: 0;
    overflow: hidden;
    visibility: hidden;
  }
  
  .CodeMirror-cursor {
    position: absolute;
    pointer-events: none;
  }
  .CodeMirror-measure pre { position: static; }
  
  div.CodeMirror-cursors {
    visibility: hidden;
    position: relative;
    z-index: 3;
  }
  div.CodeMirror-dragcursors {
    visibility: visible;
  }
  
  .CodeMirror-focused div.CodeMirror-cursors {
    visibility: visible;
  }
  
  .CodeMirror-selected { background: #d9d9d9; }
  .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
  .CodeMirror-crosshair { cursor: crosshair; }
  .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
  .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
  
  .cm-searching {
    background-color: #ffa;
    background-color: rgba(255, 255, 0, .4);
  }
  
  /* Used to force a border model for a node */
  .cm-force-border { padding-right: .1px; }
  
  @media print {
    /* Hide the cursor when printing */
    .CodeMirror div.CodeMirror-cursors {
      visibility: hidden;
    }
  }
  
  /* See issue #2901 */
  .cm-tab-wrap-hack:after { content: ''; }
  
  /* Help users use markselection to safely style text background */
  span.CodeMirror-selectedtext { background: none; }
  `,Vu=`.cm-s-cobalt.CodeMirror { background: #002240; color: white; }
  .cm-s-cobalt div.CodeMirror-selected { background: #b36539; }
  .cm-s-cobalt .CodeMirror-line::selection, .cm-s-cobalt .CodeMirror-line > span::selection, .cm-s-cobalt .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); }
  .cm-s-cobalt .CodeMirror-line::-moz-selection, .cm-s-cobalt .CodeMirror-line > span::-moz-selection, .cm-s-cobalt .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); }
  .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
  .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; }
  .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
  .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
  .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white; }
  
  .cm-s-cobalt span.cm-comment { color: #08f; }
  .cm-s-cobalt span.cm-atom { color: #845dc4; }
  .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
  .cm-s-cobalt span.cm-keyword { color: #ffee80; }
  .cm-s-cobalt span.cm-string { color: #3ad900; }
  .cm-s-cobalt span.cm-meta { color: #ff9d00; }
  .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
  .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def, .cm-s-cobalt .cm-type { color: white; }
  .cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
  .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
  .cm-s-cobalt span.cm-link { color: #845dc4; }
  .cm-s-cobalt span.cm-error { color: #9d1e15; }
  
  .cm-s-cobalt .CodeMirror-activeline-background { background: #002D57; }
  .cm-s-cobalt .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; }
  `;(function(Pe,We){(function(m){m(Je.exports)})(function(m){var ee="CodeMirror-activeline",B="CodeMirror-activeline-background",X="CodeMirror-activeline-gutter";m.defineOption("styleActiveLine",!1,function(E,K,v){var y=v==m.Init?!1:v;K!=y&&(y&&(E.off("beforeSelectionChange",Z),P(E),delete E.state.activeLines),K&&(E.state.activeLines=[],k(E,E.listSelections()),E.on("beforeSelectionChange",Z)))});function P(E){for(var K=0;K<E.state.activeLines.length;K++)E.removeLineClass(E.state.activeLines[K],"wrap",ee),E.removeLineClass(E.state.activeLines[K],"background",B),E.removeLineClass(E.state.activeLines[K],"gutter",X)}function q(E,K){if(E.length!=K.length)return!1;for(var v=0;v<E.length;v++)if(E[v]!=K[v])return!1;return!0}function k(E,K){for(var v=[],y=0;y<K.length;y++){var _=K[y],d=E.getOption("styleActiveLine");if(!(typeof d=="object"&&d.nonEmpty?_.anchor.line!=_.head.line:!_.empty())){var p=E.getLineHandleVisualStart(_.head.line);v[v.length-1]!=p&&v.push(p)}}q(E.state.activeLines,v)||E.operation(function(){P(E);for(var h=0;h<v.length;h++)E.addLineClass(v[h],"wrap",ee),E.addLineClass(v[h],"background",B),E.addLineClass(v[h],"gutter",X);E.state.activeLines=v})}function Z(E,K){k(E,K.ranges)}})})(),function(Pe,We){(function(m){m(Je.exports)})(function(m){var ee=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),B=m.Pos,X={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function P(v){return v&&v.bracketRegex||/[(){}[\]]/}function q(v,y,_){var d=v.getLineHandle(y.line),p=y.ch-1,h=_&&_.afterCursor;h==null&&(h=/(^| )cm-fat-cursor($| )/.test(v.getWrapperElement().className));var L=P(_),O=!h&&p>=0&&L.test(d.text.charAt(p))&&X[d.text.charAt(p)]||L.test(d.text.charAt(p+1))&&X[d.text.charAt(++p)];if(!O)return null;var W=O.charAt(1)==">"?1:-1;if(_&&_.strict&&W>0!=(p==y.ch))return null;var Y=v.getTokenTypeAt(B(y.line,p+1)),re=k(v,B(y.line,p+(W>0?1:0)),W,Y,_);return re==null?null:{from:B(y.line,p),to:re&&re.pos,match:re&&re.ch==O.charAt(0),forward:W>0}}function k(v,y,_,d,p){for(var h=p&&p.maxScanLineLength||1e4,L=p&&p.maxScanLines||1e3,O=[],W=P(p),Y=_>0?Math.min(y.line+L,v.lastLine()+1):Math.max(v.firstLine()-1,y.line-L),re=y.line;re!=Y;re+=_){var ne=v.getLine(re);if(!!ne){var ce=_>0?0:ne.length-1,U=_>0?ne.length:-1;if(!(ne.length>h))for(re==y.line&&(ce=y.ch-(_<0?1:0));ce!=U;ce+=_){var M=ne.charAt(ce);if(W.test(M)&&(d===void 0||(v.getTokenTypeAt(B(re,ce+1))||"")==(d||""))){var z=X[M];if(z&&z.charAt(1)==">"==_>0)O.push(M);else if(O.length)O.pop();else return{pos:B(re,ce),ch:M}}}}}return re-_==(_>0?v.lastLine():v.firstLine())?!1:null}function Z(v,y,_){for(var d=v.state.matchBrackets.maxHighlightLineLength||1e3,p=_&&_.highlightNonMatching,h=[],L=v.listSelections(),O=0;O<L.length;O++){var W=L[O].empty()&&q(v,L[O].head,_);if(W&&(W.match||p!==!1)&&v.getLine(W.from.line).length<=d){var Y=W.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";h.push(v.markText(W.from,B(W.from.line,W.from.ch+1),{className:Y})),W.to&&v.getLine(W.to.line).length<=d&&h.push(v.markText(W.to,B(W.to.line,W.to.ch+1),{className:Y}))}}if(h.length){ee&&v.state.focused&&v.focus();var re=function(){v.operation(function(){for(var ne=0;ne<h.length;ne++)h[ne].clear()})};if(y)setTimeout(re,800);else return re}}function E(v){v.operation(function(){v.state.matchBrackets.currentlyHighlighted&&(v.state.matchBrackets.currentlyHighlighted(),v.state.matchBrackets.currentlyHighlighted=null),v.state.matchBrackets.currentlyHighlighted=Z(v,!1,v.state.matchBrackets)})}function K(v){v.state.matchBrackets&&v.state.matchBrackets.currentlyHighlighted&&(v.state.matchBrackets.currentlyHighlighted(),v.state.matchBrackets.currentlyHighlighted=null)}m.defineOption("matchBrackets",!1,function(v,y,_){_&&_!=m.Init&&(v.off("cursorActivity",E),v.off("focus",E),v.off("blur",K),K(v)),y&&(v.state.matchBrackets=typeof y=="object"?y:{},v.on("cursorActivity",E),v.on("focus",E),v.on("blur",K))}),m.defineExtension("matchBrackets",function(){Z(this,!0)}),m.defineExtension("findMatchingBracket",function(v,y,_){return(_||typeof y=="boolean")&&(_?(_.strict=y,y=_):y=y?{strict:!0}:null),q(this,v,y)}),m.defineExtension("scanForBracket",function(v,y,_,d){return k(this,v,y,_,d)})})}(),function(Pe,We){(function(m){m(Je.exports)})(function(m){var ee={},B=/[^\s\u00a0]/,X=m.Pos,P=m.cmpPos;function q(E){var K=E.search(B);return K==-1?0:K}m.commands.toggleComment=function(E){E.toggleComment()},m.defineExtension("toggleComment",function(E){E||(E=ee);for(var K=this,v=Infinity,y=this.listSelections(),_=null,d=y.length-1;d>=0;d--){var p=y[d].from(),h=y[d].to();p.line>=v||(h.line>=v&&(h=X(v,0)),v=p.line,_==null?K.uncomment(p,h,E)?_="un":(K.lineComment(p,h,E),_="line"):_=="un"?K.uncomment(p,h,E):K.lineComment(p,h,E))}});function k(E,K,v){return/\bstring\b/.test(E.getTokenTypeAt(X(K.line,0)))&&!/^[\'\"\`]/.test(v)}function Z(E,K){var v=E.getMode();return v.useInnerComments===!1||!v.innerMode?v:E.getModeAt(K)}m.defineExtension("lineComment",function(E,K,v){v||(v=ee);var y=this,_=Z(y,E),d=y.getLine(E.line);if(!(d==null||k(y,E,d))){var p=v.lineComment||_.lineComment;if(!p){(v.blockCommentStart||_.blockCommentStart)&&(v.fullLines=!0,y.blockComment(E,K,v));return}var h=Math.min(K.ch!=0||K.line==E.line?K.line+1:K.line,y.lastLine()+1),L=v.padding==null?" ":v.padding,O=v.commentBlankLines||E.line==K.line;y.operation(function(){if(v.indent){for(var W=null,Y=E.line;Y<h;++Y){var re=y.getLine(Y),ne=re.slice(0,q(re));(W==null||W.length>ne.length)&&(W=ne)}for(var Y=E.line;Y<h;++Y){var re=y.getLine(Y),ce=W.length;!O&&!B.test(re)||(re.slice(0,ce)!=W&&(ce=q(re)),y.replaceRange(W+p+L,X(Y,0),X(Y,ce)))}}else for(var Y=E.line;Y<h;++Y)(O||B.test(y.getLine(Y)))&&y.replaceRange(p+L,X(Y,0))})}}),m.defineExtension("blockComment",function(E,K,v){v||(v=ee);var y=this,_=Z(y,E),d=v.blockCommentStart||_.blockCommentStart,p=v.blockCommentEnd||_.blockCommentEnd;if(!d||!p){(v.lineComment||_.lineComment)&&v.fullLines!=!1&&y.lineComment(E,K,v);return}if(!/\bcomment\b/.test(y.getTokenTypeAt(X(E.line,0)))){var h=Math.min(K.line,y.lastLine());h!=E.line&&K.ch==0&&B.test(y.getLine(h))&&--h;var L=v.padding==null?" ":v.padding;E.line>h||y.operation(function(){if(v.fullLines!=!1){var O=B.test(y.getLine(h));y.replaceRange(L+p,X(h)),y.replaceRange(d+L,X(E.line,0));var W=v.blockCommentLead||_.blockCommentLead;if(W!=null)for(var Y=E.line+1;Y<=h;++Y)(Y!=h||O)&&y.replaceRange(W+L,X(Y,0))}else{var re=P(y.getCursor("to"),K)==0,ne=!y.somethingSelected();y.replaceRange(p,K),re&&y.setSelection(ne?K:y.getCursor("from"),K),y.replaceRange(d,E)}})}}),m.defineExtension("uncomment",function(E,K,v){v||(v=ee);var y=this,_=Z(y,E),d=Math.min(K.ch!=0||K.line==E.line?K.line:K.line-1,y.lastLine()),p=Math.min(E.line,d),h=v.lineComment||_.lineComment,L=[],O=v.padding==null?" ":v.padding,W;e:{if(!h)break e;for(var Y=p;Y<=d;++Y){var re=y.getLine(Y),ne=re.indexOf(h);if(ne>-1&&!/comment/.test(y.getTokenTypeAt(X(Y,ne+1)))&&(ne=-1),ne==-1&&B.test(re)||ne>-1&&B.test(re.slice(0,ne)))break e;L.push(re)}if(y.operation(function(){for(var ze=p;ze<=d;++ze){var Ie=L[ze-p],S=Ie.indexOf(h),f=S+h.length;S<0||(Ie.slice(f,f+O.length)==O&&(f+=O.length),W=!0,y.replaceRange("",X(ze,S),X(ze,f)))}}),W)return!0}var ce=v.blockCommentStart||_.blockCommentStart,U=v.blockCommentEnd||_.blockCommentEnd;if(!ce||!U)return!1;var M=v.blockCommentLead||_.blockCommentLead,z=y.getLine(p),G=z.indexOf(ce);if(G==-1)return!1;var A=d==p?z:y.getLine(d),g=A.indexOf(U,d==p?G+ce.length:0),b=X(p,G+1),N=X(d,g+1);if(g==-1||!/comment/.test(y.getTokenTypeAt(b))||!/comment/.test(y.getTokenTypeAt(N))||y.getRange(b,N,`
  `).indexOf(U)>-1)return!1;var Q=z.lastIndexOf(ce,E.ch),me=Q==-1?-1:z.slice(0,E.ch).indexOf(U,Q+ce.length);if(Q!=-1&&me!=-1&&me+U.length!=E.ch)return!1;me=A.indexOf(U,K.ch);var ge=A.slice(K.ch).lastIndexOf(ce,me-K.ch);return Q=me==-1||ge==-1?-1:K.ch+ge,me!=-1&&Q!=-1&&Q!=K.ch?!1:(y.operation(function(){y.replaceRange("",X(d,g-(O&&A.slice(g-O.length,g)==O?O.length:0)),X(d,g+U.length));var ze=G+ce.length;if(O&&z.slice(ze,ze+O.length)==O&&(ze+=O.length),y.replaceRange("",X(p,G),X(p,ze)),M)for(var Ie=p+1;Ie<=d;++Ie){var S=y.getLine(Ie),f=S.indexOf(M);if(!(f==-1||B.test(S.slice(0,f)))){var le=f+M.length;O&&S.slice(le,le+O.length)==O&&(le+=O.length),y.replaceRange("",X(Ie,f),X(Ie,le))}}}),!0)})})}(),function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineMode("yaml",function(){var ee=["true","false","on","off","yes","no"],B=new RegExp("\\b(("+ee.join(")|(")+"))$","i");return{token:function(X,P){var q=X.peek(),k=P.escaped;if(P.escaped=!1,q=="#"&&(X.pos==0||/\s/.test(X.string.charAt(X.pos-1))))return X.skipToEnd(),"comment";if(X.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(P.literal&&X.indentation()>P.keyCol)return X.skipToEnd(),"string";if(P.literal&&(P.literal=!1),X.sol()){if(P.keyCol=0,P.pair=!1,P.pairStart=!1,X.match("---")||X.match("..."))return"def";if(X.match(/\s*-\s+/))return"meta"}if(X.match(/^(\{|\}|\[|\])/))return q=="{"?P.inlinePairs++:q=="}"?P.inlinePairs--:q=="["?P.inlineList++:P.inlineList--,"meta";if(P.inlineList>0&&!k&&q==",")return X.next(),"meta";if(P.inlinePairs>0&&!k&&q==",")return P.keyCol=0,P.pair=!1,P.pairStart=!1,X.next(),"meta";if(P.pairStart){if(X.match(/^\s*(\||\>)\s*/))return P.literal=!0,"meta";if(X.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(P.inlinePairs==0&&X.match(/^\s*-?[0-9\.\,]+\s?$/)||P.inlinePairs>0&&X.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(X.match(B))return"keyword"}return!P.pair&&X.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(P.pair=!0,P.keyCol=X.indentation(),"atom"):P.pair&&X.match(/^:\s*/)?(P.pairStart=!0,"meta"):(P.pairStart=!1,P.escaped=q=="\\",X.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),m.defineMIME("text/x-yaml","yaml"),m.defineMIME("text/yaml","yaml")})}();var ya={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineSimpleMode=function(v,y){m.defineMode(v,function(_){return m.simpleMode(_,y)})},m.simpleMode=function(v,y){ee(y,"start");var _={},d=y.meta||{},p=!1;for(var h in y)if(h!=d&&y.hasOwnProperty(h))for(var L=_[h]=[],O=y[h],W=0;W<O.length;W++){var Y=O[W];L.push(new P(Y,y)),(Y.indent||Y.dedent)&&(p=!0)}var re={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:p?[]:null}},copyState:function(ce){var U={state:ce.state,pending:ce.pending,local:ce.local,localState:null,indent:ce.indent&&ce.indent.slice(0)};ce.localState&&(U.localState=m.copyState(ce.local.mode,ce.localState)),ce.stack&&(U.stack=ce.stack.slice(0));for(var M=ce.persistentStates;M;M=M.next)U.persistentStates={mode:M.mode,spec:M.spec,state:M.state==ce.localState?U.localState:m.copyState(M.mode,M.state),next:U.persistentStates};return U},token:q(_,v),innerMode:function(ce){return ce.local&&{mode:ce.local.mode,state:ce.localState}},indent:K(_,d)};if(d)for(var ne in d)d.hasOwnProperty(ne)&&(re[ne]=d[ne]);return re};function ee(v,y){if(!v.hasOwnProperty(y))throw new Error("Undefined state "+y+" in simple mode")}function B(v,y){if(!v)return/(?:)/;var _="";return v instanceof RegExp?(v.ignoreCase&&(_="i"),v.unicode&&(_+="u"),v=v.source):v=String(v),new RegExp((y===!1?"":"^")+"(?:"+v+")",_)}function X(v){if(!v)return null;if(v.apply)return v;if(typeof v=="string")return v.replace(/\./g," ");for(var y=[],_=0;_<v.length;_++)y.push(v[_]&&v[_].replace(/\./g," "));return y}function P(v,y){(v.next||v.push)&&ee(y,v.next||v.push),this.regex=B(v.regex),this.token=X(v.token),this.data=v}function q(v,y){return function(_,d){if(d.pending){var p=d.pending.shift();return d.pending.length==0&&(d.pending=null),_.pos+=p.text.length,p.token}if(d.local)if(d.local.end&&_.match(d.local.end)){var h=d.local.endToken||null;return d.local=d.localState=null,h}else{var h=d.local.mode.token(_,d.localState),L;return d.local.endScan&&(L=d.local.endScan.exec(_.current()))&&(_.pos=_.start+L.index),h}for(var O=v[d.state],W=0;W<O.length;W++){var Y=O[W],re=(!Y.data.sol||_.sol())&&_.match(Y.regex);if(re){Y.data.next?d.state=Y.data.next:Y.data.push?((d.stack||(d.stack=[])).push(d.state),d.state=Y.data.push):Y.data.pop&&d.stack&&d.stack.length&&(d.state=d.stack.pop()),Y.data.mode&&Z(y,d,Y.data.mode,Y.token),Y.data.indent&&d.indent.push(_.indentation()+y.indentUnit),Y.data.dedent&&d.indent.pop();var ne=Y.token;if(ne&&ne.apply&&(ne=ne(re)),re.length>2&&Y.token&&typeof Y.token!="string"){for(var ce=2;ce<re.length;ce++)re[ce]&&(d.pending||(d.pending=[])).push({text:re[ce],token:Y.token[ce-1]});return _.backUp(re[0].length-(re[1]?re[1].length:0)),ne[0]}else return ne&&ne.join?ne[0]:ne}}return _.next(),null}}function k(v,y){if(v===y)return!0;if(!v||typeof v!="object"||!y||typeof y!="object")return!1;var _=0;for(var d in v)if(v.hasOwnProperty(d)){if(!y.hasOwnProperty(d)||!k(v[d],y[d]))return!1;_++}for(var d in y)y.hasOwnProperty(d)&&_--;return _==0}function Z(v,y,_,d){var p;if(_.persistent)for(var h=y.persistentStates;h&&!p;h=h.next)(_.spec?k(_.spec,h.spec):_.mode==h.mode)&&(p=h);var L=p?p.mode:_.mode||m.getMode(v,_.spec),O=p?p.state:m.startState(L);_.persistent&&!p&&(y.persistentStates={mode:L,spec:_.spec,state:O,next:y.persistentStates}),y.localState=O,y.local={mode:L,end:_.end&&B(_.end),endScan:_.end&&_.forceEnd!==!1&&B(_.end,!1),endToken:d&&d.join?d[d.length-1]:d}}function E(v,y){for(var _=0;_<y.length;_++)if(y[_]===v)return!0}function K(v,y){return function(_,d,p){if(_.local&&_.local.mode.indent)return _.local.mode.indent(_.localState,d,p);if(_.indent==null||_.local||y.dontIndentStates&&E(_.state,y.dontIndentStates)>-1)return m.Pass;var h=_.indent.length-1,L=v[_.state];e:for(;;){for(var O=0;O<L.length;O++){var W=L[O];if(W.data.dedent&&W.data.dedentIfLineStart!==!1){var Y=W.regex.exec(d);if(Y&&Y[0]){h--,(W.next||W.push)&&(L=v[W.next||W.push]),d=d.slice(Y[0].length);continue e}}}break}return h<0?0:_.indent[h]}}})})(),function(Pe,We){(function(m){m(Je.exports,ya.exports)})(function(m){var ee="from",B=new RegExp("^(\\s*)\\b("+ee+")\\b","i"),X=["run","cmd","entrypoint","shell"],P=new RegExp("^(\\s*)("+X.join("|")+")(\\s+\\[)","i"),q="expose",k=new RegExp("^(\\s*)("+q+")(\\s+)","i"),Z=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],E=[ee,q].concat(X).concat(Z),K="("+E.join("|")+")",v=new RegExp("^(\\s*)"+K+"(\\s*)(#.*)?$","i"),y=new RegExp("^(\\s*)"+K+"(\\s+)","i");m.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:B,token:[null,"keyword"],sol:!0,next:"from"},{regex:v,token:[null,"keyword",null,"error"],sol:!0},{regex:P,token:[null,"keyword",null],sol:!0,next:"array"},{regex:k,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:y,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),m.defineMIME("text/x-dockerfile","dockerfile")})}(),function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineMode("nginx",function(ee){function B(d){for(var p={},h=d.split(" "),L=0;L<h.length;++L)p[h[L]]=!0;return p}var X=B("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"),P=B("http mail events server types location upstream charset_map limit_except if geo map"),q=B("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),k=ee.indentUnit,Z;function E(d,p){return Z=p,d}function K(d,p){d.eatWhile(/[\w\$_]/);var h=d.current();if(X.propertyIsEnumerable(h))return"keyword";if(P.propertyIsEnumerable(h))return"variable-2";if(q.propertyIsEnumerable(h))return"string-2";var L=d.next();if(L=="@")return d.eatWhile(/[\w\\\-]/),E("meta",d.current());if(L=="/"&&d.eat("*"))return p.tokenize=v,v(d,p);if(L=="<"&&d.eat("!"))return p.tokenize=y,y(d,p);if(L=="=")E(null,"compare");else return(L=="~"||L=="|")&&d.eat("=")?E(null,"compare"):L=='"'||L=="'"?(p.tokenize=_(L),p.tokenize(d,p)):L=="#"?(d.skipToEnd(),E("comment","comment")):L=="!"?(d.match(/^\s*\w*/),E("keyword","important")):/\d/.test(L)?(d.eatWhile(/[\w.%]/),E("number","unit")):/[,.+>*\/]/.test(L)?E(null,"select-op"):/[;{}:\[\]]/.test(L)?E(null,L):(d.eatWhile(/[\w\\\-]/),E("variable","variable"))}function v(d,p){for(var h=!1,L;(L=d.next())!=null;){if(h&&L=="/"){p.tokenize=K;break}h=L=="*"}return E("comment","comment")}function y(d,p){for(var h=0,L;(L=d.next())!=null;){if(h>=2&&L==">"){p.tokenize=K;break}h=L=="-"?h+1:0}return E("comment","comment")}function _(d){return function(p,h){for(var L=!1,O;(O=p.next())!=null&&!(O==d&&!L);)L=!L&&O=="\\";return L||(h.tokenize=K),E("string","string")}}return{startState:function(d){return{tokenize:K,baseIndent:d||0,stack:[]}},token:function(d,p){if(d.eatSpace())return null;Z=null;var h=p.tokenize(d,p),L=p.stack[p.stack.length-1];return Z=="hash"&&L=="rule"?h="atom":h=="variable"&&(L=="rule"?h="number":(!L||L=="@media{")&&(h="tag")),L=="rule"&&/^[\{\};]$/.test(Z)&&p.stack.pop(),Z=="{"?L=="@media"?p.stack[p.stack.length-1]="@media{":p.stack.push("{"):Z=="}"?p.stack.pop():Z=="@media"?p.stack.push("@media"):L=="{"&&Z!="comment"&&p.stack.push("rule"),h},indent:function(d,p){var h=d.stack.length;return/^\}/.test(p)&&(h-=d.stack[d.stack.length-1]=="rule"?2:1),d.baseIndent+h*k},electricChars:"}"}}),m.defineMIME("text/x-nginx-conf","nginx")})}();var fo={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineMode("javascript",function(ee,B){var X=ee.indentUnit,P=B.statementIndent,q=B.jsonld,k=B.json||q,Z=B.trackScope!==!1,E=B.typescript,K=B.wordCharacters||/[\w$\xa1-\uffff]/,v=function(){function c(xt){return{type:xt,style:"keyword"}}var C=c("keyword a"),V=c("keyword b"),ue=c("keyword c"),Ne=c("keyword d"),Ue=c("operator"),be={type:"atom",style:"atom"};return{if:c("if"),while:C,with:C,else:V,do:V,try:V,finally:V,return:Ne,break:Ne,continue:Ne,new:c("new"),delete:ue,void:ue,throw:ue,debugger:c("debugger"),var:c("var"),const:c("var"),let:c("var"),function:c("function"),catch:c("catch"),for:c("for"),switch:c("switch"),case:c("case"),default:c("default"),in:Ue,typeof:Ue,instanceof:Ue,true:be,false:be,null:be,undefined:be,NaN:be,Infinity:be,this:c("this"),class:c("class"),super:c("atom"),yield:ue,export:c("export"),import:c("import"),extends:ue,await:ue}}(),y=/[+\-*&%=<>!?|~^@]/,_=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function d(c){for(var C=!1,V,ue=!1;(V=c.next())!=null;){if(!C){if(V=="/"&&!ue)return;V=="["?ue=!0:ue&&V=="]"&&(ue=!1)}C=!C&&V=="\\"}}var p,h;function L(c,C,V){return p=c,h=V,C}function O(c,C){var V=c.next();if(V=='"'||V=="'")return C.tokenize=W(V),C.tokenize(c,C);if(V=="."&&c.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(V=="."&&c.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(V))return L(V);if(V=="="&&c.eat(">"))return L("=>","operator");if(V=="0"&&c.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(V))return c.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(V=="/")return c.eat("*")?(C.tokenize=Y,Y(c,C)):c.eat("/")?(c.skipToEnd(),L("comment","comment")):ae(c,C,1)?(d(c),c.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(c.eat("="),L("operator","operator",c.current()));if(V=="`")return C.tokenize=re,re(c,C);if(V=="#"&&c.peek()=="!")return c.skipToEnd(),L("meta","meta");if(V=="#"&&c.eatWhile(K))return L("variable","property");if(V=="<"&&c.match("!--")||V=="-"&&c.match("->")&&!/\S/.test(c.string.slice(0,c.start)))return c.skipToEnd(),L("comment","comment");if(y.test(V))return(V!=">"||!C.lexical||C.lexical.type!=">")&&(c.eat("=")?(V=="!"||V=="=")&&c.eat("="):/[<>*+\-|&?]/.test(V)&&(c.eat(V),V==">"&&c.eat(V))),V=="?"&&c.eat(".")?L("."):L("operator","operator",c.current());if(K.test(V)){c.eatWhile(K);var ue=c.current();if(C.lastType!="."){if(v.propertyIsEnumerable(ue)){var Ne=v[ue];return L(Ne.type,Ne.style,ue)}if(ue=="async"&&c.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",ue)}return L("variable","variable",ue)}}function W(c){return function(C,V){var ue=!1,Ne;if(q&&C.peek()=="@"&&C.match(_))return V.tokenize=O,L("jsonld-keyword","meta");for(;(Ne=C.next())!=null&&!(Ne==c&&!ue);)ue=!ue&&Ne=="\\";return ue||(V.tokenize=O),L("string","string")}}function Y(c,C){for(var V=!1,ue;ue=c.next();){if(ue=="/"&&V){C.tokenize=O;break}V=ue=="*"}return L("comment","comment")}function re(c,C){for(var V=!1,ue;(ue=c.next())!=null;){if(!V&&(ue=="`"||ue=="$"&&c.eat("{"))){C.tokenize=O;break}V=!V&&ue=="\\"}return L("quasi","string-2",c.current())}var ne="([{}])";function ce(c,C){C.fatArrowAt&&(C.fatArrowAt=null);var V=c.string.indexOf("=>",c.start);if(!(V<0)){if(E){var ue=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(c.string.slice(c.start,V));ue&&(V=ue.index)}for(var Ne=0,Ue=!1,be=V-1;be>=0;--be){var xt=c.string.charAt(be),It=ne.indexOf(xt);if(It>=0&&It<3){if(!Ne){++be;break}if(--Ne==0){xt=="("&&(Ue=!0);break}}else if(It>=3&&It<6)++Ne;else if(K.test(xt))Ue=!0;else if(/["'\/`]/.test(xt))for(;;--be){if(be==0)return;var Pn=c.string.charAt(be-1);if(Pn==xt&&c.string.charAt(be-2)!="\\"){be--;break}}else if(Ue&&!Ne){++be;break}}Ue&&!Ne&&(C.fatArrowAt=be)}}var U={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function M(c,C,V,ue,Ne,Ue){this.indented=c,this.column=C,this.type=V,this.prev=Ne,this.info=Ue,ue!=null&&(this.align=ue)}function z(c,C){if(!Z)return!1;for(var V=c.localVars;V;V=V.next)if(V.name==C)return!0;for(var ue=c.context;ue;ue=ue.prev)for(var V=ue.vars;V;V=V.next)if(V.name==C)return!0}function G(c,C,V,ue,Ne){var Ue=c.cc;for(A.state=c,A.stream=Ne,A.marked=null,A.cc=Ue,A.style=C,c.lexical.hasOwnProperty("align")||(c.lexical.align=!0);;){var be=Ue.length?Ue.pop():k?Ce:Oe;if(be(V,ue)){for(;Ue.length&&Ue[Ue.length-1].lex;)Ue.pop()();return A.marked?A.marked:V=="variable"&&z(c,ue)?"variable-2":C}}}var A={state:null,column:null,marked:null,cc:null};function g(){for(var c=arguments.length-1;c>=0;c--)A.cc.push(arguments[c])}function b(){return g.apply(null,arguments),!0}function N(c,C){for(var V=C;V;V=V.next)if(V.name==c)return!0;return!1}function Q(c){var C=A.state;if(A.marked="def",!!Z){if(C.context){if(C.lexical.info=="var"&&C.context&&C.context.block){var V=me(c,C.context);if(V!=null){C.context=V;return}}else if(!N(c,C.localVars)){C.localVars=new Ie(c,C.localVars);return}}B.globalVars&&!N(c,C.globalVars)&&(C.globalVars=new Ie(c,C.globalVars))}}function me(c,C){if(C)if(C.block){var V=me(c,C.prev);return V?V==C.prev?C:new ze(V,C.vars,!0):null}else return N(c,C.vars)?C:new ze(C.prev,new Ie(c,C.vars),!1);else return null}function ge(c){return c=="public"||c=="private"||c=="protected"||c=="abstract"||c=="readonly"}function ze(c,C,V){this.prev=c,this.vars=C,this.block=V}function Ie(c,C){this.name=c,this.next=C}var S=new Ie("this",new Ie("arguments",null));function f(){A.state.context=new ze(A.state.context,A.state.localVars,!1),A.state.localVars=S}function le(){A.state.context=new ze(A.state.context,A.state.localVars,!0),A.state.localVars=null}function ye(){A.state.localVars=A.state.context.vars,A.state.context=A.state.context.prev}ye.lex=!0;function oe(c,C){var V=function(){var ue=A.state,Ne=ue.indented;if(ue.lexical.type=="stat")Ne=ue.lexical.indented;else for(var Ue=ue.lexical;Ue&&Ue.type==")"&&Ue.align;Ue=Ue.prev)Ne=Ue.indented;ue.lexical=new M(Ne,A.stream.column(),c,null,ue.lexical,C)};return V.lex=!0,V}function ve(){var c=A.state;c.lexical.prev&&(c.lexical.type==")"&&(c.indented=c.lexical.indented),c.lexical=c.lexical.prev)}ve.lex=!0;function de(c){function C(V){return V==c?b():c==";"||V=="}"||V==")"||V=="]"?g():b(C)}return C}function Oe(c,C){return c=="var"?b(oe("vardef",C),nr,de(";"),ve):c=="keyword a"?b(oe("form"),Ke,Oe,ve):c=="keyword b"?b(oe("form"),Oe,ve):c=="keyword d"?A.stream.match(/^\s*$/,!1)?b():b(oe("stat"),Ee,de(";"),ve):c=="debugger"?b(de(";")):c=="{"?b(oe("}"),le,Te,ve,ye):c==";"?b():c=="if"?(A.state.lexical.info=="else"&&A.state.cc[A.state.cc.length-1]==ve&&A.state.cc.pop()(),b(oe("form"),Ke,Oe,ve,Wr)):c=="function"?b(Bt):c=="for"?b(oe("form"),le,Br,Oe,ye,ve):c=="class"||E&&C=="interface"?(A.marked="keyword",b(oe("form",c=="class"?c:C),Nn,ve)):c=="variable"?E&&C=="declare"?(A.marked="keyword",b(Oe)):E&&(C=="module"||C=="enum"||C=="type")&&A.stream.match(/^\s*\w/,!1)?(A.marked="keyword",C=="enum"?b(Zt):C=="type"?b(qr,de("operator"),Me,de(";")):b(oe("form"),Ct,de("{"),oe("}"),Te,ve,ve)):E&&C=="namespace"?(A.marked="keyword",b(oe("form"),Ce,Oe,ve)):E&&C=="abstract"?(A.marked="keyword",b(Oe)):b(oe("stat"),je):c=="switch"?b(oe("form"),Ke,de("{"),oe("}","switch"),le,Te,ve,ve,ye):c=="case"?b(Ce,de(":")):c=="default"?b(de(":")):c=="catch"?b(oe("form"),f,Fe,Oe,ve,ye):c=="export"?b(oe("stat"),lr,ve):c=="import"?b(oe("stat"),ot,ve):c=="async"?b(Oe):C=="@"?b(Ce,Oe):g(oe("stat"),Ce,de(";"),ve)}function Fe(c){if(c=="(")return b(nn,de(")"))}function Ce(c,C){return _e(c,C,!1)}function He(c,C){return _e(c,C,!0)}function Ke(c){return c!="("?g():b(oe(")"),Ee,de(")"),ve)}function _e(c,C,V){if(A.state.fatArrowAt==A.stream.start){var ue=V?qe:ke;if(c=="(")return b(f,oe(")"),D(nn,")"),ve,de("=>"),ue,ye);if(c=="variable")return g(f,Ct,de("=>"),ue,ye)}var Ne=V?Ge:Be;return U.hasOwnProperty(c)?b(Ne):c=="function"?b(Bt,Ne):c=="class"||E&&C=="interface"?(A.marked="keyword",b(oe("form"),On,ve)):c=="keyword c"||c=="async"?b(V?He:Ce):c=="("?b(oe(")"),Ee,de(")"),ve,Ne):c=="operator"||c=="spread"?b(V?He:Ce):c=="["?b(oe("]"),Ye,ve,Ne):c=="{"?te(Ve,"}",null,Ne):c=="quasi"?g(T,Ne):c=="new"?b(j(V)):b()}function Ee(c){return c.match(/[;\}\)\],]/)?g():g(Ce)}function Be(c,C){return c==","?b(Ee):Ge(c,C,!1)}function Ge(c,C,V){var ue=V==!1?Be:Ge,Ne=V==!1?Ce:He;if(c=="=>")return b(f,V?qe:ke,ye);if(c=="operator")return/\+\+|--/.test(C)||E&&C=="!"?b(ue):E&&C=="<"&&A.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?b(oe(">"),D(Me,">"),ve,ue):C=="?"?b(Ce,de(":"),Ne):b(Ne);if(c=="quasi")return g(T,ue);if(c!=";"){if(c=="(")return te(He,")","call",ue);if(c==".")return b(nt,ue);if(c=="[")return b(oe("]"),Ee,de("]"),ve,ue);if(E&&C=="as")return A.marked="keyword",b(Me,ue);if(c=="regexp")return A.state.lastType=A.marked="operator",A.stream.backUp(A.stream.pos-A.stream.start-1),b(Ne)}}function T(c,C){return c!="quasi"?g():C.slice(C.length-2)!="${"?b(T):b(Ce,F)}function F(c){if(c=="}")return A.marked="string-2",A.state.tokenize=re,b(T)}function ke(c){return ce(A.stream,A.state),g(c=="{"?Oe:Ce)}function qe(c){return ce(A.stream,A.state),g(c=="{"?Oe:He)}function j(c){return function(C){return C=="."?b(c?$:se):C=="variable"&&E?b(yn,c?Ge:Be):g(c?He:Ce)}}function se(c,C){if(C=="target")return A.marked="keyword",b(Be)}function $(c,C){if(C=="target")return A.marked="keyword",b(Ge)}function je(c){return c==":"?b(ve,Oe):g(Be,de(";"),ve)}function nt(c){if(c=="variable")return A.marked="property",b()}function Ve(c,C){if(c=="async")return A.marked="property",b(Ve);if(c=="variable"||A.style=="keyword"){if(A.marked="property",C=="get"||C=="set")return b(wt);var V;return E&&A.state.fatArrowAt==A.stream.start&&(V=A.stream.match(/^\s*:\s*/,!1))&&(A.state.fatArrowAt=A.stream.pos+V[0].length),b(I)}else{if(c=="number"||c=="string")return A.marked=q?"property":A.style+" property",b(I);if(c=="jsonld-keyword")return b(I);if(E&&ge(C))return A.marked="keyword",b(Ve);if(c=="[")return b(Ce,rt,de("]"),I);if(c=="spread")return b(He,I);if(C=="*")return A.marked="keyword",b(Ve);if(c==":")return g(I)}}function wt(c){return c!="variable"?g(I):(A.marked="property",b(Bt))}function I(c){if(c==":")return b(He);if(c=="(")return g(Bt)}function D(c,C,V){function ue(Ne,Ue){if(V?V.indexOf(Ne)>-1:Ne==","){var be=A.state.lexical;return be.info=="call"&&(be.pos=(be.pos||0)+1),b(function(xt,It){return xt==C||It==C?g():g(c)},ue)}return Ne==C||Ue==C?b():V&&V.indexOf(";")>-1?g(c):b(de(C))}return function(Ne,Ue){return Ne==C||Ue==C?b():g(c,ue)}}function te(c,C,V){for(var ue=3;ue<arguments.length;ue++)A.cc.push(arguments[ue]);return b(oe(C,V),D(c,C),ve)}function Te(c){return c=="}"?b():g(Oe,Te)}function rt(c,C){if(E){if(c==":")return b(Me);if(C=="?")return b(rt)}}function Se(c,C){if(E&&(c==":"||C=="in"))return b(Me)}function qt(c){if(E&&c==":")return A.stream.match(/^\s*\w+\s+is\b/,!1)?b(Ce,et,Me):b(Me)}function et(c,C){if(C=="is")return A.marked="keyword",b()}function Me(c,C){if(C=="keyof"||C=="typeof"||C=="infer"||C=="readonly")return A.marked="keyword",b(C=="typeof"?He:Me);if(c=="variable"||C=="void")return A.marked="type",b(Ot);if(C=="|"||C=="&")return b(Me);if(c=="string"||c=="number"||c=="atom")return b(Ot);if(c=="[")return b(oe("]"),D(Me,"]",","),ve,Ot);if(c=="{")return b(oe("}"),Dn,ve,Ot);if(c=="(")return b(D(Fn,")"),Xe,Ot);if(c=="<")return b(D(Me,">"),Me);if(c=="quasi")return g(Xt,Ot)}function Xe(c){if(c=="=>")return b(Me)}function Dn(c){return c.match(/[\}\)\]]/)?b():c==","||c==";"?b(Dn):g(mt,Dn)}function mt(c,C){if(c=="variable"||A.style=="keyword")return A.marked="property",b(mt);if(C=="?"||c=="number"||c=="string")return b(mt);if(c==":")return b(Me);if(c=="[")return b(de("variable"),Se,de("]"),mt);if(c=="(")return g(Nt,mt);if(!c.match(/[;\}\)\],]/))return b()}function Xt(c,C){return c!="quasi"?g():C.slice(C.length-2)!="${"?b(Xt):b(Me,bt)}function bt(c){if(c=="}")return A.marked="string-2",A.state.tokenize=re,b(Xt)}function Fn(c,C){return c=="variable"&&A.stream.match(/^\s*[?:]/,!1)||C=="?"?b(Fn):c==":"?b(Me):c=="spread"?b(Fn):g(Me)}function Ot(c,C){if(C=="<")return b(oe(">"),D(Me,">"),ve,Ot);if(C=="|"||c=="."||C=="&")return b(Me);if(c=="[")return b(Me,de("]"),Ot);if(C=="extends"||C=="implements")return A.marked="keyword",b(Me);if(C=="?")return b(Me,de(":"),Me)}function yn(c,C){if(C=="<")return b(oe(">"),D(Me,">"),ve,Ot)}function un(){return g(Me,Ir)}function Ir(c,C){if(C=="=")return b(Me)}function nr(c,C){return C=="enum"?(A.marked="keyword",b(Zt)):g(Ct,rt,Yt,ir)}function Ct(c,C){if(E&&ge(C))return A.marked="keyword",b(Ct);if(c=="variable")return Q(C),b();if(c=="spread")return b(Ct);if(c=="[")return te(rr,"]");if(c=="{")return te(Hr,"}")}function Hr(c,C){return c=="variable"&&!A.stream.match(/^\s*:/,!1)?(Q(C),b(Yt)):(c=="variable"&&(A.marked="property"),c=="spread"?b(Ct):c=="}"?g():c=="["?b(Ce,de("]"),de(":"),Hr):b(de(":"),Ct,Yt))}function rr(){return g(Ct,Yt)}function Yt(c,C){if(C=="=")return b(He)}function ir(c){if(c==",")return b(nr)}function Wr(c,C){if(c=="keyword b"&&C=="else")return b(oe("form","else"),Oe,ve)}function Br(c,C){if(C=="await")return b(Br);if(c=="(")return b(oe(")"),or,ve)}function or(c){return c=="var"?b(nr,cn):c=="variable"?b(cn):g(cn)}function cn(c,C){return c==")"?b():c==";"?b(cn):C=="in"||C=="of"?(A.marked="keyword",b(Ce,cn)):g(Ce,cn)}function Bt(c,C){if(C=="*")return A.marked="keyword",b(Bt);if(c=="variable")return Q(C),b(Bt);if(c=="(")return b(f,oe(")"),D(nn,")"),ve,qt,Oe,ye);if(E&&C=="<")return b(oe(">"),D(un,">"),ve,Bt)}function Nt(c,C){if(C=="*")return A.marked="keyword",b(Nt);if(c=="variable")return Q(C),b(Nt);if(c=="(")return b(f,oe(")"),D(nn,")"),ve,qt,ye);if(E&&C=="<")return b(oe(">"),D(un,">"),ve,Nt)}function qr(c,C){if(c=="keyword"||c=="variable")return A.marked="type",b(qr);if(C=="<")return b(oe(">"),D(un,">"),ve)}function nn(c,C){return C=="@"&&b(Ce,nn),c=="spread"?b(nn):E&&ge(C)?(A.marked="keyword",b(nn)):E&&c=="this"?b(rt,Yt):g(Ct,rt,Yt)}function On(c,C){return c=="variable"?Nn(c,C):Rt(c,C)}function Nn(c,C){if(c=="variable")return Q(C),b(Rt)}function Rt(c,C){if(C=="<")return b(oe(">"),D(un,">"),ve,Rt);if(C=="extends"||C=="implements"||E&&c==",")return C=="implements"&&(A.marked="keyword"),b(E?Me:Ce,Rt);if(c=="{")return b(oe("}"),jt,ve)}function jt(c,C){if(c=="async"||c=="variable"&&(C=="static"||C=="get"||C=="set"||E&&ge(C))&&A.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return A.marked="keyword",b(jt);if(c=="variable"||A.style=="keyword")return A.marked="property",b(Pt,jt);if(c=="number"||c=="string")return b(Pt,jt);if(c=="[")return b(Ce,rt,de("]"),Pt,jt);if(C=="*")return A.marked="keyword",b(jt);if(E&&c=="(")return g(Nt,jt);if(c==";"||c==",")return b(jt);if(c=="}")return b();if(C=="@")return b(Ce,jt)}function Pt(c,C){if(C=="!"||C=="?")return b(Pt);if(c==":")return b(Me,Yt);if(C=="=")return b(He);var V=A.state.lexical.prev,ue=V&&V.info=="interface";return g(ue?Nt:Bt)}function lr(c,C){return C=="*"?(A.marked="keyword",b(Et,de(";"))):C=="default"?(A.marked="keyword",b(Ce,de(";"))):c=="{"?b(D(ar,"}"),Et,de(";")):g(Oe)}function ar(c,C){if(C=="as")return A.marked="keyword",b(de("variable"));if(c=="variable")return g(He,ar)}function ot(c){return c=="string"?b():c=="("?g(Ce):c=="."?g(Be):g(Le,Qt,Et)}function Le(c,C){return c=="{"?te(Le,"}"):(c=="variable"&&Q(C),C=="*"&&(A.marked="keyword"),b(sr))}function Qt(c){if(c==",")return b(Le,Qt)}function sr(c,C){if(C=="as")return A.marked="keyword",b(Le)}function Et(c,C){if(C=="from")return A.marked="keyword",b(Ce)}function Ye(c){return c=="]"?b():g(D(He,"]"))}function Zt(){return g(oe("form"),Ct,de("{"),oe("}"),D(kn,"}"),ve,ve)}function kn(){return g(Ct,Yt)}function ur(c,C){return c.lastType=="operator"||c.lastType==","||y.test(C.charAt(0))||/[,.]/.test(C.charAt(0))}function ae(c,C,V){return C.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(C.lastType)||C.lastType=="quasi"&&/\{\s*$/.test(c.string.slice(0,c.pos-(V||0)))}return{startState:function(c){var C={tokenize:O,lastType:"sof",cc:[],lexical:new M((c||0)-X,0,"block",!1),localVars:B.localVars,context:B.localVars&&new ze(null,null,!1),indented:c||0};return B.globalVars&&typeof B.globalVars=="object"&&(C.globalVars=B.globalVars),C},token:function(c,C){if(c.sol()&&(C.lexical.hasOwnProperty("align")||(C.lexical.align=!1),C.indented=c.indentation(),ce(c,C)),C.tokenize!=Y&&c.eatSpace())return null;var V=C.tokenize(c,C);return p=="comment"?V:(C.lastType=p=="operator"&&(h=="++"||h=="--")?"incdec":p,G(C,V,p,h,c))},indent:function(c,C){if(c.tokenize==Y||c.tokenize==re)return m.Pass;if(c.tokenize!=O)return 0;var V=C&&C.charAt(0),ue=c.lexical,Ne;if(!/^\s*else\b/.test(C))for(var Ue=c.cc.length-1;Ue>=0;--Ue){var be=c.cc[Ue];if(be==ve)ue=ue.prev;else if(be!=Wr&&be!=ye)break}for(;(ue.type=="stat"||ue.type=="form")&&(V=="}"||(Ne=c.cc[c.cc.length-1])&&(Ne==Be||Ne==Ge)&&!/^[,\.=+\-*:?[\(]/.test(C));)ue=ue.prev;P&&ue.type==")"&&ue.prev.type=="stat"&&(ue=ue.prev);var xt=ue.type,It=V==xt;return xt=="vardef"?ue.indented+(c.lastType=="operator"||c.lastType==","?ue.info.length+1:0):xt=="form"&&V=="{"?ue.indented:xt=="form"?ue.indented+X:xt=="stat"?ue.indented+(ur(c,C)?P||X:0):ue.info=="switch"&&!It&&B.doubleIndentSwitch!=!1?ue.indented+(/^(?:case|default)\b/.test(C)?X:2*X):ue.align?ue.column+(It?0:1):ue.indented+(It?0:X)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:k?null:"/*",blockCommentEnd:k?null:"*/",blockCommentContinue:k?null:" * ",lineComment:k?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:k?"json":"javascript",jsonldMode:q,jsonMode:k,expressionAllowed:ae,skipExpression:function(c){G(c,"atom","atom","true",new m.StringStream("",2,null))}}}),m.registerHelper("wordChars","javascript",/[\w$]/),m.defineMIME("text/javascript","javascript"),m.defineMIME("text/ecmascript","javascript"),m.defineMIME("application/javascript","javascript"),m.defineMIME("application/x-javascript","javascript"),m.defineMIME("application/ecmascript","javascript"),m.defineMIME("application/json",{name:"javascript",json:!0}),m.defineMIME("application/x-json",{name:"javascript",json:!0}),m.defineMIME("application/manifest+json",{name:"javascript",json:!0}),m.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),m.defineMIME("text/typescript",{name:"javascript",typescript:!0}),m.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var bi={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineMode("css",function(M,z){var G=z.inline;z.propertyKeywords||(z=m.resolveMode("text/css"));var A=M.indentUnit,g=z.tokenHooks,b=z.documentTypes||{},N=z.mediaTypes||{},Q=z.mediaFeatures||{},me=z.mediaValueKeywords||{},ge=z.propertyKeywords||{},ze=z.nonStandardPropertyKeywords||{},Ie=z.fontProperties||{},S=z.counterDescriptors||{},f=z.colorKeywords||{},le=z.valueKeywords||{},ye=z.allowNested,oe=z.lineComment,ve=z.supportsAtComponent===!0,de=M.highlightNonStandardPropertyKeywords!==!1,Oe,Fe;function Ce(j,se){return Oe=se,j}function He(j,se){var $=j.next();if(g[$]){var je=g[$](j,se);if(je!==!1)return je}if($=="@")return j.eatWhile(/[\w\\\-]/),Ce("def",j.current());if($=="="||($=="~"||$=="|")&&j.eat("="))return Ce(null,"compare");if($=='"'||$=="'")return se.tokenize=Ke($),se.tokenize(j,se);if($=="#")return j.eatWhile(/[\w\\\-]/),Ce("atom","hash");if($=="!")return j.match(/^\s*\w*/),Ce("keyword","important");if(/\d/.test($)||$=="."&&j.eat(/\d/))return j.eatWhile(/[\w.%]/),Ce("number","unit");if($==="-"){if(/[\d.]/.test(j.peek()))return j.eatWhile(/[\w.%]/),Ce("number","unit");if(j.match(/^-[\w\\\-]*/))return j.eatWhile(/[\w\\\-]/),j.match(/^\s*:/,!1)?Ce("variable-2","variable-definition"):Ce("variable-2","variable");if(j.match(/^\w+-/))return Ce("meta","meta")}else return/[,+>*\/]/.test($)?Ce(null,"select-op"):$=="."&&j.match(/^-?[_a-z][_a-z0-9-]*/i)?Ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test($)?Ce(null,$):j.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(j.current())&&(se.tokenize=_e),Ce("variable callee","variable")):/[\w\\\-]/.test($)?(j.eatWhile(/[\w\\\-]/),Ce("property","word")):Ce(null,null)}function Ke(j){return function(se,$){for(var je=!1,nt;(nt=se.next())!=null;){if(nt==j&&!je){j==")"&&se.backUp(1);break}je=!je&&nt=="\\"}return(nt==j||!je&&j!=")")&&($.tokenize=null),Ce("string","string")}}function _e(j,se){return j.next(),j.match(/^\s*[\"\')]/,!1)?se.tokenize=null:se.tokenize=Ke(")"),Ce(null,"(")}function Ee(j,se,$){this.type=j,this.indent=se,this.prev=$}function Be(j,se,$,je){return j.context=new Ee($,se.indentation()+(je===!1?0:A),j.context),$}function Ge(j){return j.context.prev&&(j.context=j.context.prev),j.context.type}function T(j,se,$){return qe[$.context.type](j,se,$)}function F(j,se,$,je){for(var nt=je||1;nt>0;nt--)$.context=$.context.prev;return T(j,se,$)}function ke(j){var se=j.current().toLowerCase();le.hasOwnProperty(se)?Fe="atom":f.hasOwnProperty(se)?Fe="keyword":Fe="variable"}var qe={};return qe.top=function(j,se,$){if(j=="{")return Be($,se,"block");if(j=="}"&&$.context.prev)return Ge($);if(ve&&/@component/i.test(j))return Be($,se,"atComponentBlock");if(/^@(-moz-)?document$/i.test(j))return Be($,se,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(j))return Be($,se,"atBlock");if(/^@(font-face|counter-style)/i.test(j))return $.stateArg=j,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(j))return"keyframes";if(j&&j.charAt(0)=="@")return Be($,se,"at");if(j=="hash")Fe="builtin";else if(j=="word")Fe="tag";else{if(j=="variable-definition")return"maybeprop";if(j=="interpolation")return Be($,se,"interpolation");if(j==":")return"pseudo";if(ye&&j=="(")return Be($,se,"parens")}return $.context.type},qe.block=function(j,se,$){if(j=="word"){var je=se.current().toLowerCase();return ge.hasOwnProperty(je)?(Fe="property","maybeprop"):ze.hasOwnProperty(je)?(Fe=de?"string-2":"property","maybeprop"):ye?(Fe=se.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Fe+=" error","maybeprop")}else return j=="meta"?"block":!ye&&(j=="hash"||j=="qualifier")?(Fe="error","block"):qe.top(j,se,$)},qe.maybeprop=function(j,se,$){return j==":"?Be($,se,"prop"):T(j,se,$)},qe.prop=function(j,se,$){if(j==";")return Ge($);if(j=="{"&&ye)return Be($,se,"propBlock");if(j=="}"||j=="{")return F(j,se,$);if(j=="(")return Be($,se,"parens");if(j=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(se.current()))Fe+=" error";else if(j=="word")ke(se);else if(j=="interpolation")return Be($,se,"interpolation");return"prop"},qe.propBlock=function(j,se,$){return j=="}"?Ge($):j=="word"?(Fe="property","maybeprop"):$.context.type},qe.parens=function(j,se,$){return j=="{"||j=="}"?F(j,se,$):j==")"?Ge($):j=="("?Be($,se,"parens"):j=="interpolation"?Be($,se,"interpolation"):(j=="word"&&ke(se),"parens")},qe.pseudo=function(j,se,$){return j=="meta"?"pseudo":j=="word"?(Fe="variable-3",$.context.type):T(j,se,$)},qe.documentTypes=function(j,se,$){return j=="word"&&b.hasOwnProperty(se.current())?(Fe="tag",$.context.type):qe.atBlock(j,se,$)},qe.atBlock=function(j,se,$){if(j=="(")return Be($,se,"atBlock_parens");if(j=="}"||j==";")return F(j,se,$);if(j=="{")return Ge($)&&Be($,se,ye?"block":"top");if(j=="interpolation")return Be($,se,"interpolation");if(j=="word"){var je=se.current().toLowerCase();je=="only"||je=="not"||je=="and"||je=="or"?Fe="keyword":N.hasOwnProperty(je)?Fe="attribute":Q.hasOwnProperty(je)?Fe="property":me.hasOwnProperty(je)?Fe="keyword":ge.hasOwnProperty(je)?Fe="property":ze.hasOwnProperty(je)?Fe=de?"string-2":"property":le.hasOwnProperty(je)?Fe="atom":f.hasOwnProperty(je)?Fe="keyword":Fe="error"}return $.context.type},qe.atComponentBlock=function(j,se,$){return j=="}"?F(j,se,$):j=="{"?Ge($)&&Be($,se,ye?"block":"top",!1):(j=="word"&&(Fe="error"),$.context.type)},qe.atBlock_parens=function(j,se,$){return j==")"?Ge($):j=="{"||j=="}"?F(j,se,$,2):qe.atBlock(j,se,$)},qe.restricted_atBlock_before=function(j,se,$){return j=="{"?Be($,se,"restricted_atBlock"):j=="word"&&$.stateArg=="@counter-style"?(Fe="variable","restricted_atBlock_before"):T(j,se,$)},qe.restricted_atBlock=function(j,se,$){return j=="}"?($.stateArg=null,Ge($)):j=="word"?($.stateArg=="@font-face"&&!Ie.hasOwnProperty(se.current().toLowerCase())||$.stateArg=="@counter-style"&&!S.hasOwnProperty(se.current().toLowerCase())?Fe="error":Fe="property","maybeprop"):"restricted_atBlock"},qe.keyframes=function(j,se,$){return j=="word"?(Fe="variable","keyframes"):j=="{"?Be($,se,"top"):T(j,se,$)},qe.at=function(j,se,$){return j==";"?Ge($):j=="{"||j=="}"?F(j,se,$):(j=="word"?Fe="tag":j=="hash"&&(Fe="builtin"),"at")},qe.interpolation=function(j,se,$){return j=="}"?Ge($):j=="{"||j==";"?F(j,se,$):(j=="word"?Fe="variable":j!="variable"&&j!="("&&j!=")"&&(Fe="error"),"interpolation")},{startState:function(j){return{tokenize:null,state:G?"block":"top",stateArg:null,context:new Ee(G?"block":"top",j||0,null)}},token:function(j,se){if(!se.tokenize&&j.eatSpace())return null;var $=(se.tokenize||He)(j,se);return $&&typeof $=="object"&&(Oe=$[1],$=$[0]),Fe=$,Oe!="comment"&&(se.state=qe[se.state](Oe,j,se)),Fe},indent:function(j,se){var $=j.context,je=se&&se.charAt(0),nt=$.indent;return $.type=="prop"&&(je=="}"||je==")")&&($=$.prev),$.prev&&(je=="}"&&($.type=="block"||$.type=="top"||$.type=="interpolation"||$.type=="restricted_atBlock")?($=$.prev,nt=$.indent):(je==")"&&($.type=="parens"||$.type=="atBlock_parens")||je=="{"&&($.type=="at"||$.type=="atBlock"))&&(nt=Math.max(0,$.indent-A))),nt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:oe,fold:"brace"}});function ee(M){for(var z={},G=0;G<M.length;++G)z[M[G].toLowerCase()]=!0;return z}var B=["domain","regexp","url","url-prefix"],X=ee(B),P=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],q=ee(P),k=["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"],Z=ee(k),E=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],K=ee(E),v=["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-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"],y=ee(v),_=["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","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","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=ee(_),p=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],h=ee(p),L=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],O=ee(L),W=["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","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","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],Y=ee(W),re=["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","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","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","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","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","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","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","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-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","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","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","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","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"],ne=ee(re),ce=B.concat(P).concat(k).concat(E).concat(v).concat(_).concat(W).concat(re);m.registerHelper("hintWords","css",ce);function U(M,z){for(var G=!1,A;(A=M.next())!=null;){if(G&&A=="/"){z.tokenize=null;break}G=A=="*"}return["comment","comment"]}m.defineMIME("text/css",{documentTypes:X,mediaTypes:q,mediaFeatures:Z,mediaValueKeywords:K,propertyKeywords:y,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:O,colorKeywords:Y,valueKeywords:ne,tokenHooks:{"/":function(M,z){return M.eat("*")?(z.tokenize=U,U(M,z)):!1}},name:"css"}),m.defineMIME("text/x-scss",{mediaTypes:q,mediaFeatures:Z,mediaValueKeywords:K,propertyKeywords:y,nonStandardPropertyKeywords:d,colorKeywords:Y,valueKeywords:ne,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(M,z){return M.eat("/")?(M.skipToEnd(),["comment","comment"]):M.eat("*")?(z.tokenize=U,U(M,z)):["operator","operator"]},":":function(M){return M.match(/^\s*\{/,!1)?[null,null]:!1},$:function(M){return M.match(/^[\w-]+/),M.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(M){return M.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),m.defineMIME("text/x-less",{mediaTypes:q,mediaFeatures:Z,mediaValueKeywords:K,propertyKeywords:y,nonStandardPropertyKeywords:d,colorKeywords:Y,valueKeywords:ne,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(M,z){return M.eat("/")?(M.skipToEnd(),["comment","comment"]):M.eat("*")?(z.tokenize=U,U(M,z)):["operator","operator"]},"@":function(M){return M.eat("{")?[null,"interpolation"]:M.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(M.eatWhile(/[\w\\\-]/),M.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),m.defineMIME("text/x-gss",{documentTypes:X,mediaTypes:q,mediaFeatures:Z,propertyKeywords:y,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:O,colorKeywords:Y,valueKeywords:ne,supportsAtComponent:!0,tokenHooks:{"/":function(M,z){return M.eat("*")?(z.tokenize=U,U(M,z)):!1}},name:"css",helperType:"gss"})})})();var ho={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){var ee={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},B={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};m.defineMode("xml",function(X,P){var q=X.indentUnit,k={},Z=P.htmlMode?ee:B;for(var E in Z)k[E]=Z[E];for(var E in P)k[E]=P[E];var K,v;function y(g,b){function N(ge){return b.tokenize=ge,ge(g,b)}var Q=g.next();if(Q=="<")return g.eat("!")?g.eat("[")?g.match("CDATA[")?N(p("atom","]]>")):null:g.match("--")?N(p("comment","-->")):g.match("DOCTYPE",!0,!0)?(g.eatWhile(/[\w\._\-]/),N(h(1))):null:g.eat("?")?(g.eatWhile(/[\w\._\-]/),b.tokenize=p("meta","?>"),"meta"):(K=g.eat("/")?"closeTag":"openTag",b.tokenize=_,"tag bracket");if(Q=="&"){var me;return g.eat("#")?g.eat("x")?me=g.eatWhile(/[a-fA-F\d]/)&&g.eat(";"):me=g.eatWhile(/[\d]/)&&g.eat(";"):me=g.eatWhile(/[\w\.\-:]/)&&g.eat(";"),me?"atom":"error"}else return g.eatWhile(/[^&<]/),null}y.isInText=!0;function _(g,b){var N=g.next();if(N==">"||N=="/"&&g.eat(">"))return b.tokenize=y,K=N==">"?"endTag":"selfcloseTag","tag bracket";if(N=="=")return K="equals",null;if(N=="<"){b.tokenize=y,b.state=Y,b.tagName=b.tagStart=null;var Q=b.tokenize(g,b);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(N)?(b.tokenize=d(N),b.stringStartCol=g.column(),b.tokenize(g,b)):(g.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(g){var b=function(N,Q){for(;!N.eol();)if(N.next()==g){Q.tokenize=_;break}return"string"};return b.isInAttribute=!0,b}function p(g,b){return function(N,Q){for(;!N.eol();){if(N.match(b)){Q.tokenize=y;break}N.next()}return g}}function h(g){return function(b,N){for(var Q;(Q=b.next())!=null;){if(Q=="<")return N.tokenize=h(g+1),N.tokenize(b,N);if(Q==">")if(g==1){N.tokenize=y;break}else return N.tokenize=h(g-1),N.tokenize(b,N)}return"meta"}}function L(g,b,N){this.prev=g.context,this.tagName=b||"",this.indent=g.indented,this.startOfLine=N,(k.doNotIndent.hasOwnProperty(b)||g.context&&g.context.noIndent)&&(this.noIndent=!0)}function O(g){g.context&&(g.context=g.context.prev)}function W(g,b){for(var N;;){if(!g.context||(N=g.context.tagName,!k.contextGrabbers.hasOwnProperty(N)||!k.contextGrabbers[N].hasOwnProperty(b)))return;O(g)}}function Y(g,b,N){return g=="openTag"?(N.tagStart=b.column(),re):g=="closeTag"?ne:Y}function re(g,b,N){return g=="word"?(N.tagName=b.current(),v="tag",M):k.allowMissingTagName&&g=="endTag"?(v="tag bracket",M(g,b,N)):(v="error",re)}function ne(g,b,N){if(g=="word"){var Q=b.current();return N.context&&N.context.tagName!=Q&&k.implicitlyClosed.hasOwnProperty(N.context.tagName)&&O(N),N.context&&N.context.tagName==Q||k.matchClosing===!1?(v="tag",ce):(v="tag error",U)}else return k.allowMissingTagName&&g=="endTag"?(v="tag bracket",ce(g,b,N)):(v="error",U)}function ce(g,b,N){return g!="endTag"?(v="error",ce):(O(N),Y)}function U(g,b,N){return v="error",ce(g,b,N)}function M(g,b,N){if(g=="word")return v="attribute",z;if(g=="endTag"||g=="selfcloseTag"){var Q=N.tagName,me=N.tagStart;return N.tagName=N.tagStart=null,g=="selfcloseTag"||k.autoSelfClosers.hasOwnProperty(Q)?W(N,Q):(W(N,Q),N.context=new L(N,Q,me==N.indented)),Y}return v="error",M}function z(g,b,N){return g=="equals"?G:(k.allowMissing||(v="error"),M(g,b,N))}function G(g,b,N){return g=="string"?A:g=="word"&&k.allowUnquoted?(v="string",M):(v="error",M(g,b,N))}function A(g,b,N){return g=="string"?A:M(g,b,N)}return{startState:function(g){var b={tokenize:y,state:Y,indented:g||0,tagName:null,tagStart:null,context:null};return g!=null&&(b.baseIndent=g),b},token:function(g,b){if(!b.tagName&&g.sol()&&(b.indented=g.indentation()),g.eatSpace())return null;K=null;var N=b.tokenize(g,b);return(N||K)&&N!="comment"&&(v=null,b.state=b.state(K||N,g,b),v&&(N=v=="error"?N+" error":v)),N},indent:function(g,b,N){var Q=g.context;if(g.tokenize.isInAttribute)return g.tagStart==g.indented?g.stringStartCol+1:g.indented+q;if(Q&&Q.noIndent)return m.Pass;if(g.tokenize!=_&&g.tokenize!=y)return N?N.match(/^(\s*)/)[0].length:0;if(g.tagName)return k.multilineTagIndentPastTag!==!1?g.tagStart+g.tagName.length+2:g.tagStart+q*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/<!\[CDATA\[/.test(b))return 0;var me=b&&/^<(\/)?([\w_:\.-]*)/.exec(b);if(me&&me[1])for(;Q;)if(Q.tagName==me[2]){Q=Q.prev;break}else if(k.implicitlyClosed.hasOwnProperty(Q.tagName))Q=Q.prev;else break;else if(me)for(;Q;){var ge=k.contextGrabbers[Q.tagName];if(ge&&ge.hasOwnProperty(me[2]))Q=Q.prev;else break}for(;Q&&Q.prev&&!Q.startOfLine;)Q=Q.prev;return Q?Q.indent+q:g.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(g){g.state==G&&(g.state=M)},xmlCurrentTag:function(g){return g.tagName?{name:g.tagName,close:g.type=="closeTag"}:null},xmlCurrentContext:function(g){for(var b=[],N=g.context;N;N=N.prev)b.push(N.tagName);return b.reverse()}}}),m.defineMIME("text/xml","xml"),m.defineMIME("application/xml","xml"),m.mimeModes.hasOwnProperty("text/html")||m.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Iu={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){m.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"]},{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 ee=0;ee<m.modeInfo.length;ee++){var B=m.modeInfo[ee];B.mimes&&(B.mime=B.mimes[0])}m.findModeByMIME=function(X){X=X.toLowerCase();for(var P=0;P<m.modeInfo.length;P++){var q=m.modeInfo[P];if(q.mime==X)return q;if(q.mimes){for(var k=0;k<q.mimes.length;k++)if(q.mimes[k]==X)return q}}if(/\+xml$/.test(X))return m.findModeByMIME("application/xml");if(/\+json$/.test(X))return m.findModeByMIME("application/json")},m.findModeByExtension=function(X){X=X.toLowerCase();for(var P=0;P<m.modeInfo.length;P++){var q=m.modeInfo[P];if(q.ext){for(var k=0;k<q.ext.length;k++)if(q.ext[k]==X)return q}}},m.findModeByFileName=function(X){for(var P=0;P<m.modeInfo.length;P++){var q=m.modeInfo[P];if(q.file&&q.file.test(X))return q}var k=X.lastIndexOf("."),Z=k>-1&&X.substring(k+1,X.length);if(Z)return m.findModeByExtension(Z)},m.findModeByName=function(X){X=X.toLowerCase();for(var P=0;P<m.modeInfo.length;P++){var q=m.modeInfo[P];if(q.name.toLowerCase()==X)return q;if(q.alias){for(var k=0;k<q.alias.length;k++)if(q.alias[k].toLowerCase()==X)return q}}}})})(),function(Pe,We){(function(m){m(Je.exports,ho.exports,Iu.exports)})(function(m){m.defineMode("markdown",function(ee,B){var X=m.getMode(ee,"text/html"),P=X.name=="null";function q(S){if(m.findModeByName){var f=m.findModeByName(S);f&&(S=f.mime||f.mimes[0])}var le=m.getMode(ee,S);return le.name=="null"?null:le}B.highlightFormatting===void 0&&(B.highlightFormatting=!1),B.maxBlockquoteDepth===void 0&&(B.maxBlockquoteDepth=0),B.taskLists===void 0&&(B.taskLists=!1),B.strikethrough===void 0&&(B.strikethrough=!1),B.emoji===void 0&&(B.emoji=!1),B.fencedCodeBlockHighlighting===void 0&&(B.fencedCodeBlockHighlighting=!0),B.fencedCodeBlockDefaultMode===void 0&&(B.fencedCodeBlockDefaultMode="text/plain"),B.xml===void 0&&(B.xml=!0),B.tokenTypeOverrides===void 0&&(B.tokenTypeOverrides={});var k={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 Z in k)k.hasOwnProperty(Z)&&B.tokenTypeOverrides[Z]&&(k[Z]=B.tokenTypeOverrides[Z]);var E=/^([*\-_])(?:\s*\1){2,}\s*$/,K=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,y=B.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,_=/^ {0,3}(?:\={1,}|-{2,})\s*$/,d=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,h=/^\s*\[[^\]]+?\]:.*$/,L=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,O="    ";function W(S,f,le){return f.f=f.inline=le,le(S,f)}function Y(S,f,le){return f.f=f.block=le,le(S,f)}function re(S){return!S||!/\S/.test(S.string)}function ne(S){if(S.linkTitle=!1,S.linkHref=!1,S.linkText=!1,S.em=!1,S.strong=!1,S.strikethrough=!1,S.quote=0,S.indentedCode=!1,S.f==U){var f=P;if(!f){var le=m.innerMode(X,S.htmlState);f=le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText}f&&(S.f=A,S.block=ce,S.htmlState=null)}return S.trailingSpace=0,S.trailingSpaceNewLine=!1,S.prevLine=S.thisLine,S.thisLine={stream:null},null}function ce(S,f){var le=S.column()===f.indentation,ye=re(f.prevLine.stream),oe=f.indentedCode,ve=f.prevLine.hr,de=f.list!==!1,Oe=(f.listStack[f.listStack.length-1]||0)+3;f.indentedCode=!1;var Fe=f.indentation;if(f.indentationDiff===null&&(f.indentationDiff=f.indentation,de)){for(f.list=null;Fe<f.listStack[f.listStack.length-1];)f.listStack.pop(),f.listStack.length?f.indentation=f.listStack[f.listStack.length-1]:f.list=!1;f.list!==!1&&(f.indentationDiff=Fe-f.listStack[f.listStack.length-1])}var Ce=!ye&&!ve&&!f.prevLine.header&&(!de||!oe)&&!f.prevLine.fencedCodeEnd,He=(f.list===!1||ve||ye)&&f.indentation<=Oe&&S.match(E),Ke=null;if(f.indentationDiff>=4&&(oe||f.prevLine.fencedCodeEnd||f.prevLine.header||ye))return S.skipToEnd(),f.indentedCode=!0,k.code;if(S.eatSpace())return null;if(le&&f.indentation<=Oe&&(Ke=S.match(y))&&Ke[1].length<=6)return f.quote=0,f.header=Ke[1].length,f.thisLine.header=!0,B.highlightFormatting&&(f.formatting="header"),f.f=f.inline,z(f);if(f.indentation<=Oe&&S.eat(">"))return f.quote=le?1:f.quote+1,B.highlightFormatting&&(f.formatting="quote"),S.eatSpace(),z(f);if(!He&&!f.setext&&le&&f.indentation<=Oe&&(Ke=S.match(K))){var _e=Ke[1]?"ol":"ul";return f.indentation=Fe+S.current().length,f.list=!0,f.quote=0,f.listStack.push(f.indentation),f.em=!1,f.strong=!1,f.code=!1,f.strikethrough=!1,B.taskLists&&S.match(v,!1)&&(f.taskList=!0),f.f=f.inline,B.highlightFormatting&&(f.formatting=["list","list-"+_e]),z(f)}else{if(le&&f.indentation<=Oe&&(Ke=S.match(p,!0)))return f.quote=0,f.fencedEndRE=new RegExp(Ke[1]+"+ *$"),f.localMode=B.fencedCodeBlockHighlighting&&q(Ke[2]||B.fencedCodeBlockDefaultMode),f.localMode&&(f.localState=m.startState(f.localMode)),f.f=f.block=M,B.highlightFormatting&&(f.formatting="code-block"),f.code=-1,z(f);if(f.setext||(!Ce||!de)&&!f.quote&&f.list===!1&&!f.code&&!He&&!h.test(S.string)&&(Ke=S.lookAhead(1))&&(Ke=Ke.match(_)))return f.setext?(f.header=f.setext,f.setext=0,S.skipToEnd(),B.highlightFormatting&&(f.formatting="header")):(f.header=Ke[0].charAt(0)=="="?1:2,f.setext=f.header),f.thisLine.header=!0,f.f=f.inline,z(f);if(He)return S.skipToEnd(),f.hr=!0,f.thisLine.hr=!0,k.hr;if(S.peek()==="[")return W(S,f,me)}return W(S,f,f.inline)}function U(S,f){var le=X.token(S,f.htmlState);if(!P){var ye=m.innerMode(X,f.htmlState);(ye.mode.name=="xml"&&ye.state.tagStart===null&&!ye.state.context&&ye.state.tokenize.isInText||f.md_inside&&S.current().indexOf(">")>-1)&&(f.f=A,f.block=ce,f.htmlState=null)}return le}function M(S,f){var le=f.listStack[f.listStack.length-1]||0,ye=f.indentation<le,oe=le+3;if(f.fencedEndRE&&f.indentation<=oe&&(ye||S.match(f.fencedEndRE))){B.highlightFormatting&&(f.formatting="code-block");var ve;return ye||(ve=z(f)),f.localMode=f.localState=null,f.block=ce,f.f=A,f.fencedEndRE=null,f.code=0,f.thisLine.fencedCodeEnd=!0,ye?Y(S,f,f.block):ve}else return f.localMode?f.localMode.token(S,f.localState):(S.skipToEnd(),k.code)}function z(S){var f=[];if(S.formatting){f.push(k.formatting),typeof S.formatting=="string"&&(S.formatting=[S.formatting]);for(var le=0;le<S.formatting.length;le++)f.push(k.formatting+"-"+S.formatting[le]),S.formatting[le]==="header"&&f.push(k.formatting+"-"+S.formatting[le]+"-"+S.header),S.formatting[le]==="quote"&&(!B.maxBlockquoteDepth||B.maxBlockquoteDepth>=S.quote?f.push(k.formatting+"-"+S.formatting[le]+"-"+S.quote):f.push("error"))}if(S.taskOpen)return f.push("meta"),f.length?f.join(" "):null;if(S.taskClosed)return f.push("property"),f.length?f.join(" "):null;if(S.linkHref?f.push(k.linkHref,"url"):(S.strong&&f.push(k.strong),S.em&&f.push(k.em),S.strikethrough&&f.push(k.strikethrough),S.emoji&&f.push(k.emoji),S.linkText&&f.push(k.linkText),S.code&&f.push(k.code),S.image&&f.push(k.image),S.imageAltText&&f.push(k.imageAltText,"link"),S.imageMarker&&f.push(k.imageMarker)),S.header&&f.push(k.header,k.header+"-"+S.header),S.quote&&(f.push(k.quote),!B.maxBlockquoteDepth||B.maxBlockquoteDepth>=S.quote?f.push(k.quote+"-"+S.quote):f.push(k.quote+"-"+B.maxBlockquoteDepth)),S.list!==!1){var ye=(S.listStack.length-1)%3;ye?ye===1?f.push(k.list2):f.push(k.list3):f.push(k.list1)}return S.trailingSpaceNewLine?f.push("trailing-space-new-line"):S.trailingSpace&&f.push("trailing-space-"+(S.trailingSpace%2?"a":"b")),f.length?f.join(" "):null}function G(S,f){if(S.match(d,!0))return z(f)}function A(S,f){var le=f.text(S,f);if(typeof le!="undefined")return le;if(f.list)return f.list=null,z(f);if(f.taskList){var ye=S.match(v,!0)[1]===" ";return ye?f.taskOpen=!0:f.taskClosed=!0,B.highlightFormatting&&(f.formatting="task"),f.taskList=!1,z(f)}if(f.taskOpen=!1,f.taskClosed=!1,f.header&&S.match(/^#+$/,!0))return B.highlightFormatting&&(f.formatting="header"),z(f);var oe=S.next();if(f.linkTitle){f.linkTitle=!1;var ve=oe;oe==="("&&(ve=")"),ve=(ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var de="^\\s*(?:[^"+ve+"\\\\]+|\\\\\\\\|\\\\.)"+ve;if(S.match(new RegExp(de),!0))return k.linkHref}if(oe==="`"){var Oe=f.formatting;B.highlightFormatting&&(f.formatting="code"),S.eatWhile("`");var Fe=S.current().length;if(f.code==0&&(!f.quote||Fe==1))return f.code=Fe,z(f);if(Fe==f.code){var Ce=z(f);return f.code=0,Ce}else return f.formatting=Oe,z(f)}else if(f.code)return z(f);if(oe==="\\"&&(S.next(),B.highlightFormatting)){var He=z(f),Ke=k.formatting+"-escape";return He?He+" "+Ke:Ke}if(oe==="!"&&S.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return f.imageMarker=!0,f.image=!0,B.highlightFormatting&&(f.formatting="image"),z(f);if(oe==="["&&f.imageMarker&&S.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return f.imageMarker=!1,f.imageAltText=!0,B.highlightFormatting&&(f.formatting="image"),z(f);if(oe==="]"&&f.imageAltText){B.highlightFormatting&&(f.formatting="image");var He=z(f);return f.imageAltText=!1,f.image=!1,f.inline=f.f=b,He}if(oe==="["&&!f.image)return f.linkText&&S.match(/^.*?\]/)||(f.linkText=!0,B.highlightFormatting&&(f.formatting="link")),z(f);if(oe==="]"&&f.linkText){B.highlightFormatting&&(f.formatting="link");var He=z(f);return f.linkText=!1,f.inline=f.f=S.match(/\(.*?\)| ?\[.*?\]/,!1)?b:A,He}if(oe==="<"&&S.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){f.f=f.inline=g,B.highlightFormatting&&(f.formatting="link");var He=z(f);return He?He+=" ":He="",He+k.linkInline}if(oe==="<"&&S.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){f.f=f.inline=g,B.highlightFormatting&&(f.formatting="link");var He=z(f);return He?He+=" ":He="",He+k.linkEmail}if(B.xml&&oe==="<"&&S.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var _e=S.string.indexOf(">",S.pos);if(_e!=-1){var Ee=S.string.substring(S.start,_e);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ee)&&(f.md_inside=!0)}return S.backUp(1),f.htmlState=m.startState(X),Y(S,f,U)}if(B.xml&&oe==="<"&&S.match(/^\/\w*?>/))return f.md_inside=!1,"tag";if(oe==="*"||oe==="_"){for(var Be=1,Ge=S.pos==1?" ":S.string.charAt(S.pos-2);Be<3&&S.eat(oe);)Be++;var T=S.peek()||" ",F=!/\s/.test(T)&&(!L.test(T)||/\s/.test(Ge)||L.test(Ge)),ke=!/\s/.test(Ge)&&(!L.test(Ge)||/\s/.test(T)||L.test(T)),qe=null,j=null;if(Be%2&&(!f.em&&F&&(oe==="*"||!ke||L.test(Ge))?qe=!0:f.em==oe&&ke&&(oe==="*"||!F||L.test(T))&&(qe=!1)),Be>1&&(!f.strong&&F&&(oe==="*"||!ke||L.test(Ge))?j=!0:f.strong==oe&&ke&&(oe==="*"||!F||L.test(T))&&(j=!1)),j!=null||qe!=null){B.highlightFormatting&&(f.formatting=qe==null?"strong":j==null?"em":"strong em"),qe===!0&&(f.em=oe),j===!0&&(f.strong=oe);var Ce=z(f);return qe===!1&&(f.em=!1),j===!1&&(f.strong=!1),Ce}}else if(oe===" "&&(S.eat("*")||S.eat("_"))){if(S.peek()===" ")return z(f);S.backUp(1)}if(B.strikethrough){if(oe==="~"&&S.eatWhile(oe)){if(f.strikethrough){B.highlightFormatting&&(f.formatting="strikethrough");var Ce=z(f);return f.strikethrough=!1,Ce}else if(S.match(/^[^\s]/,!1))return f.strikethrough=!0,B.highlightFormatting&&(f.formatting="strikethrough"),z(f)}else if(oe===" "&&S.match("~~",!0)){if(S.peek()===" ")return z(f);S.backUp(2)}}if(B.emoji&&oe===":"&&S.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){f.emoji=!0,B.highlightFormatting&&(f.formatting="emoji");var se=z(f);return f.emoji=!1,se}return oe===" "&&(S.match(/^ +$/,!1)?f.trailingSpace++:f.trailingSpace&&(f.trailingSpaceNewLine=!0)),z(f)}function g(S,f){var le=S.next();if(le===">"){f.f=f.inline=A,B.highlightFormatting&&(f.formatting="link");var ye=z(f);return ye?ye+=" ":ye="",ye+k.linkInline}return S.match(/^[^>]+/,!0),k.linkInline}function b(S,f){if(S.eatSpace())return null;var le=S.next();return le==="("||le==="["?(f.f=f.inline=Q(le==="("?")":"]"),B.highlightFormatting&&(f.formatting="link-string"),f.linkHref=!0,z(f)):"error"}var N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Q(S){return function(f,le){var ye=f.next();if(ye===S){le.f=le.inline=A,B.highlightFormatting&&(le.formatting="link-string");var oe=z(le);return le.linkHref=!1,oe}return f.match(N[S]),le.linkHref=!0,z(le)}}function me(S,f){return S.match(/^([^\]\\]|\\.)*\]:/,!1)?(f.f=ge,S.next(),B.highlightFormatting&&(f.formatting="link"),f.linkText=!0,z(f)):W(S,f,A)}function ge(S,f){if(S.match("]:",!0)){f.f=f.inline=ze,B.highlightFormatting&&(f.formatting="link");var le=z(f);return f.linkText=!1,le}return S.match(/^([^\]\\]|\\.)+/,!0),k.linkText}function ze(S,f){return S.eatSpace()?null:(S.match(/^[^\s]+/,!0),S.peek()===void 0?f.linkTitle=!0:S.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),f.f=f.inline=A,k.linkHref+" url")}var Ie={startState:function(){return{f:ce,prevLine:{stream:null},thisLine:{stream:null},block:ce,htmlState:null,indentation:0,inline:A,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(S){return{f:S.f,prevLine:S.prevLine,thisLine:S.thisLine,block:S.block,htmlState:S.htmlState&&m.copyState(X,S.htmlState),indentation:S.indentation,localMode:S.localMode,localState:S.localMode?m.copyState(S.localMode,S.localState):null,inline:S.inline,text:S.text,formatting:!1,linkText:S.linkText,linkTitle:S.linkTitle,linkHref:S.linkHref,code:S.code,em:S.em,strong:S.strong,strikethrough:S.strikethrough,emoji:S.emoji,header:S.header,setext:S.setext,hr:S.hr,taskList:S.taskList,list:S.list,listStack:S.listStack.slice(0),quote:S.quote,indentedCode:S.indentedCode,trailingSpace:S.trailingSpace,trailingSpaceNewLine:S.trailingSpaceNewLine,md_inside:S.md_inside,fencedEndRE:S.fencedEndRE}},token:function(S,f){if(f.formatting=!1,S!=f.thisLine.stream){if(f.header=0,f.hr=!1,S.match(/^\s*$/,!0))return ne(f),null;if(f.prevLine=f.thisLine,f.thisLine={stream:S},f.taskList=!1,f.trailingSpace=0,f.trailingSpaceNewLine=!1,!f.localState&&(f.f=f.block,f.f!=U)){var le=S.match(/^\s*/,!0)[0].replace(/\t/g,O).length;if(f.indentation=le,f.indentationDiff=null,le>0)return null}}return f.f(S,f)},innerMode:function(S){return S.block==U?{state:S.htmlState,mode:X}:S.localState?{state:S.localState,mode:S.localMode}:{state:S,mode:Ie}},indent:function(S,f,le){return S.block==U&&X.indent?X.indent(S.htmlState,f,le):S.localState&&S.localMode.indent?S.localMode.indent(S.localState,f,le):m.Pass},blankLine:ne,getType:z,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ie},"xml"),m.defineMIME("text/markdown","markdown"),m.defineMIME("text/x-markdown","markdown")})}(),function(Pe,We){(function(m){m(Je.exports)})(function(m){function ee(Z){return new RegExp("^(("+Z.join(")|(")+"))\\b")}var B=ee(["and","or","not","is"]),X=["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"],P=["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__"];m.registerHelper("hintWords","python",X.concat(P));function q(Z){return Z.scopes[Z.scopes.length-1]}m.defineMode("python",function(Z,E){for(var K="error",v=E.delimiters||E.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,y=[E.singleOperators,E.doubleOperators,E.doubleDelimiters,E.tripleDelimiters,E.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],_=0;_<y.length;_++)y[_]||y.splice(_--,1);var d=E.hangingIndent||Z.indentUnit,p=X,h=P;E.extra_keywords!=null&&(p=p.concat(E.extra_keywords)),E.extra_builtins!=null&&(h=h.concat(E.extra_builtins));var L=!(E.version&&Number(E.version)<3);if(L){var O=E.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;p=p.concat(["nonlocal","False","True","None","async","await"]),h=h.concat(["ascii","bytes","exec","print"]);var W=new RegExp(`^(([rbuf]|(br)|(fr))?('{3}|"{3}|['"]))`,"i")}else{var O=E.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;p=p.concat(["exec","print"]),h=h.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var W=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var Y=ee(p),re=ee(h);function ne(N,Q){var me=N.sol()&&Q.lastToken!="\\";if(me&&(Q.indent=N.indentation()),me&&q(Q).type=="py"){var ge=q(Q).offset;if(N.eatSpace()){var ze=N.indentation();return ze>ge?z(Q):ze<ge&&A(N,Q)&&N.peek()!="#"&&(Q.errorToken=!0),null}else{var Ie=ce(N,Q);return ge>0&&A(N,Q)&&(Ie+=" "+K),Ie}}return ce(N,Q)}function ce(N,Q,me){if(N.eatSpace())return null;if(!me&&N.match(/^#.*/))return"comment";if(N.match(/^[0-9\.]/,!1)){var ge=!1;if(N.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(ge=!0),N.match(/^[\d_]+\.\d*/)&&(ge=!0),N.match(/^\.\d+/)&&(ge=!0),ge)return N.eat(/J/i),"number";var ze=!1;if(N.match(/^0x[0-9a-f_]+/i)&&(ze=!0),N.match(/^0b[01_]+/i)&&(ze=!0),N.match(/^0o[0-7_]+/i)&&(ze=!0),N.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(N.eat(/J/i),ze=!0),N.match(/^0(?![\dx])/i)&&(ze=!0),ze)return N.eat(/L/i),"number"}if(N.match(W)){var Ie=N.current().toLowerCase().indexOf("f")!==-1;return Ie?(Q.tokenize=U(N.current(),Q.tokenize),Q.tokenize(N,Q)):(Q.tokenize=M(N.current(),Q.tokenize),Q.tokenize(N,Q))}for(var S=0;S<y.length;S++)if(N.match(y[S]))return"operator";return N.match(v)?"punctuation":Q.lastToken=="."&&N.match(O)?"property":N.match(Y)||N.match(B)?"keyword":N.match(re)?"builtin":N.match(/^(self|cls)\b/)?"variable-2":N.match(O)?Q.lastToken=="def"||Q.lastToken=="class"?"def":"variable":(N.next(),me?null:K)}function U(N,Q){for(;"rubf".indexOf(N.charAt(0).toLowerCase())>=0;)N=N.substr(1);var me=N.length==1,ge="string";function ze(S){return function(f,le){var ye=ce(f,le,!0);return ye=="punctuation"&&(f.current()=="{"?le.tokenize=ze(S+1):f.current()=="}"&&(S>1?le.tokenize=ze(S-1):le.tokenize=Ie)),ye}}function Ie(S,f){for(;!S.eol();)if(S.eatWhile(/[^'"\{\}\\]/),S.eat("\\")){if(S.next(),me&&S.eol())return ge}else{if(S.match(N))return f.tokenize=Q,ge;if(S.match("{{"))return ge;if(S.match("{",!1))return f.tokenize=ze(0),S.current()?ge:f.tokenize(S,f);if(S.match("}}"))return ge;if(S.match("}"))return K;S.eat(/['"]/)}if(me){if(E.singleLineStringErrors)return K;f.tokenize=Q}return ge}return Ie.isString=!0,Ie}function M(N,Q){for(;"rubf".indexOf(N.charAt(0).toLowerCase())>=0;)N=N.substr(1);var me=N.length==1,ge="string";function ze(Ie,S){for(;!Ie.eol();)if(Ie.eatWhile(/[^'"\\]/),Ie.eat("\\")){if(Ie.next(),me&&Ie.eol())return ge}else{if(Ie.match(N))return S.tokenize=Q,ge;Ie.eat(/['"]/)}if(me){if(E.singleLineStringErrors)return K;S.tokenize=Q}return ge}return ze.isString=!0,ze}function z(N){for(;q(N).type!="py";)N.scopes.pop();N.scopes.push({offset:q(N).offset+Z.indentUnit,type:"py",align:null})}function G(N,Q,me){var ge=N.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:N.column()+1;Q.scopes.push({offset:Q.indent+d,type:me,align:ge})}function A(N,Q){for(var me=N.indentation();Q.scopes.length>1&&q(Q).offset>me;){if(q(Q).type!="py")return!0;Q.scopes.pop()}return q(Q).offset!=me}function g(N,Q){N.sol()&&(Q.beginningOfLine=!0);var me=Q.tokenize(N,Q),ge=N.current();if(Q.beginningOfLine&&ge=="@")return N.match(O,!1)?"meta":L?"operator":K;if(/\S/.test(ge)&&(Q.beginningOfLine=!1),(me=="variable"||me=="builtin")&&Q.lastToken=="meta"&&(me="meta"),(ge=="pass"||ge=="return")&&(Q.dedent+=1),ge=="lambda"&&(Q.lambda=!0),ge==":"&&!Q.lambda&&q(Q).type=="py"&&N.match(/^\s*(?:#|$)/,!1)&&z(Q),ge.length==1&&!/string|comment/.test(me)){var ze="[({".indexOf(ge);if(ze!=-1&&G(N,Q,"])}".slice(ze,ze+1)),ze="])}".indexOf(ge),ze!=-1)if(q(Q).type==ge)Q.indent=Q.scopes.pop().offset-d;else return K}return Q.dedent>0&&N.eol()&&q(Q).type=="py"&&(Q.scopes.length>1&&Q.scopes.pop(),Q.dedent-=1),me}var b={startState:function(N){return{tokenize:ne,scopes:[{offset:N||0,type:"py",align:null}],indent:N||0,lastToken:null,lambda:!1,dedent:0}},token:function(N,Q){var me=Q.errorToken;me&&(Q.errorToken=!1);var ge=g(N,Q);return ge&&ge!="comment"&&(Q.lastToken=ge=="keyword"||ge=="punctuation"?N.current():ge),ge=="punctuation"&&(ge=null),N.eol()&&Q.lambda&&(Q.lambda=!1),me?ge+" "+K:ge},indent:function(N,Q){if(N.tokenize!=ne)return N.tokenize.isString?m.Pass:0;var me=q(N),ge=me.type==Q.charAt(0);return me.align!=null?me.align-(ge?1:0):me.offset-(ge?d:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return b}),m.defineMIME("text/x-python","python");var k=function(Z){return Z.split(" ")};m.defineMIME("text/x-cython",{name:"python",extra_keywords:k("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})}(),function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineMode("shell",function(){var ee={};function B(_,d){for(var p=0;p<d.length;p++)ee[d[p]]=_}var X=["true","false"],P=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],q=["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"];m.registerHelper("hintWords","shell",X.concat(P,q)),B("atom",X),B("keyword",P),B("builtin",q);function k(_,d){if(_.eatSpace())return null;var p=_.sol(),h=_.next();if(h==="\\")return _.next(),null;if(h==="'"||h==='"'||h==="`")return d.tokens.unshift(Z(h,h==="`"?"quote":"string")),y(_,d);if(h==="#")return p&&_.eat("!")?(_.skipToEnd(),"meta"):(_.skipToEnd(),"comment");if(h==="$")return d.tokens.unshift(K),y(_,d);if(h==="+"||h==="=")return"operator";if(h==="-")return _.eat("-"),_.eatWhile(/\w/),"attribute";if(h=="<"){if(_.match("<<"))return"operator";var L=_.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(L)return d.tokens.unshift(v(L[1])),"string-2"}if(/\d/.test(h)&&(_.eatWhile(/\d/),_.eol()||!/\w/.test(_.peek())))return"number";_.eatWhile(/[\w-]/);var O=_.current();return _.peek()==="="&&/\w+/.test(O)?"def":ee.hasOwnProperty(O)?ee[O]:null}function Z(_,d){var p=_=="("?")":_=="{"?"}":_;return function(h,L){for(var O,W=!1;(O=h.next())!=null;){if(O===p&&!W){L.tokens.shift();break}else if(O==="$"&&!W&&_!=="'"&&h.peek()!=p){W=!0,h.backUp(1),L.tokens.unshift(K);break}else{if(!W&&_!==p&&O===_)return L.tokens.unshift(Z(_,d)),y(h,L);if(!W&&/['"]/.test(O)&&!/['"]/.test(_)){L.tokens.unshift(E(O,"string")),h.backUp(1);break}}W=!W&&O==="\\"}return d}}function E(_,d){return function(p,h){return h.tokens[0]=Z(_,d),p.next(),y(p,h)}}var K=function(_,d){d.tokens.length>1&&_.eat("$");var p=_.next();return/['"({]/.test(p)?(d.tokens[0]=Z(p,p=="("?"quote":p=="{"?"def":"string"),y(_,d)):(/\d/.test(p)||_.eatWhile(/\w/),d.tokens.shift(),"def")};function v(_){return function(d,p){return d.sol()&&d.string==_&&p.tokens.shift(),d.skipToEnd(),"string-2"}}function y(_,d){return(d.tokens[0]||k)(_,d)}return{startState:function(){return{tokens:[]}},token:function(_,d){return y(_,d)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),m.defineMIME("text/x-sh","shell"),m.defineMIME("application/x-sh","shell")})}(),function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineMode("sql",function(E,K){var v=K.client||{},y=K.atoms||{false:!0,true:!0,null:!0},_=K.builtin||k(Z),d=K.keywords||k(q),p=K.operatorChars||/^[*+\-%<>!=&|~^\/]/,h=K.support||{},L=K.hooks||{},O=K.dateSQL||{date:!0,time:!0,timestamp:!0},W=K.backslashStringEscapes!==!1,Y=K.brackets||/^[\{}\(\)\[\]]/,re=K.punctuation||/^[;.,:]/;function ne(G,A){var g=G.next();if(L[g]){var b=L[g](G,A);if(b!==!1)return b}if(h.hexNumber&&(g=="0"&&G.match(/^[xX][0-9a-fA-F]+/)||(g=="x"||g=="X")&&G.match(/^'[0-9a-fA-F]+'/)))return"number";if(h.binaryNumber&&((g=="b"||g=="B")&&G.match(/^'[01]+'/)||g=="0"&&G.match(/^b[01]+/)))return"number";if(g.charCodeAt(0)>47&&g.charCodeAt(0)<58)return G.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),h.decimallessFloat&&G.match(/^\.(?!\.)/),"number";if(g=="?"&&(G.eatSpace()||G.eol()||G.eat(";")))return"variable-3";if(g=="'"||g=='"'&&h.doubleQuote)return A.tokenize=ce(g),A.tokenize(G,A);if((h.nCharCast&&(g=="n"||g=="N")||h.charsetCast&&g=="_"&&G.match(/[a-z][a-z0-9]*/i))&&(G.peek()=="'"||G.peek()=='"'))return"keyword";if(h.escapeConstant&&(g=="e"||g=="E")&&(G.peek()=="'"||G.peek()=='"'&&h.doubleQuote))return A.tokenize=function(Q,me){return(me.tokenize=ce(Q.next(),!0))(Q,me)},"keyword";if(h.commentSlashSlash&&g=="/"&&G.eat("/"))return G.skipToEnd(),"comment";if(h.commentHash&&g=="#"||g=="-"&&G.eat("-")&&(!h.commentSpaceRequired||G.eat(" ")))return G.skipToEnd(),"comment";if(g=="/"&&G.eat("*"))return A.tokenize=U(1),A.tokenize(G,A);if(g=="."){if(h.zerolessFloat&&G.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(G.match(/^\.+/))return null;if(h.ODBCdotTable&&G.match(/^[\w\d_$#]+/))return"variable-2"}else{if(p.test(g))return G.eatWhile(p),"operator";if(Y.test(g))return"bracket";if(re.test(g))return G.eatWhile(re),"punctuation";if(g=="{"&&(G.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||G.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";G.eatWhile(/^[_\w\d]/);var N=G.current().toLowerCase();return O.hasOwnProperty(N)&&(G.match(/^( )+'[^']*'/)||G.match(/^( )+"[^"]*"/))?"number":y.hasOwnProperty(N)?"atom":_.hasOwnProperty(N)?"builtin":d.hasOwnProperty(N)?"keyword":v.hasOwnProperty(N)?"string-2":null}}function ce(G,A){return function(g,b){for(var N=!1,Q;(Q=g.next())!=null;){if(Q==G&&!N){b.tokenize=ne;break}N=(W||A)&&!N&&Q=="\\"}return"string"}}function U(G){return function(A,g){var b=A.match(/^.*?(\/\*|\*\/)/);return b?b[1]=="/*"?g.tokenize=U(G+1):G>1?g.tokenize=U(G-1):g.tokenize=ne:A.skipToEnd(),"comment"}}function M(G,A,g){A.context={prev:A.context,indent:G.indentation(),col:G.column(),type:g}}function z(G){G.indent=G.context.indent,G.context=G.context.prev}return{startState:function(){return{tokenize:ne,context:null}},token:function(G,A){if(G.sol()&&A.context&&A.context.align==null&&(A.context.align=!1),A.tokenize==ne&&G.eatSpace())return null;var g=A.tokenize(G,A);if(g=="comment")return g;A.context&&A.context.align==null&&(A.context.align=!0);var b=G.current();return b=="("?M(G,A,")"):b=="["?M(G,A,"]"):A.context&&A.context.type==b&&z(A),g},indent:function(G,A){var g=G.context;if(!g)return m.Pass;var b=A.charAt(0)==g.type;return g.align?g.col+(b?0:1):g.indent+(b?0:E.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:h.commentSlashSlash?"//":h.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function ee(E){for(var K;(K=E.next())!=null;)if(K=="`"&&!E.eat("`"))return"variable-2";return E.backUp(E.current().length-1),E.eatWhile(/\w/)?"variable-2":null}function B(E){for(var K;(K=E.next())!=null;)if(K=='"'&&!E.eat('"'))return"variable-2";return E.backUp(E.current().length-1),E.eatWhile(/\w/)?"variable-2":null}function X(E){return E.eat("@")&&(E.match("session."),E.match("local."),E.match("global.")),E.eat("'")?(E.match(/^.*'/),"variable-2"):E.eat('"')?(E.match(/^.*"/),"variable-2"):E.eat("`")?(E.match(/^.*`/),"variable-2"):E.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function P(E){return E.eat("N")?"atom":E.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var q="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 k(E){for(var K={},v=E.split(" "),y=0;y<v.length;++y)K[v[y]]=!0;return K}var Z="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";m.defineMIME("text/x-sql",{name:"sql",keywords:k(q+"begin"),builtin:k(Z),atoms:k("false true null unknown"),dateSQL:k("date time timestamp"),support:k("ODBCdotTable doubleQuote binaryNumber hexNumber")}),m.defineMIME("text/x-mssql",{name:"sql",client:k("$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:k(q+"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:k("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:k("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:k("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":X}}),m.defineMIME("text/x-mysql",{name:"sql",client:k("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:k(q+"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:k("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:k("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:k("date time timestamp"),support:k("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":X,"`":ee,"\\":P}}),m.defineMIME("text/x-mariadb",{name:"sql",client:k("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:k(q+"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 groupby_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:k("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:k("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:k("date time timestamp"),support:k("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":X,"`":ee,"\\":P}}),m.defineMIME("text/x-sqlite",{name:"sql",client:k("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:k(q+"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:k("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:k("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:k("date time timestamp datetime"),support:k("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":X,":":X,"?":X,$:X,'"':B,"`":ee}}),m.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:k("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:k("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:k("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:k("commentSlashSlash decimallessFloat"),hooks:{}}),m.defineMIME("text/x-plsql",{name:"sql",client:k("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:k("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:k("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:k("date time timestamp"),support:k("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),m.defineMIME("text/x-hive",{name:"sql",keywords:k("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:k("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:k("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:k("date timestamp"),support:k("ODBCdotTable doubleQuote binaryNumber hexNumber")}),m.defineMIME("text/x-pgsql",{name:"sql",client:k("source"),keywords:k(q+"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:k("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:k("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:k("date time timestamp"),support:k("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),m.defineMIME("text/x-gql",{name:"sql",keywords:k("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:k("false true"),builtin:k("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),m.defineMIME("text/x-gpsql",{name:"sql",client:k("source"),keywords:k("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:k("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:k("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:k("date time timestamp"),support:k("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),m.defineMIME("text/x-sparksql",{name:"sql",keywords:k("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:k("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:k("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:k("date time timestamp"),support:k("ODBCdotTable doubleQuote zerolessFloat")}),m.defineMIME("text/x-esper",{name:"sql",client:k("source"),keywords:k("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:k("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:k("time"),support:k("decimallessFloat zerolessFloat binaryNumber hexNumber")})})}();var Hu={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){m.overlayMode=function(ee,B,X){return{startState:function(){return{base:m.startState(ee),overlay:m.startState(B),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(P){return{base:m.copyState(ee,P.base),overlay:m.copyState(B,P.overlay),basePos:P.basePos,baseCur:null,overlayPos:P.overlayPos,overlayCur:null}},token:function(P,q){return(P!=q.streamSeen||Math.min(q.basePos,q.overlayPos)<P.start)&&(q.streamSeen=P,q.basePos=q.overlayPos=P.start),P.start==q.basePos&&(q.baseCur=ee.token(P,q.base),q.basePos=P.pos),P.start==q.overlayPos&&(P.pos=P.start,q.overlayCur=B.token(P,q.overlay),q.overlayPos=P.pos),P.pos=Math.min(q.basePos,q.overlayPos),q.overlayCur==null?q.baseCur:q.baseCur!=null&&q.overlay.combineTokens||X&&q.overlay.combineTokens==null?q.baseCur+" "+q.overlayCur:q.overlayCur},indent:ee.indent&&function(P,q,k){return ee.indent(P.base,q,k)},electricChars:ee.electricChars,innerMode:function(P){return{state:P.base,mode:ee}},blankLine:function(P){var q,k;return ee.blankLine&&(q=ee.blankLine(P.base)),B.blankLine&&(k=B.blankLine(P.overlay)),k==null?q:X&&q!=null?q+" "+k:k}}}})})();var Wu={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineMode("coffeescript",function(ee,B){var X="error";function P(M){return new RegExp("^(("+M.join(")|(")+"))\\b")}var q=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,k=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,Z=/^[_A-Za-z$][_A-Za-z$0-9]*/,E=/^@[_A-Za-z$][_A-Za-z$0-9]*/,K=P(["and","or","not","is","isnt","in","instanceof","typeof"]),v=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],y=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],_=P(v.concat(y));v=P(v);var d=/^('{3}|\"{3}|['\"])/,p=/^(\/{3}|\/)/,h=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],L=P(h);function O(M,z){if(M.sol()){z.scope.align===null&&(z.scope.align=!1);var G=z.scope.offset;if(M.eatSpace()){var A=M.indentation();return A>G&&z.scope.type=="coffee"?"indent":A<G?"dedent":null}else G>0&&ne(M,z)}if(M.eatSpace())return null;var g=M.peek();if(M.match("####"))return M.skipToEnd(),"comment";if(M.match("###"))return z.tokenize=Y,z.tokenize(M,z);if(g==="#")return M.skipToEnd(),"comment";if(M.match(/^-?[0-9\.]/,!1)){var b=!1;if(M.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(b=!0),M.match(/^-?\d+\.\d*/)&&(b=!0),M.match(/^-?\.\d+/)&&(b=!0),b)return M.peek()=="."&&M.backUp(1),"number";var N=!1;if(M.match(/^-?0x[0-9a-f]+/i)&&(N=!0),M.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(N=!0),M.match(/^-?0(?![\dx])/i)&&(N=!0),N)return"number"}if(M.match(d))return z.tokenize=W(M.current(),!1,"string"),z.tokenize(M,z);if(M.match(p)){if(M.current()!="/"||M.match(/^.*\//,!1))return z.tokenize=W(M.current(),!0,"string-2"),z.tokenize(M,z);M.backUp(1)}return M.match(q)||M.match(K)?"operator":M.match(k)?"punctuation":M.match(L)?"atom":M.match(E)||z.prop&&M.match(Z)?"property":M.match(_)?"keyword":M.match(Z)?"variable":(M.next(),X)}function W(M,z,G){return function(A,g){for(;!A.eol();)if(A.eatWhile(/[^'"\/\\]/),A.eat("\\")){if(A.next(),z&&A.eol())return G}else{if(A.match(M))return g.tokenize=O,G;A.eat(/['"\/]/)}return z&&(B.singleLineStringErrors?G=X:g.tokenize=O),G}}function Y(M,z){for(;!M.eol();){if(M.eatWhile(/[^#]/),M.match("###")){z.tokenize=O;break}M.eatWhile("#")}return"comment"}function re(M,z,G){G=G||"coffee";for(var A=0,g=!1,b=null,N=z.scope;N;N=N.prev)if(N.type==="coffee"||N.type=="}"){A=N.offset+ee.indentUnit;break}G!=="coffee"?(g=null,b=M.column()+M.current().length):z.scope.align&&(z.scope.align=!1),z.scope={offset:A,type:G,prev:z.scope,align:g,alignOffset:b}}function ne(M,z){if(!!z.scope.prev)if(z.scope.type==="coffee"){for(var G=M.indentation(),A=!1,g=z.scope;g;g=g.prev)if(G===g.offset){A=!0;break}if(!A)return!0;for(;z.scope.prev&&z.scope.offset!==G;)z.scope=z.scope.prev;return!1}else return z.scope=z.scope.prev,!1}function ce(M,z){var G=z.tokenize(M,z),A=M.current();A==="return"&&(z.dedent=!0),((A==="->"||A==="=>")&&M.eol()||G==="indent")&&re(M,z);var g="[({".indexOf(A);if(g!==-1&&re(M,z,"])}".slice(g,g+1)),v.exec(A)&&re(M,z),A=="then"&&ne(M,z),G==="dedent"&&ne(M,z))return X;if(g="])}".indexOf(A),g!==-1){for(;z.scope.type=="coffee"&&z.scope.prev;)z.scope=z.scope.prev;z.scope.type==A&&(z.scope=z.scope.prev)}return z.dedent&&M.eol()&&(z.scope.type=="coffee"&&z.scope.prev&&(z.scope=z.scope.prev),z.dedent=!1),G}var U={startState:function(M){return{tokenize:O,scope:{offset:M||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(M,z){var G=z.scope.align===null&&z.scope;G&&M.sol()&&(G.align=!1);var A=ce(M,z);return A&&A!="comment"&&(G&&(G.align=!0),z.prop=A=="punctuation"&&M.current()=="."),A},indent:function(M,z){if(M.tokenize!=O)return 0;var G=M.scope,A=z&&"])}".indexOf(z.charAt(0))>-1;if(A)for(;G.type=="coffee"&&G.prev;)G=G.prev;var g=A&&G.type===z.charAt(0);return G.align?G.alignOffset-(g?1:0):(g?G.prev:G).offset},lineComment:"#",fold:"indent"};return U}),m.defineMIME("application/vnd.coffeescript","coffeescript"),m.defineMIME("text/x-coffeescript","coffeescript"),m.defineMIME("text/coffeescript","coffeescript")})})();var Bu={exports:{}};(function(Pe,We){(function(m){m(Je.exports,bi.exports)})(function(m){m.defineMode("sass",function(ee){var B=m.mimeModes["text/css"],X=B.propertyKeywords||{},P=B.colorKeywords||{},q=B.valueKeywords||{},k=B.fontProperties||{};function Z(U){return new RegExp("^"+U.join("|"))}var E=["true","false","null","auto"],K=new RegExp("^"+E.join("|")),v=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],y=Z(v),_=/^::?[a-zA-Z_][\w\-]*/,d;function p(U){return!U.peek()||U.match(/\s+$/,!1)}function h(U,M){var z=U.peek();return z===")"?(U.next(),M.tokenizer=ne,"operator"):z==="("?(U.next(),U.eatSpace(),"operator"):z==="'"||z==='"'?(M.tokenizer=O(U.next()),"string"):(M.tokenizer=O(")",!1),"string")}function L(U,M){return function(z,G){return z.sol()&&z.indentation()<=U?(G.tokenizer=ne,ne(z,G)):(M&&z.skipTo("*/")?(z.next(),z.next(),G.tokenizer=ne):z.skipToEnd(),"comment")}}function O(U,M){M==null&&(M=!0);function z(G,A){var g=G.next(),b=G.peek(),N=G.string.charAt(G.pos-2),Q=g!=="\\"&&b===U||g===U&&N!=="\\";return Q?(g!==U&&M&&G.next(),p(G)&&(A.cursorHalf=0),A.tokenizer=ne,"string"):g==="#"&&b==="{"?(A.tokenizer=W(z),G.next(),"operator"):"string"}return z}function W(U){return function(M,z){return M.peek()==="}"?(M.next(),z.tokenizer=U,"operator"):ne(M,z)}}function Y(U){if(U.indentCount==0){U.indentCount++;var M=U.scopes[0].offset,z=M+ee.indentUnit;U.scopes.unshift({offset:z})}}function re(U){U.scopes.length!=1&&U.scopes.shift()}function ne(U,M){var z=U.peek();if(U.match("/*"))return M.tokenizer=L(U.indentation(),!0),M.tokenizer(U,M);if(U.match("//"))return M.tokenizer=L(U.indentation(),!1),M.tokenizer(U,M);if(U.match("#{"))return M.tokenizer=W(ne),"operator";if(z==='"'||z==="'")return U.next(),M.tokenizer=O(z),"string";if(M.cursorHalf){if(z==="#"&&(U.next(),U.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||U.match(/^-?[0-9\.]+/))return p(U)&&(M.cursorHalf=0),"number";if(U.match(/^(px|em|in)\b/))return p(U)&&(M.cursorHalf=0),"unit";if(U.match(K))return p(U)&&(M.cursorHalf=0),"keyword";if(U.match(/^url/)&&U.peek()==="(")return M.tokenizer=h,p(U)&&(M.cursorHalf=0),"atom";if(z==="$")return U.next(),U.eatWhile(/[\w-]/),p(U)&&(M.cursorHalf=0),"variable-2";if(z==="!")return U.next(),M.cursorHalf=0,U.match(/^[\w]+/)?"keyword":"operator";if(U.match(y))return p(U)&&(M.cursorHalf=0),"operator";if(U.eatWhile(/[\w-]/))return p(U)&&(M.cursorHalf=0),d=U.current().toLowerCase(),q.hasOwnProperty(d)?"atom":P.hasOwnProperty(d)?"keyword":X.hasOwnProperty(d)?(M.prevProp=U.current().toLowerCase(),"property"):"tag";if(p(U))return M.cursorHalf=0,null}else{if(z==="-"&&U.match(/^-\w+-/))return"meta";if(z==="."){if(U.next(),U.match(/^[\w-]+/))return Y(M),"qualifier";if(U.peek()==="#")return Y(M),"tag"}if(z==="#"){if(U.next(),U.match(/^[\w-]+/))return Y(M),"builtin";if(U.peek()==="#")return Y(M),"tag"}if(z==="$")return U.next(),U.eatWhile(/[\w-]/),"variable-2";if(U.match(/^-?[0-9\.]+/))return"number";if(U.match(/^(px|em|in)\b/))return"unit";if(U.match(K))return"keyword";if(U.match(/^url/)&&U.peek()==="(")return M.tokenizer=h,"atom";if(z==="="&&U.match(/^=[\w-]+/))return Y(M),"meta";if(z==="+"&&U.match(/^\+[\w-]+/))return"variable-3";if(z==="@"&&U.match("@extend")&&(U.match(/\s*[\w]/)||re(M)),U.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return Y(M),"def";if(z==="@")return U.next(),U.eatWhile(/[\w-]/),"def";if(U.eatWhile(/[\w-]/))if(U.match(/ *: *[\w-\+\$#!\("']/,!1)){d=U.current().toLowerCase();var G=M.prevProp+"-"+d;return X.hasOwnProperty(G)?"property":X.hasOwnProperty(d)?(M.prevProp=d,"property"):k.hasOwnProperty(d)?"property":"tag"}else return U.match(/ *:/,!1)?(Y(M),M.cursorHalf=1,M.prevProp=U.current().toLowerCase(),"property"):(U.match(/ *,/,!1)||Y(M),"tag");if(z===":")return U.match(_)?"variable-3":(U.next(),M.cursorHalf=1,"operator")}return U.match(y)?"operator":(U.next(),null)}function ce(U,M){U.sol()&&(M.indentCount=0);var z=M.tokenizer(U,M),G=U.current();if((G==="@return"||G==="}")&&re(M),z!==null){for(var A=U.pos-G.length,g=A+ee.indentUnit*M.indentCount,b=[],N=0;N<M.scopes.length;N++){var Q=M.scopes[N];Q.offset<=g&&b.push(Q)}M.scopes=b}return z}return{startState:function(){return{tokenizer:ne,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(U,M){var z=ce(U,M);return M.lastToken={style:z,content:U.current()},z},indent:function(U){return U.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}},"css"),m.defineMIME("text/x-sass","sass")})})();var qu={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){m.defineMode("stylus",function(W){for(var Y=W.indentUnit,re="",ne=L(ee),ce=/^(a|b|i|s|col|em)$/i,U=L(q),M=L(k),z=L(K),G=L(E),A=L(B),g=h(B),b=L(P),N=L(X),Q=L(Z),me=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,ge=h(v),ze=L(y),Ie=new RegExp(/^\-(moz|ms|o|webkit)-/i),S=L(_),f="",le={},ye,oe,ve,de;re.length<Y;)re+=" ";function Oe(I,D){if(f=I.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),D.context.line.firstWord=f?f[0].replace(/^\s*/,""):"",D.context.line.indent=I.indentation(),ye=I.peek(),I.match("//"))return I.skipToEnd(),["comment","comment"];if(I.match("/*"))return D.tokenize=Fe,Fe(I,D);if(ye=='"'||ye=="'")return I.next(),D.tokenize=Ce(ye),D.tokenize(I,D);if(ye=="@")return I.next(),I.eatWhile(/[\w\\-]/),["def",I.current()];if(ye=="#"){if(I.next(),I.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(I.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return I.match(Ie)?["meta","vendor-prefixes"]:I.match(/^-?[0-9]?\.?[0-9]/)?(I.eatWhile(/[a-z%]/i),["number","unit"]):ye=="!"?(I.next(),[I.match(/^(important|optional)/i)?"keyword":"operator","important"]):ye=="."&&I.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:I.match(g)?(I.peek()=="("&&(D.tokenize=He),["property","word"]):I.match(/^[a-z][\w-]*\(/i)?(I.backUp(1),["keyword","mixin"]):I.match(/^(\+|-)[a-z][\w-]*\(/i)?(I.backUp(1),["keyword","block-mixin"]):I.string.match(/^\s*&/)&&I.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:I.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(I.backUp(1),["variable-3","reference"]):I.match(/^&{1}\s*$/)?["variable-3","reference"]:I.match(ge)?["operator","operator"]:I.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?I.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!T(I.current())?(I.match("."),["variable-2","variable-name"]):["variable-2","word"]:I.match(me)?["operator",I.current()]:/[:;,{}\[\]\(\)]/.test(ye)?(I.next(),[null,ye]):(I.next(),[null,null])}function Fe(I,D){for(var te=!1,Te;(Te=I.next())!=null;){if(te&&Te=="/"){D.tokenize=null;break}te=Te=="*"}return["comment","comment"]}function Ce(I){return function(D,te){for(var Te=!1,rt;(rt=D.next())!=null;){if(rt==I&&!Te){I==")"&&D.backUp(1);break}Te=!Te&&rt=="\\"}return(rt==I||!Te&&I!=")")&&(te.tokenize=null),["string","string"]}}function He(I,D){return I.next(),I.match(/\s*[\"\')]/,!1)?D.tokenize=null:D.tokenize=Ce(")"),[null,"("]}function Ke(I,D,te,Te){this.type=I,this.indent=D,this.prev=te,this.line=Te||{firstWord:"",indent:0}}function _e(I,D,te,Te){return Te=Te>=0?Te:Y,I.context=new Ke(te,D.indentation()+Te,I.context),te}function Ee(I,D){var te=I.context.indent-Y;return D=D||!1,I.context=I.context.prev,D&&(I.context.indent=te),I.context.type}function Be(I,D,te){return le[te.context.type](I,D,te)}function Ge(I,D,te,Te){for(var rt=Te||1;rt>0;rt--)te.context=te.context.prev;return Be(I,D,te)}function T(I){return I.toLowerCase()in ne}function F(I){return I=I.toLowerCase(),I in U||I in Q}function ke(I){return I.toLowerCase()in ze}function qe(I){return I.toLowerCase().match(Ie)}function j(I){var D=I.toLowerCase(),te="variable-2";return T(I)?te="tag":ke(I)?te="block-keyword":F(I)?te="property":D in z||D in S?te="atom":D=="return"||D in G?te="keyword":I.match(/^[A-Z]/)&&(te="string"),te}function se(I,D){return Ve(D)&&(I=="{"||I=="]"||I=="hash"||I=="qualifier")||I=="block-mixin"}function $(I,D){return I=="{"&&D.match(/^\s*\$?[\w-]+/i,!1)}function je(I,D){return I==":"&&D.match(/^[a-z-]+/,!1)}function nt(I){return I.sol()||I.string.match(new RegExp("^\\s*"+O(I.current())))}function Ve(I){return I.eol()||I.match(/^\s*$/,!1)}function wt(I){var D=/^\s*[-_]*[a-z0-9]+[\w-]*/i,te=typeof I=="string"?I.match(D):I.string.match(D);return te?te[0].replace(/^\s*/,""):""}return le.block=function(I,D,te){if(I=="comment"&&nt(D)||I==","&&Ve(D)||I=="mixin")return _e(te,D,"block",0);if($(I,D))return _e(te,D,"interpolation");if(Ve(D)&&I=="]"&&!/^\s*(\.|#|:|\[|\*|&)/.test(D.string)&&!T(wt(D)))return _e(te,D,"block",0);if(se(I,D))return _e(te,D,"block");if(I=="}"&&Ve(D))return _e(te,D,"block",0);if(I=="variable-name")return D.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||ke(wt(D))?_e(te,D,"variableName"):_e(te,D,"variableName",0);if(I=="=")return!Ve(D)&&!ke(wt(D))?_e(te,D,"block",0):_e(te,D,"block");if(I=="*"&&(Ve(D)||D.match(/\s*(,|\.|#|\[|:|{)/,!1)))return de="tag",_e(te,D,"block");if(je(I,D))return _e(te,D,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(I))return _e(te,D,Ve(D)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(I))return _e(te,D,"keyframes");if(/@extends?/.test(I))return _e(te,D,"extend",0);if(I&&I.charAt(0)=="@")return D.indentation()>0&&F(D.current().slice(1))?(de="variable-2","block"):/(@import|@require|@charset)/.test(I)?_e(te,D,"block",0):_e(te,D,"block");if(I=="reference"&&Ve(D))return _e(te,D,"block");if(I=="(")return _e(te,D,"parens");if(I=="vendor-prefixes")return _e(te,D,"vendorPrefixes");if(I=="word"){var Te=D.current();if(de=j(Te),de=="property")return nt(D)?_e(te,D,"block",0):(de="atom","block");if(de=="tag"){if(/embed|menu|pre|progress|sub|table/.test(Te)&&F(wt(D))||D.string.match(new RegExp("\\[\\s*"+Te+"|"+Te+"\\s*\\]")))return de="atom","block";if(ce.test(Te)&&(nt(D)&&D.string.match(/=/)||!nt(D)&&!D.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!T(wt(D))))return de="variable-2",ke(wt(D))?"block":_e(te,D,"block",0);if(Ve(D))return _e(te,D,"block")}if(de=="block-keyword")return de="keyword",D.current(/(if|unless)/)&&!nt(D)?"block":_e(te,D,"block");if(Te=="return")return _e(te,D,"block",0);if(de=="variable-2"&&D.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return _e(te,D,"block")}return te.context.type},le.parens=function(I,D,te){if(I=="(")return _e(te,D,"parens");if(I==")")return te.context.prev.type=="parens"?Ee(te):D.string.match(/^[a-z][\w-]*\(/i)&&Ve(D)||ke(wt(D))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(wt(D))||!D.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&T(wt(D))?_e(te,D,"block"):D.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||D.string.match(/^\s*(\(|\)|[0-9])/)||D.string.match(/^\s+[a-z][\w-]*\(/i)||D.string.match(/^\s+[\$-]?[a-z]/i)?_e(te,D,"block",0):Ve(D)?_e(te,D,"block"):_e(te,D,"block",0);if(I&&I.charAt(0)=="@"&&F(D.current().slice(1))&&(de="variable-2"),I=="word"){var Te=D.current();de=j(Te),de=="tag"&&ce.test(Te)&&(de="variable-2"),(de=="property"||Te=="to")&&(de="atom")}return I=="variable-name"?_e(te,D,"variableName"):je(I,D)?_e(te,D,"pseudo"):te.context.type},le.vendorPrefixes=function(I,D,te){return I=="word"?(de="property",_e(te,D,"block",0)):Ee(te)},le.pseudo=function(I,D,te){return F(wt(D.string))?Ge(I,D,te):(D.match(/^[a-z-]+/),de="variable-3",Ve(D)?_e(te,D,"block"):Ee(te))},le.atBlock=function(I,D,te){if(I=="(")return _e(te,D,"atBlock_parens");if(se(I,D))return _e(te,D,"block");if($(I,D))return _e(te,D,"interpolation");if(I=="word"){var Te=D.current().toLowerCase();if(/^(only|not|and|or)$/.test(Te)?de="keyword":A.hasOwnProperty(Te)?de="tag":N.hasOwnProperty(Te)?de="attribute":b.hasOwnProperty(Te)?de="property":M.hasOwnProperty(Te)?de="string-2":de=j(D.current()),de=="tag"&&Ve(D))return _e(te,D,"block")}return I=="operator"&&/^(not|and|or)$/.test(D.current())&&(de="keyword"),te.context.type},le.atBlock_parens=function(I,D,te){if(I=="{"||I=="}")return te.context.type;if(I==")")return Ve(D)?_e(te,D,"block"):_e(te,D,"atBlock");if(I=="word"){var Te=D.current().toLowerCase();return de=j(Te),/^(max|min)/.test(Te)&&(de="property"),de=="tag"&&(ce.test(Te)?de="variable-2":de="atom"),te.context.type}return le.atBlock(I,D,te)},le.keyframes=function(I,D,te){return D.indentation()=="0"&&(I=="}"&&nt(D)||I=="]"||I=="hash"||I=="qualifier"||T(D.current()))?Ge(I,D,te):I=="{"?_e(te,D,"keyframes"):I=="}"?nt(D)?Ee(te,!0):_e(te,D,"keyframes"):I=="unit"&&/^[0-9]+\%$/.test(D.current())?_e(te,D,"keyframes"):I=="word"&&(de=j(D.current()),de=="block-keyword")?(de="keyword",_e(te,D,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(I)?_e(te,D,Ve(D)?"block":"atBlock"):I=="mixin"?_e(te,D,"block",0):te.context.type},le.interpolation=function(I,D,te){return I=="{"&&Ee(te)&&_e(te,D,"block"),I=="}"?D.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||D.string.match(/^\s*[a-z]/i)&&T(wt(D))?_e(te,D,"block"):!D.string.match(/^(\{|\s*\&)/)||D.match(/\s*[\w-]/,!1)?_e(te,D,"block",0):_e(te,D,"block"):I=="variable-name"?_e(te,D,"variableName",0):(I=="word"&&(de=j(D.current()),de=="tag"&&(de="atom")),te.context.type)},le.extend=function(I,D,te){return I=="["||I=="="?"extend":I=="]"?Ee(te):I=="word"?(de=j(D.current()),"extend"):Ee(te)},le.variableName=function(I,D,te){return I=="string"||I=="["||I=="]"||D.current().match(/^(\.|\$)/)?(D.current().match(/^\.[\w-]+/i)&&(de="variable-2"),"variableName"):Ge(I,D,te)},{startState:function(I){return{tokenize:null,state:"block",context:new Ke("block",I||0,null)}},token:function(I,D){return!D.tokenize&&I.eatSpace()?null:(oe=(D.tokenize||Oe)(I,D),oe&&typeof oe=="object"&&(ve=oe[1],oe=oe[0]),de=oe,D.state=le[D.state](ve,I,D),de)},indent:function(I,D,te){var Te=I.context,rt=D&&D.charAt(0),Se=Te.indent,qt=wt(D),et=te.match(/^\s*/)[0].replace(/\t/g,re).length,Me=I.context.prev?I.context.prev.line.firstWord:"",Xe=I.context.prev?I.context.prev.line.indent:et;return Te.prev&&(rt=="}"&&(Te.type=="block"||Te.type=="atBlock"||Te.type=="keyframes")||rt==")"&&(Te.type=="parens"||Te.type=="atBlock_parens")||rt=="{"&&Te.type=="at")?Se=Te.indent-Y:/(\})/.test(rt)||(/@|\$|\d/.test(rt)||/^\{/.test(D)||/^\s*\/(\/|\*)/.test(D)||/^\s*\/\*/.test(Me)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(D)||/^(\+|-)?[a-z][\w-]*\(/i.test(D)||/^return/.test(D)||ke(qt)?Se=et:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(rt)||T(qt)?/\,\s*$/.test(Me)?Se=Xe:/^\s+/.test(te)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(Me)||T(Me))?Se=et<=Xe?Xe:Xe+Y:Se=et:!/,\s*$/.test(te)&&(qe(qt)||F(qt))&&(ke(Me)?Se=et<=Xe?Xe:Xe+Y:/^\{/.test(Me)?Se=et<=Xe?et:Xe+Y:qe(Me)||F(Me)?Se=et>=Xe?Xe:et:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(Me)||/=\s*$/.test(Me)||T(Me)||/^\$[\w-\.\[\]\'\"]/.test(Me)?Se=Xe+Y:Se=et)),Se},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}});var ee=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],B=["domain","regexp","url-prefix","url"],X=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],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"],q=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","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","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","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","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","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-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","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-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","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","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","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","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","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","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-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","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","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","font-smoothing","osx-font-smoothing"],k=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],Z=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],E=["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","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","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],K=["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","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","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","column","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","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","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","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","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","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","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","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","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","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","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","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","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","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],v=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],y=["for","if","else","unless","from","to"],_=["null","true","false","href","title","type","not-allowed","readonly","disabled"],d=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],p=ee.concat(B,X,P,q,k,E,K,Z,v,y,_,d);function h(W){return W=W.sort(function(Y,re){return re>Y}),new RegExp("^(("+W.join(")|(")+"))\\b")}function L(W){for(var Y={},re=0;re<W.length;++re)Y[W[re]]=!0;return Y}function O(W){return W.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}m.registerHelper("hintWords","stylus",p),m.defineMIME("text/x-styl","stylus")})})();var Ru={exports:{}},ju={exports:{}};(function(Pe,We){(function(m){m(Je.exports,ho.exports,fo.exports,bi.exports)})(function(m){var ee={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 B(K,v,y){var _=K.current(),d=_.search(v);return d>-1?K.backUp(_.length-d):_.match(/<\/?$/)&&(K.backUp(_.length),K.match(v,!1)||K.match(_)),y}var X={};function P(K){var v=X[K];return v||(X[K]=new RegExp("\\s+"+K+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function q(K,v){var y=K.match(P(v));return y?/^\s*(.*?)\s*$/.exec(y[2])[1]:""}function k(K,v){return new RegExp((v?"^":"")+"</s*"+K+"s*>","i")}function Z(K,v){for(var y in K)for(var _=v[y]||(v[y]=[]),d=K[y],p=d.length-1;p>=0;p--)_.unshift(d[p])}function E(K,v){for(var y=0;y<K.length;y++){var _=K[y];if(!_[0]||_[1].test(q(v,_[0])))return _[2]}}m.defineMode("htmlmixed",function(K,v){var y=m.getMode(K,{name:"xml",htmlMode:!0,multilineTagIndentFactor:v.multilineTagIndentFactor,multilineTagIndentPastTag:v.multilineTagIndentPastTag,allowMissingTagName:v.allowMissingTagName}),_={},d=v&&v.tags,p=v&&v.scriptTypes;if(Z(ee,_),d&&Z(d,_),p)for(var h=p.length-1;h>=0;h--)_.script.unshift(["type",p[h].matches,p[h].mode]);function L(O,W){var Y=y.token(O,W.htmlState),re=/\btag\b/.test(Y),ne;if(re&&!/[<>\s\/]/.test(O.current())&&(ne=W.htmlState.tagName&&W.htmlState.tagName.toLowerCase())&&_.hasOwnProperty(ne))W.inTag=ne+" ";else if(W.inTag&&re&&/>$/.test(O.current())){var ce=/^([\S]+) (.*)/.exec(W.inTag);W.inTag=null;var U=O.current()==">"&&E(_[ce[1]],ce[2]),M=m.getMode(K,U),z=k(ce[1],!0),G=k(ce[1],!1);W.token=function(A,g){return A.match(z,!1)?(g.token=L,g.localState=g.localMode=null,null):B(A,G,g.localMode.token(A,g.localState))},W.localMode=M,W.localState=m.startState(M,y.indent(W.htmlState,"",""))}else W.inTag&&(W.inTag+=O.current(),O.eol()&&(W.inTag+=" "));return Y}return{startState:function(){var O=m.startState(y);return{token:L,inTag:null,localMode:null,localState:null,htmlState:O}},copyState:function(O){var W;return O.localState&&(W=m.copyState(O.localMode,O.localState)),{token:O.token,inTag:O.inTag,localMode:O.localMode,localState:W,htmlState:m.copyState(y,O.htmlState)}},token:function(O,W){return W.token(O,W)},indent:function(O,W,Y){return!O.localMode||/^\s*<\//.test(W)?y.indent(O.htmlState,W,Y):O.localMode.indent?O.localMode.indent(O.localState,W,Y):m.Pass},innerMode:function(O){return{state:O.localState||O.htmlState,mode:O.localMode||y}}}},"xml","javascript","css"),m.defineMIME("text/html","htmlmixed")})})(),function(Pe,We){(function(m){m(Je.exports,fo.exports,bi.exports,ju.exports)})(function(m){m.defineMode("pug",function(ee){var B="keyword",X="meta",P="builtin",q="qualifier",k={"{":"}","(":")","[":"]"},Z=m.getMode(ee,"javascript");function E(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=m.startState(Z),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=Infinity,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}E.prototype.copy=function(){var T=new E;return T.javaScriptLine=this.javaScriptLine,T.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,T.javaScriptArguments=this.javaScriptArguments,T.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,T.isInterpolating=this.isInterpolating,T.interpolationNesting=this.interpolationNesting,T.jsState=m.copyState(Z,this.jsState),T.innerMode=this.innerMode,this.innerMode&&this.innerState&&(T.innerState=m.copyState(this.innerMode,this.innerState)),T.restOfLine=this.restOfLine,T.isIncludeFiltered=this.isIncludeFiltered,T.isEach=this.isEach,T.lastTag=this.lastTag,T.scriptType=this.scriptType,T.isAttrs=this.isAttrs,T.attrsNest=this.attrsNest.slice(),T.inAttributeName=this.inAttributeName,T.attributeIsType=this.attributeIsType,T.attrValue=this.attrValue,T.indentOf=this.indentOf,T.indentToken=this.indentToken,T.innerModeForLine=this.innerModeForLine,T};function K(T,F){if(T.sol()&&(F.javaScriptLine=!1,F.javaScriptLineExcludesColon=!1),F.javaScriptLine){if(F.javaScriptLineExcludesColon&&T.peek()===":"){F.javaScriptLine=!1,F.javaScriptLineExcludesColon=!1;return}var ke=Z.token(T,F.jsState);return T.eol()&&(F.javaScriptLine=!1),ke||!0}}function v(T,F){if(F.javaScriptArguments){if(F.javaScriptArgumentsDepth===0&&T.peek()!=="("){F.javaScriptArguments=!1;return}if(T.peek()==="("?F.javaScriptArgumentsDepth++:T.peek()===")"&&F.javaScriptArgumentsDepth--,F.javaScriptArgumentsDepth===0){F.javaScriptArguments=!1;return}var ke=Z.token(T,F.jsState);return ke||!0}}function y(T){if(T.match(/^yield\b/))return"keyword"}function _(T){if(T.match(/^(?:doctype) *([^\n]+)?/))return X}function d(T,F){if(T.match("#{"))return F.isInterpolating=!0,F.interpolationNesting=0,"punctuation"}function p(T,F){if(F.isInterpolating){if(T.peek()==="}"){if(F.interpolationNesting--,F.interpolationNesting<0)return T.next(),F.isInterpolating=!1,"punctuation"}else T.peek()==="{"&&F.interpolationNesting++;return Z.token(T,F.jsState)||!0}}function h(T,F){if(T.match(/^case\b/))return F.javaScriptLine=!0,B}function L(T,F){if(T.match(/^when\b/))return F.javaScriptLine=!0,F.javaScriptLineExcludesColon=!0,B}function O(T){if(T.match(/^default\b/))return B}function W(T,F){if(T.match(/^extends?\b/))return F.restOfLine="string",B}function Y(T,F){if(T.match(/^append\b/))return F.restOfLine="variable",B}function re(T,F){if(T.match(/^prepend\b/))return F.restOfLine="variable",B}function ne(T,F){if(T.match(/^block\b *(?:(prepend|append)\b)?/))return F.restOfLine="variable",B}function ce(T,F){if(T.match(/^include\b/))return F.restOfLine="string",B}function U(T,F){if(T.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&T.match("include"))return F.isIncludeFiltered=!0,B}function M(T,F){if(F.isIncludeFiltered){var ke=ge(T,F);return F.isIncludeFiltered=!1,F.restOfLine="string",ke}}function z(T,F){if(T.match(/^mixin\b/))return F.javaScriptLine=!0,B}function G(T,F){if(T.match(/^\+([-\w]+)/))return T.match(/^\( *[-\w]+ *=/,!1)||(F.javaScriptArguments=!0,F.javaScriptArgumentsDepth=0),"variable";if(T.match("+#{",!1))return T.next(),F.mixinCallAfter=!0,d(T,F)}function A(T,F){if(F.mixinCallAfter)return F.mixinCallAfter=!1,T.match(/^\( *[-\w]+ *=/,!1)||(F.javaScriptArguments=!0,F.javaScriptArgumentsDepth=0),!0}function g(T,F){if(T.match(/^(if|unless|else if|else)\b/))return F.javaScriptLine=!0,B}function b(T,F){if(T.match(/^(- *)?(each|for)\b/))return F.isEach=!0,B}function N(T,F){if(F.isEach){if(T.match(/^ in\b/))return F.javaScriptLine=!0,F.isEach=!1,B;if(T.sol()||T.eol())F.isEach=!1;else if(T.next()){for(;!T.match(/^ in\b/,!1)&&T.next(););return"variable"}}}function Q(T,F){if(T.match(/^while\b/))return F.javaScriptLine=!0,B}function me(T,F){var ke;if(ke=T.match(/^(\w(?:[-:\w]*\w)?)\/?/))return F.lastTag=ke[1].toLowerCase(),F.lastTag==="script"&&(F.scriptType="application/javascript"),"tag"}function ge(T,F){if(T.match(/^:([\w\-]+)/)){var ke;return ee&&ee.innerModes&&(ke=ee.innerModes(T.current().substring(1))),ke||(ke=T.current().substring(1)),typeof ke=="string"&&(ke=m.getMode(ee,ke)),He(T,F,ke),"atom"}}function ze(T,F){if(T.match(/^(!?=|-)/))return F.javaScriptLine=!0,"punctuation"}function Ie(T){if(T.match(/^#([\w-]+)/))return P}function S(T){if(T.match(/^\.([\w-]+)/))return q}function f(T,F){if(T.peek()=="(")return T.next(),F.isAttrs=!0,F.attrsNest=[],F.inAttributeName=!0,F.attrValue="",F.attributeIsType=!1,"punctuation"}function le(T,F){if(F.isAttrs){if(k[T.peek()]&&F.attrsNest.push(k[T.peek()]),F.attrsNest[F.attrsNest.length-1]===T.peek())F.attrsNest.pop();else if(T.eat(")"))return F.isAttrs=!1,"punctuation";if(F.inAttributeName&&T.match(/^[^=,\)!]+/))return(T.peek()==="="||T.peek()==="!")&&(F.inAttributeName=!1,F.jsState=m.startState(Z),F.lastTag==="script"&&T.current().trim().toLowerCase()==="type"?F.attributeIsType=!0:F.attributeIsType=!1),"attribute";var ke=Z.token(T,F.jsState);if(F.attributeIsType&&ke==="string"&&(F.scriptType=T.current().toString()),F.attrsNest.length===0&&(ke==="string"||ke==="variable"||ke==="keyword"))try{return Function("","var x "+F.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),F.inAttributeName=!0,F.attrValue="",T.backUp(T.current().length),le(T,F)}catch(qe){}return F.attrValue+=T.current(),ke||!0}}function ye(T,F){if(T.match(/^&attributes\b/))return F.javaScriptArguments=!0,F.javaScriptArgumentsDepth=0,"keyword"}function oe(T){if(T.sol()&&T.eatSpace())return"indent"}function ve(T,F){if(T.match(/^ *\/\/(-)?([^\n]*)/))return F.indentOf=T.indentation(),F.indentToken="comment","comment"}function de(T){if(T.match(/^: */))return"colon"}function Oe(T,F){if(T.match(/^(?:\| ?| )([^\n]+)/))return"string";if(T.match(/^(<[^\n]*)/,!1))return He(T,F,"htmlmixed"),F.innerModeForLine=!0,Ke(T,F,!0)}function Fe(T,F){if(T.eat(".")){var ke=null;return F.lastTag==="script"&&F.scriptType.toLowerCase().indexOf("javascript")!=-1?ke=F.scriptType.toLowerCase().replace(/"|'/g,""):F.lastTag==="style"&&(ke="css"),He(T,F,ke),"dot"}}function Ce(T){return T.next(),null}function He(T,F,ke){ke=m.mimeModes[ke]||ke,ke=ee.innerModes&&ee.innerModes(ke)||ke,ke=m.mimeModes[ke]||ke,ke=m.getMode(ee,ke),F.indentOf=T.indentation(),ke&&ke.name!=="null"?F.innerMode=ke:F.indentToken="string"}function Ke(T,F,ke){if(T.indentation()>F.indentOf||F.innerModeForLine&&!T.sol()||ke)return F.innerMode?(F.innerState||(F.innerState=F.innerMode.startState?m.startState(F.innerMode,T.indentation()):{}),T.hideFirstChars(F.indentOf+2,function(){return F.innerMode.token(T,F.innerState)||!0})):(T.skipToEnd(),F.indentToken);T.sol()&&(F.indentOf=Infinity,F.indentToken=null,F.innerMode=null,F.innerState=null)}function _e(T,F){if(T.sol()&&(F.restOfLine=""),F.restOfLine){T.skipToEnd();var ke=F.restOfLine;return F.restOfLine="",ke}}function Ee(){return new E}function Be(T){return T.copy()}function Ge(T,F){var ke=Ke(T,F)||_e(T,F)||p(T,F)||M(T,F)||N(T,F)||le(T,F)||K(T,F)||v(T,F)||A(T,F)||y(T)||_(T)||d(T,F)||h(T,F)||L(T,F)||O(T)||W(T,F)||Y(T,F)||re(T,F)||ne(T,F)||ce(T,F)||U(T,F)||z(T,F)||G(T,F)||g(T,F)||b(T,F)||Q(T,F)||me(T,F)||ge(T,F)||ze(T,F)||Ie(T)||S(T)||f(T,F)||ye(T,F)||oe(T)||Oe(T,F)||ve(T,F)||de(T)||Fe(T,F)||Ce(T);return ke===!0?null:ke}return{startState:Ee,copyState:Be,token:Ge}},"javascript","css","htmlmixed"),m.defineMIME("text/x-pug","pug"),m.defineMIME("text/x-jade","pug")})}();var Ku={exports:{}},Uu={exports:{}};(function(Pe,We){(function(m){m(Je.exports)})(function(m){m.multiplexingMode=function(ee){var B=Array.prototype.slice.call(arguments,1);function X(P,q,k,Z){if(typeof q=="string"){var E=P.indexOf(q,k);return Z&&E>-1?E+q.length:E}var K=q.exec(k?P.slice(k):P);return K?K.index+k+(Z?K[0].length:0):-1}return{startState:function(){return{outer:m.startState(ee),innerActive:null,inner:null,startingInner:!1}},copyState:function(P){return{outer:m.copyState(ee,P.outer),innerActive:P.innerActive,inner:P.innerActive&&m.copyState(P.innerActive.mode,P.inner),startingInner:P.startingInner}},token:function(P,q){if(q.innerActive){var p=q.innerActive,Z=P.string;if(!p.close&&P.sol())return q.innerActive=q.inner=null,this.token(P,q);var v=p.close&&!q.startingInner?X(Z,p.close,P.pos,p.parseDelimiters):-1;if(v==P.pos&&!p.parseDelimiters)return P.match(p.close),q.innerActive=q.inner=null,p.delimStyle&&p.delimStyle+" "+p.delimStyle+"-close";v>-1&&(P.string=Z.slice(0,v));var h=p.mode.token(P,q.inner);return v>-1?P.string=Z:P.pos>P.start&&(q.startingInner=!1),v==P.pos&&p.parseDelimiters&&(q.innerActive=q.inner=null),p.innerStyle&&(h?h=h+" "+p.innerStyle:h=p.innerStyle),h}else{for(var k=Infinity,Z=P.string,E=0;E<B.length;++E){var K=B[E],v=X(Z,K.open,P.pos);if(v==P.pos){K.parseDelimiters||P.match(K.open),q.startingInner=!!K.parseDelimiters,q.innerActive=K;var y=0;if(ee.indent){var _=ee.indent(q.outer,"","");_!==m.Pass&&(y=_)}return q.inner=m.startState(K.mode,y),K.delimStyle&&K.delimStyle+" "+K.delimStyle+"-open"}else v!=-1&&v<k&&(k=v)}k!=Infinity&&(P.string=Z.slice(0,k));var d=ee.token(P,q.outer);return k!=Infinity&&(P.string=Z),d}},indent:function(P,q,k){var Z=P.innerActive?P.innerActive.mode:ee;return Z.indent?Z.indent(P.innerActive?P.inner:P.outer,q,k):m.Pass},blankLine:function(P){var q=P.innerActive?P.innerActive.mode:ee;if(q.blankLine&&q.blankLine(P.innerActive?P.inner:P.outer),P.innerActive)P.innerActive.close===`
  `&&(P.innerActive=P.inner=null);else for(var k=0;k<B.length;++k){var Z=B[k];Z.open===`
  `&&(P.innerActive=Z,P.inner=m.startState(Z.mode,q.indent?q.indent(P.outer,"",""):0))}},electricChars:ee.electricChars,innerMode:function(P){return P.inner?{state:P.inner,mode:P.innerActive.mode}:{state:P.outer,mode:ee}}}}})})(),function(Pe,We){(function(m){m(Je.exports,ya.exports,Uu.exports)})(function(m){m.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),m.defineMode("handlebars",function(ee,B){var X=m.getMode(ee,"handlebars-tags");return!B||!B.base?X:m.multiplexingMode(m.getMode(ee,B.base),{open:"{{",close:/\}\}\}?/,mode:X,parseDelimiters:!0})}),m.defineMIME("text/x-handlebars-template","handlebars")})}(),function(Pe,We){(function(m){m(Je.exports,Hu.exports,ho.exports,fo.exports,Wu.exports,bi.exports,Bu.exports,qu.exports,Ru.exports,Ku.exports)})(function(m){var ee={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};m.defineMode("vue-template",function(B,X){var P={token:function(q){if(q.match(/^\{\{.*?\}\}/))return"meta mustache";for(;q.next()&&!q.match("{{",!1););return null}};return m.overlayMode(m.getMode(B,X.backdrop||"text/html"),P)}),m.defineMode("vue",function(B){return m.getMode(B,{name:"htmlmixed",tags:ee})},"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),m.defineMIME("script/x-vue","vue"),m.defineMIME("text/x-vue","vue")})}(),function(Pe,We){(function(m){m(Je.exports)})(function(m){var ee={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function B(d,p){p.mode=_.newLayout,p.tableHeading=!1,p.layoutType==="definitionList"&&p.spanningLayout&&d.match(y("definitionListEnd"),!1)&&(p.spanningLayout=!1)}function X(d,p,h){if(h==="_")return d.eat("_")?P(d,p,"italic",/__/,2):P(d,p,"em",/_/,1);if(h==="*")return d.eat("*")?P(d,p,"bold",/\*\*/,2):P(d,p,"strong",/\*/,1);if(h==="[")return d.match(/\d+\]/)&&(p.footCite=!0),q(p);if(h==="("){var L=d.match(/^(r|tm|c)\)/);if(L)return Z(p,ee.specialChar)}if(h==="<"&&d.match(/(\w+)[^>]+>[^<]+<\/\1>/))return Z(p,ee.html);if(h==="?"&&d.eat("?"))return P(d,p,"cite",/\?\?/,2);if(h==="="&&d.eat("="))return P(d,p,"notextile",/==/,2);if(h==="-"&&!d.eat("-"))return P(d,p,"deletion",/-/,1);if(h==="+")return P(d,p,"addition",/\+/,1);if(h==="~")return P(d,p,"sub",/~/,1);if(h==="^")return P(d,p,"sup",/\^/,1);if(h==="%")return P(d,p,"span",/%/,1);if(h==="@")return P(d,p,"code",/@/,1);if(h==="!"){var O=P(d,p,"image",/(?:\([^\)]+\))?!/,1);return d.match(/^:\S+/),O}return q(p)}function P(d,p,h,L,O){var W=d.pos>O?d.string.charAt(d.pos-O-1):null,Y=d.peek();if(p[h]){if((!Y||/\W/.test(Y))&&W&&/\S/.test(W)){var re=q(p);return p[h]=!1,re}}else(!W||/\W/.test(W))&&Y&&/\S/.test(Y)&&d.match(new RegExp("^.*\\S"+L.source+"(?:\\W|$)"),!1)&&(p[h]=!0,p.mode=_.attributes);return q(p)}function q(d){var p=k(d);if(p)return p;var h=[];return d.layoutType&&h.push(ee[d.layoutType]),h=h.concat(E(d,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),d.layoutType==="header"&&h.push(ee.header+"-"+d.header),h.length?h.join(" "):null}function k(d){var p=d.layoutType;switch(p){case"notextile":case"code":case"pre":return ee[p];default:return d.notextile?ee.notextile+(p?" "+ee[p]:""):null}}function Z(d,p){var h=k(d);if(h)return h;var L=q(d);return p?L?L+" "+p:p:L}function E(d){for(var p=[],h=1;h<arguments.length;++h)d[arguments[h]]&&p.push(ee[arguments[h]]);return p}function K(d){var p=d.spanningLayout,h=d.layoutType;for(var L in d)d.hasOwnProperty(L)&&delete d[L];d.mode=_.newLayout,p&&(d.layoutType=h,d.spanningLayout=!0)}var v={cache:{},single:{bc:"bc",bq:"bq",definitionList:/- .*?:=+/,definitionListEnd:/.*=:\s*$/,div:"div",drawTable:/\|.*\|/,foot:/fn\d+/,header:/h[1-6]/,html:/\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(d){switch(d){case"drawTable":return v.makeRe("^",v.single.drawTable,"$");case"html":return v.makeRe("^",v.single.html,"(?:",v.single.html,")*","$");case"linkDefinition":return v.makeRe("^",v.single.linkDefinition,"$");case"listLayout":return v.makeRe("^",v.single.list,y("allAttributes"),"*\\s+");case"tableCellAttributes":return v.makeRe("^",v.choiceRe(v.single.tableCellAttributes,y("allAttributes")),"+\\.");case"type":return v.makeRe("^",y("allTypes"));case"typeLayout":return v.makeRe("^",y("allTypes"),y("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return v.makeRe("^",y("allAttributes"),"+");case"allTypes":return v.choiceRe(v.single.div,v.single.foot,v.single.header,v.single.bc,v.single.bq,v.single.notextile,v.single.pre,v.single.table,v.single.para);case"allAttributes":return v.choiceRe(v.attributes.selector,v.attributes.css,v.attributes.lang,v.attributes.align,v.attributes.pad);default:return v.makeRe("^",v.single[d])}},makeRe:function(){for(var d="",p=0;p<arguments.length;++p){var h=arguments[p];d+=typeof h=="string"?h:h.source}return new RegExp(d)},choiceRe:function(){for(var d=[arguments[0]],p=1;p<arguments.length;++p)d[p*2-1]="|",d[p*2]=arguments[p];return d.unshift("(?:"),d.push(")"),v.makeRe.apply(null,d)}};function y(d){return v.cache[d]||(v.cache[d]=v.createRe(d))}var _={newLayout:function(d,p){if(d.match(y("typeLayout"),!1))return p.spanningLayout=!1,(p.mode=_.blockType)(d,p);var h;return k(p)||(d.match(y("listLayout"),!1)?h=_.list:d.match(y("drawTable"),!1)?h=_.table:d.match(y("linkDefinition"),!1)?h=_.linkDefinition:d.match(y("definitionList"))?h=_.definitionList:d.match(y("html"),!1)&&(h=_.html)),(p.mode=h||_.text)(d,p)},blockType:function(d,p){var h,L;if(p.layoutType=null,h=d.match(y("type")))L=h[0];else return(p.mode=_.text)(d,p);return(h=L.match(y("header")))?(p.layoutType="header",p.header=parseInt(h[0][1])):L.match(y("bq"))?p.layoutType="quote":L.match(y("bc"))?p.layoutType="code":L.match(y("foot"))?p.layoutType="footnote":L.match(y("notextile"))?p.layoutType="notextile":L.match(y("pre"))?p.layoutType="pre":L.match(y("div"))?p.layoutType="div":L.match(y("table"))&&(p.layoutType="table"),p.mode=_.attributes,q(p)},text:function(d,p){if(d.match(y("text")))return q(p);var h=d.next();return h==='"'?(p.mode=_.link)(d,p):X(d,p,h)},attributes:function(d,p){return p.mode=_.layoutLength,d.match(y("attributes"))?Z(p,ee.attributes):q(p)},layoutLength:function(d,p){return d.eat(".")&&d.eat(".")&&(p.spanningLayout=!0),p.mode=_.text,q(p)},list:function(d,p){var h=d.match(y("list"));p.listDepth=h[0].length;var L=(p.listDepth-1)%3;return L?L===1?p.layoutType="list2":p.layoutType="list3":p.layoutType="list1",p.mode=_.attributes,q(p)},link:function(d,p){return p.mode=_.text,d.match(y("link"))?(d.match(/\S+/),Z(p,ee.link)):q(p)},linkDefinition:function(d,p){return d.skipToEnd(),Z(p,ee.linkDefinition)},definitionList:function(d,p){return d.match(y("definitionList")),p.layoutType="definitionList",d.match(/\s*$/)?p.spanningLayout=!0:p.mode=_.attributes,q(p)},html:function(d,p){return d.skipToEnd(),Z(p,ee.html)},table:function(d,p){return p.layoutType="table",(p.mode=_.tableCell)(d,p)},tableCell:function(d,p){return d.match(y("tableHeading"))?p.tableHeading=!0:d.eat("|"),p.mode=_.tableCellAttributes,q(p)},tableCellAttributes:function(d,p){return p.mode=_.tableText,d.match(y("tableCellAttributes"))?Z(p,ee.attributes):q(p)},tableText:function(d,p){return d.match(y("tableText"))?q(p):d.peek()==="|"?(p.mode=_.tableCell,q(p)):X(d,p,d.next())}};m.defineMode("textile",function(){return{startState:function(){return{mode:_.newLayout}},token:function(d,p){return d.sol()&&B(d,p),p.mode(d,p)},blankLine:K}}),m.defineMIME("text/x-textile","textile")})}();var ec=`.CodeMirror-hints {
    position: absolute;
    z-index: 10;
    overflow: hidden;
    list-style: none;
  
    margin: 0;
    padding: 2px;
  
    -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
    -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
    box-shadow: 2px 3px 5px rgba(0,0,0,.2);
    border-radius: 3px;
    border: 1px solid silver;
  
    background: white;
    font-size: 90%;
    font-family: monospace;
  
    max-height: 20em;
    overflow-y: auto;
  }
  
  .CodeMirror-hint {
    margin: 0;
    padding: 0 4px;
    border-radius: 2px;
    white-space: pre;
    color: black;
    cursor: pointer;
  }
  
  li.CodeMirror-hint-active {
    background: #08f;
    color: white;
  }
  `;(function(Pe,We){(function(m){m(Je.exports)})(function(m){var ee="CodeMirror-hint",B="CodeMirror-hint-active";m.showHint=function(h,L,O){if(!L)return h.showHint(O);O&&O.async&&(L.async=!0);var W={hint:L};if(O)for(var Y in O)W[Y]=O[Y];return h.showHint(W)},m.defineExtension("showHint",function(h){h=k(this,this.getCursor("start"),h);var L=this.listSelections();if(!(L.length>1)){if(this.somethingSelected()){if(!h.hint.supportsSelection)return;for(var O=0;O<L.length;O++)if(L[O].head.line!=L[O].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var W=this.state.completionActive=new X(this,h);!W.options.hint||(m.signal(this,"startCompletion",this),W.update(!0))}}),m.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function X(h,L){if(this.cm=h,this.options=L,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var O=this;h.on("cursorActivity",this.activityFunc=function(){O.cursorActivity()})}}var P=window.requestAnimationFrame||function(h){return setTimeout(h,1e3/60)},q=window.cancelAnimationFrame||clearTimeout;X.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&m.signal(this.data,"close"),this.widget&&this.widget.close(),m.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(h,L){var O=h.list[L],W=this;this.cm.operation(function(){O.hint?O.hint(W.cm,h,O):W.cm.replaceRange(Z(O),O.from||h.from,O.to||h.to,"complete"),m.signal(h,"pick",O),W.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(q(this.debounce),this.debounce=0);var h=this.startPos;this.data&&(h=this.data.from);var L=this.cm.getCursor(),O=this.cm.getLine(L.line);if(L.line!=this.startPos.line||O.length-L.ch!=this.startLen-this.startPos.ch||L.ch<h.ch||this.cm.somethingSelected()||!L.ch||this.options.closeCharacters.test(O.charAt(L.ch-1)))this.close();else{var W=this;this.debounce=P(function(){W.update()}),this.widget&&this.widget.disable()}},update:function(h){if(this.tick!=null){var L=this,O=++this.tick;_(this.options.hint,this.cm,this.options,function(W){L.tick==O&&L.finishUpdate(W,h)})}},finishUpdate:function(h,L){this.data&&m.signal(this.data,"update");var O=this.widget&&this.widget.picked||L&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=h,h&&h.list.length&&(O&&h.list.length==1?this.pick(h,0):(this.widget=new v(this,h),m.signal(h,"shown")))}};function k(h,L,O){var W=h.options.hintOptions,Y={};for(var re in p)Y[re]=p[re];if(W)for(var re in W)W[re]!==void 0&&(Y[re]=W[re]);if(O)for(var re in O)O[re]!==void 0&&(Y[re]=O[re]);return Y.hint.resolve&&(Y.hint=Y.hint.resolve(h,L)),Y}function Z(h){return typeof h=="string"?h:h.text}function E(h,L){var O={Up:function(){L.moveFocus(-1)},Down:function(){L.moveFocus(1)},PageUp:function(){L.moveFocus(-L.menuSize()+1,!0)},PageDown:function(){L.moveFocus(L.menuSize()-1,!0)},Home:function(){L.setFocus(0)},End:function(){L.setFocus(L.length-1)},Enter:L.pick,Tab:L.pick,Esc:L.close},W=/Mac/.test(navigator.platform);W&&(O["Ctrl-P"]=function(){L.moveFocus(-1)},O["Ctrl-N"]=function(){L.moveFocus(1)});var Y=h.options.customKeys,re=Y?{}:O;function ne(M,z){var G;typeof z!="string"?G=function(A){return z(A,L)}:O.hasOwnProperty(z)?G=O[z]:G=z,re[M]=G}if(Y)for(var ce in Y)Y.hasOwnProperty(ce)&&ne(ce,Y[ce]);var U=h.options.extraKeys;if(U)for(var ce in U)U.hasOwnProperty(ce)&&ne(ce,U[ce]);return re}function K(h,L){for(;L&&L!=h;){if(L.nodeName.toUpperCase()==="LI"&&L.parentNode==h)return L;L=L.parentNode}}function v(h,L){this.completion=h,this.data=L,this.picked=!1;var O=this,W=h.cm,Y=W.getInputField().ownerDocument,re=Y.defaultView||Y.parentWindow,ne=this.hints=Y.createElement("ul"),ce=h.cm.options.theme;ne.className="CodeMirror-hints "+ce,this.selectedHint=L.selectedHint||0;for(var U=L.list,M=0;M<U.length;++M){var z=ne.appendChild(Y.createElement("li")),G=U[M],A=ee+(M!=this.selectedHint?"":" "+B);G.className!=null&&(A=G.className+" "+A),z.className=A,G.render?G.render(z,L,G):z.appendChild(Y.createTextNode(G.displayText||Z(G))),z.hintId=M}var g=h.options.container||Y.body,b=W.cursorCoords(h.options.alignWithWord?L.from:null),N=b.left,Q=b.bottom,me=!0,ge=0,ze=0;if(g!==Y.body){var Ie=["absolute","relative","fixed"].indexOf(re.getComputedStyle(g).position)!==-1,S=Ie?g:g.offsetParent,f=S.getBoundingClientRect(),le=Y.body.getBoundingClientRect();ge=f.left-le.left-S.scrollLeft,ze=f.top-le.top-S.scrollTop}ne.style.left=N-ge+"px",ne.style.top=Q-ze+"px";var ye=re.innerWidth||Math.max(Y.body.offsetWidth,Y.documentElement.offsetWidth),oe=re.innerHeight||Math.max(Y.body.offsetHeight,Y.documentElement.offsetHeight);g.appendChild(ne);var ve=h.options.moveOnOverlap?ne.getBoundingClientRect():new DOMRect,de=h.options.paddingForScrollbar?ne.scrollHeight>ne.clientHeight+1:!1,Oe;setTimeout(function(){Oe=W.getScrollInfo()});var Fe=ve.bottom-oe;if(Fe>0){var Ce=ve.bottom-ve.top,He=b.top-(b.bottom-ve.top);if(He-Ce>0)ne.style.top=(Q=b.top-Ce-ze)+"px",me=!1;else if(Ce>oe){ne.style.height=oe-5+"px",ne.style.top=(Q=b.bottom-ve.top-ze)+"px";var Ke=W.getCursor();L.from.ch!=Ke.ch&&(b=W.cursorCoords(Ke),ne.style.left=(N=b.left-ge)+"px",ve=ne.getBoundingClientRect())}}var _e=ve.right-ye;if(de&&(_e+=W.display.nativeBarWidth),_e>0&&(ve.right-ve.left>ye&&(ne.style.width=ye-5+"px",_e-=ve.right-ve.left-ye),ne.style.left=(N=b.left-_e-ge)+"px"),de)for(var Ee=ne.firstChild;Ee;Ee=Ee.nextSibling)Ee.style.paddingRight=W.display.nativeBarWidth+"px";if(W.addKeyMap(this.keyMap=E(h,{moveFocus:function(T,F){O.changeActive(O.selectedHint+T,F)},setFocus:function(T){O.changeActive(T)},menuSize:function(){return O.screenAmount()},length:U.length,close:function(){h.close()},pick:function(){O.pick()},data:L})),h.options.closeOnUnfocus){var Be;W.on("blur",this.onBlur=function(){Be=setTimeout(function(){h.close()},100)}),W.on("focus",this.onFocus=function(){clearTimeout(Be)})}W.on("scroll",this.onScroll=function(){var T=W.getScrollInfo(),F=W.getWrapperElement().getBoundingClientRect();Oe||(Oe=W.getScrollInfo());var ke=Q+Oe.top-T.top,qe=ke-(re.pageYOffset||(Y.documentElement||Y.body).scrollTop);if(me||(qe+=ne.offsetHeight),qe<=F.top||qe>=F.bottom)return h.close();ne.style.top=ke+"px",ne.style.left=N+Oe.left-T.left+"px"}),m.on(ne,"dblclick",function(T){var F=K(ne,T.target||T.srcElement);F&&F.hintId!=null&&(O.changeActive(F.hintId),O.pick())}),m.on(ne,"click",function(T){var F=K(ne,T.target||T.srcElement);F&&F.hintId!=null&&(O.changeActive(F.hintId),h.options.completeOnSingleClick&&O.pick())}),m.on(ne,"mousedown",function(){setTimeout(function(){W.focus()},20)});var Ge=this.getSelectedHintRange();return(Ge.from!==0||Ge.to!==0)&&this.scrollToActive(),m.signal(L,"select",U[this.selectedHint],ne.childNodes[this.selectedHint]),!0}v.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var h=this.completion.cm;this.completion.options.closeOnUnfocus&&(h.off("blur",this.onBlur),h.off("focus",this.onFocus)),h.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var h=this;this.keyMap={Enter:function(){h.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(h,L){if(h>=this.data.list.length?h=L?this.data.list.length-1:0:h<0&&(h=L?0:this.data.list.length-1),this.selectedHint!=h){var O=this.hints.childNodes[this.selectedHint];O&&(O.className=O.className.replace(" "+B,"")),O=this.hints.childNodes[this.selectedHint=h],O.className+=" "+B,this.scrollToActive(),m.signal(this.data,"select",this.data.list[this.selectedHint],O)}},scrollToActive:function(){var h=this.getSelectedHintRange(),L=this.hints.childNodes[h.from],O=this.hints.childNodes[h.to],W=this.hints.firstChild;L.offsetTop<this.hints.scrollTop?this.hints.scrollTop=L.offsetTop-W.offsetTop:O.offsetTop+O.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=O.offsetTop+O.offsetHeight-this.hints.clientHeight+W.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var h=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-h),to:Math.min(this.data.list.length-1,this.selectedHint+h)}}};function y(h,L){if(!h.somethingSelected())return L;for(var O=[],W=0;W<L.length;W++)L[W].supportsSelection&&O.push(L[W]);return O}function _(h,L,O,W){if(h.async)h(L,W,O);else{var Y=h(L,O);Y&&Y.then?Y.then(W):W(Y)}}function d(h,L){var O=h.getHelpers(L,"hint"),W;if(O.length){var Y=function(re,ne,ce){var U=y(re,O);function M(z){if(z==U.length)return ne(null);_(U[z],re,ce,function(G){G&&G.list.length>0?ne(G):M(z+1)})}M(0)};return Y.async=!0,Y.supportsSelection=!0,Y}else return(W=h.getHelper(h.getCursor(),"hintWords"))?function(re){return m.hint.fromList(re,{words:W})}:m.hint.anyword?function(re,ne){return m.hint.anyword(re,ne)}:function(){}}m.registerHelper("hint","auto",{resolve:d}),m.registerHelper("hint","fromList",function(h,L){var O=h.getCursor(),W=h.getTokenAt(O),Y,re=m.Pos(O.line,W.start),ne=O;W.start<O.ch&&/\w/.test(W.string.charAt(O.ch-W.start-1))?Y=W.string.substr(0,O.ch-W.start):(Y="",re=O);for(var ce=[],U=0;U<L.words.length;U++){var M=L.words[U];M.slice(0,Y.length)==Y&&ce.push(M)}if(ce.length)return{list:ce,from:re,to:ne}}),m.commands.autocomplete=m.showHint;var p={hint:m.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};m.defineOption("hintOptions",null)})})();const Gu=window.CodeMirror||Pu;var ka=Lu({name:"codemirror",props:{modelValue:{type:String},language:{type:String,default:null},canChangeMode:{type:Boolean,default:!1},options:{type:Object,default:null}},setup(Pe,{emit:We}){let{modelValue:m,language:ee}=va(Pe);const B=Tu(null);let X=null;const P=Mu({coder:null,content:"",mode:"x-sh",options:{tabSize:2,theme:"cobalt",lineNumbers:!0,line:!0,indentWithTabs:!0,smartIndent:!0,matchBrackets:!0,autofocus:!0,styleSelectedText:!0,styleActiveLine:!0,foldGutter:!0,hintOptions:{completeSingle:!1}},modes:[{value:"x-sh",label:"Shell"},{value:"x-yaml",label:"Yaml"},{value:"x-dockerfile",label:"Dockerfile"},{value:"x-nginx-conf",label:"Nginx"},{value:"html",label:"XML/HTML"},{value:"x-python",label:"Python"},{value:"x-sql",label:"SQL"},{value:"css",label:"CSS"},{value:"javascript",label:"Javascript"},{value:"x-java",label:"Java"},{value:"x-vue",label:"Vue"},{value:"markdown",label:"Markdown"},{value:"text/x-textile",label:"text"}]});Au(()=>{q()}),ba(()=>Pe.modelValue,(y,_)=>{v(y)}),ba(()=>Pe.options,(y,_)=>{console.log("options change",y);for(const d in y)X.setOption(d,y[d])});const q=()=>{Pe.options&&(P.options=Pe.options),X=Gu.fromTextArea(B.value,P.options),X.setValue(m.value||P.content),X.on("change",y=>{P.content=y.getDoc().getValue(),We("update:modelValue",P.content)}),X.on("inputRead",(y,_)=>{/^[a-zA-Z]/.test(_.text[0])&&y.showHint()}),Z(ee.value),["scroll","changes","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"].forEach(y=>{X.on(y,(..._)=>{We(y,..._);const d=y.replace(/([A-Z])/g,"-$1").toLowerCase();d!==y&&We(d,..._)})}),P.coder=X,k()},k=()=>{zu(()=>{X.refresh()})},Z=y=>{if(y){let _=E(y);_&&(P.mode=_.value)}X.setOption("mode",`text/${P.mode}`)},E=y=>P.modes.find(_=>{let d=y.toLowerCase(),p=_.label.toLowerCase(),h=_.value.toLowerCase();return p===d||h===d}),K=y=>{Z(y);let _=E(y).label.toLowerCase();We("language-change",_)},v=y=>{const _=X.getValue();if(y!==_){const d=X.getScrollInfo();X.setValue(y),P.content=y,X.scrollTo(d.left,d.top)}};return ma(ga({},va(P)),{textarea:B,changeMode:K})}}),tc=`.CodeMirror {
    height: 500px;
  }
  .in-coder-panel {
    flex-grow: 1;
    display: flex;
    position: relative;
  }
  .in-coder-panel .CodeMirror {
    flex-grow: 1;
    z-index: 1;
  }
  .in-coder-panel .CodeMirror .CodeMirror-code {
    line-height: 19px;
  }
  .in-coder-panel .code-mode-select {
    position: absolute;
    z-index: 2;
    right: 10px;
    top: 10px;
    max-width: 130px;
  }`;const Xu={class:"in-coder-panel"},Yu={ref:"textarea"};function Qu(Pe,We,m,ee,B,X){const P=xa("el-option"),q=xa("el-select");return mi(),vi("div",Xu,[Eu("textarea",Yu,null,512),Pe.canChangeMode?(mi(),vi(q,{key:0,class:"code-mode-select",modelValue:Pe.mode,"onUpdate:modelValue":We[1]||(We[1]=k=>Pe.mode=k),onChange:Pe.changeMode},{default:Du(()=>[(mi(!0),vi(Fu,null,Ou(Pe.modes,k=>(mi(),vi(P,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])):Nu("",!0)])}ka.render=Qu;export{ka as _};
  