@rero/rero-ils-ui
Version:
User interface for RERO integrated library system (RERO ILS).
5 lines (4 loc) • 2.36 MB
JavaScript
var jK=Object.create;var _S=Object.defineProperty,UK=Object.defineProperties,qK=Object.getOwnPropertyDescriptor,WK=Object.getOwnPropertyDescriptors,GK=Object.getOwnPropertyNames,B1=Object.getOwnPropertySymbols,KK=Object.getPrototypeOf,xS=Object.prototype.hasOwnProperty,p6=Object.prototype.propertyIsEnumerable;var d6=(t,n,e)=>n in t?_S(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,W=(t,n)=>{for(var e in n||={})xS.call(n,e)&&d6(t,e,n[e]);if(B1)for(var e of B1(n))p6.call(n,e)&&d6(t,e,n[e]);return t},Ge=(t,n)=>UK(t,WK(n));var P1=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,e)=>(typeof require<"u"?require:n)[e]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var f6=t=>typeof t=="symbol"?t:t+"",Dl=(t,n)=>{var e={};for(var i in t)xS.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&B1)for(var i of B1(t))n.indexOf(i)<0&&p6.call(t,i)&&(e[i]=t[i]);return e};var zt=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var QK=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of GK(n))!xS.call(t,r)&&r!==e&&_S(t,r,{get:()=>n[r],enumerable:!(i=qK(n,r))||i.enumerable});return t};var h6=(t,n,e)=>(e=t!=null?jK(KK(t)):{},QK(n||!t||!t.__esModule?_S(e,"default",{value:t,enumerable:!0}):e,t));var Aa=zt((RE,LE)=>{(function(t,n){typeof RE=="object"&&typeof LE<"u"?LE.exports=n():typeof define=="function"&&define.amd?define(n):(t=t||self,t.CodeMirror=n())})(RE,function(){"use strict";var t=navigator.userAgent,n=navigator.platform,e=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=i||r||o,l=a&&(i?document.documentMode||6:+(o||r)[1]),u=!o&&/WebKit\//.test(t),d=u&&/Qt\/\d+\.\d+/.test(t),h=!o&&/Chrome\/(\d+)/.exec(t),g=h&&+h[1],y=/Opera\//.test(t),_=/Apple Computer/.test(navigator.vendor),w=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),E=/PhantomJS/.test(t),k=_&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),T=/Android/.test(t),M=k||T||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),z=k||/Mac/.test(n),V=/\bCrOS\b/.test(t),q=/win/i.test(n),Q=y&&t.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(y=!1,u=!0);var oe=z&&(d||y&&(Q==null||Q<12.11)),_e=e||a&&l>=9;function ie(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Me=function(s,c){var f=s.className,p=ie(c).exec(f);if(p){var m=f.slice(p.index+p[0].length);s.className=f.slice(0,p.index)+(m?p[1]+m:"")}};function me(s){for(var c=s.childNodes.length;c>0;--c)s.removeChild(s.firstChild);return s}function Ee(s,c){return me(s).appendChild(c)}function Z(s,c,f,p){var m=document.createElement(s);if(f&&(m.className=f),p&&(m.style.cssText=p),typeof c=="string")m.appendChild(document.createTextNode(c));else if(c)for(var x=0;x<c.length;++x)m.appendChild(c[x]);return m}function le(s,c,f,p){var m=Z(s,c,f,p);return m.setAttribute("role","presentation"),m}var De;document.createRange?De=function(s,c,f,p){var m=document.createRange();return m.setEnd(p||s,f),m.setStart(s,c),m}:De=function(s,c,f){var p=document.body.createTextRange();try{p.moveToElementText(s.parentNode)}catch{return p}return p.collapse(!0),p.moveEnd("character",f),p.moveStart("character",c),p};function Fe(s,c){if(c.nodeType==3&&(c=c.parentNode),s.contains)return s.contains(c);do if(c.nodeType==11&&(c=c.host),c==s)return!0;while(c=c.parentNode)}function et(s){var c=s.ownerDocument||s,f;try{f=s.activeElement}catch{f=c.body||null}for(;f&&f.shadowRoot&&f.shadowRoot.activeElement;)f=f.shadowRoot.activeElement;return f}function vt(s,c){var f=s.className;ie(c).test(f)||(s.className+=(f?" ":"")+c)}function Ne(s,c){for(var f=s.split(" "),p=0;p<f.length;p++)f[p]&&!ie(f[p]).test(c)&&(c+=" "+f[p]);return c}var U=function(s){s.select()};k?U=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:a&&(U=function(s){try{s.select()}catch{}});function L(s){return s.display.wrapper.ownerDocument}function xe(s){return mt(s.display.wrapper)}function mt(s){return s.getRootNode?s.getRootNode():s.ownerDocument}function ct(s){return L(s).defaultView}function In(s){var c=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,c)}}function Lt(s,c,f){c||(c={});for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(f!==!1||!Object.prototype.hasOwnProperty.call(c,p))&&(c[p]=s[p]);return c}function On(s,c,f,p,m){c==null&&(c=s.search(/[^\s\u00a0]/),c==-1&&(c=s.length));for(var x=p||0,S=m||0;;){var I=s.indexOf(" ",x);if(I<0||I>=c)return S+(c-x);S+=I-x,S+=f-S%f,x=I+1}}var li=function(){this.id=null,this.f=null,this.time=0,this.handler=In(this.onTimeout,this)};li.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},li.prototype.set=function(s,c){this.f=c;var f=+new Date+s;(!this.id||f<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=f)};function Dn(s,c){for(var f=0;f<s.length;++f)if(s[f]==c)return f;return-1}var Rn=50,En={toString:function(){return"CodeMirror.Pass"}},Ln={scroll:!1},co={origin:"*mouse"},Yi={origin:"+move"};function Nr(s,c,f){for(var p=0,m=0;;){var x=s.indexOf(" ",p);x==-1&&(x=s.length);var S=x-p;if(x==s.length||m+S>=c)return p+Math.min(S,c-m);if(m+=x-p,m+=f-m%f,p=x+1,m>=c)return p}}var mr=[""];function So(s){for(;mr.length<=s;)mr.push(nn(mr)+" ");return mr[s]}function nn(s){return s[s.length-1]}function ci(s,c){for(var f=[],p=0;p<s.length;p++)f[p]=c(s[p],p);return f}function ui(s,c,f){for(var p=0,m=f(c);p<s.length&&f(s[p])<=m;)p++;s.splice(p,0,c)}function uo(){}function As(s,c){var f;return Object.create?f=Object.create(s):(uo.prototype=s,f=new uo),c&&Lt(c,f),f}var yl=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ho(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||yl.test(s))}function Na(s,c){return c?c.source.indexOf("\\w")>-1&&Ho(s)?!0:c.test(s):Ho(s)}function ef(s){for(var c in s)if(s.hasOwnProperty(c)&&s[c])return!1;return!0}var tf=/[\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 Fs(s){return s.charCodeAt(0)>=768&&tf.test(s)}function da(s,c,f){for(;(f<0?c>0:c<s.length)&&Fs(s.charAt(c));)c+=f;return c}function Os(s,c,f){for(var p=c>f?-1:1;;){if(c==f)return c;var m=(c+f)/2,x=p<0?Math.ceil(m):Math.floor(m);if(x==c)return s(x)?c:f;s(x)?f=x:c=x+p}}function hw(s,c,f,p){if(!s)return p(c,f,"ltr",0);for(var m=!1,x=0;x<s.length;++x){var S=s[x];(S.from<f&&S.to>c||c==f&&S.to==c)&&(p(Math.max(S.from,c),Math.min(S.to,f),S.level==1?"rtl":"ltr",x),m=!0)}m||p(c,f,"ltr")}var iu=null;function ru(s,c,f){var p;iu=null;for(var m=0;m<s.length;++m){var x=s[m];if(x.from<c&&x.to>c)return m;x.to==c&&(x.from!=x.to&&f=="before"?p=m:iu=m),x.from==c&&(x.from!=x.to&&f!="before"?p=m:iu=m)}return p??iu}var mw=(function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",c="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function f(N){return N<=247?s.charAt(N):1424<=N&&N<=1524?"R":1536<=N&&N<=1785?c.charAt(N-1536):1774<=N&&N<=2220?"r":8192<=N&&N<=8203?"w":N==8204?"b":"L"}var p=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,m=/[stwN]/,x=/[LRr]/,S=/[Lb1n]/,I=/[1n]/;function F(N,Y,J){this.level=N,this.from=Y,this.to=J}return function(N,Y){var J=Y=="ltr"?"L":"R";if(N.length==0||Y=="ltr"&&!p.test(N))return!1;for(var ge=N.length,de=[],Ae=0;Ae<ge;++Ae)de.push(f(N.charCodeAt(Ae)));for(var Pe=0,Qe=J;Pe<ge;++Pe){var rt=de[Pe];rt=="m"?de[Pe]=Qe:Qe=rt}for(var st=0,ot=J;st<ge;++st){var ht=de[st];ht=="1"&&ot=="r"?de[st]="n":x.test(ht)&&(ot=ht,ht=="r"&&(de[st]="R"))}for(var Bt=1,Nt=de[0];Bt<ge-1;++Bt){var mn=de[Bt];mn=="+"&&Nt=="1"&&de[Bt+1]=="1"?de[Bt]="1":mn==","&&Nt==de[Bt+1]&&(Nt=="1"||Nt=="n")&&(de[Bt]=Nt),Nt=mn}for(var di=0;di<ge;++di){var Pr=de[di];if(Pr==",")de[di]="N";else if(Pr=="%"){var ji=void 0;for(ji=di+1;ji<ge&&de[ji]=="%";++ji);for(var ha=di&&de[di-1]=="!"||ji<ge&&de[ji]=="1"?"1":"N",Wo=di;Wo<ji;++Wo)de[Wo]=ha;di=ji-1}}for(var yr=0,Go=J;yr<ge;++yr){var Zr=de[yr];Go=="L"&&Zr=="1"?de[yr]="L":x.test(Zr)&&(Go=Zr)}for(var Tr=0;Tr<ge;++Tr)if(m.test(de[Tr])){var br=void 0;for(br=Tr+1;br<ge&&m.test(de[br]);++br);for(var Zi=(Tr?de[Tr-1]:J)=="L",Ko=(br<ge?de[br]:J)=="L",Tf=Zi==Ko?Zi?"L":"R":J,fu=Tr;fu<br;++fu)de[fu]=Tf;Tr=br-1}for(var ho=[],Sl,Vr=0;Vr<ge;)if(S.test(de[Vr])){var yS=Vr;for(++Vr;Vr<ge&&S.test(de[Vr]);++Vr);ho.push(new F(0,yS,Vr))}else{var dc=Vr,Fd=ho.length,Od=Y=="rtl"?1:0;for(++Vr;Vr<ge&&de[Vr]!="L";++Vr);for(var ko=dc;ko<Vr;)if(I.test(de[ko])){dc<ko&&(ho.splice(Fd,0,new F(1,dc,ko)),Fd+=Od);var kf=ko;for(++ko;ko<Vr&&I.test(de[ko]);++ko);ho.splice(Fd,0,new F(2,kf,ko)),Fd+=Od,dc=ko}else++ko;dc<Vr&&ho.splice(Fd,0,new F(1,dc,Vr))}return Y=="ltr"&&(ho[0].level==1&&(Sl=N.match(/^\s+/))&&(ho[0].from=Sl[0].length,ho.unshift(new F(0,0,Sl[0].length))),nn(ho).level==1&&(Sl=N.match(/\s+$/))&&(nn(ho).to-=Sl[0].length,ho.push(new F(0,ge-Sl[0].length,ge)))),Y=="rtl"?ho.reverse():ho}})();function Ns(s,c){var f=s.order;return f==null&&(f=s.order=mw(s.text,c)),f}var Eh=[],$t=function(s,c,f){if(s.addEventListener)s.addEventListener(c,f,!1);else if(s.attachEvent)s.attachEvent("on"+c,f);else{var p=s._handlers||(s._handlers={});p[c]=(p[c]||Eh).concat(f)}};function nf(s,c){return s._handlers&&s._handlers[c]||Eh}function jo(s,c,f){if(s.removeEventListener)s.removeEventListener(c,f,!1);else if(s.detachEvent)s.detachEvent("on"+c,f);else{var p=s._handlers,m=p&&p[c];if(m){var x=Dn(m,f);x>-1&&(p[c]=m.slice(0,x).concat(m.slice(x+1)))}}}function Hi(s,c){var f=nf(s,c);if(f.length)for(var p=Array.prototype.slice.call(arguments,2),m=0;m<f.length;++m)f[m].apply(null,p)}function gr(s,c,f){return typeof c=="string"&&(c={type:c,preventDefault:function(){this.defaultPrevented=!0}}),Hi(s,f||c.type,s,c),rf(c)||c.codemirrorIgnore}function n1(s){var c=s._handlers&&s._handlers.cursorActivity;if(c)for(var f=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),p=0;p<c.length;++p)Dn(f,c[p])==-1&&f.push(c[p])}function pa(s,c){return nf(s,c).length>0}function oc(s){s.prototype.on=function(c,f){$t(this,c,f)},s.prototype.off=function(c,f){jo(this,c,f)}}function po(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function i1(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function rf(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function _d(s){po(s),i1(s)}function of(s){return s.target||s.srcElement}function Do(s){var c=s.which;return c==null&&(s.button&1?c=1:s.button&2?c=3:s.button&4&&(c=2)),z&&s.ctrlKey&&c==1&&(c=3),c}var bl=(function(){if(a&&l<9)return!1;var s=Z("div");return"draggable"in s||"dragDrop"in s})(),af;function gw(s){if(af==null){var c=Z("span","\u200B");Ee(s,Z("span",[c,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(af=c.offsetWidth<=1&&c.offsetHeight>2&&!(a&&l<8))}var f=af?Z("span","\u200B"):Z("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return f.setAttribute("cm-text",""),f}var vw;function BW(s){if(vw!=null)return vw;var c=Ee(s,document.createTextNode("A\u062EA")),f=De(c,0,1).getBoundingClientRect(),p=De(c,1,2).getBoundingClientRect();return me(s),!f||f.left==f.right?!1:vw=p.right-f.right<3}var yw=`
b`.split(/\n/).length!=3?function(s){for(var c=0,f=[],p=s.length;c<=p;){var m=s.indexOf(`
`,c);m==-1&&(m=s.length);var x=s.slice(c,s.charAt(m-1)=="\r"?m-1:m),S=x.indexOf("\r");S!=-1?(f.push(x.slice(0,S)),c+=S+1):(f.push(x),c=m+1)}return f}:function(s){return s.split(/\r\n?|\n/)},PW=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var c;try{c=s.ownerDocument.selection.createRange()}catch{}return!c||c.parentElement()!=s?!1:c.compareEndPoints("StartToEnd",c)!=0},VW=(function(){var s=Z("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")})(),bw=null;function $W(s){if(bw!=null)return bw;var c=Ee(s,Z("span","x")),f=c.getBoundingClientRect(),p=De(c,0,1).getBoundingClientRect();return bw=Math.abs(f.left-p.left)>1}var _w={},sf={};function zW(s,c){arguments.length>2&&(c.dependencies=Array.prototype.slice.call(arguments,2)),_w[s]=c}function HW(s,c){sf[s]=c}function r1(s){if(typeof s=="string"&&sf.hasOwnProperty(s))s=sf[s];else if(s&&typeof s.name=="string"&&sf.hasOwnProperty(s.name)){var c=sf[s.name];typeof c=="string"&&(c={name:c}),s=As(c,s),s.name=c.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return r1("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return r1("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function xw(s,c){c=r1(c);var f=_w[c.name];if(!f)return xw(s,"text/plain");var p=f(s,c);if(lf.hasOwnProperty(c.name)){var m=lf[c.name];for(var x in m)m.hasOwnProperty(x)&&(p.hasOwnProperty(x)&&(p["_"+x]=p[x]),p[x]=m[x])}if(p.name=c.name,c.helperType&&(p.helperType=c.helperType),c.modeProps)for(var S in c.modeProps)p[S]=c.modeProps[S];return p}var lf={};function jW(s,c){var f=lf.hasOwnProperty(s)?lf[s]:lf[s]={};Lt(c,f)}function xd(s,c){if(c===!0)return c;if(s.copyState)return s.copyState(c);var f={};for(var p in c){var m=c[p];m instanceof Array&&(m=m.concat([])),f[p]=m}return f}function Cw(s,c){for(var f;s.innerMode&&(f=s.innerMode(c),!(!f||f.mode==s));)c=f.state,s=f.mode;return f||{mode:s,state:c}}function d5(s,c,f){return s.startState?s.startState(c,f):!0}var vr=function(s,c,f){this.pos=this.start=0,this.string=s,this.tabSize=c||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f};vr.prototype.eol=function(){return this.pos>=this.string.length},vr.prototype.sol=function(){return this.pos==this.lineStart},vr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vr.prototype.eat=function(s){var c=this.string.charAt(this.pos),f;if(typeof s=="string"?f=c==s:f=c&&(s.test?s.test(c):s(c)),f)return++this.pos,c},vr.prototype.eatWhile=function(s){for(var c=this.pos;this.eat(s););return this.pos>c},vr.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},vr.prototype.skipToEnd=function(){this.pos=this.string.length},vr.prototype.skipTo=function(s){var c=this.string.indexOf(s,this.pos);if(c>-1)return this.pos=c,!0},vr.prototype.backUp=function(s){this.pos-=s},vr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=On(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?On(this.string,this.lineStart,this.tabSize):0)},vr.prototype.indentation=function(){return On(this.string,null,this.tabSize)-(this.lineStart?On(this.string,this.lineStart,this.tabSize):0)},vr.prototype.match=function(s,c,f){if(typeof s=="string"){var p=function(S){return f?S.toLowerCase():S},m=this.string.substr(this.pos,s.length);if(p(m)==p(s))return c!==!1&&(this.pos+=s.length),!0}else{var x=this.string.slice(this.pos).match(s);return x&&x.index>0?null:(x&&c!==!1&&(this.pos+=x[0].length),x)}},vr.prototype.current=function(){return this.string.slice(this.start,this.pos)},vr.prototype.hideFirstChars=function(s,c){this.lineStart+=s;try{return c()}finally{this.lineStart-=s}},vr.prototype.lookAhead=function(s){var c=this.lineOracle;return c&&c.lookAhead(s)},vr.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function Ot(s,c){if(c-=s.first,c<0||c>=s.size)throw new Error("There is no line "+(c+s.first)+" in the document.");for(var f=s;!f.lines;)for(var p=0;;++p){var m=f.children[p],x=m.chunkSize();if(c<x){f=m;break}c-=x}return f.lines[c]}function Cd(s,c,f){var p=[],m=c.line;return s.iter(c.line,f.line+1,function(x){var S=x.text;m==f.line&&(S=S.slice(0,f.ch)),m==c.line&&(S=S.slice(c.ch)),p.push(S),++m}),p}function ww(s,c,f){var p=[];return s.iter(c,f,function(m){p.push(m.text)}),p}function _l(s,c){var f=c-s.height;if(f)for(var p=s;p;p=p.parent)p.height+=f}function Xn(s){if(s.parent==null)return null;for(var c=s.parent,f=Dn(c.lines,s),p=c.parent;p;c=p,p=p.parent)for(var m=0;p.children[m]!=c;++m)f+=p.children[m].chunkSize();return f+c.first}function wd(s,c){var f=s.first;e:do{for(var p=0;p<s.children.length;++p){var m=s.children[p],x=m.height;if(c<x){s=m;continue e}c-=x,f+=m.chunkSize()}return f}while(!s.lines);for(var S=0;S<s.lines.length;++S){var I=s.lines[S],F=I.height;if(c<F)break;c-=F}return f+S}function Ih(s,c){return c>=s.first&&c<s.first+s.size}function Sw(s,c){return String(s.lineNumberFormatter(c+s.firstLineNumber))}function We(s,c,f){if(f===void 0&&(f=null),!(this instanceof We))return new We(s,c,f);this.line=s,this.ch=c,this.sticky=f}function rn(s,c){return s.line-c.line||s.ch-c.ch}function Dw(s,c){return s.sticky==c.sticky&&rn(s,c)==0}function Tw(s){return We(s.line,s.ch)}function o1(s,c){return rn(s,c)<0?c:s}function a1(s,c){return rn(s,c)<0?s:c}function p5(s,c){return Math.max(s.first,Math.min(c,s.first+s.size-1))}function on(s,c){if(c.line<s.first)return We(s.first,0);var f=s.first+s.size-1;return c.line>f?We(f,Ot(s,f).text.length):UW(c,Ot(s,c.line).text.length)}function UW(s,c){var f=s.ch;return f==null||f>c?We(s.line,c):f<0?We(s.line,0):s}function f5(s,c){for(var f=[],p=0;p<c.length;p++)f[p]=on(s,c[p]);return f}var s1=function(s,c){this.state=s,this.lookAhead=c},xl=function(s,c,f,p){this.state=c,this.doc=s,this.line=f,this.maxLookAhead=p||0,this.baseTokens=null,this.baseTokenPos=1};xl.prototype.lookAhead=function(s){var c=this.doc.getLine(this.line+s);return c!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),c},xl.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var c=this.baseTokens[this.baseTokenPos+1];return{type:c&&c.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},xl.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xl.fromSaved=function(s,c,f){return c instanceof s1?new xl(s,xd(s.mode,c.state),f,c.lookAhead):new xl(s,xd(s.mode,c),f)},xl.prototype.save=function(s){var c=s!==!1?xd(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new s1(c,this.maxLookAhead):c};function h5(s,c,f,p){var m=[s.state.modeGen],x={};_5(s,c.text,s.doc.mode,f,function(N,Y){return m.push(N,Y)},x,p);for(var S=f.state,I=function(N){f.baseTokens=m;var Y=s.state.overlays[N],J=1,ge=0;f.state=!0,_5(s,c.text,Y.mode,f,function(de,Ae){for(var Pe=J;ge<de;){var Qe=m[J];Qe>de&&m.splice(J,1,de,m[J+1],Qe),J+=2,ge=Math.min(de,Qe)}if(Ae)if(Y.opaque)m.splice(Pe,J-Pe,de,"overlay "+Ae),J=Pe+2;else for(;Pe<J;Pe+=2){var rt=m[Pe+1];m[Pe+1]=(rt?rt+" ":"")+"overlay "+Ae}},x),f.state=S,f.baseTokens=null,f.baseTokenPos=1},F=0;F<s.state.overlays.length;++F)I(F);return{styles:m,classes:x.bgClass||x.textClass?x:null}}function m5(s,c,f){if(!c.styles||c.styles[0]!=s.state.modeGen){var p=Mh(s,Xn(c)),m=c.text.length>s.options.maxHighlightLength&&xd(s.doc.mode,p.state),x=h5(s,c,p);m&&(p.state=m),c.stateAfter=p.save(!m),c.styles=x.styles,x.classes?c.styleClasses=x.classes:c.styleClasses&&(c.styleClasses=null),f===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return c.styles}function Mh(s,c,f){var p=s.doc,m=s.display;if(!p.mode.startState)return new xl(p,!0,c);var x=qW(s,c,f),S=x>p.first&&Ot(p,x-1).stateAfter,I=S?xl.fromSaved(p,S,x):new xl(p,d5(p.mode),x);return p.iter(x,c,function(F){kw(s,F.text,I);var N=I.line;F.stateAfter=N==c-1||N%5==0||N>=m.viewFrom&&N<m.viewTo?I.save():null,I.nextLine()}),f&&(p.modeFrontier=I.line),I}function kw(s,c,f,p){var m=s.doc.mode,x=new vr(c,s.options.tabSize,f);for(x.start=x.pos=p||0,c==""&&g5(m,f.state);!x.eol();)Ew(m,x,f.state),x.start=x.pos}function g5(s,c){if(s.blankLine)return s.blankLine(c);if(s.innerMode){var f=Cw(s,c);if(f.mode.blankLine)return f.mode.blankLine(f.state)}}function Ew(s,c,f,p){for(var m=0;m<10;m++){p&&(p[0]=Cw(s,f).mode);var x=s.token(c,f);if(c.pos>c.start)return x}throw new Error("Mode "+s.name+" failed to advance stream.")}var v5=function(s,c,f){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=c||null,this.state=f};function y5(s,c,f,p){var m=s.doc,x=m.mode,S;c=on(m,c);var I=Ot(m,c.line),F=Mh(s,c.line,f),N=new vr(I.text,s.options.tabSize,F),Y;for(p&&(Y=[]);(p||N.pos<c.ch)&&!N.eol();)N.start=N.pos,S=Ew(x,N,F.state),p&&Y.push(new v5(N,S,xd(m.mode,F.state)));return p?Y:new v5(N,S,F.state)}function b5(s,c){if(s)for(;;){var f=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!f)break;s=s.slice(0,f.index)+s.slice(f.index+f[0].length);var p=f[1]?"bgClass":"textClass";c[p]==null?c[p]=f[2]:new RegExp("(?:^|\\s)"+f[2]+"(?:$|\\s)").test(c[p])||(c[p]+=" "+f[2])}return s}function _5(s,c,f,p,m,x,S){var I=f.flattenSpans;I==null&&(I=s.options.flattenSpans);var F=0,N=null,Y=new vr(c,s.options.tabSize,p),J,ge=s.options.addModeClass&&[null];for(c==""&&b5(g5(f,p.state),x);!Y.eol();){if(Y.pos>s.options.maxHighlightLength?(I=!1,S&&kw(s,c,p,Y.pos),Y.pos=c.length,J=null):J=b5(Ew(f,Y,p.state,ge),x),ge){var de=ge[0].name;de&&(J="m-"+(J?de+" "+J:de))}if(!I||N!=J){for(;F<Y.start;)F=Math.min(Y.start,F+5e3),m(F,N);N=J}Y.start=Y.pos}for(;F<Y.pos;){var Ae=Math.min(Y.pos,F+5e3);m(Ae,N),F=Ae}}function qW(s,c,f){for(var p,m,x=s.doc,S=f?-1:c-(s.doc.mode.innerMode?1e3:100),I=c;I>S;--I){if(I<=x.first)return x.first;var F=Ot(x,I-1),N=F.stateAfter;if(N&&(!f||I+(N instanceof s1?N.lookAhead:0)<=x.modeFrontier))return I;var Y=On(F.text,null,s.options.tabSize);(m==null||p>Y)&&(m=I-1,p=Y)}return m}function WW(s,c){if(s.modeFrontier=Math.min(s.modeFrontier,c),!(s.highlightFrontier<c-10)){for(var f=s.first,p=c-1;p>f;p--){var m=Ot(s,p).stateAfter;if(m&&(!(m instanceof s1)||p+m.lookAhead<c)){f=p+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,f)}}var x5=!1,ac=!1;function GW(){x5=!0}function KW(){ac=!0}function l1(s,c,f){this.marker=s,this.from=c,this.to=f}function Ah(s,c){if(s)for(var f=0;f<s.length;++f){var p=s[f];if(p.marker==c)return p}}function QW(s,c){for(var f,p=0;p<s.length;++p)s[p]!=c&&(f||(f=[])).push(s[p]);return f}function YW(s,c,f){var p=f&&window.WeakSet&&(f.markedSpans||(f.markedSpans=new WeakSet));p&&s.markedSpans&&p.has(s.markedSpans)?s.markedSpans.push(c):(s.markedSpans=s.markedSpans?s.markedSpans.concat([c]):[c],p&&p.add(s.markedSpans)),c.marker.attachLine(s)}function ZW(s,c,f){var p;if(s)for(var m=0;m<s.length;++m){var x=s[m],S=x.marker,I=x.from==null||(S.inclusiveLeft?x.from<=c:x.from<c);if(I||x.from==c&&S.type=="bookmark"&&(!f||!x.marker.insertLeft)){var F=x.to==null||(S.inclusiveRight?x.to>=c:x.to>c);(p||(p=[])).push(new l1(S,x.from,F?null:x.to))}}return p}function JW(s,c,f){var p;if(s)for(var m=0;m<s.length;++m){var x=s[m],S=x.marker,I=x.to==null||(S.inclusiveRight?x.to>=c:x.to>c);if(I||x.from==c&&S.type=="bookmark"&&(!f||x.marker.insertLeft)){var F=x.from==null||(S.inclusiveLeft?x.from<=c:x.from<c);(p||(p=[])).push(new l1(S,F?null:x.from-c,x.to==null?null:x.to-c))}}return p}function Iw(s,c){if(c.full)return null;var f=Ih(s,c.from.line)&&Ot(s,c.from.line).markedSpans,p=Ih(s,c.to.line)&&Ot(s,c.to.line).markedSpans;if(!f&&!p)return null;var m=c.from.ch,x=c.to.ch,S=rn(c.from,c.to)==0,I=ZW(f,m,S),F=JW(p,x,S),N=c.text.length==1,Y=nn(c.text).length+(N?m:0);if(I)for(var J=0;J<I.length;++J){var ge=I[J];if(ge.to==null){var de=Ah(F,ge.marker);de?N&&(ge.to=de.to==null?null:de.to+Y):ge.to=m}}if(F)for(var Ae=0;Ae<F.length;++Ae){var Pe=F[Ae];if(Pe.to!=null&&(Pe.to+=Y),Pe.from==null){var Qe=Ah(I,Pe.marker);Qe||(Pe.from=Y,N&&(I||(I=[])).push(Pe))}else Pe.from+=Y,N&&(I||(I=[])).push(Pe)}I&&(I=C5(I)),F&&F!=I&&(F=C5(F));var rt=[I];if(!N){var st=c.text.length-2,ot;if(st>0&&I)for(var ht=0;ht<I.length;++ht)I[ht].to==null&&(ot||(ot=[])).push(new l1(I[ht].marker,null,null));for(var Bt=0;Bt<st;++Bt)rt.push(ot);rt.push(F)}return rt}function C5(s){for(var c=0;c<s.length;++c){var f=s[c];f.from!=null&&f.from==f.to&&f.marker.clearWhenEmpty!==!1&&s.splice(c--,1)}return s.length?s:null}function XW(s,c,f){var p=null;if(s.iter(c.line,f.line+1,function(de){if(de.markedSpans)for(var Ae=0;Ae<de.markedSpans.length;++Ae){var Pe=de.markedSpans[Ae].marker;Pe.readOnly&&(!p||Dn(p,Pe)==-1)&&(p||(p=[])).push(Pe)}}),!p)return null;for(var m=[{from:c,to:f}],x=0;x<p.length;++x)for(var S=p[x],I=S.find(0),F=0;F<m.length;++F){var N=m[F];if(!(rn(N.to,I.from)<0||rn(N.from,I.to)>0)){var Y=[F,1],J=rn(N.from,I.from),ge=rn(N.to,I.to);(J<0||!S.inclusiveLeft&&!J)&&Y.push({from:N.from,to:I.from}),(ge>0||!S.inclusiveRight&&!ge)&&Y.push({from:I.to,to:N.to}),m.splice.apply(m,Y),F+=Y.length-3}}return m}function w5(s){var c=s.markedSpans;if(c){for(var f=0;f<c.length;++f)c[f].marker.detachLine(s);s.markedSpans=null}}function S5(s,c){if(c){for(var f=0;f<c.length;++f)c[f].marker.attachLine(s);s.markedSpans=c}}function c1(s){return s.inclusiveLeft?-1:0}function u1(s){return s.inclusiveRight?1:0}function Mw(s,c){var f=s.lines.length-c.lines.length;if(f!=0)return f;var p=s.find(),m=c.find(),x=rn(p.from,m.from)||c1(s)-c1(c);if(x)return-x;var S=rn(p.to,m.to)||u1(s)-u1(c);return S||c.id-s.id}function D5(s,c){var f=ac&&s.markedSpans,p;if(f)for(var m=void 0,x=0;x<f.length;++x)m=f[x],m.marker.collapsed&&(c?m.from:m.to)==null&&(!p||Mw(p,m.marker)<0)&&(p=m.marker);return p}function T5(s){return D5(s,!0)}function d1(s){return D5(s,!1)}function eG(s,c){var f=ac&&s.markedSpans,p;if(f)for(var m=0;m<f.length;++m){var x=f[m];x.marker.collapsed&&(x.from==null||x.from<c)&&(x.to==null||x.to>c)&&(!p||Mw(p,x.marker)<0)&&(p=x.marker)}return p}function k5(s,c,f,p,m){var x=Ot(s,c),S=ac&&x.markedSpans;if(S)for(var I=0;I<S.length;++I){var F=S[I];if(F.marker.collapsed){var N=F.marker.find(0),Y=rn(N.from,f)||c1(F.marker)-c1(m),J=rn(N.to,p)||u1(F.marker)-u1(m);if(!(Y>=0&&J<=0||Y<=0&&J>=0)&&(Y<=0&&(F.marker.inclusiveRight&&m.inclusiveLeft?rn(N.to,f)>=0:rn(N.to,f)>0)||Y>=0&&(F.marker.inclusiveRight&&m.inclusiveLeft?rn(N.from,p)<=0:rn(N.from,p)<0)))return!0}}}function Rs(s){for(var c;c=T5(s);)s=c.find(-1,!0).line;return s}function tG(s){for(var c;c=d1(s);)s=c.find(1,!0).line;return s}function nG(s){for(var c,f;c=d1(s);)s=c.find(1,!0).line,(f||(f=[])).push(s);return f}function Aw(s,c){var f=Ot(s,c),p=Rs(f);return f==p?c:Xn(p)}function E5(s,c){if(c>s.lastLine())return c;var f=Ot(s,c),p;if(!ou(s,f))return c;for(;p=d1(f);)f=p.find(1,!0).line;return Xn(f)+1}function ou(s,c){var f=ac&&c.markedSpans;if(f){for(var p=void 0,m=0;m<f.length;++m)if(p=f[m],!!p.marker.collapsed){if(p.from==null)return!0;if(!p.marker.widgetNode&&p.from==0&&p.marker.inclusiveLeft&&Fw(s,c,p))return!0}}}function Fw(s,c,f){if(f.to==null){var p=f.marker.find(1,!0);return Fw(s,p.line,Ah(p.line.markedSpans,f.marker))}if(f.marker.inclusiveRight&&f.to==c.text.length)return!0;for(var m=void 0,x=0;x<c.markedSpans.length;++x)if(m=c.markedSpans[x],m.marker.collapsed&&!m.marker.widgetNode&&m.from==f.to&&(m.to==null||m.to!=f.from)&&(m.marker.inclusiveLeft||f.marker.inclusiveRight)&&Fw(s,c,m))return!0}function sc(s){s=Rs(s);for(var c=0,f=s.parent,p=0;p<f.lines.length;++p){var m=f.lines[p];if(m==s)break;c+=m.height}for(var x=f.parent;x;f=x,x=f.parent)for(var S=0;S<x.children.length;++S){var I=x.children[S];if(I==f)break;c+=I.height}return c}function p1(s){if(s.height==0)return 0;for(var c=s.text.length,f,p=s;f=T5(p);){var m=f.find(0,!0);p=m.from.line,c+=m.from.ch-m.to.ch}for(p=s;f=d1(p);){var x=f.find(0,!0);c-=p.text.length-x.from.ch,p=x.to.line,c+=p.text.length-x.to.ch}return c}function Ow(s){var c=s.display,f=s.doc;c.maxLine=Ot(f,f.first),c.maxLineLength=p1(c.maxLine),c.maxLineChanged=!0,f.iter(function(p){var m=p1(p);m>c.maxLineLength&&(c.maxLineLength=m,c.maxLine=p)})}var cf=function(s,c,f){this.text=s,S5(this,c),this.height=f?f(this):1};cf.prototype.lineNo=function(){return Xn(this)},oc(cf);function iG(s,c,f,p){s.text=c,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),w5(s),S5(s,f);var m=p?p(s):1;m!=s.height&&_l(s,m)}function rG(s){s.parent=null,w5(s)}var oG={},aG={};function I5(s,c){if(!s||/^\s*$/.test(s))return null;var f=c.addModeClass?aG:oG;return f[s]||(f[s]=s.replace(/\S+/g,"cm-$&"))}function M5(s,c){var f=le("span",null,null,u?"padding-right: .1px":null),p={pre:le("pre",[f],"CodeMirror-line"),content:f,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};c.measure={};for(var m=0;m<=(c.rest?c.rest.length:0);m++){var x=m?c.rest[m-1]:c.line,S=void 0;p.pos=0,p.addToken=lG,BW(s.display.measure)&&(S=Ns(x,s.doc.direction))&&(p.addToken=uG(p.addToken,S)),p.map=[];var I=c!=s.display.externalMeasured&&Xn(x);dG(x,p,m5(s,x,I)),x.styleClasses&&(x.styleClasses.bgClass&&(p.bgClass=Ne(x.styleClasses.bgClass,p.bgClass||"")),x.styleClasses.textClass&&(p.textClass=Ne(x.styleClasses.textClass,p.textClass||""))),p.map.length==0&&p.map.push(0,0,p.content.appendChild(gw(s.display.measure))),m==0?(c.measure.map=p.map,c.measure.cache={}):((c.measure.maps||(c.measure.maps=[])).push(p.map),(c.measure.caches||(c.measure.caches=[])).push({}))}if(u){var F=p.content.lastChild;(/\bcm-tab\b/.test(F.className)||F.querySelector&&F.querySelector(".cm-tab"))&&(p.content.className="cm-tab-wrap-hack")}return Hi(s,"renderLine",s,c.line,p.pre),p.pre.className&&(p.textClass=Ne(p.pre.className,p.textClass||"")),p}function sG(s){var c=Z("span","\u2022","cm-invalidchar");return c.title="\\u"+s.charCodeAt(0).toString(16),c.setAttribute("aria-label",c.title),c}function lG(s,c,f,p,m,x,S){if(c){var I=s.splitSpaces?cG(c,s.trailingSpace):c,F=s.cm.state.specialChars,N=!1,Y;if(!F.test(c))s.col+=c.length,Y=document.createTextNode(I),s.map.push(s.pos,s.pos+c.length,Y),a&&l<9&&(N=!0),s.pos+=c.length;else{Y=document.createDocumentFragment();for(var J=0;;){F.lastIndex=J;var ge=F.exec(c),de=ge?ge.index-J:c.length-J;if(de){var Ae=document.createTextNode(I.slice(J,J+de));a&&l<9?Y.appendChild(Z("span",[Ae])):Y.appendChild(Ae),s.map.push(s.pos,s.pos+de,Ae),s.col+=de,s.pos+=de}if(!ge)break;J+=de+1;var Pe=void 0;if(ge[0]==" "){var Qe=s.cm.options.tabSize,rt=Qe-s.col%Qe;Pe=Y.appendChild(Z("span",So(rt),"cm-tab")),Pe.setAttribute("role","presentation"),Pe.setAttribute("cm-text"," "),s.col+=rt}else ge[0]=="\r"||ge[0]==`
`?(Pe=Y.appendChild(Z("span",ge[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Pe.setAttribute("cm-text",ge[0]),s.col+=1):(Pe=s.cm.options.specialCharPlaceholder(ge[0]),Pe.setAttribute("cm-text",ge[0]),a&&l<9?Y.appendChild(Z("span",[Pe])):Y.appendChild(Pe),s.col+=1);s.map.push(s.pos,s.pos+1,Pe),s.pos++}}if(s.trailingSpace=I.charCodeAt(c.length-1)==32,f||p||m||N||x||S){var st=f||"";p&&(st+=p),m&&(st+=m);var ot=Z("span",[Y],st,x);if(S)for(var ht in S)S.hasOwnProperty(ht)&&ht!="style"&&ht!="class"&&ot.setAttribute(ht,S[ht]);return s.content.appendChild(ot)}s.content.appendChild(Y)}}function cG(s,c){if(s.length>1&&!/ /.test(s))return s;for(var f=c,p="",m=0;m<s.length;m++){var x=s.charAt(m);x==" "&&f&&(m==s.length-1||s.charCodeAt(m+1)==32)&&(x="\xA0"),p+=x,f=x==" "}return p}function uG(s,c){return function(f,p,m,x,S,I,F){m=m?m+" cm-force-border":"cm-force-border";for(var N=f.pos,Y=N+p.length;;){for(var J=void 0,ge=0;ge<c.length&&(J=c[ge],!(J.to>N&&J.from<=N));ge++);if(J.to>=Y)return s(f,p,m,x,S,I,F);s(f,p.slice(0,J.to-N),m,x,null,I,F),x=null,p=p.slice(J.to-N),N=J.to}}}function A5(s,c,f,p){var m=!p&&f.widgetNode;m&&s.map.push(s.pos,s.pos+c,m),!p&&s.cm.display.input.needsContentAttribute&&(m||(m=s.content.appendChild(document.createElement("span"))),m.setAttribute("cm-marker",f.id)),m&&(s.cm.display.input.setUneditable(m),s.content.appendChild(m)),s.pos+=c,s.trailingSpace=!1}function dG(s,c,f){var p=s.markedSpans,m=s.text,x=0;if(!p){for(var S=1;S<f.length;S+=2)c.addToken(c,m.slice(x,x=f[S]),I5(f[S+1],c.cm.options));return}for(var I=m.length,F=0,N=1,Y="",J,ge,de=0,Ae,Pe,Qe,rt,st;;){if(de==F){Ae=Pe=Qe=ge="",st=null,rt=null,de=1/0;for(var ot=[],ht=void 0,Bt=0;Bt<p.length;++Bt){var Nt=p[Bt],mn=Nt.marker;if(mn.type=="bookmark"&&Nt.from==F&&mn.widgetNode)ot.push(mn);else if(Nt.from<=F&&(Nt.to==null||Nt.to>F||mn.collapsed&&Nt.to==F&&Nt.from==F)){if(Nt.to!=null&&Nt.to!=F&&de>Nt.to&&(de=Nt.to,Pe=""),mn.className&&(Ae+=" "+mn.className),mn.css&&(ge=(ge?ge+";":"")+mn.css),mn.startStyle&&Nt.from==F&&(Qe+=" "+mn.startStyle),mn.endStyle&&Nt.to==de&&(ht||(ht=[])).push(mn.endStyle,Nt.to),mn.title&&((st||(st={})).title=mn.title),mn.attributes)for(var di in mn.attributes)(st||(st={}))[di]=mn.attributes[di];mn.collapsed&&(!rt||Mw(rt.marker,mn)<0)&&(rt=Nt)}else Nt.from>F&&de>Nt.from&&(de=Nt.from)}if(ht)for(var Pr=0;Pr<ht.length;Pr+=2)ht[Pr+1]==de&&(Pe+=" "+ht[Pr]);if(!rt||rt.from==F)for(var ji=0;ji<ot.length;++ji)A5(c,0,ot[ji]);if(rt&&(rt.from||0)==F){if(A5(c,(rt.to==null?I+1:rt.to)-F,rt.marker,rt.from==null),rt.to==null)return;rt.to==F&&(rt=!1)}}if(F>=I)break;for(var ha=Math.min(I,de);;){if(Y){var Wo=F+Y.length;if(!rt){var yr=Wo>ha?Y.slice(0,ha-F):Y;c.addToken(c,yr,J?J+Ae:Ae,Qe,F+yr.length==de?Pe:"",ge,st)}if(Wo>=ha){Y=Y.slice(ha-F),F=ha;break}F=Wo,Qe=""}Y=m.slice(x,x=f[N++]),J=I5(f[N++],c.cm.options)}}}function F5(s,c,f){this.line=c,this.rest=nG(c),this.size=this.rest?Xn(nn(this.rest))-f+1:1,this.node=this.text=null,this.hidden=ou(s,c)}function f1(s,c,f){for(var p=[],m,x=c;x<f;x=m){var S=new F5(s.doc,Ot(s.doc,x),x);m=x+S.size,p.push(S)}return p}var uf=null;function pG(s){uf?uf.ops.push(s):s.ownsGroup=uf={ops:[s],delayedCallbacks:[]}}function fG(s){var c=s.delayedCallbacks,f=0;do{for(;f<c.length;f++)c[f].call(null);for(var p=0;p<s.ops.length;p++){var m=s.ops[p];if(m.cursorActivityHandlers)for(;m.cursorActivityCalled<m.cursorActivityHandlers.length;)m.cursorActivityHandlers[m.cursorActivityCalled++].call(null,m.cm)}}while(f<c.length)}function hG(s,c){var f=s.ownsGroup;if(f)try{fG(f)}finally{uf=null,c(f)}}var Fh=null;function Rr(s,c){var f=nf(s,c);if(f.length){var p=Array.prototype.slice.call(arguments,2),m;uf?m=uf.delayedCallbacks:Fh?m=Fh:(m=Fh=[],setTimeout(mG,0));for(var x=function(I){m.push(function(){return f[I].apply(null,p)})},S=0;S<f.length;++S)x(S)}}function mG(){var s=Fh;Fh=null;for(var c=0;c<s.length;++c)s[c]()}function O5(s,c,f,p){for(var m=0;m<c.changes.length;m++){var x=c.changes[m];x=="text"?vG(s,c):x=="gutter"?R5(s,c,f,p):x=="class"?Nw(s,c):x=="widget"&&yG(s,c,p)}c.changes=null}function Oh(s){return s.node==s.text&&(s.node=Z("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),a&&l<8&&(s.node.style.zIndex=2)),s.node}function gG(s,c){var f=c.bgClass?c.bgClass+" "+(c.line.bgClass||""):c.line.bgClass;if(f&&(f+=" CodeMirror-linebackground"),c.background)f?c.background.className=f:(c.background.parentNode.removeChild(c.background),c.background=null);else if(f){var p=Oh(c);c.background=p.insertBefore(Z("div",null,f),p.firstChild),s.display.input.setUneditable(c.background)}}function N5(s,c){var f=s.display.externalMeasured;return f&&f.line==c.line?(s.display.externalMeasured=null,c.measure=f.measure,f.built):M5(s,c)}function vG(s,c){var f=c.text.className,p=N5(s,c);c.text==c.node&&(c.node=p.pre),c.text.parentNode.replaceChild(p.pre,c.text),c.text=p.pre,p.bgClass!=c.bgClass||p.textClass!=c.textClass?(c.bgClass=p.bgClass,c.textClass=p.textClass,Nw(s,c)):f&&(c.text.className=f)}function Nw(s,c){gG(s,c),c.line.wrapClass?Oh(c).className=c.line.wrapClass:c.node!=c.text&&(c.node.className="");var f=c.textClass?c.textClass+" "+(c.line.textClass||""):c.line.textClass;c.text.className=f||""}function R5(s,c,f,p){if(c.gutter&&(c.node.removeChild(c.gutter),c.gutter=null),c.gutterBackground&&(c.node.removeChild(c.gutterBackground),c.gutterBackground=null),c.line.gutterClass){var m=Oh(c);c.gutterBackground=Z("div",null,"CodeMirror-gutter-background "+c.line.gutterClass,"left: "+(s.options.fixedGutter?p.fixedPos:-p.gutterTotalWidth)+"px; width: "+p.gutterTotalWidth+"px"),s.display.input.setUneditable(c.gutterBackground),m.insertBefore(c.gutterBackground,c.text)}var x=c.line.gutterMarkers;if(s.options.lineNumbers||x){var S=Oh(c),I=c.gutter=Z("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?p.fixedPos:-p.gutterTotalWidth)+"px");if(I.setAttribute("aria-hidden","true"),s.display.input.setUneditable(I),S.insertBefore(I,c.text),c.line.gutterClass&&(I.className+=" "+c.line.gutterClass),s.options.lineNumbers&&(!x||!x["CodeMirror-linenumbers"])&&(c.lineNumber=I.appendChild(Z("div",Sw(s.options,f),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+p.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),x)for(var F=0;F<s.display.gutterSpecs.length;++F){var N=s.display.gutterSpecs[F].className,Y=x.hasOwnProperty(N)&&x[N];Y&&I.appendChild(Z("div",[Y],"CodeMirror-gutter-elt","left: "+p.gutterLeft[N]+"px; width: "+p.gutterWidth[N]+"px"))}}}function yG(s,c,f){c.alignable&&(c.alignable=null);for(var p=ie("CodeMirror-linewidget"),m=c.node.firstChild,x=void 0;m;m=x)x=m.nextSibling,p.test(m.className)&&c.node.removeChild(m);L5(s,c,f)}function bG(s,c,f,p){var m=N5(s,c);return c.text=c.node=m.pre,m.bgClass&&(c.bgClass=m.bgClass),m.textClass&&(c.textClass=m.textClass),Nw(s,c),R5(s,c,f,p),L5(s,c,p),c.node}function L5(s,c,f){if(B5(s,c.line,c,f,!0),c.rest)for(var p=0;p<c.rest.length;p++)B5(s,c.rest[p],c,f,!1)}function B5(s,c,f,p,m){if(c.widgets)for(var x=Oh(f),S=0,I=c.widgets;S<I.length;++S){var F=I[S],N=Z("div",[F.node],"CodeMirror-linewidget"+(F.className?" "+F.className:""));F.handleMouseEvents||N.setAttribute("cm-ignore-events","true"),_G(F,N,f,p),s.display.input.setUneditable(N),m&&F.above?x.insertBefore(N,f.gutter||f.text):x.appendChild(N),Rr(F,"redraw")}}function _G(s,c,f,p){if(s.noHScroll){(f.alignable||(f.alignable=[])).push(c);var m=p.wrapperWidth;c.style.left=p.fixedPos+"px",s.coverGutter||(m-=p.gutterTotalWidth,c.style.paddingLeft=p.gutterTotalWidth+"px"),c.style.width=m+"px"}s.coverGutter&&(c.style.zIndex=5,c.style.position="relative",s.noHScroll||(c.style.marginLeft=-p.gutterTotalWidth+"px"))}function Nh(s){if(s.height!=null)return s.height;var c=s.doc.cm;if(!c)return 0;if(!Fe(document.body,s.node)){var f="position: relative;";s.coverGutter&&(f+="margin-left: -"+c.display.gutters.offsetWidth+"px;"),s.noHScroll&&(f+="width: "+c.display.wrapper.clientWidth+"px;"),Ee(c.display.measure,Z("div",[s.node],null,f))}return s.height=s.node.parentNode.offsetHeight}function lc(s,c){for(var f=of(c);f!=s.wrapper;f=f.parentNode)if(!f||f.nodeType==1&&f.getAttribute("cm-ignore-events")=="true"||f.parentNode==s.sizer&&f!=s.mover)return!0}function h1(s){return s.lineSpace.offsetTop}function Rw(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function P5(s){if(s.cachedPaddingH)return s.cachedPaddingH;var c=Ee(s.measure,Z("pre","x","CodeMirror-line-like")),f=window.getComputedStyle?window.getComputedStyle(c):c.currentStyle,p={left:parseInt(f.paddingLeft),right:parseInt(f.paddingRight)};return!isNaN(p.left)&&!isNaN(p.right)&&(s.cachedPaddingH=p),p}function Cl(s){return Rn-s.display.nativeBarWidth}function Sd(s){return s.display.scroller.clientWidth-Cl(s)-s.display.barWidth}function Lw(s){return s.display.scroller.clientHeight-Cl(s)-s.display.barHeight}function xG(s,c,f){var p=s.options.lineWrapping,m=p&&Sd(s);if(!c.measure.heights||p&&c.measure.width!=m){var x=c.measure.heights=[];if(p){c.measure.width=m;for(var S=c.text.firstChild.getClientRects(),I=0;I<S.length-1;I++){var F=S[I],N=S[I+1];Math.abs(F.bottom-N.bottom)>2&&x.push((F.bottom+N.top)/2-f.top)}}x.push(f.bottom-f.top)}}function V5(s,c,f){if(s.line==c)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var p=0;p<s.rest.length;p++)if(s.rest[p]==c)return{map:s.measure.maps[p],cache:s.measure.caches[p]};for(var m=0;m<s.rest.length;m++)if(Xn(s.rest[m])>f)return{map:s.measure.maps[m],cache:s.measure.caches[m],before:!0}}}function CG(s,c){c=Rs(c);var f=Xn(c),p=s.display.externalMeasured=new F5(s.doc,c,f);p.lineN=f;var m=p.built=M5(s,p);return p.text=m.pre,Ee(s.display.lineMeasure,m.pre),p}function $5(s,c,f,p){return wl(s,df(s,c),f,p)}function Bw(s,c){if(c>=s.display.viewFrom&&c<s.display.viewTo)return s.display.view[kd(s,c)];var f=s.display.externalMeasured;if(f&&c>=f.lineN&&c<f.lineN+f.size)return f}function df(s,c){var f=Xn(c),p=Bw(s,f);p&&!p.text?p=null:p&&p.changes&&(O5(s,p,f,Hw(s)),s.curOp.forceUpdate=!0),p||(p=CG(s,c));var m=V5(p,c,f);return{line:c,view:p,rect:null,map:m.map,cache:m.cache,before:m.before,hasHeights:!1}}function wl(s,c,f,p,m){c.before&&(f=-1);var x=f+(p||""),S;return c.cache.hasOwnProperty(x)?S=c.cache[x]:(c.rect||(c.rect=c.view.text.getBoundingClientRect()),c.hasHeights||(xG(s,c.view,c.rect),c.hasHeights=!0),S=SG(s,c,f,p),S.bogus||(c.cache[x]=S)),{left:S.left,right:S.right,top:m?S.rtop:S.top,bottom:m?S.rbottom:S.bottom}}var z5={left:0,right:0,top:0,bottom:0};function H5(s,c,f){for(var p,m,x,S,I,F,N=0;N<s.length;N+=3)if(I=s[N],F=s[N+1],c<I?(m=0,x=1,S="left"):c<F?(m=c-I,x=m+1):(N==s.length-3||c==F&&s[N+3]>c)&&(x=F-I,m=x-1,c>=F&&(S="right")),m!=null){if(p=s[N+2],I==F&&f==(p.insertLeft?"left":"right")&&(S=f),f=="left"&&m==0)for(;N&&s[N-2]==s[N-3]&&s[N-1].insertLeft;)p=s[(N-=3)+2],S="left";if(f=="right"&&m==F-I)for(;N<s.length-3&&s[N+3]==s[N+4]&&!s[N+5].insertLeft;)p=s[(N+=3)+2],S="right";break}return{node:p,start:m,end:x,collapse:S,coverStart:I,coverEnd:F}}function wG(s,c){var f=z5;if(c=="left")for(var p=0;p<s.length&&(f=s[p]).left==f.right;p++);else for(var m=s.length-1;m>=0&&(f=s[m]).left==f.right;m--);return f}function SG(s,c,f,p){var m=H5(c.map,f,p),x=m.node,S=m.start,I=m.end,F=m.collapse,N;if(x.nodeType==3){for(var Y=0;Y<4;Y++){for(;S&&Fs(c.line.text.charAt(m.coverStart+S));)--S;for(;m.coverStart+I<m.coverEnd&&Fs(c.line.text.charAt(m.coverStart+I));)++I;if(a&&l<9&&S==0&&I==m.coverEnd-m.coverStart?N=x.parentNode.getBoundingClientRect():N=wG(De(x,S,I).getClientRects(),p),N.left||N.right||S==0)break;I=S,S=S-1,F="right"}a&&l<11&&(N=DG(s.display.measure,N))}else{S>0&&(F=p="right");var J;s.options.lineWrapping&&(J=x.getClientRects()).length>1?N=J[p=="right"?J.length-1:0]:N=x.getBoundingClientRect()}if(a&&l<9&&!S&&(!N||!N.left&&!N.right)){var ge=x.parentNode.getClientRects()[0];ge?N={left:ge.left,right:ge.left+ff(s.display),top:ge.top,bottom:ge.bottom}:N=z5}for(var de=N.top-c.rect.top,Ae=N.bottom-c.rect.top,Pe=(de+Ae)/2,Qe=c.view.measure.heights,rt=0;rt<Qe.length-1&&!(Pe<Qe[rt]);rt++);var st=rt?Qe[rt-1]:0,ot=Qe[rt],ht={left:(F=="right"?N.right:N.left)-c.rect.left,right:(F=="left"?N.left:N.right)-c.rect.left,top:st,bottom:ot};return!N.left&&!N.right&&(ht.bogus=!0),s.options.singleCursorHeightPerLine||(ht.rtop=de,ht.rbottom=Ae),ht}function DG(s,c){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!$W(s))return c;var f=screen.logicalXDPI/screen.deviceXDPI,p=screen.logicalYDPI/screen.deviceYDPI;return{left:c.left*f,right:c.right*f,top:c.top*p,bottom:c.bottom*p}}function j5(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var c=0;c<s.rest.length;c++)s.measure.caches[c]={}}function U5(s){s.display.externalMeasure=null,me(s.display.lineMeasure);for(var c=0;c<s.display.view.length;c++)j5(s.display.view[c])}function Rh(s){U5(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function q5(s){return h&&T?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function W5(s){return h&&T?-(s.body.getBoundingClientRect().top-parseInt(getComputedStyle(s.body).marginTop)):s.defaultView.pageYOffset||(s.documentElement||s.body).scrollTop}function Pw(s){var c=Rs(s),f=c.widgets,p=0;if(f)for(var m=0;m<f.length;++m)f[m].above&&(p+=Nh(f[m]));return p}function m1(s,c,f,p,m){if(!m){var x=Pw(c);f.top+=x,f.bottom+=x}if(p=="line")return f;p||(p="local");var S=sc(c);if(p=="local"?S+=h1(s.display):S-=s.display.viewOffset,p=="page"||p=="window"){var I=s.display.lineSpace.getBoundingClientRect();S+=I.top+(p=="window"?0:W5(L(s)));var F=I.left+(p=="window"?0:q5(L(s)));f.left+=F,f.right+=F}return f.top+=S,f.bottom+=S,f}function G5(s,c,f){if(f=="div")return c;var p=c.left,m=c.top;if(f=="page")p-=q5(L(s)),m-=W5(L(s));else if(f=="local"||!f){var x=s.display.sizer.getBoundingClientRect();p+=x.left,m+=x.top}var S=s.display.lineSpace.getBoundingClientRect();return{left:p-S.left,top:m-S.top}}function g1(s,c,f,p,m){return p||(p=Ot(s.doc,c.line)),m1(s,p,$5(s,p,c.ch,m),f)}function Ls(s,c,f,p,m,x){p=p||Ot(s.doc,c.line),m||(m=df(s,p));function S(Ae,Pe){var Qe=wl(s,m,Ae,Pe?"right":"left",x);return Pe?Qe.left=Qe.right:Qe.right=Qe.left,m1(s,p,Qe,f)}var I=Ns(p,s.doc.direction),F=c.ch,N=c.sticky;if(F>=p.text.length?(F=p.text.length,N="before"):F<=0&&(F=0,N="after"),!I)return S(N=="before"?F-1:F,N=="before");function Y(Ae,Pe,Qe){var rt=I[Pe],st=rt.level==1;return S(Qe?Ae-1:Ae,st!=Qe)}var J=ru(I,F,N),ge=iu,de=Y(F,J,N=="before");return ge!=null&&(de.other=Y(F,ge,N!="before")),de}function K5(s,c){var f=0;c=on(s.doc,c),s.options.lineWrapping||(f=ff(s.display)*c.ch);var p=Ot(s.doc,c.line),m=sc(p)+h1(s.display);return{left:f,right:f,top:m,bottom:m+p.height}}function Vw(s,c,f,p,m){var x=We(s,c,f);return x.xRel=m,p&&(x.outside=p),x}function $w(s,c,f){var p=s.doc;if(f+=s.display.viewOffset,f<0)return Vw(p.first,0,null,-1,-1);var m=wd(p,f),x=p.first+p.size-1;if(m>x)return Vw(p.first+p.size-1,Ot(p,x).text.length,null,1,1);c<0&&(c=0);for(var S=Ot(p,m);;){var I=TG(s,S,m,c,f),F=eG(S,I.ch+(I.xRel>0||I.outside>0?1:0));if(!F)return I;var N=F.find(1);if(N.line==m)return N;S=Ot(p,m=N.line)}}function Q5(s,c,f,p){p-=Pw(c);var m=c.text.length,x=Os(function(S){return wl(s,f,S-1).bottom<=p},m,0);return m=Os(function(S){return wl(s,f,S).top>p},x,m),{begin:x,end:m}}function Y5(s,c,f,p){f||(f=df(s,c));var m=m1(s,c,wl(s,f,p),"line").top;return Q5(s,c,f,m)}function zw(s,c,f,p){return s.bottom<=f?!1:s.top>f?!0:(p?s.left:s.right)>c}function TG(s,c,f,p,m){m-=sc(c);var x=df(s,c),S=Pw(c),I=0,F=c.text.length,N=!0,Y=Ns(c,s.doc.direction);if(Y){var J=(s.options.lineWrapping?EG:kG)(s,c,f,x,Y,p,m);N=J.level!=1,I=N?J.from:J.to-1,F=N?J.to:J.from-1}var ge=null,de=null,Ae=Os(function(Bt){var Nt=wl(s,x,Bt);return Nt.top+=S,Nt.bottom+=S,zw(Nt,p,m,!1)?(Nt.top<=m&&Nt.left<=p&&(ge=Bt,de=Nt),!0):!1},I,F),Pe,Qe,rt=!1;if(de){var st=p-de.left<de.right-p,ot=st==N;Ae=ge+(ot?0:1),Qe=ot?"after":"before",Pe=st?de.left:de.right}else{!N&&(Ae==F||Ae==I)&&Ae++,Qe=Ae==0?"after":Ae==c.text.length?"before":wl(s,x,Ae-(N?1:0)).bottom+S<=m==N?"after":"before";var ht=Ls(s,We(f,Ae,Qe),"line",c,x);Pe=ht.left,rt=m<ht.top?-1:m>=ht.bottom?1:0}return Ae=da(c.text,Ae,1),Vw(f,Ae,Qe,rt,p-Pe)}function kG(s,c,f,p,m,x,S){var I=Os(function(J){var ge=m[J],de=ge.level!=1;return zw(Ls(s,We(f,de?ge.to:ge.from,de?"before":"after"),"line",c,p),x,S,!0)},0,m.length-1),F=m[I];if(I>0){var N=F.level!=1,Y=Ls(s,We(f,N?F.from:F.to,N?"after":"before"),"line",c,p);zw(Y,x,S,!0)&&Y.top>S&&(F=m[I-1])}return F}function EG(s,c,f,p,m,x,S){var I=Q5(s,c,p,S),F=I.begin,N=I.end;/\s/.test(c.text.charAt(N-1))&&N--;for(var Y=null,J=null,ge=0;ge<m.length;ge++){var de=m[ge];if(!(de.from>=N||de.to<=F)){var Ae=de.level!=1,Pe=wl(s,p,Ae?Math.min(N,de.to)-1:Math.max(F,de.from)).right,Qe=Pe<x?x-Pe+1e9:Pe-x;(!Y||J>Qe)&&(Y=de,J=Qe)}}return Y||(Y=m[m.length-1]),Y.from<F&&(Y={from:F,to:Y.to,level:Y.level}),Y.to>N&&(Y={from:Y.from,to:N,level:Y.level}),Y}var Dd;function pf(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(Dd==null){Dd=Z("pre",null,"CodeMirror-line-like");for(var c=0;c<49;++c)Dd.appendChild(document.createTextNode("x")),Dd.appendChild(Z("br"));Dd.appendChild(document.createTextNode("x"))}Ee(s.measure,Dd);var f=Dd.offsetHeight/50;return f>3&&(s.cachedTextHeight=f),me(s.measure),f||1}function ff(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var c=Z("span","xxxxxxxxxx"),f=Z("pre",[c],"CodeMirr