@hpcc-js/codemirror 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3318 -3371
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +6 -6
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/index.umd.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.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 .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.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}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.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-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,.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,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.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}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-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:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.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,.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:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"▾"}.CodeMirror-foldgutter-folded:after{content:"▸"}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.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 #0003;border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.codemirror_Editor{border-style:solid;border-width:1px;border-color:#d3d3d3}.codemirror_Editor .cm-marked-text{background-color:#ff0}.codemirror_Editor .cm-marked-info,.codemirror_Editor .cm-marked-error,.codemirror_Editor .cm-marked-warning{display:inline-block;position:relative;background-position:left bottom;background-repeat:repeat-x}.codemirror_Editor .cm-marked-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHElEQVQYV2NkgIP//xkYGBkZIXwIB0SDCQgHAgDEXAgCKU2DPwAAAABJRU5ErkJggg==)}.codemirror_Editor .cm-marked-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/DAz/GRkYGBlBfBgHTMM4MJUAzFoIAuwf4BEAAAAASUVORK5CYII=)}.codemirror_Editor .cm-marked-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/Sxn+M0YzMDKC+DAOmIZxYCoBKQkLp8ga+UwAAAAASUVORK5CYII=)}.codemirror_ECLEditor .cm-s-default span.cm-comment{color:green}.codemirror_ECLEditor .cm-s-default span.cm-keyword{color:#00f}.codemirror_ECLEditor .cm-s-default span.cm-variable{font-weight:700;color:navy}.codemirror_ECLEditor .cm-s-default span.cm-variable-2,.codemirror_ECLEditor .cm-s-default span.cm-variable-3{color:maroon}.codemirror_ECLEditor .cm-s-default span.cm-builtin{color:purple}.codemirror_ECLEditor .cm-s-default span.cm-string{color:gray}.codemirror_ECLEditor .cm-s-default span.cm-number,.cm-s-default span.cm-atom{color:#000}.codemirror_ECLEditor .cm-s-default span.cm-meta{color:#004080}.codemirror_ECLEditor .ErrorLine{background:#c00!important;color:#fff!important}.codemirror_ECLEditor .WarningLine{background:#ff9!important}.codemirror_ECLEditor .highlightline{background:#e8f2ff!important}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
(function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("@hpcc-js/common")):typeof define=="function"&&define.amd?define(["exports","@hpcc-js/common"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global["@hpcc-js/codemirror"]={},global["@hpcc-js/common"]))})(this,function(exports2,common){"use strict";var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);const PKG_NAME="@hpcc-js/codemirror",PKG_VERSION="3.1.0",BUILD_VERSION="3.2.1";function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var css={exports:{}},codemirror$1={exports:{}},codemirror=codemirror$1.exports,hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(module2,exports3){(function(global,factory){module2.exports=factory()})(codemirror,function(){var userAgent=navigator.userAgent,platform=navigator.platform,gecko=/gecko\/\d/i.test(userAgent),ie_upto10=/MSIE \d/.test(userAgent),ie_11up=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent),edge=/Edge\/(\d+)/.exec(userAgent),ie=ie_upto10||ie_11up||edge,ie_version=ie&&(ie_upto10?document.documentMode||6:+(edge||ie_11up)[1]),webkit=!edge&&/WebKit\//.test(userAgent),qtwebkit=webkit&&/Qt\/\d+\.\d+/.test(userAgent),chrome=!edge&&/Chrome\/(\d+)/.exec(userAgent),chrome_version=chrome&&+chrome[1],presto=/Opera\//.test(userAgent),safari=/Apple Computer/.test(navigator.vendor),mac_geMountainLion=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent),phantom=/PhantomJS/.test(userAgent),ios=safari&&(/Mobile\/\w+/.test(userAgent)||navigator.maxTouchPoints>2),android=/Android/.test(userAgent),mobile=ios||android||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent),mac=ios||/Mac/.test(platform),chromeOS=/\bCrOS\b/.test(userAgent),windows=/win/i.test(platform),presto_version=presto&&userAgent.match(/Version\/(\d*\.\d*)/);presto_version&&(presto_version=Number(presto_version[1])),presto_version&&presto_version>=15&&(presto=!1,webkit=!0);var flipCtrlCmd=mac&&(qtwebkit||presto&&(presto_version==null||presto_version<12.11)),captureRightClick=gecko||ie&&ie_version>=9;function classTest(cls){return new RegExp("(^|\\s)"+cls+"(?:$|\\s)\\s*")}var rmClass=function(node,cls){var current=node.className,match=classTest(cls).exec(current);if(match){var after=current.slice(match.index+match[0].length);node.className=current.slice(0,match.index)+(after?match[1]+after:"")}};function removeChildren(e){for(var count=e.childNodes.length;count>0;--count)e.removeChild(e.firstChild);return e}function removeChildrenAndAdd(parent,e){return removeChildren(parent).appendChild(e)}function elt(tag,content,className,style){var e=document.createElement(tag);if(className&&(e.className=className),style&&(e.style.cssText=style),typeof content=="string")e.appendChild(document.createTextNode(content));else if(content)for(var i2=0;i2<content.length;++i2)e.appendChild(content[i2]);return e}function eltP(tag,content,className,style){var e=elt(tag,content,className,style);return e.setAttribute("role","presentation"),e}var range;document.createRange?range=function(node,start,end,endNode){var r=document.createRange();return r.setEnd(endNode||node,end),r.setStart(node,start),r}:range=function(node,start,end){var r=document.body.createTextRange();try{r.moveToElementText(node.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",end),r.moveStart("character",start),r};function contains(parent,child){if(child.nodeType==3&&(child=child.parentNode),parent.contains)return parent.contains(child);do if(child.nodeType==11&&(child=child.host),child==parent)return!0;while(child=child.parentNode)}function activeElt(rootNode2){var doc2=rootNode2.ownerDocument||rootNode2,activeElement;try{activeElement=rootNode2.activeElement}catch{activeElement=doc2.body||null}for(;activeElement&&activeElement.shadowRoot&&activeElement.shadowRoot.activeElement;)activeElement=activeElement.shadowRoot.activeElement;return activeElement}function addClass(node,cls){var current=node.className;classTest(cls).test(current)||(node.className+=(current?" ":"")+cls)}function joinClasses(a,b){for(var as=a.split(" "),i2=0;i2<as.length;i2++)as[i2]&&!classTest(as[i2]).test(b)&&(b+=" "+as[i2]);return b}var selectInput=function(node){node.select()};ios?selectInput=function(node){node.selectionStart=0,node.selectionEnd=node.value.length}:ie&&(selectInput=function(node){try{node.select()}catch{}});function doc(cm){return cm.display.wrapper.ownerDocument}function root(cm){return rootNode(cm.display.wrapper)}function rootNode(element){return element.getRootNode?element.getRootNode():element.ownerDocument}function win(cm){return doc(cm).defaultView}function bind(f){var args=Array.prototype.slice.call(arguments,1);return function(){return f.apply(null,args)}}function copyObj(obj,target,overwrite){target||(target={});for(var prop2 in obj)obj.hasOwnProperty(prop2)&&(overwrite!==!1||!target.hasOwnProperty(prop2))&&(target[prop2]=obj[prop2]);return target}function countColumn(string,end,tabSize,startIndex,startValue){end==null&&(end=string.search(/[^\s\u00a0]/),end==-1&&(end=string.length));for(var i2=startIndex||0,n=startValue||0;;){var nextTab=string.indexOf(" ",i2);if(nextTab<0||nextTab>=end)return n+(end-i2);n+=nextTab-i2,n+=tabSize-n%tabSize,i2=nextTab+1}}var Delayed=function(){this.id=null,this.f=null,this.time=0,this.handler=bind(this.onTimeout,this)};Delayed.prototype.onTimeout=function(self2){self2.id=0,self2.time<=+new Date?self2.f():setTimeout(self2.handler,self2.time-+new Date)},Delayed.prototype.set=function(ms,f){this.f=f;var time=+new Date+ms;(!this.id||time<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ms),this.time=time)};function indexOf(array,elt2){for(var i2=0;i2<array.length;++i2)if(array[i2]==elt2)return i2;return-1}var scrollerGap=50,Pass={toString:function(){return"CodeMirror.Pass"}},sel_dontScroll={scroll:!1},sel_mouse={origin:"*mouse"},sel_move={origin:"+move"};function findColumn(string,goal,tabSize){for(var pos=0,col=0;;){var nextTab=string.indexOf(" ",pos);nextTab==-1&&(nextTab=string.length);var skipped=nextTab-pos;if(nextTab==string.length||col+skipped>=goal)return pos+Math.min(skipped,goal-col);if(col+=nextTab-pos,col+=tabSize-col%tabSize,pos=nextTab+1,col>=goal)return pos}}var spaceStrs=[""];function spaceStr(n){for(;spaceStrs.length<=n;)spaceStrs.push(lst(spaceStrs)+" ");return spaceStrs[n]}function lst(arr){return arr[arr.length-1]}function map(array,f){for(var out=[],i2=0;i2<array.length;i2++)out[i2]=f(array[i2],i2);return out}function insertSorted(array,value,score){for(var pos=0,priority=score(value);pos<array.length&&score(array[pos])<=priority;)pos++;array.splice(pos,0,value)}function nothing(){}function createObj(base,props){var inst;return Object.create?inst=Object.create(base):(nothing.prototype=base,inst=new nothing),props&©Obj(props,inst),inst}var nonASCIISingleCaseWordChar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function isWordCharBasic(ch){return/\w/.test(ch)||ch>""&&(ch.toUpperCase()!=ch.toLowerCase()||nonASCIISingleCaseWordChar.test(ch))}function isWordChar(ch,helper){return helper?helper.source.indexOf("\\w")>-1&&isWordCharBasic(ch)?!0:helper.test(ch):isWordCharBasic(ch)}function isEmpty(obj){for(var n in obj)if(obj.hasOwnProperty(n)&&obj[n])return!1;return!0}var extendingChars=/[\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 isExtendingChar(ch){return ch.charCodeAt(0)>=768&&extendingChars.test(ch)}function skipExtendingChars(str,pos,dir){for(;(dir<0?pos>0:pos<str.length)&&isExtendingChar(str.charAt(pos));)pos+=dir;return pos}function findFirst(pred,from,to){for(var dir=from>to?-1:1;;){if(from==to)return from;var midF=(from+to)/2,mid=dir<0?Math.ceil(midF):Math.floor(midF);if(mid==from)return pred(mid)?from:to;pred(mid)?to=mid:from=mid+dir}}function iterateBidiSections(order,from,to,f){if(!order)return f(from,to,"ltr",0);for(var found=!1,i2=0;i2<order.length;++i2){var part=order[i2];(part.from<to&&part.to>from||from==to&&part.to==from)&&(f(Math.max(part.from,from),Math.min(part.to,to),part.level==1?"rtl":"ltr",i2),found=!0)}found||f(from,to,"ltr")}var bidiOther=null;function getBidiPartAt(order,ch,sticky){var found;bidiOther=null;for(var i2=0;i2<order.length;++i2){var cur=order[i2];if(cur.from<ch&&cur.to>ch)return i2;cur.to==ch&&(cur.from!=cur.to&&sticky=="before"?found=i2:bidiOther=i2),cur.from==ch&&(cur.from!=cur.to&&sticky!="before"?found=i2:bidiOther=i2)}return found??bidiOther}var bidiOrdering=function(){var lowTypes="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",arabicTypes="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function charType(code){return code<=247?lowTypes.charAt(code):1424<=code&&code<=1524?"R":1536<=code&&code<=1785?arabicTypes.charAt(code-1536):1774<=code&&code<=2220?"r":8192<=code&&code<=8203?"w":code==8204?"b":"L"}var bidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,isNeutral=/[stwN]/,isStrong=/[LRr]/,countsAsLeft=/[Lb1n]/,countsAsNum=/[1n]/;function BidiSpan(level,from,to){this.level=level,this.from=from,this.to=to}return function(str,direction){var outerType=direction=="ltr"?"L":"R";if(str.length==0||direction=="ltr"&&!bidiRE.test(str))return!1;for(var len=str.length,types=[],i2=0;i2<len;++i2)types.push(charType(str.charCodeAt(i2)));for(var i$12=0,prev=outerType;i$12<len;++i$12){var type=types[i$12];type=="m"?types[i$12]=prev:prev=type}for(var i$22=0,cur=outerType;i$22<len;++i$22){var type$1=types[i$22];type$1=="1"&&cur=="r"?types[i$22]="n":isStrong.test(type$1)&&(cur=type$1,type$1=="r"&&(types[i$22]="R"))}for(var i$3=1,prev$1=types[0];i$3<len-1;++i$3){var type$2=types[i$3];type$2=="+"&&prev$1=="1"&&types[i$3+1]=="1"?types[i$3]="1":type$2==","&&prev$1==types[i$3+1]&&(prev$1=="1"||prev$1=="n")&&(types[i$3]=prev$1),prev$1=type$2}for(var i$4=0;i$4<len;++i$4){var type$3=types[i$4];if(type$3==",")types[i$4]="N";else if(type$3=="%"){var end=void 0;for(end=i$4+1;end<len&&types[end]=="%";++end);for(var replace=i$4&&types[i$4-1]=="!"||end<len&&types[end]=="1"?"1":"N",j=i$4;j<end;++j)types[j]=replace;i$4=end-1}}for(var i$5=0,cur$1=outerType;i$5<len;++i$5){var type$4=types[i$5];cur$1=="L"&&type$4=="1"?types[i$5]="L":isStrong.test(type$4)&&(cur$1=type$4)}for(var i$6=0;i$6<len;++i$6)if(isNeutral.test(types[i$6])){var end$1=void 0;for(end$1=i$6+1;end$1<len&&isNeutral.test(types[end$1]);++end$1);for(var before=(i$6?types[i$6-1]:outerType)=="L",after=(end$1<len?types[end$1]:outerType)=="L",replace$1=before==after?before?"L":"R":outerType,j$1=i$6;j$1<end$1;++j$1)types[j$1]=replace$1;i$6=end$1-1}for(var order=[],m,i$7=0;i$7<len;)if(countsAsLeft.test(types[i$7])){var start=i$7;for(++i$7;i$7<len&&countsAsLeft.test(types[i$7]);++i$7);order.push(new BidiSpan(0,start,i$7))}else{var pos=i$7,at=order.length,isRTL=direction=="rtl"?1:0;for(++i$7;i$7<len&&types[i$7]!="L";++i$7);for(var j$2=pos;j$2<i$7;)if(countsAsNum.test(types[j$2])){pos<j$2&&(order.splice(at,0,new BidiSpan(1,pos,j$2)),at+=isRTL);var nstart=j$2;for(++j$2;j$2<i$7&&countsAsNum.test(types[j$2]);++j$2);order.splice(at,0,new BidiSpan(2,nstart,j$2)),at+=isRTL,pos=j$2}else++j$2;pos<i$7&&order.splice(at,0,new BidiSpan(1,pos,i$7))}return direction=="ltr"&&(order[0].level==1&&(m=str.match(/^\s+/))&&(order[0].from=m[0].length,order.unshift(new BidiSpan(0,0,m[0].length))),lst(order).level==1&&(m=str.match(/\s+$/))&&(lst(order).to-=m[0].length,order.push(new BidiSpan(0,len-m[0].length,len)))),direction=="rtl"?order.reverse():order}}();function getOrder(line,direction){var order=line.order;return order==null&&(order=line.order=bidiOrdering(line.text,direction)),order}var noHandlers=[],on=function(emitter,type,f){if(emitter.addEventListener)emitter.addEventListener(type,f,!1);else if(emitter.attachEvent)emitter.attachEvent("on"+type,f);else{var map2=emitter._handlers||(emitter._handlers={});map2[type]=(map2[type]||noHandlers).concat(f)}};function getHandlers(emitter,type){return emitter._handlers&&emitter._handlers[type]||noHandlers}function off(emitter,type,f){if(emitter.removeEventListener)emitter.removeEventListener(type,f,!1);else if(emitter.detachEvent)emitter.detachEvent("on"+type,f);else{var map2=emitter._handlers,arr=map2&&map2[type];if(arr){var index=indexOf(arr,f);index>-1&&(map2[type]=arr.slice(0,index).concat(arr.slice(index+1)))}}}function signal(emitter,type){var handlers=getHandlers(emitter,type);if(handlers.length)for(var args=Array.prototype.slice.call(arguments,2),i2=0;i2<handlers.length;++i2)handlers[i2].apply(null,args)}function signalDOMEvent(cm,e,override){return typeof e=="string"&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),signal(cm,override||e.type,cm,e),e_defaultPrevented(e)||e.codemirrorIgnore}function signalCursorActivity(cm){var arr=cm._handlers&&cm._handlers.cursorActivity;if(arr)for(var set=cm.curOp.cursorActivityHandlers||(cm.curOp.cursorActivityHandlers=[]),i2=0;i2<arr.length;++i2)indexOf(set,arr[i2])==-1&&set.push(arr[i2])}function hasHandler(emitter,type){return getHandlers(emitter,type).length>0}function eventMixin(ctor){ctor.prototype.on=function(type,f){on(this,type,f)},ctor.prototype.off=function(type,f){off(this,type,f)}}function e_preventDefault(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function e_stopPropagation(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function e_defaultPrevented(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function e_stop(e){e_preventDefault(e),e_stopPropagation(e)}function e_target(e){return e.target||e.srcElement}function e_button(e){var b=e.which;return b==null&&(e.button&1?b=1:e.button&2?b=3:e.button&4&&(b=2)),mac&&e.ctrlKey&&b==1&&(b=3),b}var dragAndDrop=function(){if(ie&&ie_version<9)return!1;var div=elt("div");return"draggable"in div||"dragDrop"in div}(),zwspSupported;function zeroWidthElement(measure){if(zwspSupported==null){var test=elt("span","");removeChildrenAndAdd(measure,elt("span",[test,document.createTextNode("x")])),measure.firstChild.offsetHeight!=0&&(zwspSupported=test.offsetWidth<=1&&test.offsetHeight>2&&!(ie&&ie_version<8))}var node=zwspSupported?elt("span",""):elt("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return node.setAttribute("cm-text",""),node}var badBidiRects;function hasBadBidiRects(measure){if(badBidiRects!=null)return badBidiRects;var txt=removeChildrenAndAdd(measure,document.createTextNode("AخA")),r0=range(txt,0,1).getBoundingClientRect(),r1=range(txt,1,2).getBoundingClientRect();return removeChildren(measure),!r0||r0.left==r0.right?!1:badBidiRects=r1.right-r0.right<3}var splitLinesAuto=`
|
|
1
|
+
(function(global2,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("@hpcc-js/common")):typeof define=="function"&&define.amd?define(["exports","@hpcc-js/common"],factory):(global2=typeof globalThis<"u"?globalThis:global2||self,factory(global2["@hpcc-js/codemirror"]={},global2["@hpcc-js/common"]))})(this,function(exports2,common){"use strict";var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);const PKG_NAME="@hpcc-js/codemirror",PKG_VERSION="3.1.0",BUILD_VERSION="3.2.1";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var css={exports:{}},codemirror={exports:{}},hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(module2,exports3){(function(global2,factory){module2.exports=factory()})(commonjsGlobal,function(){var userAgent=navigator.userAgent,platform=navigator.platform,gecko=/gecko\/\d/i.test(userAgent),ie_upto10=/MSIE \d/.test(userAgent),ie_11up=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent),edge=/Edge\/(\d+)/.exec(userAgent),ie=ie_upto10||ie_11up||edge,ie_version=ie&&(ie_upto10?document.documentMode||6:+(edge||ie_11up)[1]),webkit=!edge&&/WebKit\//.test(userAgent),qtwebkit=webkit&&/Qt\/\d+\.\d+/.test(userAgent),chrome=!edge&&/Chrome\/(\d+)/.exec(userAgent),chrome_version=chrome&&+chrome[1],presto=/Opera\//.test(userAgent),safari=/Apple Computer/.test(navigator.vendor),mac_geMountainLion=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent),phantom=/PhantomJS/.test(userAgent),ios=safari&&(/Mobile\/\w+/.test(userAgent)||navigator.maxTouchPoints>2),android=/Android/.test(userAgent),mobile=ios||android||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent),mac=ios||/Mac/.test(platform),chromeOS=/\bCrOS\b/.test(userAgent),windows=/win/i.test(platform),presto_version=presto&&userAgent.match(/Version\/(\d*\.\d*)/);presto_version&&(presto_version=Number(presto_version[1])),presto_version&&presto_version>=15&&(presto=!1,webkit=!0);var flipCtrlCmd=mac&&(qtwebkit||presto&&(presto_version==null||presto_version<12.11)),captureRightClick=gecko||ie&&ie_version>=9;function classTest(cls){return new RegExp("(^|\\s)"+cls+"(?:$|\\s)\\s*")}var rmClass=function(node,cls){var current=node.className,match=classTest(cls).exec(current);if(match){var after=current.slice(match.index+match[0].length);node.className=current.slice(0,match.index)+(after?match[1]+after:"")}};function removeChildren(e){for(var count=e.childNodes.length;count>0;--count)e.removeChild(e.firstChild);return e}function removeChildrenAndAdd(parent,e){return removeChildren(parent).appendChild(e)}function elt(tag,content,className,style){var e=document.createElement(tag);if(className&&(e.className=className),style&&(e.style.cssText=style),typeof content=="string")e.appendChild(document.createTextNode(content));else if(content)for(var i2=0;i2<content.length;++i2)e.appendChild(content[i2]);return e}function eltP(tag,content,className,style){var e=elt(tag,content,className,style);return e.setAttribute("role","presentation"),e}var range;document.createRange?range=function(node,start,end,endNode){var r=document.createRange();return r.setEnd(endNode||node,end),r.setStart(node,start),r}:range=function(node,start,end){var r=document.body.createTextRange();try{r.moveToElementText(node.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",end),r.moveStart("character",start),r};function contains(parent,child){if(child.nodeType==3&&(child=child.parentNode),parent.contains)return parent.contains(child);do if(child.nodeType==11&&(child=child.host),child==parent)return!0;while(child=child.parentNode)}function activeElt(rootNode2){var doc2=rootNode2.ownerDocument||rootNode2,activeElement;try{activeElement=rootNode2.activeElement}catch{activeElement=doc2.body||null}for(;activeElement&&activeElement.shadowRoot&&activeElement.shadowRoot.activeElement;)activeElement=activeElement.shadowRoot.activeElement;return activeElement}function addClass(node,cls){var current=node.className;classTest(cls).test(current)||(node.className+=(current?" ":"")+cls)}function joinClasses(a,b){for(var as=a.split(" "),i2=0;i2<as.length;i2++)as[i2]&&!classTest(as[i2]).test(b)&&(b+=" "+as[i2]);return b}var selectInput=function(node){node.select()};ios?selectInput=function(node){node.selectionStart=0,node.selectionEnd=node.value.length}:ie&&(selectInput=function(node){try{node.select()}catch{}});function doc(cm){return cm.display.wrapper.ownerDocument}function root(cm){return rootNode(cm.display.wrapper)}function rootNode(element){return element.getRootNode?element.getRootNode():element.ownerDocument}function win(cm){return doc(cm).defaultView}function bind(f){var args=Array.prototype.slice.call(arguments,1);return function(){return f.apply(null,args)}}function copyObj(obj,target,overwrite){target||(target={});for(var prop2 in obj)obj.hasOwnProperty(prop2)&&(overwrite!==!1||!target.hasOwnProperty(prop2))&&(target[prop2]=obj[prop2]);return target}function countColumn(string,end,tabSize,startIndex,startValue){end==null&&(end=string.search(/[^\s\u00a0]/),end==-1&&(end=string.length));for(var i2=startIndex||0,n=startValue||0;;){var nextTab=string.indexOf(" ",i2);if(nextTab<0||nextTab>=end)return n+(end-i2);n+=nextTab-i2,n+=tabSize-n%tabSize,i2=nextTab+1}}var Delayed=function(){this.id=null,this.f=null,this.time=0,this.handler=bind(this.onTimeout,this)};Delayed.prototype.onTimeout=function(self2){self2.id=0,self2.time<=+new Date?self2.f():setTimeout(self2.handler,self2.time-+new Date)},Delayed.prototype.set=function(ms,f){this.f=f;var time=+new Date+ms;(!this.id||time<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ms),this.time=time)};function indexOf(array,elt2){for(var i2=0;i2<array.length;++i2)if(array[i2]==elt2)return i2;return-1}var scrollerGap=50,Pass={toString:function(){return"CodeMirror.Pass"}},sel_dontScroll={scroll:!1},sel_mouse={origin:"*mouse"},sel_move={origin:"+move"};function findColumn(string,goal,tabSize){for(var pos=0,col=0;;){var nextTab=string.indexOf(" ",pos);nextTab==-1&&(nextTab=string.length);var skipped=nextTab-pos;if(nextTab==string.length||col+skipped>=goal)return pos+Math.min(skipped,goal-col);if(col+=nextTab-pos,col+=tabSize-col%tabSize,pos=nextTab+1,col>=goal)return pos}}var spaceStrs=[""];function spaceStr(n){for(;spaceStrs.length<=n;)spaceStrs.push(lst(spaceStrs)+" ");return spaceStrs[n]}function lst(arr){return arr[arr.length-1]}function map(array,f){for(var out=[],i2=0;i2<array.length;i2++)out[i2]=f(array[i2],i2);return out}function insertSorted(array,value,score){for(var pos=0,priority=score(value);pos<array.length&&score(array[pos])<=priority;)pos++;array.splice(pos,0,value)}function nothing(){}function createObj(base,props){var inst;return Object.create?inst=Object.create(base):(nothing.prototype=base,inst=new nothing),props&©Obj(props,inst),inst}var nonASCIISingleCaseWordChar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function isWordCharBasic(ch){return/\w/.test(ch)||ch>""&&(ch.toUpperCase()!=ch.toLowerCase()||nonASCIISingleCaseWordChar.test(ch))}function isWordChar(ch,helper){return helper?helper.source.indexOf("\\w")>-1&&isWordCharBasic(ch)?!0:helper.test(ch):isWordCharBasic(ch)}function isEmpty(obj){for(var n in obj)if(obj.hasOwnProperty(n)&&obj[n])return!1;return!0}var extendingChars=/[\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 isExtendingChar(ch){return ch.charCodeAt(0)>=768&&extendingChars.test(ch)}function skipExtendingChars(str,pos,dir){for(;(dir<0?pos>0:pos<str.length)&&isExtendingChar(str.charAt(pos));)pos+=dir;return pos}function findFirst(pred,from,to){for(var dir=from>to?-1:1;;){if(from==to)return from;var midF=(from+to)/2,mid=dir<0?Math.ceil(midF):Math.floor(midF);if(mid==from)return pred(mid)?from:to;pred(mid)?to=mid:from=mid+dir}}function iterateBidiSections(order,from,to,f){if(!order)return f(from,to,"ltr",0);for(var found=!1,i2=0;i2<order.length;++i2){var part=order[i2];(part.from<to&&part.to>from||from==to&&part.to==from)&&(f(Math.max(part.from,from),Math.min(part.to,to),part.level==1?"rtl":"ltr",i2),found=!0)}found||f(from,to,"ltr")}var bidiOther=null;function getBidiPartAt(order,ch,sticky){var found;bidiOther=null;for(var i2=0;i2<order.length;++i2){var cur=order[i2];if(cur.from<ch&&cur.to>ch)return i2;cur.to==ch&&(cur.from!=cur.to&&sticky=="before"?found=i2:bidiOther=i2),cur.from==ch&&(cur.from!=cur.to&&sticky!="before"?found=i2:bidiOther=i2)}return found??bidiOther}var bidiOrdering=function(){var lowTypes="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",arabicTypes="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function charType(code){return code<=247?lowTypes.charAt(code):1424<=code&&code<=1524?"R":1536<=code&&code<=1785?arabicTypes.charAt(code-1536):1774<=code&&code<=2220?"r":8192<=code&&code<=8203?"w":code==8204?"b":"L"}var bidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,isNeutral=/[stwN]/,isStrong=/[LRr]/,countsAsLeft=/[Lb1n]/,countsAsNum=/[1n]/;function BidiSpan(level,from,to){this.level=level,this.from=from,this.to=to}return function(str,direction){var outerType=direction=="ltr"?"L":"R";if(str.length==0||direction=="ltr"&&!bidiRE.test(str))return!1;for(var len=str.length,types=[],i2=0;i2<len;++i2)types.push(charType(str.charCodeAt(i2)));for(var i$12=0,prev=outerType;i$12<len;++i$12){var type=types[i$12];type=="m"?types[i$12]=prev:prev=type}for(var i$22=0,cur=outerType;i$22<len;++i$22){var type$1=types[i$22];type$1=="1"&&cur=="r"?types[i$22]="n":isStrong.test(type$1)&&(cur=type$1,type$1=="r"&&(types[i$22]="R"))}for(var i$3=1,prev$1=types[0];i$3<len-1;++i$3){var type$2=types[i$3];type$2=="+"&&prev$1=="1"&&types[i$3+1]=="1"?types[i$3]="1":type$2==","&&prev$1==types[i$3+1]&&(prev$1=="1"||prev$1=="n")&&(types[i$3]=prev$1),prev$1=type$2}for(var i$4=0;i$4<len;++i$4){var type$3=types[i$4];if(type$3==",")types[i$4]="N";else if(type$3=="%"){var end=void 0;for(end=i$4+1;end<len&&types[end]=="%";++end);for(var replace=i$4&&types[i$4-1]=="!"||end<len&&types[end]=="1"?"1":"N",j=i$4;j<end;++j)types[j]=replace;i$4=end-1}}for(var i$5=0,cur$1=outerType;i$5<len;++i$5){var type$4=types[i$5];cur$1=="L"&&type$4=="1"?types[i$5]="L":isStrong.test(type$4)&&(cur$1=type$4)}for(var i$6=0;i$6<len;++i$6)if(isNeutral.test(types[i$6])){var end$1=void 0;for(end$1=i$6+1;end$1<len&&isNeutral.test(types[end$1]);++end$1);for(var before=(i$6?types[i$6-1]:outerType)=="L",after=(end$1<len?types[end$1]:outerType)=="L",replace$1=before==after?before?"L":"R":outerType,j$1=i$6;j$1<end$1;++j$1)types[j$1]=replace$1;i$6=end$1-1}for(var order=[],m,i$7=0;i$7<len;)if(countsAsLeft.test(types[i$7])){var start=i$7;for(++i$7;i$7<len&&countsAsLeft.test(types[i$7]);++i$7);order.push(new BidiSpan(0,start,i$7))}else{var pos=i$7,at=order.length,isRTL=direction=="rtl"?1:0;for(++i$7;i$7<len&&types[i$7]!="L";++i$7);for(var j$2=pos;j$2<i$7;)if(countsAsNum.test(types[j$2])){pos<j$2&&(order.splice(at,0,new BidiSpan(1,pos,j$2)),at+=isRTL);var nstart=j$2;for(++j$2;j$2<i$7&&countsAsNum.test(types[j$2]);++j$2);order.splice(at,0,new BidiSpan(2,nstart,j$2)),at+=isRTL,pos=j$2}else++j$2;pos<i$7&&order.splice(at,0,new BidiSpan(1,pos,i$7))}return direction=="ltr"&&(order[0].level==1&&(m=str.match(/^\s+/))&&(order[0].from=m[0].length,order.unshift(new BidiSpan(0,0,m[0].length))),lst(order).level==1&&(m=str.match(/\s+$/))&&(lst(order).to-=m[0].length,order.push(new BidiSpan(0,len-m[0].length,len)))),direction=="rtl"?order.reverse():order}}();function getOrder(line,direction){var order=line.order;return order==null&&(order=line.order=bidiOrdering(line.text,direction)),order}var noHandlers=[],on=function(emitter,type,f){if(emitter.addEventListener)emitter.addEventListener(type,f,!1);else if(emitter.attachEvent)emitter.attachEvent("on"+type,f);else{var map2=emitter._handlers||(emitter._handlers={});map2[type]=(map2[type]||noHandlers).concat(f)}};function getHandlers(emitter,type){return emitter._handlers&&emitter._handlers[type]||noHandlers}function off(emitter,type,f){if(emitter.removeEventListener)emitter.removeEventListener(type,f,!1);else if(emitter.detachEvent)emitter.detachEvent("on"+type,f);else{var map2=emitter._handlers,arr=map2&&map2[type];if(arr){var index=indexOf(arr,f);index>-1&&(map2[type]=arr.slice(0,index).concat(arr.slice(index+1)))}}}function signal(emitter,type){var handlers=getHandlers(emitter,type);if(handlers.length)for(var args=Array.prototype.slice.call(arguments,2),i2=0;i2<handlers.length;++i2)handlers[i2].apply(null,args)}function signalDOMEvent(cm,e,override){return typeof e=="string"&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),signal(cm,override||e.type,cm,e),e_defaultPrevented(e)||e.codemirrorIgnore}function signalCursorActivity(cm){var arr=cm._handlers&&cm._handlers.cursorActivity;if(arr)for(var set=cm.curOp.cursorActivityHandlers||(cm.curOp.cursorActivityHandlers=[]),i2=0;i2<arr.length;++i2)indexOf(set,arr[i2])==-1&&set.push(arr[i2])}function hasHandler(emitter,type){return getHandlers(emitter,type).length>0}function eventMixin(ctor){ctor.prototype.on=function(type,f){on(this,type,f)},ctor.prototype.off=function(type,f){off(this,type,f)}}function e_preventDefault(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function e_stopPropagation(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function e_defaultPrevented(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function e_stop(e){e_preventDefault(e),e_stopPropagation(e)}function e_target(e){return e.target||e.srcElement}function e_button(e){var b=e.which;return b==null&&(e.button&1?b=1:e.button&2?b=3:e.button&4&&(b=2)),mac&&e.ctrlKey&&b==1&&(b=3),b}var dragAndDrop=function(){if(ie&&ie_version<9)return!1;var div=elt("div");return"draggable"in div||"dragDrop"in div}(),zwspSupported;function zeroWidthElement(measure){if(zwspSupported==null){var test=elt("span","");removeChildrenAndAdd(measure,elt("span",[test,document.createTextNode("x")])),measure.firstChild.offsetHeight!=0&&(zwspSupported=test.offsetWidth<=1&&test.offsetHeight>2&&!(ie&&ie_version<8))}var node=zwspSupported?elt("span",""):elt("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return node.setAttribute("cm-text",""),node}var badBidiRects;function hasBadBidiRects(measure){if(badBidiRects!=null)return badBidiRects;var txt=removeChildrenAndAdd(measure,document.createTextNode("AخA")),r0=range(txt,0,1).getBoundingClientRect(),r1=range(txt,1,2).getBoundingClientRect();return removeChildren(measure),!r0||r0.left==r0.right?!1:badBidiRects=r1.right-r0.right<3}var splitLinesAuto=`
|
|
3
2
|
|
|
4
3
|
b`.split(/\n/).length!=3?function(string){for(var pos=0,result=[],l=string.length;pos<=l;){var nl=string.indexOf(`
|
|
5
|
-
`,pos);nl==-1&&(nl=string.length);var line=string.slice(pos,string.charAt(nl-1)=="\r"?nl-1:nl),rt=line.indexOf("\r");rt!=-1?(result.push(line.slice(0,rt)),pos+=rt+1):(result.push(line),pos=nl+1)}return result}:function(string){return string.split(/\r\n?|\n/)},hasSelection=window.getSelection?function(te){try{return te.selectionStart!=te.selectionEnd}catch{return!1}}:function(te){var range2;try{range2=te.ownerDocument.selection.createRange()}catch{}return!range2||range2.parentElement()!=te?!1:range2.compareEndPoints("StartToEnd",range2)!=0},hasCopyEvent=function(){var e=elt("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),badZoomedRects=null;function hasBadZoomedRects(measure){if(badZoomedRects!=null)return badZoomedRects;var node=removeChildrenAndAdd(measure,elt("span","x")),normal=node.getBoundingClientRect(),fromRange=range(node,0,1).getBoundingClientRect();return badZoomedRects=Math.abs(normal.left-fromRange.left)>1}var modes={},mimeModes={};function defineMode(name,mode){arguments.length>2&&(mode.dependencies=Array.prototype.slice.call(arguments,2)),modes[name]=mode}function defineMIME(mime,spec){mimeModes[mime]=spec}function resolveMode(spec){if(typeof spec=="string"&&mimeModes.hasOwnProperty(spec))spec=mimeModes[spec];else if(spec&&typeof spec.name=="string"&&mimeModes.hasOwnProperty(spec.name)){var found=mimeModes[spec.name];typeof found=="string"&&(found={name:found}),spec=createObj(found,spec),spec.name=found.name}else{if(typeof spec=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(spec))return resolveMode("application/xml");if(typeof spec=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(spec))return resolveMode("application/json")}return typeof spec=="string"?{name:spec}:spec||{name:"null"}}function getMode(options,spec){spec=resolveMode(spec);var mfactory=modes[spec.name];if(!mfactory)return getMode(options,"text/plain");var modeObj=mfactory(options,spec);if(modeExtensions.hasOwnProperty(spec.name)){var exts=modeExtensions[spec.name];for(var prop2 in exts)exts.hasOwnProperty(prop2)&&(modeObj.hasOwnProperty(prop2)&&(modeObj["_"+prop2]=modeObj[prop2]),modeObj[prop2]=exts[prop2])}if(modeObj.name=spec.name,spec.helperType&&(modeObj.helperType=spec.helperType),spec.modeProps)for(var prop$1 in spec.modeProps)modeObj[prop$1]=spec.modeProps[prop$1];return modeObj}var modeExtensions={};function extendMode(mode,properties){var exts=modeExtensions.hasOwnProperty(mode)?modeExtensions[mode]:modeExtensions[mode]={};copyObj(properties,exts)}function copyState(mode,state){if(state===!0)return state;if(mode.copyState)return mode.copyState(state);var nstate={};for(var n in state){var val=state[n];val instanceof Array&&(val=val.concat([])),nstate[n]=val}return nstate}function innerMode(mode,state){for(var info;mode.innerMode&&(info=mode.innerMode(state),!(!info||info.mode==mode));)state=info.state,mode=info.mode;return info||{mode,state}}function startState(mode,a1,a2){return mode.startState?mode.startState(a1,a2):!0}var StringStream=function(string,tabSize,lineOracle){this.pos=this.start=0,this.string=string,this.tabSize=tabSize||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=lineOracle};StringStream.prototype.eol=function(){return this.pos>=this.string.length},StringStream.prototype.sol=function(){return this.pos==this.lineStart},StringStream.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},StringStream.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},StringStream.prototype.eat=function(match){var ch=this.string.charAt(this.pos),ok;if(typeof match=="string"?ok=ch==match:ok=ch&&(match.test?match.test(ch):match(ch)),ok)return++this.pos,ch},StringStream.prototype.eatWhile=function(match){for(var start=this.pos;this.eat(match););return this.pos>start},StringStream.prototype.eatSpace=function(){for(var start=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>start},StringStream.prototype.skipToEnd=function(){this.pos=this.string.length},StringStream.prototype.skipTo=function(ch){var found=this.string.indexOf(ch,this.pos);if(found>-1)return this.pos=found,!0},StringStream.prototype.backUp=function(n){this.pos-=n},StringStream.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=countColumn(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?countColumn(this.string,this.lineStart,this.tabSize):0)},StringStream.prototype.indentation=function(){return countColumn(this.string,null,this.tabSize)-(this.lineStart?countColumn(this.string,this.lineStart,this.tabSize):0)},StringStream.prototype.match=function(pattern,consume,caseInsensitive){if(typeof pattern=="string"){var cased=function(str){return caseInsensitive?str.toLowerCase():str},substr=this.string.substr(this.pos,pattern.length);if(cased(substr)==cased(pattern))return consume!==!1&&(this.pos+=pattern.length),!0}else{var match=this.string.slice(this.pos).match(pattern);return match&&match.index>0?null:(match&&consume!==!1&&(this.pos+=match[0].length),match)}},StringStream.prototype.current=function(){return this.string.slice(this.start,this.pos)},StringStream.prototype.hideFirstChars=function(n,inner){this.lineStart+=n;try{return inner()}finally{this.lineStart-=n}},StringStream.prototype.lookAhead=function(n){var oracle=this.lineOracle;return oracle&&oracle.lookAhead(n)},StringStream.prototype.baseToken=function(){var oracle=this.lineOracle;return oracle&&oracle.baseToken(this.pos)};function getLine(doc2,n){if(n-=doc2.first,n<0||n>=doc2.size)throw new Error("There is no line "+(n+doc2.first)+" in the document.");for(var chunk=doc2;!chunk.lines;)for(var i2=0;;++i2){var child=chunk.children[i2],sz=child.chunkSize();if(n<sz){chunk=child;break}n-=sz}return chunk.lines[n]}function getBetween(doc2,start,end){var out=[],n=start.line;return doc2.iter(start.line,end.line+1,function(line){var text=line.text;n==end.line&&(text=text.slice(0,end.ch)),n==start.line&&(text=text.slice(start.ch)),out.push(text),++n}),out}function getLines(doc2,from,to){var out=[];return doc2.iter(from,to,function(line){out.push(line.text)}),out}function updateLineHeight(line,height){var diff=height-line.height;if(diff)for(var n=line;n;n=n.parent)n.height+=diff}function lineNo(line){if(line.parent==null)return null;for(var cur=line.parent,no=indexOf(cur.lines,line),chunk=cur.parent;chunk;cur=chunk,chunk=chunk.parent)for(var i2=0;chunk.children[i2]!=cur;++i2)no+=chunk.children[i2].chunkSize();return no+cur.first}function lineAtHeight(chunk,h){var n=chunk.first;outer:do{for(var i$12=0;i$12<chunk.children.length;++i$12){var child=chunk.children[i$12],ch=child.height;if(h<ch){chunk=child;continue outer}h-=ch,n+=child.chunkSize()}return n}while(!chunk.lines);for(var i2=0;i2<chunk.lines.length;++i2){var line=chunk.lines[i2],lh=line.height;if(h<lh)break;h-=lh}return n+i2}function isLine(doc2,l){return l>=doc2.first&&l<doc2.first+doc2.size}function lineNumberFor(options,i2){return String(options.lineNumberFormatter(i2+options.firstLineNumber))}function Pos(line,ch,sticky){if(sticky===void 0&&(sticky=null),!(this instanceof Pos))return new Pos(line,ch,sticky);this.line=line,this.ch=ch,this.sticky=sticky}function cmp(a,b){return a.line-b.line||a.ch-b.ch}function equalCursorPos(a,b){return a.sticky==b.sticky&&cmp(a,b)==0}function copyPos(x){return Pos(x.line,x.ch)}function maxPos(a,b){return cmp(a,b)<0?b:a}function minPos(a,b){return cmp(a,b)<0?a:b}function clipLine(doc2,n){return Math.max(doc2.first,Math.min(n,doc2.first+doc2.size-1))}function clipPos(doc2,pos){if(pos.line<doc2.first)return Pos(doc2.first,0);var last=doc2.first+doc2.size-1;return pos.line>last?Pos(last,getLine(doc2,last).text.length):clipToLen(pos,getLine(doc2,pos.line).text.length)}function clipToLen(pos,linelen){var ch=pos.ch;return ch==null||ch>linelen?Pos(pos.line,linelen):ch<0?Pos(pos.line,0):pos}function clipPosArray(doc2,array){for(var out=[],i2=0;i2<array.length;i2++)out[i2]=clipPos(doc2,array[i2]);return out}var SavedContext=function(state,lookAhead){this.state=state,this.lookAhead=lookAhead},Context=function(doc2,state,line,lookAhead){this.state=state,this.doc=doc2,this.line=line,this.maxLookAhead=lookAhead||0,this.baseTokens=null,this.baseTokenPos=1};Context.prototype.lookAhead=function(n){var line=this.doc.getLine(this.line+n);return line!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),line},Context.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var type=this.baseTokens[this.baseTokenPos+1];return{type:type&&type.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Context.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Context.fromSaved=function(doc2,saved,line){return saved instanceof SavedContext?new Context(doc2,copyState(doc2.mode,saved.state),line,saved.lookAhead):new Context(doc2,copyState(doc2.mode,saved),line)},Context.prototype.save=function(copy){var state=copy!==!1?copyState(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new SavedContext(state,this.maxLookAhead):state};function highlightLine(cm,line,context,forceToEnd){var st=[cm.state.modeGen],lineClasses={};runMode(cm,line.text,cm.doc.mode,context,function(end,style){return st.push(end,style)},lineClasses,forceToEnd);for(var state=context.state,loop=function(o2){context.baseTokens=st;var overlay2=cm.state.overlays[o2],i2=1,at=0;context.state=!0,runMode(cm,line.text,overlay2.mode,context,function(end,style){for(var start=i2;at<end;){var i_end=st[i2];i_end>end&&st.splice(i2,1,end,st[i2+1],i_end),i2+=2,at=Math.min(end,i_end)}if(style)if(overlay2.opaque)st.splice(start,i2-start,end,"overlay "+style),i2=start+2;else for(;start<i2;start+=2){var cur=st[start+1];st[start+1]=(cur?cur+" ":"")+"overlay "+style}},lineClasses),context.state=state,context.baseTokens=null,context.baseTokenPos=1},o=0;o<cm.state.overlays.length;++o)loop(o);return{styles:st,classes:lineClasses.bgClass||lineClasses.textClass?lineClasses:null}}function getLineStyles(cm,line,updateFrontier){if(!line.styles||line.styles[0]!=cm.state.modeGen){var context=getContextBefore(cm,lineNo(line)),resetState=line.text.length>cm.options.maxHighlightLength&©State(cm.doc.mode,context.state),result=highlightLine(cm,line,context);resetState&&(context.state=resetState),line.stateAfter=context.save(!resetState),line.styles=result.styles,result.classes?line.styleClasses=result.classes:line.styleClasses&&(line.styleClasses=null),updateFrontier===cm.doc.highlightFrontier&&(cm.doc.modeFrontier=Math.max(cm.doc.modeFrontier,++cm.doc.highlightFrontier))}return line.styles}function getContextBefore(cm,n,precise){var doc2=cm.doc,display=cm.display;if(!doc2.mode.startState)return new Context(doc2,!0,n);var start=findStartLine(cm,n,precise),saved=start>doc2.first&&getLine(doc2,start-1).stateAfter,context=saved?Context.fromSaved(doc2,saved,start):new Context(doc2,startState(doc2.mode),start);return doc2.iter(start,n,function(line){processLine(cm,line.text,context);var pos=context.line;line.stateAfter=pos==n-1||pos%5==0||pos>=display.viewFrom&&pos<display.viewTo?context.save():null,context.nextLine()}),precise&&(doc2.modeFrontier=context.line),context}function processLine(cm,text,context,startAt){var mode=cm.doc.mode,stream=new StringStream(text,cm.options.tabSize,context);for(stream.start=stream.pos=startAt||0,text==""&&callBlankLine(mode,context.state);!stream.eol();)readToken(mode,stream,context.state),stream.start=stream.pos}function callBlankLine(mode,state){if(mode.blankLine)return mode.blankLine(state);if(mode.innerMode){var inner=innerMode(mode,state);if(inner.mode.blankLine)return inner.mode.blankLine(inner.state)}}function readToken(mode,stream,state,inner){for(var i2=0;i2<10;i2++){inner&&(inner[0]=innerMode(mode,state).mode);var style=mode.token(stream,state);if(stream.pos>stream.start)return style}throw new Error("Mode "+mode.name+" failed to advance stream.")}var Token=function(stream,type,state){this.start=stream.start,this.end=stream.pos,this.string=stream.current(),this.type=type||null,this.state=state};function takeToken(cm,pos,precise,asArray){var doc2=cm.doc,mode=doc2.mode,style;pos=clipPos(doc2,pos);var line=getLine(doc2,pos.line),context=getContextBefore(cm,pos.line,precise),stream=new StringStream(line.text,cm.options.tabSize,context),tokens;for(asArray&&(tokens=[]);(asArray||stream.pos<pos.ch)&&!stream.eol();)stream.start=stream.pos,style=readToken(mode,stream,context.state),asArray&&tokens.push(new Token(stream,style,copyState(doc2.mode,context.state)));return asArray?tokens:new Token(stream,style,context.state)}function extractLineClasses(type,output){if(type)for(;;){var lineClass=type.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!lineClass)break;type=type.slice(0,lineClass.index)+type.slice(lineClass.index+lineClass[0].length);var prop2=lineClass[1]?"bgClass":"textClass";output[prop2]==null?output[prop2]=lineClass[2]:new RegExp("(?:^|\\s)"+lineClass[2]+"(?:$|\\s)").test(output[prop2])||(output[prop2]+=" "+lineClass[2])}return type}function runMode(cm,text,mode,context,f,lineClasses,forceToEnd){var flattenSpans=mode.flattenSpans;flattenSpans==null&&(flattenSpans=cm.options.flattenSpans);var curStart=0,curStyle=null,stream=new StringStream(text,cm.options.tabSize,context),style,inner=cm.options.addModeClass&&[null];for(text==""&&extractLineClasses(callBlankLine(mode,context.state),lineClasses);!stream.eol();){if(stream.pos>cm.options.maxHighlightLength?(flattenSpans=!1,forceToEnd&&processLine(cm,text,context,stream.pos),stream.pos=text.length,style=null):style=extractLineClasses(readToken(mode,stream,context.state,inner),lineClasses),inner){var mName=inner[0].name;mName&&(style="m-"+(style?mName+" "+style:mName))}if(!flattenSpans||curStyle!=style){for(;curStart<stream.start;)curStart=Math.min(stream.start,curStart+5e3),f(curStart,curStyle);curStyle=style}stream.start=stream.pos}for(;curStart<stream.pos;){var pos=Math.min(stream.pos,curStart+5e3);f(pos,curStyle),curStart=pos}}function findStartLine(cm,n,precise){for(var minindent,minline,doc2=cm.doc,lim=precise?-1:n-(cm.doc.mode.innerMode?1e3:100),search2=n;search2>lim;--search2){if(search2<=doc2.first)return doc2.first;var line=getLine(doc2,search2-1),after=line.stateAfter;if(after&&(!precise||search2+(after instanceof SavedContext?after.lookAhead:0)<=doc2.modeFrontier))return search2;var indented=countColumn(line.text,null,cm.options.tabSize);(minline==null||minindent>indented)&&(minline=search2-1,minindent=indented)}return minline}function retreatFrontier(doc2,n){if(doc2.modeFrontier=Math.min(doc2.modeFrontier,n),!(doc2.highlightFrontier<n-10)){for(var start=doc2.first,line=n-1;line>start;line--){var saved=getLine(doc2,line).stateAfter;if(saved&&(!(saved instanceof SavedContext)||line+saved.lookAhead<n)){start=line+1;break}}doc2.highlightFrontier=Math.min(doc2.highlightFrontier,start)}}var sawReadOnlySpans=!1,sawCollapsedSpans=!1;function seeReadOnlySpans(){sawReadOnlySpans=!0}function seeCollapsedSpans(){sawCollapsedSpans=!0}function MarkedSpan(marker,from,to){this.marker=marker,this.from=from,this.to=to}function getMarkedSpanFor(spans,marker){if(spans)for(var i2=0;i2<spans.length;++i2){var span=spans[i2];if(span.marker==marker)return span}}function removeMarkedSpan(spans,span){for(var r,i2=0;i2<spans.length;++i2)spans[i2]!=span&&(r||(r=[])).push(spans[i2]);return r}function addMarkedSpan(line,span,op){var inThisOp=op&&window.WeakSet&&(op.markedSpans||(op.markedSpans=new WeakSet));inThisOp&&line.markedSpans&&inThisOp.has(line.markedSpans)?line.markedSpans.push(span):(line.markedSpans=line.markedSpans?line.markedSpans.concat([span]):[span],inThisOp&&inThisOp.add(line.markedSpans)),span.marker.attachLine(line)}function markedSpansBefore(old,startCh,isInsert){var nw;if(old)for(var i2=0;i2<old.length;++i2){var span=old[i2],marker=span.marker,startsBefore=span.from==null||(marker.inclusiveLeft?span.from<=startCh:span.from<startCh);if(startsBefore||span.from==startCh&&marker.type=="bookmark"&&(!isInsert||!span.marker.insertLeft)){var endsAfter=span.to==null||(marker.inclusiveRight?span.to>=startCh:span.to>startCh);(nw||(nw=[])).push(new MarkedSpan(marker,span.from,endsAfter?null:span.to))}}return nw}function markedSpansAfter(old,endCh,isInsert){var nw;if(old)for(var i2=0;i2<old.length;++i2){var span=old[i2],marker=span.marker,endsAfter=span.to==null||(marker.inclusiveRight?span.to>=endCh:span.to>endCh);if(endsAfter||span.from==endCh&&marker.type=="bookmark"&&(!isInsert||span.marker.insertLeft)){var startsBefore=span.from==null||(marker.inclusiveLeft?span.from<=endCh:span.from<endCh);(nw||(nw=[])).push(new MarkedSpan(marker,startsBefore?null:span.from-endCh,span.to==null?null:span.to-endCh))}}return nw}function stretchSpansOverChange(doc2,change){if(change.full)return null;var oldFirst=isLine(doc2,change.from.line)&&getLine(doc2,change.from.line).markedSpans,oldLast=isLine(doc2,change.to.line)&&getLine(doc2,change.to.line).markedSpans;if(!oldFirst&&!oldLast)return null;var startCh=change.from.ch,endCh=change.to.ch,isInsert=cmp(change.from,change.to)==0,first=markedSpansBefore(oldFirst,startCh,isInsert),last=markedSpansAfter(oldLast,endCh,isInsert),sameLine=change.text.length==1,offset=lst(change.text).length+(sameLine?startCh:0);if(first)for(var i2=0;i2<first.length;++i2){var span=first[i2];if(span.to==null){var found=getMarkedSpanFor(last,span.marker);found?sameLine&&(span.to=found.to==null?null:found.to+offset):span.to=startCh}}if(last)for(var i$12=0;i$12<last.length;++i$12){var span$1=last[i$12];if(span$1.to!=null&&(span$1.to+=offset),span$1.from==null){var found$1=getMarkedSpanFor(first,span$1.marker);found$1||(span$1.from=offset,sameLine&&(first||(first=[])).push(span$1))}else span$1.from+=offset,sameLine&&(first||(first=[])).push(span$1)}first&&(first=clearEmptySpans(first)),last&&last!=first&&(last=clearEmptySpans(last));var newMarkers=[first];if(!sameLine){var gap=change.text.length-2,gapMarkers;if(gap>0&&first)for(var i$22=0;i$22<first.length;++i$22)first[i$22].to==null&&(gapMarkers||(gapMarkers=[])).push(new MarkedSpan(first[i$22].marker,null,null));for(var i$3=0;i$3<gap;++i$3)newMarkers.push(gapMarkers);newMarkers.push(last)}return newMarkers}function clearEmptySpans(spans){for(var i2=0;i2<spans.length;++i2){var span=spans[i2];span.from!=null&&span.from==span.to&&span.marker.clearWhenEmpty!==!1&&spans.splice(i2--,1)}return spans.length?spans:null}function removeReadOnlyRanges(doc2,from,to){var markers=null;if(doc2.iter(from.line,to.line+1,function(line){if(line.markedSpans)for(var i3=0;i3<line.markedSpans.length;++i3){var mark=line.markedSpans[i3].marker;mark.readOnly&&(!markers||indexOf(markers,mark)==-1)&&(markers||(markers=[])).push(mark)}}),!markers)return null;for(var parts=[{from,to}],i2=0;i2<markers.length;++i2)for(var mk=markers[i2],m=mk.find(0),j=0;j<parts.length;++j){var p=parts[j];if(!(cmp(p.to,m.from)<0||cmp(p.from,m.to)>0)){var newParts=[j,1],dfrom=cmp(p.from,m.from),dto=cmp(p.to,m.to);(dfrom<0||!mk.inclusiveLeft&&!dfrom)&&newParts.push({from:p.from,to:m.from}),(dto>0||!mk.inclusiveRight&&!dto)&&newParts.push({from:m.to,to:p.to}),parts.splice.apply(parts,newParts),j+=newParts.length-3}}return parts}function detachMarkedSpans(line){var spans=line.markedSpans;if(spans){for(var i2=0;i2<spans.length;++i2)spans[i2].marker.detachLine(line);line.markedSpans=null}}function attachMarkedSpans(line,spans){if(spans){for(var i2=0;i2<spans.length;++i2)spans[i2].marker.attachLine(line);line.markedSpans=spans}}function extraLeft(marker){return marker.inclusiveLeft?-1:0}function extraRight(marker){return marker.inclusiveRight?1:0}function compareCollapsedMarkers(a,b){var lenDiff=a.lines.length-b.lines.length;if(lenDiff!=0)return lenDiff;var aPos=a.find(),bPos=b.find(),fromCmp=cmp(aPos.from,bPos.from)||extraLeft(a)-extraLeft(b);if(fromCmp)return-fromCmp;var toCmp=cmp(aPos.to,bPos.to)||extraRight(a)-extraRight(b);return toCmp||b.id-a.id}function collapsedSpanAtSide(line,start){var sps=sawCollapsedSpans&&line.markedSpans,found;if(sps)for(var sp=void 0,i2=0;i2<sps.length;++i2)sp=sps[i2],sp.marker.collapsed&&(start?sp.from:sp.to)==null&&(!found||compareCollapsedMarkers(found,sp.marker)<0)&&(found=sp.marker);return found}function collapsedSpanAtStart(line){return collapsedSpanAtSide(line,!0)}function collapsedSpanAtEnd(line){return collapsedSpanAtSide(line,!1)}function collapsedSpanAround(line,ch){var sps=sawCollapsedSpans&&line.markedSpans,found;if(sps)for(var i2=0;i2<sps.length;++i2){var sp=sps[i2];sp.marker.collapsed&&(sp.from==null||sp.from<ch)&&(sp.to==null||sp.to>ch)&&(!found||compareCollapsedMarkers(found,sp.marker)<0)&&(found=sp.marker)}return found}function conflictingCollapsedRange(doc2,lineNo2,from,to,marker){var line=getLine(doc2,lineNo2),sps=sawCollapsedSpans&&line.markedSpans;if(sps)for(var i2=0;i2<sps.length;++i2){var sp=sps[i2];if(sp.marker.collapsed){var found=sp.marker.find(0),fromCmp=cmp(found.from,from)||extraLeft(sp.marker)-extraLeft(marker),toCmp=cmp(found.to,to)||extraRight(sp.marker)-extraRight(marker);if(!(fromCmp>=0&&toCmp<=0||fromCmp<=0&&toCmp>=0)&&(fromCmp<=0&&(sp.marker.inclusiveRight&&marker.inclusiveLeft?cmp(found.to,from)>=0:cmp(found.to,from)>0)||fromCmp>=0&&(sp.marker.inclusiveRight&&marker.inclusiveLeft?cmp(found.from,to)<=0:cmp(found.from,to)<0)))return!0}}}function visualLine(line){for(var merged;merged=collapsedSpanAtStart(line);)line=merged.find(-1,!0).line;return line}function visualLineEnd(line){for(var merged;merged=collapsedSpanAtEnd(line);)line=merged.find(1,!0).line;return line}function visualLineContinued(line){for(var merged,lines;merged=collapsedSpanAtEnd(line);)line=merged.find(1,!0).line,(lines||(lines=[])).push(line);return lines}function visualLineNo(doc2,lineN){var line=getLine(doc2,lineN),vis=visualLine(line);return line==vis?lineN:lineNo(vis)}function visualLineEndNo(doc2,lineN){if(lineN>doc2.lastLine())return lineN;var line=getLine(doc2,lineN),merged;if(!lineIsHidden(doc2,line))return lineN;for(;merged=collapsedSpanAtEnd(line);)line=merged.find(1,!0).line;return lineNo(line)+1}function lineIsHidden(doc2,line){var sps=sawCollapsedSpans&&line.markedSpans;if(sps){for(var sp=void 0,i2=0;i2<sps.length;++i2)if(sp=sps[i2],!!sp.marker.collapsed){if(sp.from==null)return!0;if(!sp.marker.widgetNode&&sp.from==0&&sp.marker.inclusiveLeft&&lineIsHiddenInner(doc2,line,sp))return!0}}}function lineIsHiddenInner(doc2,line,span){if(span.to==null){var end=span.marker.find(1,!0);return lineIsHiddenInner(doc2,end.line,getMarkedSpanFor(end.line.markedSpans,span.marker))}if(span.marker.inclusiveRight&&span.to==line.text.length)return!0;for(var sp=void 0,i2=0;i2<line.markedSpans.length;++i2)if(sp=line.markedSpans[i2],sp.marker.collapsed&&!sp.marker.widgetNode&&sp.from==span.to&&(sp.to==null||sp.to!=span.from)&&(sp.marker.inclusiveLeft||span.marker.inclusiveRight)&&lineIsHiddenInner(doc2,line,sp))return!0}function heightAtLine(lineObj){lineObj=visualLine(lineObj);for(var h=0,chunk=lineObj.parent,i2=0;i2<chunk.lines.length;++i2){var line=chunk.lines[i2];if(line==lineObj)break;h+=line.height}for(var p=chunk.parent;p;chunk=p,p=chunk.parent)for(var i$12=0;i$12<p.children.length;++i$12){var cur=p.children[i$12];if(cur==chunk)break;h+=cur.height}return h}function lineLength(line){if(line.height==0)return 0;for(var len=line.text.length,merged,cur=line;merged=collapsedSpanAtStart(cur);){var found=merged.find(0,!0);cur=found.from.line,len+=found.from.ch-found.to.ch}for(cur=line;merged=collapsedSpanAtEnd(cur);){var found$1=merged.find(0,!0);len-=cur.text.length-found$1.from.ch,cur=found$1.to.line,len+=cur.text.length-found$1.to.ch}return len}function findMaxLine(cm){var d=cm.display,doc2=cm.doc;d.maxLine=getLine(doc2,doc2.first),d.maxLineLength=lineLength(d.maxLine),d.maxLineChanged=!0,doc2.iter(function(line){var len=lineLength(line);len>d.maxLineLength&&(d.maxLineLength=len,d.maxLine=line)})}var Line=function(text,markedSpans,estimateHeight2){this.text=text,attachMarkedSpans(this,markedSpans),this.height=estimateHeight2?estimateHeight2(this):1};Line.prototype.lineNo=function(){return lineNo(this)},eventMixin(Line);function updateLine(line,text,markedSpans,estimateHeight2){line.text=text,line.stateAfter&&(line.stateAfter=null),line.styles&&(line.styles=null),line.order!=null&&(line.order=null),detachMarkedSpans(line),attachMarkedSpans(line,markedSpans);var estHeight=estimateHeight2?estimateHeight2(line):1;estHeight!=line.height&&updateLineHeight(line,estHeight)}function cleanUpLine(line){line.parent=null,detachMarkedSpans(line)}var styleToClassCache={},styleToClassCacheWithMode={};function interpretTokenStyle(style,options){if(!style||/^\s*$/.test(style))return null;var cache=options.addModeClass?styleToClassCacheWithMode:styleToClassCache;return cache[style]||(cache[style]=style.replace(/\S+/g,"cm-$&"))}function buildLineContent(cm,lineView){var content=eltP("span",null,null,webkit?"padding-right: .1px":null),builder={pre:eltP("pre",[content],"CodeMirror-line"),content,col:0,pos:0,cm,trailingSpace:!1,splitSpaces:cm.getOption("lineWrapping")};lineView.measure={};for(var i2=0;i2<=(lineView.rest?lineView.rest.length:0);i2++){var line=i2?lineView.rest[i2-1]:lineView.line,order=void 0;builder.pos=0,builder.addToken=buildToken,hasBadBidiRects(cm.display.measure)&&(order=getOrder(line,cm.doc.direction))&&(builder.addToken=buildTokenBadBidi(builder.addToken,order)),builder.map=[];var allowFrontierUpdate=lineView!=cm.display.externalMeasured&&lineNo(line);insertLineContent(line,builder,getLineStyles(cm,line,allowFrontierUpdate)),line.styleClasses&&(line.styleClasses.bgClass&&(builder.bgClass=joinClasses(line.styleClasses.bgClass,builder.bgClass||"")),line.styleClasses.textClass&&(builder.textClass=joinClasses(line.styleClasses.textClass,builder.textClass||""))),builder.map.length==0&&builder.map.push(0,0,builder.content.appendChild(zeroWidthElement(cm.display.measure))),i2==0?(lineView.measure.map=builder.map,lineView.measure.cache={}):((lineView.measure.maps||(lineView.measure.maps=[])).push(builder.map),(lineView.measure.caches||(lineView.measure.caches=[])).push({}))}if(webkit){var last=builder.content.lastChild;(/\bcm-tab\b/.test(last.className)||last.querySelector&&last.querySelector(".cm-tab"))&&(builder.content.className="cm-tab-wrap-hack")}return signal(cm,"renderLine",cm,lineView.line,builder.pre),builder.pre.className&&(builder.textClass=joinClasses(builder.pre.className,builder.textClass||"")),builder}function defaultSpecialCharPlaceholder(ch){var token=elt("span","•","cm-invalidchar");return token.title="\\u"+ch.charCodeAt(0).toString(16),token.setAttribute("aria-label",token.title),token}function buildToken(builder,text,style,startStyle,endStyle,css2,attributes){if(text){var displayText=builder.splitSpaces?splitSpaces(text,builder.trailingSpace):text,special=builder.cm.state.specialChars,mustWrap=!1,content;if(!special.test(text))builder.col+=text.length,content=document.createTextNode(displayText),builder.map.push(builder.pos,builder.pos+text.length,content),ie&&ie_version<9&&(mustWrap=!0),builder.pos+=text.length;else{content=document.createDocumentFragment();for(var pos=0;;){special.lastIndex=pos;var m=special.exec(text),skipped=m?m.index-pos:text.length-pos;if(skipped){var txt=document.createTextNode(displayText.slice(pos,pos+skipped));ie&&ie_version<9?content.appendChild(elt("span",[txt])):content.appendChild(txt),builder.map.push(builder.pos,builder.pos+skipped,txt),builder.col+=skipped,builder.pos+=skipped}if(!m)break;pos+=skipped+1;var txt$1=void 0;if(m[0]==" "){var tabSize=builder.cm.options.tabSize,tabWidth=tabSize-builder.col%tabSize;txt$1=content.appendChild(elt("span",spaceStr(tabWidth),"cm-tab")),txt$1.setAttribute("role","presentation"),txt$1.setAttribute("cm-text"," "),builder.col+=tabWidth}else m[0]=="\r"||m[0]==`
|
|
4
|
+
`,pos);nl==-1&&(nl=string.length);var line=string.slice(pos,string.charAt(nl-1)=="\r"?nl-1:nl),rt=line.indexOf("\r");rt!=-1?(result.push(line.slice(0,rt)),pos+=rt+1):(result.push(line),pos=nl+1)}return result}:function(string){return string.split(/\r\n?|\n/)},hasSelection=window.getSelection?function(te){try{return te.selectionStart!=te.selectionEnd}catch{return!1}}:function(te){var range2;try{range2=te.ownerDocument.selection.createRange()}catch{}return!range2||range2.parentElement()!=te?!1:range2.compareEndPoints("StartToEnd",range2)!=0},hasCopyEvent=function(){var e=elt("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),badZoomedRects=null;function hasBadZoomedRects(measure){if(badZoomedRects!=null)return badZoomedRects;var node=removeChildrenAndAdd(measure,elt("span","x")),normal=node.getBoundingClientRect(),fromRange=range(node,0,1).getBoundingClientRect();return badZoomedRects=Math.abs(normal.left-fromRange.left)>1}var modes={},mimeModes={};function defineMode(name,mode){arguments.length>2&&(mode.dependencies=Array.prototype.slice.call(arguments,2)),modes[name]=mode}function defineMIME(mime,spec){mimeModes[mime]=spec}function resolveMode(spec){if(typeof spec=="string"&&mimeModes.hasOwnProperty(spec))spec=mimeModes[spec];else if(spec&&typeof spec.name=="string"&&mimeModes.hasOwnProperty(spec.name)){var found=mimeModes[spec.name];typeof found=="string"&&(found={name:found}),spec=createObj(found,spec),spec.name=found.name}else{if(typeof spec=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(spec))return resolveMode("application/xml");if(typeof spec=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(spec))return resolveMode("application/json")}return typeof spec=="string"?{name:spec}:spec||{name:"null"}}function getMode(options,spec){spec=resolveMode(spec);var mfactory=modes[spec.name];if(!mfactory)return getMode(options,"text/plain");var modeObj=mfactory(options,spec);if(modeExtensions.hasOwnProperty(spec.name)){var exts=modeExtensions[spec.name];for(var prop2 in exts)exts.hasOwnProperty(prop2)&&(modeObj.hasOwnProperty(prop2)&&(modeObj["_"+prop2]=modeObj[prop2]),modeObj[prop2]=exts[prop2])}if(modeObj.name=spec.name,spec.helperType&&(modeObj.helperType=spec.helperType),spec.modeProps)for(var prop$1 in spec.modeProps)modeObj[prop$1]=spec.modeProps[prop$1];return modeObj}var modeExtensions={};function extendMode(mode,properties){var exts=modeExtensions.hasOwnProperty(mode)?modeExtensions[mode]:modeExtensions[mode]={};copyObj(properties,exts)}function copyState(mode,state){if(state===!0)return state;if(mode.copyState)return mode.copyState(state);var nstate={};for(var n in state){var val=state[n];val instanceof Array&&(val=val.concat([])),nstate[n]=val}return nstate}function innerMode(mode,state){for(var info;mode.innerMode&&(info=mode.innerMode(state),!(!info||info.mode==mode));)state=info.state,mode=info.mode;return info||{mode,state}}function startState(mode,a1,a2){return mode.startState?mode.startState(a1,a2):!0}var StringStream=function(string,tabSize,lineOracle){this.pos=this.start=0,this.string=string,this.tabSize=tabSize||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=lineOracle};StringStream.prototype.eol=function(){return this.pos>=this.string.length},StringStream.prototype.sol=function(){return this.pos==this.lineStart},StringStream.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},StringStream.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},StringStream.prototype.eat=function(match){var ch=this.string.charAt(this.pos),ok;if(typeof match=="string"?ok=ch==match:ok=ch&&(match.test?match.test(ch):match(ch)),ok)return++this.pos,ch},StringStream.prototype.eatWhile=function(match){for(var start=this.pos;this.eat(match););return this.pos>start},StringStream.prototype.eatSpace=function(){for(var start=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>start},StringStream.prototype.skipToEnd=function(){this.pos=this.string.length},StringStream.prototype.skipTo=function(ch){var found=this.string.indexOf(ch,this.pos);if(found>-1)return this.pos=found,!0},StringStream.prototype.backUp=function(n){this.pos-=n},StringStream.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=countColumn(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?countColumn(this.string,this.lineStart,this.tabSize):0)},StringStream.prototype.indentation=function(){return countColumn(this.string,null,this.tabSize)-(this.lineStart?countColumn(this.string,this.lineStart,this.tabSize):0)},StringStream.prototype.match=function(pattern,consume,caseInsensitive){if(typeof pattern=="string"){var cased=function(str){return caseInsensitive?str.toLowerCase():str},substr=this.string.substr(this.pos,pattern.length);if(cased(substr)==cased(pattern))return consume!==!1&&(this.pos+=pattern.length),!0}else{var match=this.string.slice(this.pos).match(pattern);return match&&match.index>0?null:(match&&consume!==!1&&(this.pos+=match[0].length),match)}},StringStream.prototype.current=function(){return this.string.slice(this.start,this.pos)},StringStream.prototype.hideFirstChars=function(n,inner){this.lineStart+=n;try{return inner()}finally{this.lineStart-=n}},StringStream.prototype.lookAhead=function(n){var oracle=this.lineOracle;return oracle&&oracle.lookAhead(n)},StringStream.prototype.baseToken=function(){var oracle=this.lineOracle;return oracle&&oracle.baseToken(this.pos)};function getLine(doc2,n){if(n-=doc2.first,n<0||n>=doc2.size)throw new Error("There is no line "+(n+doc2.first)+" in the document.");for(var chunk=doc2;!chunk.lines;)for(var i2=0;;++i2){var child=chunk.children[i2],sz=child.chunkSize();if(n<sz){chunk=child;break}n-=sz}return chunk.lines[n]}function getBetween(doc2,start,end){var out=[],n=start.line;return doc2.iter(start.line,end.line+1,function(line){var text=line.text;n==end.line&&(text=text.slice(0,end.ch)),n==start.line&&(text=text.slice(start.ch)),out.push(text),++n}),out}function getLines(doc2,from,to){var out=[];return doc2.iter(from,to,function(line){out.push(line.text)}),out}function updateLineHeight(line,height){var diff=height-line.height;if(diff)for(var n=line;n;n=n.parent)n.height+=diff}function lineNo(line){if(line.parent==null)return null;for(var cur=line.parent,no=indexOf(cur.lines,line),chunk=cur.parent;chunk;cur=chunk,chunk=chunk.parent)for(var i2=0;chunk.children[i2]!=cur;++i2)no+=chunk.children[i2].chunkSize();return no+cur.first}function lineAtHeight(chunk,h){var n=chunk.first;outer:do{for(var i$12=0;i$12<chunk.children.length;++i$12){var child=chunk.children[i$12],ch=child.height;if(h<ch){chunk=child;continue outer}h-=ch,n+=child.chunkSize()}return n}while(!chunk.lines);for(var i2=0;i2<chunk.lines.length;++i2){var line=chunk.lines[i2],lh=line.height;if(h<lh)break;h-=lh}return n+i2}function isLine(doc2,l){return l>=doc2.first&&l<doc2.first+doc2.size}function lineNumberFor(options,i2){return String(options.lineNumberFormatter(i2+options.firstLineNumber))}function Pos(line,ch,sticky){if(sticky===void 0&&(sticky=null),!(this instanceof Pos))return new Pos(line,ch,sticky);this.line=line,this.ch=ch,this.sticky=sticky}function cmp(a,b){return a.line-b.line||a.ch-b.ch}function equalCursorPos(a,b){return a.sticky==b.sticky&&cmp(a,b)==0}function copyPos(x){return Pos(x.line,x.ch)}function maxPos(a,b){return cmp(a,b)<0?b:a}function minPos(a,b){return cmp(a,b)<0?a:b}function clipLine(doc2,n){return Math.max(doc2.first,Math.min(n,doc2.first+doc2.size-1))}function clipPos(doc2,pos){if(pos.line<doc2.first)return Pos(doc2.first,0);var last=doc2.first+doc2.size-1;return pos.line>last?Pos(last,getLine(doc2,last).text.length):clipToLen(pos,getLine(doc2,pos.line).text.length)}function clipToLen(pos,linelen){var ch=pos.ch;return ch==null||ch>linelen?Pos(pos.line,linelen):ch<0?Pos(pos.line,0):pos}function clipPosArray(doc2,array){for(var out=[],i2=0;i2<array.length;i2++)out[i2]=clipPos(doc2,array[i2]);return out}var SavedContext=function(state,lookAhead){this.state=state,this.lookAhead=lookAhead},Context=function(doc2,state,line,lookAhead){this.state=state,this.doc=doc2,this.line=line,this.maxLookAhead=lookAhead||0,this.baseTokens=null,this.baseTokenPos=1};Context.prototype.lookAhead=function(n){var line=this.doc.getLine(this.line+n);return line!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),line},Context.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var type=this.baseTokens[this.baseTokenPos+1];return{type:type&&type.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Context.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Context.fromSaved=function(doc2,saved,line){return saved instanceof SavedContext?new Context(doc2,copyState(doc2.mode,saved.state),line,saved.lookAhead):new Context(doc2,copyState(doc2.mode,saved),line)},Context.prototype.save=function(copy){var state=copy!==!1?copyState(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new SavedContext(state,this.maxLookAhead):state};function highlightLine(cm,line,context,forceToEnd){var st=[cm.state.modeGen],lineClasses={};runMode(cm,line.text,cm.doc.mode,context,function(end,style){return st.push(end,style)},lineClasses,forceToEnd);for(var state=context.state,loop=function(o2){context.baseTokens=st;var overlay2=cm.state.overlays[o2],i2=1,at=0;context.state=!0,runMode(cm,line.text,overlay2.mode,context,function(end,style){for(var start=i2;at<end;){var i_end=st[i2];i_end>end&&st.splice(i2,1,end,st[i2+1],i_end),i2+=2,at=Math.min(end,i_end)}if(style)if(overlay2.opaque)st.splice(start,i2-start,end,"overlay "+style),i2=start+2;else for(;start<i2;start+=2){var cur=st[start+1];st[start+1]=(cur?cur+" ":"")+"overlay "+style}},lineClasses),context.state=state,context.baseTokens=null,context.baseTokenPos=1},o=0;o<cm.state.overlays.length;++o)loop(o);return{styles:st,classes:lineClasses.bgClass||lineClasses.textClass?lineClasses:null}}function getLineStyles(cm,line,updateFrontier){if(!line.styles||line.styles[0]!=cm.state.modeGen){var context=getContextBefore(cm,lineNo(line)),resetState=line.text.length>cm.options.maxHighlightLength&©State(cm.doc.mode,context.state),result=highlightLine(cm,line,context);resetState&&(context.state=resetState),line.stateAfter=context.save(!resetState),line.styles=result.styles,result.classes?line.styleClasses=result.classes:line.styleClasses&&(line.styleClasses=null),updateFrontier===cm.doc.highlightFrontier&&(cm.doc.modeFrontier=Math.max(cm.doc.modeFrontier,++cm.doc.highlightFrontier))}return line.styles}function getContextBefore(cm,n,precise){var doc2=cm.doc,display=cm.display;if(!doc2.mode.startState)return new Context(doc2,!0,n);var start=findStartLine(cm,n,precise),saved=start>doc2.first&&getLine(doc2,start-1).stateAfter,context=saved?Context.fromSaved(doc2,saved,start):new Context(doc2,startState(doc2.mode),start);return doc2.iter(start,n,function(line){processLine(cm,line.text,context);var pos=context.line;line.stateAfter=pos==n-1||pos%5==0||pos>=display.viewFrom&&pos<display.viewTo?context.save():null,context.nextLine()}),precise&&(doc2.modeFrontier=context.line),context}function processLine(cm,text,context,startAt){var mode=cm.doc.mode,stream=new StringStream(text,cm.options.tabSize,context);for(stream.start=stream.pos=startAt||0,text==""&&callBlankLine(mode,context.state);!stream.eol();)readToken(mode,stream,context.state),stream.start=stream.pos}function callBlankLine(mode,state){if(mode.blankLine)return mode.blankLine(state);if(mode.innerMode){var inner=innerMode(mode,state);if(inner.mode.blankLine)return inner.mode.blankLine(inner.state)}}function readToken(mode,stream,state,inner){for(var i2=0;i2<10;i2++){inner&&(inner[0]=innerMode(mode,state).mode);var style=mode.token(stream,state);if(stream.pos>stream.start)return style}throw new Error("Mode "+mode.name+" failed to advance stream.")}var Token=function(stream,type,state){this.start=stream.start,this.end=stream.pos,this.string=stream.current(),this.type=type||null,this.state=state};function takeToken(cm,pos,precise,asArray){var doc2=cm.doc,mode=doc2.mode,style;pos=clipPos(doc2,pos);var line=getLine(doc2,pos.line),context=getContextBefore(cm,pos.line,precise),stream=new StringStream(line.text,cm.options.tabSize,context),tokens;for(asArray&&(tokens=[]);(asArray||stream.pos<pos.ch)&&!stream.eol();)stream.start=stream.pos,style=readToken(mode,stream,context.state),asArray&&tokens.push(new Token(stream,style,copyState(doc2.mode,context.state)));return asArray?tokens:new Token(stream,style,context.state)}function extractLineClasses(type,output){if(type)for(;;){var lineClass=type.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!lineClass)break;type=type.slice(0,lineClass.index)+type.slice(lineClass.index+lineClass[0].length);var prop2=lineClass[1]?"bgClass":"textClass";output[prop2]==null?output[prop2]=lineClass[2]:new RegExp("(?:^|\\s)"+lineClass[2]+"(?:$|\\s)").test(output[prop2])||(output[prop2]+=" "+lineClass[2])}return type}function runMode(cm,text,mode,context,f,lineClasses,forceToEnd){var flattenSpans=mode.flattenSpans;flattenSpans==null&&(flattenSpans=cm.options.flattenSpans);var curStart=0,curStyle=null,stream=new StringStream(text,cm.options.tabSize,context),style,inner=cm.options.addModeClass&&[null];for(text==""&&extractLineClasses(callBlankLine(mode,context.state),lineClasses);!stream.eol();){if(stream.pos>cm.options.maxHighlightLength?(flattenSpans=!1,forceToEnd&&processLine(cm,text,context,stream.pos),stream.pos=text.length,style=null):style=extractLineClasses(readToken(mode,stream,context.state,inner),lineClasses),inner){var mName=inner[0].name;mName&&(style="m-"+(style?mName+" "+style:mName))}if(!flattenSpans||curStyle!=style){for(;curStart<stream.start;)curStart=Math.min(stream.start,curStart+5e3),f(curStart,curStyle);curStyle=style}stream.start=stream.pos}for(;curStart<stream.pos;){var pos=Math.min(stream.pos,curStart+5e3);f(pos,curStyle),curStart=pos}}function findStartLine(cm,n,precise){for(var minindent,minline,doc2=cm.doc,lim=precise?-1:n-(cm.doc.mode.innerMode?1e3:100),search=n;search>lim;--search){if(search<=doc2.first)return doc2.first;var line=getLine(doc2,search-1),after=line.stateAfter;if(after&&(!precise||search+(after instanceof SavedContext?after.lookAhead:0)<=doc2.modeFrontier))return search;var indented=countColumn(line.text,null,cm.options.tabSize);(minline==null||minindent>indented)&&(minline=search-1,minindent=indented)}return minline}function retreatFrontier(doc2,n){if(doc2.modeFrontier=Math.min(doc2.modeFrontier,n),!(doc2.highlightFrontier<n-10)){for(var start=doc2.first,line=n-1;line>start;line--){var saved=getLine(doc2,line).stateAfter;if(saved&&(!(saved instanceof SavedContext)||line+saved.lookAhead<n)){start=line+1;break}}doc2.highlightFrontier=Math.min(doc2.highlightFrontier,start)}}var sawReadOnlySpans=!1,sawCollapsedSpans=!1;function seeReadOnlySpans(){sawReadOnlySpans=!0}function seeCollapsedSpans(){sawCollapsedSpans=!0}function MarkedSpan(marker,from,to){this.marker=marker,this.from=from,this.to=to}function getMarkedSpanFor(spans,marker){if(spans)for(var i2=0;i2<spans.length;++i2){var span=spans[i2];if(span.marker==marker)return span}}function removeMarkedSpan(spans,span){for(var r,i2=0;i2<spans.length;++i2)spans[i2]!=span&&(r||(r=[])).push(spans[i2]);return r}function addMarkedSpan(line,span,op){var inThisOp=op&&window.WeakSet&&(op.markedSpans||(op.markedSpans=new WeakSet));inThisOp&&line.markedSpans&&inThisOp.has(line.markedSpans)?line.markedSpans.push(span):(line.markedSpans=line.markedSpans?line.markedSpans.concat([span]):[span],inThisOp&&inThisOp.add(line.markedSpans)),span.marker.attachLine(line)}function markedSpansBefore(old,startCh,isInsert){var nw;if(old)for(var i2=0;i2<old.length;++i2){var span=old[i2],marker=span.marker,startsBefore=span.from==null||(marker.inclusiveLeft?span.from<=startCh:span.from<startCh);if(startsBefore||span.from==startCh&&marker.type=="bookmark"&&(!isInsert||!span.marker.insertLeft)){var endsAfter=span.to==null||(marker.inclusiveRight?span.to>=startCh:span.to>startCh);(nw||(nw=[])).push(new MarkedSpan(marker,span.from,endsAfter?null:span.to))}}return nw}function markedSpansAfter(old,endCh,isInsert){var nw;if(old)for(var i2=0;i2<old.length;++i2){var span=old[i2],marker=span.marker,endsAfter=span.to==null||(marker.inclusiveRight?span.to>=endCh:span.to>endCh);if(endsAfter||span.from==endCh&&marker.type=="bookmark"&&(!isInsert||span.marker.insertLeft)){var startsBefore=span.from==null||(marker.inclusiveLeft?span.from<=endCh:span.from<endCh);(nw||(nw=[])).push(new MarkedSpan(marker,startsBefore?null:span.from-endCh,span.to==null?null:span.to-endCh))}}return nw}function stretchSpansOverChange(doc2,change){if(change.full)return null;var oldFirst=isLine(doc2,change.from.line)&&getLine(doc2,change.from.line).markedSpans,oldLast=isLine(doc2,change.to.line)&&getLine(doc2,change.to.line).markedSpans;if(!oldFirst&&!oldLast)return null;var startCh=change.from.ch,endCh=change.to.ch,isInsert=cmp(change.from,change.to)==0,first=markedSpansBefore(oldFirst,startCh,isInsert),last=markedSpansAfter(oldLast,endCh,isInsert),sameLine=change.text.length==1,offset=lst(change.text).length+(sameLine?startCh:0);if(first)for(var i2=0;i2<first.length;++i2){var span=first[i2];if(span.to==null){var found=getMarkedSpanFor(last,span.marker);found?sameLine&&(span.to=found.to==null?null:found.to+offset):span.to=startCh}}if(last)for(var i$12=0;i$12<last.length;++i$12){var span$1=last[i$12];if(span$1.to!=null&&(span$1.to+=offset),span$1.from==null){var found$1=getMarkedSpanFor(first,span$1.marker);found$1||(span$1.from=offset,sameLine&&(first||(first=[])).push(span$1))}else span$1.from+=offset,sameLine&&(first||(first=[])).push(span$1)}first&&(first=clearEmptySpans(first)),last&&last!=first&&(last=clearEmptySpans(last));var newMarkers=[first];if(!sameLine){var gap=change.text.length-2,gapMarkers;if(gap>0&&first)for(var i$22=0;i$22<first.length;++i$22)first[i$22].to==null&&(gapMarkers||(gapMarkers=[])).push(new MarkedSpan(first[i$22].marker,null,null));for(var i$3=0;i$3<gap;++i$3)newMarkers.push(gapMarkers);newMarkers.push(last)}return newMarkers}function clearEmptySpans(spans){for(var i2=0;i2<spans.length;++i2){var span=spans[i2];span.from!=null&&span.from==span.to&&span.marker.clearWhenEmpty!==!1&&spans.splice(i2--,1)}return spans.length?spans:null}function removeReadOnlyRanges(doc2,from,to){var markers=null;if(doc2.iter(from.line,to.line+1,function(line){if(line.markedSpans)for(var i3=0;i3<line.markedSpans.length;++i3){var mark=line.markedSpans[i3].marker;mark.readOnly&&(!markers||indexOf(markers,mark)==-1)&&(markers||(markers=[])).push(mark)}}),!markers)return null;for(var parts=[{from,to}],i2=0;i2<markers.length;++i2)for(var mk=markers[i2],m=mk.find(0),j=0;j<parts.length;++j){var p=parts[j];if(!(cmp(p.to,m.from)<0||cmp(p.from,m.to)>0)){var newParts=[j,1],dfrom=cmp(p.from,m.from),dto=cmp(p.to,m.to);(dfrom<0||!mk.inclusiveLeft&&!dfrom)&&newParts.push({from:p.from,to:m.from}),(dto>0||!mk.inclusiveRight&&!dto)&&newParts.push({from:m.to,to:p.to}),parts.splice.apply(parts,newParts),j+=newParts.length-3}}return parts}function detachMarkedSpans(line){var spans=line.markedSpans;if(spans){for(var i2=0;i2<spans.length;++i2)spans[i2].marker.detachLine(line);line.markedSpans=null}}function attachMarkedSpans(line,spans){if(spans){for(var i2=0;i2<spans.length;++i2)spans[i2].marker.attachLine(line);line.markedSpans=spans}}function extraLeft(marker){return marker.inclusiveLeft?-1:0}function extraRight(marker){return marker.inclusiveRight?1:0}function compareCollapsedMarkers(a,b){var lenDiff=a.lines.length-b.lines.length;if(lenDiff!=0)return lenDiff;var aPos=a.find(),bPos=b.find(),fromCmp=cmp(aPos.from,bPos.from)||extraLeft(a)-extraLeft(b);if(fromCmp)return-fromCmp;var toCmp=cmp(aPos.to,bPos.to)||extraRight(a)-extraRight(b);return toCmp||b.id-a.id}function collapsedSpanAtSide(line,start){var sps=sawCollapsedSpans&&line.markedSpans,found;if(sps)for(var sp=void 0,i2=0;i2<sps.length;++i2)sp=sps[i2],sp.marker.collapsed&&(start?sp.from:sp.to)==null&&(!found||compareCollapsedMarkers(found,sp.marker)<0)&&(found=sp.marker);return found}function collapsedSpanAtStart(line){return collapsedSpanAtSide(line,!0)}function collapsedSpanAtEnd(line){return collapsedSpanAtSide(line,!1)}function collapsedSpanAround(line,ch){var sps=sawCollapsedSpans&&line.markedSpans,found;if(sps)for(var i2=0;i2<sps.length;++i2){var sp=sps[i2];sp.marker.collapsed&&(sp.from==null||sp.from<ch)&&(sp.to==null||sp.to>ch)&&(!found||compareCollapsedMarkers(found,sp.marker)<0)&&(found=sp.marker)}return found}function conflictingCollapsedRange(doc2,lineNo2,from,to,marker){var line=getLine(doc2,lineNo2),sps=sawCollapsedSpans&&line.markedSpans;if(sps)for(var i2=0;i2<sps.length;++i2){var sp=sps[i2];if(sp.marker.collapsed){var found=sp.marker.find(0),fromCmp=cmp(found.from,from)||extraLeft(sp.marker)-extraLeft(marker),toCmp=cmp(found.to,to)||extraRight(sp.marker)-extraRight(marker);if(!(fromCmp>=0&&toCmp<=0||fromCmp<=0&&toCmp>=0)&&(fromCmp<=0&&(sp.marker.inclusiveRight&&marker.inclusiveLeft?cmp(found.to,from)>=0:cmp(found.to,from)>0)||fromCmp>=0&&(sp.marker.inclusiveRight&&marker.inclusiveLeft?cmp(found.from,to)<=0:cmp(found.from,to)<0)))return!0}}}function visualLine(line){for(var merged;merged=collapsedSpanAtStart(line);)line=merged.find(-1,!0).line;return line}function visualLineEnd(line){for(var merged;merged=collapsedSpanAtEnd(line);)line=merged.find(1,!0).line;return line}function visualLineContinued(line){for(var merged,lines;merged=collapsedSpanAtEnd(line);)line=merged.find(1,!0).line,(lines||(lines=[])).push(line);return lines}function visualLineNo(doc2,lineN){var line=getLine(doc2,lineN),vis=visualLine(line);return line==vis?lineN:lineNo(vis)}function visualLineEndNo(doc2,lineN){if(lineN>doc2.lastLine())return lineN;var line=getLine(doc2,lineN),merged;if(!lineIsHidden(doc2,line))return lineN;for(;merged=collapsedSpanAtEnd(line);)line=merged.find(1,!0).line;return lineNo(line)+1}function lineIsHidden(doc2,line){var sps=sawCollapsedSpans&&line.markedSpans;if(sps){for(var sp=void 0,i2=0;i2<sps.length;++i2)if(sp=sps[i2],!!sp.marker.collapsed){if(sp.from==null)return!0;if(!sp.marker.widgetNode&&sp.from==0&&sp.marker.inclusiveLeft&&lineIsHiddenInner(doc2,line,sp))return!0}}}function lineIsHiddenInner(doc2,line,span){if(span.to==null){var end=span.marker.find(1,!0);return lineIsHiddenInner(doc2,end.line,getMarkedSpanFor(end.line.markedSpans,span.marker))}if(span.marker.inclusiveRight&&span.to==line.text.length)return!0;for(var sp=void 0,i2=0;i2<line.markedSpans.length;++i2)if(sp=line.markedSpans[i2],sp.marker.collapsed&&!sp.marker.widgetNode&&sp.from==span.to&&(sp.to==null||sp.to!=span.from)&&(sp.marker.inclusiveLeft||span.marker.inclusiveRight)&&lineIsHiddenInner(doc2,line,sp))return!0}function heightAtLine(lineObj){lineObj=visualLine(lineObj);for(var h=0,chunk=lineObj.parent,i2=0;i2<chunk.lines.length;++i2){var line=chunk.lines[i2];if(line==lineObj)break;h+=line.height}for(var p=chunk.parent;p;chunk=p,p=chunk.parent)for(var i$12=0;i$12<p.children.length;++i$12){var cur=p.children[i$12];if(cur==chunk)break;h+=cur.height}return h}function lineLength(line){if(line.height==0)return 0;for(var len=line.text.length,merged,cur=line;merged=collapsedSpanAtStart(cur);){var found=merged.find(0,!0);cur=found.from.line,len+=found.from.ch-found.to.ch}for(cur=line;merged=collapsedSpanAtEnd(cur);){var found$1=merged.find(0,!0);len-=cur.text.length-found$1.from.ch,cur=found$1.to.line,len+=cur.text.length-found$1.to.ch}return len}function findMaxLine(cm){var d=cm.display,doc2=cm.doc;d.maxLine=getLine(doc2,doc2.first),d.maxLineLength=lineLength(d.maxLine),d.maxLineChanged=!0,doc2.iter(function(line){var len=lineLength(line);len>d.maxLineLength&&(d.maxLineLength=len,d.maxLine=line)})}var Line=function(text,markedSpans,estimateHeight2){this.text=text,attachMarkedSpans(this,markedSpans),this.height=estimateHeight2?estimateHeight2(this):1};Line.prototype.lineNo=function(){return lineNo(this)},eventMixin(Line);function updateLine(line,text,markedSpans,estimateHeight2){line.text=text,line.stateAfter&&(line.stateAfter=null),line.styles&&(line.styles=null),line.order!=null&&(line.order=null),detachMarkedSpans(line),attachMarkedSpans(line,markedSpans);var estHeight=estimateHeight2?estimateHeight2(line):1;estHeight!=line.height&&updateLineHeight(line,estHeight)}function cleanUpLine(line){line.parent=null,detachMarkedSpans(line)}var styleToClassCache={},styleToClassCacheWithMode={};function interpretTokenStyle(style,options){if(!style||/^\s*$/.test(style))return null;var cache=options.addModeClass?styleToClassCacheWithMode:styleToClassCache;return cache[style]||(cache[style]=style.replace(/\S+/g,"cm-$&"))}function buildLineContent(cm,lineView){var content=eltP("span",null,null,webkit?"padding-right: .1px":null),builder={pre:eltP("pre",[content],"CodeMirror-line"),content,col:0,pos:0,cm,trailingSpace:!1,splitSpaces:cm.getOption("lineWrapping")};lineView.measure={};for(var i2=0;i2<=(lineView.rest?lineView.rest.length:0);i2++){var line=i2?lineView.rest[i2-1]:lineView.line,order=void 0;builder.pos=0,builder.addToken=buildToken,hasBadBidiRects(cm.display.measure)&&(order=getOrder(line,cm.doc.direction))&&(builder.addToken=buildTokenBadBidi(builder.addToken,order)),builder.map=[];var allowFrontierUpdate=lineView!=cm.display.externalMeasured&&lineNo(line);insertLineContent(line,builder,getLineStyles(cm,line,allowFrontierUpdate)),line.styleClasses&&(line.styleClasses.bgClass&&(builder.bgClass=joinClasses(line.styleClasses.bgClass,builder.bgClass||"")),line.styleClasses.textClass&&(builder.textClass=joinClasses(line.styleClasses.textClass,builder.textClass||""))),builder.map.length==0&&builder.map.push(0,0,builder.content.appendChild(zeroWidthElement(cm.display.measure))),i2==0?(lineView.measure.map=builder.map,lineView.measure.cache={}):((lineView.measure.maps||(lineView.measure.maps=[])).push(builder.map),(lineView.measure.caches||(lineView.measure.caches=[])).push({}))}if(webkit){var last=builder.content.lastChild;(/\bcm-tab\b/.test(last.className)||last.querySelector&&last.querySelector(".cm-tab"))&&(builder.content.className="cm-tab-wrap-hack")}return signal(cm,"renderLine",cm,lineView.line,builder.pre),builder.pre.className&&(builder.textClass=joinClasses(builder.pre.className,builder.textClass||"")),builder}function defaultSpecialCharPlaceholder(ch){var token=elt("span","•","cm-invalidchar");return token.title="\\u"+ch.charCodeAt(0).toString(16),token.setAttribute("aria-label",token.title),token}function buildToken(builder,text,style,startStyle,endStyle,css2,attributes){if(text){var displayText=builder.splitSpaces?splitSpaces(text,builder.trailingSpace):text,special=builder.cm.state.specialChars,mustWrap=!1,content;if(!special.test(text))builder.col+=text.length,content=document.createTextNode(displayText),builder.map.push(builder.pos,builder.pos+text.length,content),ie&&ie_version<9&&(mustWrap=!0),builder.pos+=text.length;else{content=document.createDocumentFragment();for(var pos=0;;){special.lastIndex=pos;var m=special.exec(text),skipped=m?m.index-pos:text.length-pos;if(skipped){var txt=document.createTextNode(displayText.slice(pos,pos+skipped));ie&&ie_version<9?content.appendChild(elt("span",[txt])):content.appendChild(txt),builder.map.push(builder.pos,builder.pos+skipped,txt),builder.col+=skipped,builder.pos+=skipped}if(!m)break;pos+=skipped+1;var txt$1=void 0;if(m[0]==" "){var tabSize=builder.cm.options.tabSize,tabWidth=tabSize-builder.col%tabSize;txt$1=content.appendChild(elt("span",spaceStr(tabWidth),"cm-tab")),txt$1.setAttribute("role","presentation"),txt$1.setAttribute("cm-text"," "),builder.col+=tabWidth}else m[0]=="\r"||m[0]==`
|
|
6
5
|
`?(txt$1=content.appendChild(elt("span",m[0]=="\r"?"␍":"","cm-invalidchar")),txt$1.setAttribute("cm-text",m[0]),builder.col+=1):(txt$1=builder.cm.options.specialCharPlaceholder(m[0]),txt$1.setAttribute("cm-text",m[0]),ie&&ie_version<9?content.appendChild(elt("span",[txt$1])):content.appendChild(txt$1),builder.col+=1);builder.map.push(builder.pos,builder.pos+1,txt$1),builder.pos++}}if(builder.trailingSpace=displayText.charCodeAt(text.length-1)==32,style||startStyle||endStyle||mustWrap||css2||attributes){var fullStyle=style||"";startStyle&&(fullStyle+=startStyle),endStyle&&(fullStyle+=endStyle);var token=elt("span",[content],fullStyle,css2);if(attributes)for(var attr in attributes)attributes.hasOwnProperty(attr)&&attr!="style"&&attr!="class"&&token.setAttribute(attr,attributes[attr]);return builder.content.appendChild(token)}builder.content.appendChild(content)}}function splitSpaces(text,trailingBefore){if(text.length>1&&!/ /.test(text))return text;for(var spaceBefore=trailingBefore,result="",i2=0;i2<text.length;i2++){var ch=text.charAt(i2);ch==" "&&spaceBefore&&(i2==text.length-1||text.charCodeAt(i2+1)==32)&&(ch=" "),result+=ch,spaceBefore=ch==" "}return result}function buildTokenBadBidi(inner,order){return function(builder,text,style,startStyle,endStyle,css2,attributes){style=style?style+" cm-force-border":"cm-force-border";for(var start=builder.pos,end=start+text.length;;){for(var part=void 0,i2=0;i2<order.length&&(part=order[i2],!(part.to>start&&part.from<=start));i2++);if(part.to>=end)return inner(builder,text,style,startStyle,endStyle,css2,attributes);inner(builder,text.slice(0,part.to-start),style,startStyle,null,css2,attributes),startStyle=null,text=text.slice(part.to-start),start=part.to}}}function buildCollapsedSpan(builder,size,marker,ignoreWidget){var widget=!ignoreWidget&&marker.widgetNode;widget&&builder.map.push(builder.pos,builder.pos+size,widget),!ignoreWidget&&builder.cm.display.input.needsContentAttribute&&(widget||(widget=builder.content.appendChild(document.createElement("span"))),widget.setAttribute("cm-marker",marker.id)),widget&&(builder.cm.display.input.setUneditable(widget),builder.content.appendChild(widget)),builder.pos+=size,builder.trailingSpace=!1}function insertLineContent(line,builder,styles){var spans=line.markedSpans,allText=line.text,at=0;if(!spans){for(var i$12=1;i$12<styles.length;i$12+=2)builder.addToken(builder,allText.slice(at,at=styles[i$12]),interpretTokenStyle(styles[i$12+1],builder.cm.options));return}for(var len=allText.length,pos=0,i2=1,text="",style,css2,nextChange=0,spanStyle,spanEndStyle,spanStartStyle,collapsed,attributes;;){if(nextChange==pos){spanStyle=spanEndStyle=spanStartStyle=css2="",attributes=null,collapsed=null,nextChange=1/0;for(var foundBookmarks=[],endStyles=void 0,j=0;j<spans.length;++j){var sp=spans[j],m=sp.marker;if(m.type=="bookmark"&&sp.from==pos&&m.widgetNode)foundBookmarks.push(m);else if(sp.from<=pos&&(sp.to==null||sp.to>pos||m.collapsed&&sp.to==pos&&sp.from==pos)){if(sp.to!=null&&sp.to!=pos&&nextChange>sp.to&&(nextChange=sp.to,spanEndStyle=""),m.className&&(spanStyle+=" "+m.className),m.css&&(css2=(css2?css2+";":"")+m.css),m.startStyle&&sp.from==pos&&(spanStartStyle+=" "+m.startStyle),m.endStyle&&sp.to==nextChange&&(endStyles||(endStyles=[])).push(m.endStyle,sp.to),m.title&&((attributes||(attributes={})).title=m.title),m.attributes)for(var attr in m.attributes)(attributes||(attributes={}))[attr]=m.attributes[attr];m.collapsed&&(!collapsed||compareCollapsedMarkers(collapsed.marker,m)<0)&&(collapsed=sp)}else sp.from>pos&&nextChange>sp.from&&(nextChange=sp.from)}if(endStyles)for(var j$1=0;j$1<endStyles.length;j$1+=2)endStyles[j$1+1]==nextChange&&(spanEndStyle+=" "+endStyles[j$1]);if(!collapsed||collapsed.from==pos)for(var j$2=0;j$2<foundBookmarks.length;++j$2)buildCollapsedSpan(builder,0,foundBookmarks[j$2]);if(collapsed&&(collapsed.from||0)==pos){if(buildCollapsedSpan(builder,(collapsed.to==null?len+1:collapsed.to)-pos,collapsed.marker,collapsed.from==null),collapsed.to==null)return;collapsed.to==pos&&(collapsed=!1)}}if(pos>=len)break;for(var upto=Math.min(len,nextChange);;){if(text){var end=pos+text.length;if(!collapsed){var tokenText=end>upto?text.slice(0,upto-pos):text;builder.addToken(builder,tokenText,style?style+spanStyle:spanStyle,spanStartStyle,pos+tokenText.length==nextChange?spanEndStyle:"",css2,attributes)}if(end>=upto){text=text.slice(upto-pos),pos=upto;break}pos=end,spanStartStyle=""}text=allText.slice(at,at=styles[i2++]),style=interpretTokenStyle(styles[i2++],builder.cm.options)}}}function LineView(doc2,line,lineN){this.line=line,this.rest=visualLineContinued(line),this.size=this.rest?lineNo(lst(this.rest))-lineN+1:1,this.node=this.text=null,this.hidden=lineIsHidden(doc2,line)}function buildViewArray(cm,from,to){for(var array=[],nextPos,pos=from;pos<to;pos=nextPos){var view=new LineView(cm.doc,getLine(cm.doc,pos),pos);nextPos=pos+view.size,array.push(view)}return array}var operationGroup=null;function pushOperation(op){operationGroup?operationGroup.ops.push(op):op.ownsGroup=operationGroup={ops:[op],delayedCallbacks:[]}}function fireCallbacksForOps(group){var callbacks=group.delayedCallbacks,i2=0;do{for(;i2<callbacks.length;i2++)callbacks[i2].call(null);for(var j=0;j<group.ops.length;j++){var op=group.ops[j];if(op.cursorActivityHandlers)for(;op.cursorActivityCalled<op.cursorActivityHandlers.length;)op.cursorActivityHandlers[op.cursorActivityCalled++].call(null,op.cm)}}while(i2<callbacks.length)}function finishOperation(op,endCb){var group=op.ownsGroup;if(group)try{fireCallbacksForOps(group)}finally{operationGroup=null,endCb(group)}}var orphanDelayedCallbacks=null;function signalLater(emitter,type){var arr=getHandlers(emitter,type);if(arr.length){var args=Array.prototype.slice.call(arguments,2),list;operationGroup?list=operationGroup.delayedCallbacks:orphanDelayedCallbacks?list=orphanDelayedCallbacks:(list=orphanDelayedCallbacks=[],setTimeout(fireOrphanDelayed,0));for(var loop=function(i3){list.push(function(){return arr[i3].apply(null,args)})},i2=0;i2<arr.length;++i2)loop(i2)}}function fireOrphanDelayed(){var delayed=orphanDelayedCallbacks;orphanDelayedCallbacks=null;for(var i2=0;i2<delayed.length;++i2)delayed[i2]()}function updateLineForChanges(cm,lineView,lineN,dims){for(var j=0;j<lineView.changes.length;j++){var type=lineView.changes[j];type=="text"?updateLineText(cm,lineView):type=="gutter"?updateLineGutter(cm,lineView,lineN,dims):type=="class"?updateLineClasses(cm,lineView):type=="widget"&&updateLineWidgets(cm,lineView,dims)}lineView.changes=null}function ensureLineWrapped(lineView){return lineView.node==lineView.text&&(lineView.node=elt("div",null,null,"position: relative"),lineView.text.parentNode&&lineView.text.parentNode.replaceChild(lineView.node,lineView.text),lineView.node.appendChild(lineView.text),ie&&ie_version<8&&(lineView.node.style.zIndex=2)),lineView.node}function updateLineBackground(cm,lineView){var cls=lineView.bgClass?lineView.bgClass+" "+(lineView.line.bgClass||""):lineView.line.bgClass;if(cls&&(cls+=" CodeMirror-linebackground"),lineView.background)cls?lineView.background.className=cls:(lineView.background.parentNode.removeChild(lineView.background),lineView.background=null);else if(cls){var wrap=ensureLineWrapped(lineView);lineView.background=wrap.insertBefore(elt("div",null,cls),wrap.firstChild),cm.display.input.setUneditable(lineView.background)}}function getLineContent(cm,lineView){var ext=cm.display.externalMeasured;return ext&&ext.line==lineView.line?(cm.display.externalMeasured=null,lineView.measure=ext.measure,ext.built):buildLineContent(cm,lineView)}function updateLineText(cm,lineView){var cls=lineView.text.className,built=getLineContent(cm,lineView);lineView.text==lineView.node&&(lineView.node=built.pre),lineView.text.parentNode.replaceChild(built.pre,lineView.text),lineView.text=built.pre,built.bgClass!=lineView.bgClass||built.textClass!=lineView.textClass?(lineView.bgClass=built.bgClass,lineView.textClass=built.textClass,updateLineClasses(cm,lineView)):cls&&(lineView.text.className=cls)}function updateLineClasses(cm,lineView){updateLineBackground(cm,lineView),lineView.line.wrapClass?ensureLineWrapped(lineView).className=lineView.line.wrapClass:lineView.node!=lineView.text&&(lineView.node.className="");var textClass=lineView.textClass?lineView.textClass+" "+(lineView.line.textClass||""):lineView.line.textClass;lineView.text.className=textClass||""}function updateLineGutter(cm,lineView,lineN,dims){if(lineView.gutter&&(lineView.node.removeChild(lineView.gutter),lineView.gutter=null),lineView.gutterBackground&&(lineView.node.removeChild(lineView.gutterBackground),lineView.gutterBackground=null),lineView.line.gutterClass){var wrap=ensureLineWrapped(lineView);lineView.gutterBackground=elt("div",null,"CodeMirror-gutter-background "+lineView.line.gutterClass,"left: "+(cm.options.fixedGutter?dims.fixedPos:-dims.gutterTotalWidth)+"px; width: "+dims.gutterTotalWidth+"px"),cm.display.input.setUneditable(lineView.gutterBackground),wrap.insertBefore(lineView.gutterBackground,lineView.text)}var markers=lineView.line.gutterMarkers;if(cm.options.lineNumbers||markers){var wrap$1=ensureLineWrapped(lineView),gutterWrap=lineView.gutter=elt("div",null,"CodeMirror-gutter-wrapper","left: "+(cm.options.fixedGutter?dims.fixedPos:-dims.gutterTotalWidth)+"px");if(gutterWrap.setAttribute("aria-hidden","true"),cm.display.input.setUneditable(gutterWrap),wrap$1.insertBefore(gutterWrap,lineView.text),lineView.line.gutterClass&&(gutterWrap.className+=" "+lineView.line.gutterClass),cm.options.lineNumbers&&(!markers||!markers["CodeMirror-linenumbers"])&&(lineView.lineNumber=gutterWrap.appendChild(elt("div",lineNumberFor(cm.options,lineN),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+dims.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+cm.display.lineNumInnerWidth+"px"))),markers)for(var k=0;k<cm.display.gutterSpecs.length;++k){var id=cm.display.gutterSpecs[k].className,found=markers.hasOwnProperty(id)&&markers[id];found&&gutterWrap.appendChild(elt("div",[found],"CodeMirror-gutter-elt","left: "+dims.gutterLeft[id]+"px; width: "+dims.gutterWidth[id]+"px"))}}}function updateLineWidgets(cm,lineView,dims){lineView.alignable&&(lineView.alignable=null);for(var isWidget=classTest("CodeMirror-linewidget"),node=lineView.node.firstChild,next=void 0;node;node=next)next=node.nextSibling,isWidget.test(node.className)&&lineView.node.removeChild(node);insertLineWidgets(cm,lineView,dims)}function buildLineElement(cm,lineView,lineN,dims){var built=getLineContent(cm,lineView);return lineView.text=lineView.node=built.pre,built.bgClass&&(lineView.bgClass=built.bgClass),built.textClass&&(lineView.textClass=built.textClass),updateLineClasses(cm,lineView),updateLineGutter(cm,lineView,lineN,dims),insertLineWidgets(cm,lineView,dims),lineView.node}function insertLineWidgets(cm,lineView,dims){if(insertLineWidgetsFor(cm,lineView.line,lineView,dims,!0),lineView.rest)for(var i2=0;i2<lineView.rest.length;i2++)insertLineWidgetsFor(cm,lineView.rest[i2],lineView,dims,!1)}function insertLineWidgetsFor(cm,line,lineView,dims,allowAbove){if(line.widgets)for(var wrap=ensureLineWrapped(lineView),i2=0,ws=line.widgets;i2<ws.length;++i2){var widget=ws[i2],node=elt("div",[widget.node],"CodeMirror-linewidget"+(widget.className?" "+widget.className:""));widget.handleMouseEvents||node.setAttribute("cm-ignore-events","true"),positionLineWidget(widget,node,lineView,dims),cm.display.input.setUneditable(node),allowAbove&&widget.above?wrap.insertBefore(node,lineView.gutter||lineView.text):wrap.appendChild(node),signalLater(widget,"redraw")}}function positionLineWidget(widget,node,lineView,dims){if(widget.noHScroll){(lineView.alignable||(lineView.alignable=[])).push(node);var width=dims.wrapperWidth;node.style.left=dims.fixedPos+"px",widget.coverGutter||(width-=dims.gutterTotalWidth,node.style.paddingLeft=dims.gutterTotalWidth+"px"),node.style.width=width+"px"}widget.coverGutter&&(node.style.zIndex=5,node.style.position="relative",widget.noHScroll||(node.style.marginLeft=-dims.gutterTotalWidth+"px"))}function widgetHeight(widget){if(widget.height!=null)return widget.height;var cm=widget.doc.cm;if(!cm)return 0;if(!contains(document.body,widget.node)){var parentStyle="position: relative;";widget.coverGutter&&(parentStyle+="margin-left: -"+cm.display.gutters.offsetWidth+"px;"),widget.noHScroll&&(parentStyle+="width: "+cm.display.wrapper.clientWidth+"px;"),removeChildrenAndAdd(cm.display.measure,elt("div",[widget.node],null,parentStyle))}return widget.height=widget.node.parentNode.offsetHeight}function eventInWidget(display,e){for(var n=e_target(e);n!=display.wrapper;n=n.parentNode)if(!n||n.nodeType==1&&n.getAttribute("cm-ignore-events")=="true"||n.parentNode==display.sizer&&n!=display.mover)return!0}function paddingTop(display){return display.lineSpace.offsetTop}function paddingVert(display){return display.mover.offsetHeight-display.lineSpace.offsetHeight}function paddingH(display){if(display.cachedPaddingH)return display.cachedPaddingH;var e=removeChildrenAndAdd(display.measure,elt("pre","x","CodeMirror-line-like")),style=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,data={left:parseInt(style.paddingLeft),right:parseInt(style.paddingRight)};return!isNaN(data.left)&&!isNaN(data.right)&&(display.cachedPaddingH=data),data}function scrollGap(cm){return scrollerGap-cm.display.nativeBarWidth}function displayWidth(cm){return cm.display.scroller.clientWidth-scrollGap(cm)-cm.display.barWidth}function displayHeight(cm){return cm.display.scroller.clientHeight-scrollGap(cm)-cm.display.barHeight}function ensureLineHeights(cm,lineView,rect){var wrapping=cm.options.lineWrapping,curWidth=wrapping&&displayWidth(cm);if(!lineView.measure.heights||wrapping&&lineView.measure.width!=curWidth){var heights=lineView.measure.heights=[];if(wrapping){lineView.measure.width=curWidth;for(var rects=lineView.text.firstChild.getClientRects(),i2=0;i2<rects.length-1;i2++){var cur=rects[i2],next=rects[i2+1];Math.abs(cur.bottom-next.bottom)>2&&heights.push((cur.bottom+next.top)/2-rect.top)}}heights.push(rect.bottom-rect.top)}}function mapFromLineView(lineView,line,lineN){if(lineView.line==line)return{map:lineView.measure.map,cache:lineView.measure.cache};if(lineView.rest){for(var i2=0;i2<lineView.rest.length;i2++)if(lineView.rest[i2]==line)return{map:lineView.measure.maps[i2],cache:lineView.measure.caches[i2]};for(var i$12=0;i$12<lineView.rest.length;i$12++)if(lineNo(lineView.rest[i$12])>lineN)return{map:lineView.measure.maps[i$12],cache:lineView.measure.caches[i$12],before:!0}}}function updateExternalMeasurement(cm,line){line=visualLine(line);var lineN=lineNo(line),view=cm.display.externalMeasured=new LineView(cm.doc,line,lineN);view.lineN=lineN;var built=view.built=buildLineContent(cm,view);return view.text=built.pre,removeChildrenAndAdd(cm.display.lineMeasure,built.pre),view}function measureChar(cm,line,ch,bias){return measureCharPrepared(cm,prepareMeasureForLine(cm,line),ch,bias)}function findViewForLine(cm,lineN){if(lineN>=cm.display.viewFrom&&lineN<cm.display.viewTo)return cm.display.view[findViewIndex(cm,lineN)];var ext=cm.display.externalMeasured;if(ext&&lineN>=ext.lineN&&lineN<ext.lineN+ext.size)return ext}function prepareMeasureForLine(cm,line){var lineN=lineNo(line),view=findViewForLine(cm,lineN);view&&!view.text?view=null:view&&view.changes&&(updateLineForChanges(cm,view,lineN,getDimensions(cm)),cm.curOp.forceUpdate=!0),view||(view=updateExternalMeasurement(cm,line));var info=mapFromLineView(view,line,lineN);return{line,view,rect:null,map:info.map,cache:info.cache,before:info.before,hasHeights:!1}}function measureCharPrepared(cm,prepared,ch,bias,varHeight){prepared.before&&(ch=-1);var key=ch+(bias||""),found;return prepared.cache.hasOwnProperty(key)?found=prepared.cache[key]:(prepared.rect||(prepared.rect=prepared.view.text.getBoundingClientRect()),prepared.hasHeights||(ensureLineHeights(cm,prepared.view,prepared.rect),prepared.hasHeights=!0),found=measureCharInner(cm,prepared,ch,bias),found.bogus||(prepared.cache[key]=found)),{left:found.left,right:found.right,top:varHeight?found.rtop:found.top,bottom:varHeight?found.rbottom:found.bottom}}var nullRect={left:0,right:0,top:0,bottom:0};function nodeAndOffsetInLineMap(map2,ch,bias){for(var node,start,end,collapse,mStart,mEnd,i2=0;i2<map2.length;i2+=3)if(mStart=map2[i2],mEnd=map2[i2+1],ch<mStart?(start=0,end=1,collapse="left"):ch<mEnd?(start=ch-mStart,end=start+1):(i2==map2.length-3||ch==mEnd&&map2[i2+3]>ch)&&(end=mEnd-mStart,start=end-1,ch>=mEnd&&(collapse="right")),start!=null){if(node=map2[i2+2],mStart==mEnd&&bias==(node.insertLeft?"left":"right")&&(collapse=bias),bias=="left"&&start==0)for(;i2&&map2[i2-2]==map2[i2-3]&&map2[i2-1].insertLeft;)node=map2[(i2-=3)+2],collapse="left";if(bias=="right"&&start==mEnd-mStart)for(;i2<map2.length-3&&map2[i2+3]==map2[i2+4]&&!map2[i2+5].insertLeft;)node=map2[(i2+=3)+2],collapse="right";break}return{node,start,end,collapse,coverStart:mStart,coverEnd:mEnd}}function getUsefulRect(rects,bias){var rect=nullRect;if(bias=="left")for(var i2=0;i2<rects.length&&(rect=rects[i2]).left==rect.right;i2++);else for(var i$12=rects.length-1;i$12>=0&&(rect=rects[i$12]).left==rect.right;i$12--);return rect}function measureCharInner(cm,prepared,ch,bias){var place=nodeAndOffsetInLineMap(prepared.map,ch,bias),node=place.node,start=place.start,end=place.end,collapse=place.collapse,rect;if(node.nodeType==3){for(var i$12=0;i$12<4;i$12++){for(;start&&isExtendingChar(prepared.line.text.charAt(place.coverStart+start));)--start;for(;place.coverStart+end<place.coverEnd&&isExtendingChar(prepared.line.text.charAt(place.coverStart+end));)++end;if(ie&&ie_version<9&&start==0&&end==place.coverEnd-place.coverStart?rect=node.parentNode.getBoundingClientRect():rect=getUsefulRect(range(node,start,end).getClientRects(),bias),rect.left||rect.right||start==0)break;end=start,start=start-1,collapse="right"}ie&&ie_version<11&&(rect=maybeUpdateRectForZooming(cm.display.measure,rect))}else{start>0&&(collapse=bias="right");var rects;cm.options.lineWrapping&&(rects=node.getClientRects()).length>1?rect=rects[bias=="right"?rects.length-1:0]:rect=node.getBoundingClientRect()}if(ie&&ie_version<9&&!start&&(!rect||!rect.left&&!rect.right)){var rSpan=node.parentNode.getClientRects()[0];rSpan?rect={left:rSpan.left,right:rSpan.left+charWidth(cm.display),top:rSpan.top,bottom:rSpan.bottom}:rect=nullRect}for(var rtop=rect.top-prepared.rect.top,rbot=rect.bottom-prepared.rect.top,mid=(rtop+rbot)/2,heights=prepared.view.measure.heights,i2=0;i2<heights.length-1&&!(mid<heights[i2]);i2++);var top=i2?heights[i2-1]:0,bot=heights[i2],result={left:(collapse=="right"?rect.right:rect.left)-prepared.rect.left,right:(collapse=="left"?rect.left:rect.right)-prepared.rect.left,top,bottom:bot};return!rect.left&&!rect.right&&(result.bogus=!0),cm.options.singleCursorHeightPerLine||(result.rtop=rtop,result.rbottom=rbot),result}function maybeUpdateRectForZooming(measure,rect){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!hasBadZoomedRects(measure))return rect;var scaleX=screen.logicalXDPI/screen.deviceXDPI,scaleY=screen.logicalYDPI/screen.deviceYDPI;return{left:rect.left*scaleX,right:rect.right*scaleX,top:rect.top*scaleY,bottom:rect.bottom*scaleY}}function clearLineMeasurementCacheFor(lineView){if(lineView.measure&&(lineView.measure.cache={},lineView.measure.heights=null,lineView.rest))for(var i2=0;i2<lineView.rest.length;i2++)lineView.measure.caches[i2]={}}function clearLineMeasurementCache(cm){cm.display.externalMeasure=null,removeChildren(cm.display.lineMeasure);for(var i2=0;i2<cm.display.view.length;i2++)clearLineMeasurementCacheFor(cm.display.view[i2])}function clearCaches(cm){clearLineMeasurementCache(cm),cm.display.cachedCharWidth=cm.display.cachedTextHeight=cm.display.cachedPaddingH=null,cm.options.lineWrapping||(cm.display.maxLineChanged=!0),cm.display.lineNumChars=null}function pageScrollX(doc2){return chrome&&android?-(doc2.body.getBoundingClientRect().left-parseInt(getComputedStyle(doc2.body).marginLeft)):doc2.defaultView.pageXOffset||(doc2.documentElement||doc2.body).scrollLeft}function pageScrollY(doc2){return chrome&&android?-(doc2.body.getBoundingClientRect().top-parseInt(getComputedStyle(doc2.body).marginTop)):doc2.defaultView.pageYOffset||(doc2.documentElement||doc2.body).scrollTop}function widgetTopHeight(lineObj){var ref=visualLine(lineObj),widgets=ref.widgets,height=0;if(widgets)for(var i2=0;i2<widgets.length;++i2)widgets[i2].above&&(height+=widgetHeight(widgets[i2]));return height}function intoCoordSystem(cm,lineObj,rect,context,includeWidgets){if(!includeWidgets){var height=widgetTopHeight(lineObj);rect.top+=height,rect.bottom+=height}if(context=="line")return rect;context||(context="local");var yOff=heightAtLine(lineObj);if(context=="local"?yOff+=paddingTop(cm.display):yOff-=cm.display.viewOffset,context=="page"||context=="window"){var lOff=cm.display.lineSpace.getBoundingClientRect();yOff+=lOff.top+(context=="window"?0:pageScrollY(doc(cm)));var xOff=lOff.left+(context=="window"?0:pageScrollX(doc(cm)));rect.left+=xOff,rect.right+=xOff}return rect.top+=yOff,rect.bottom+=yOff,rect}function fromCoordSystem(cm,coords,context){if(context=="div")return coords;var left=coords.left,top=coords.top;if(context=="page")left-=pageScrollX(doc(cm)),top-=pageScrollY(doc(cm));else if(context=="local"||!context){var localBox=cm.display.sizer.getBoundingClientRect();left+=localBox.left,top+=localBox.top}var lineSpaceBox=cm.display.lineSpace.getBoundingClientRect();return{left:left-lineSpaceBox.left,top:top-lineSpaceBox.top}}function charCoords(cm,pos,context,lineObj,bias){return lineObj||(lineObj=getLine(cm.doc,pos.line)),intoCoordSystem(cm,lineObj,measureChar(cm,lineObj,pos.ch,bias),context)}function cursorCoords(cm,pos,context,lineObj,preparedMeasure,varHeight){lineObj=lineObj||getLine(cm.doc,pos.line),preparedMeasure||(preparedMeasure=prepareMeasureForLine(cm,lineObj));function get(ch2,right){var m=measureCharPrepared(cm,preparedMeasure,ch2,right?"right":"left",varHeight);return right?m.left=m.right:m.right=m.left,intoCoordSystem(cm,lineObj,m,context)}var order=getOrder(lineObj,cm.doc.direction),ch=pos.ch,sticky=pos.sticky;if(ch>=lineObj.text.length?(ch=lineObj.text.length,sticky="before"):ch<=0&&(ch=0,sticky="after"),!order)return get(sticky=="before"?ch-1:ch,sticky=="before");function getBidi(ch2,partPos2,invert){var part=order[partPos2],right=part.level==1;return get(invert?ch2-1:ch2,right!=invert)}var partPos=getBidiPartAt(order,ch,sticky),other=bidiOther,val=getBidi(ch,partPos,sticky=="before");return other!=null&&(val.other=getBidi(ch,other,sticky!="before")),val}function estimateCoords(cm,pos){var left=0;pos=clipPos(cm.doc,pos),cm.options.lineWrapping||(left=charWidth(cm.display)*pos.ch);var lineObj=getLine(cm.doc,pos.line),top=heightAtLine(lineObj)+paddingTop(cm.display);return{left,right:left,top,bottom:top+lineObj.height}}function PosWithInfo(line,ch,sticky,outside,xRel){var pos=Pos(line,ch,sticky);return pos.xRel=xRel,outside&&(pos.outside=outside),pos}function coordsChar(cm,x,y){var doc2=cm.doc;if(y+=cm.display.viewOffset,y<0)return PosWithInfo(doc2.first,0,null,-1,-1);var lineN=lineAtHeight(doc2,y),last=doc2.first+doc2.size-1;if(lineN>last)return PosWithInfo(doc2.first+doc2.size-1,getLine(doc2,last).text.length,null,1,1);x<0&&(x=0);for(var lineObj=getLine(doc2,lineN);;){var found=coordsCharInner(cm,lineObj,lineN,x,y),collapsed=collapsedSpanAround(lineObj,found.ch+(found.xRel>0||found.outside>0?1:0));if(!collapsed)return found;var rangeEnd=collapsed.find(1);if(rangeEnd.line==lineN)return rangeEnd;lineObj=getLine(doc2,lineN=rangeEnd.line)}}function wrappedLineExtent(cm,lineObj,preparedMeasure,y){y-=widgetTopHeight(lineObj);var end=lineObj.text.length,begin=findFirst(function(ch){return measureCharPrepared(cm,preparedMeasure,ch-1).bottom<=y},end,0);return end=findFirst(function(ch){return measureCharPrepared(cm,preparedMeasure,ch).top>y},begin,end),{begin,end}}function wrappedLineExtentChar(cm,lineObj,preparedMeasure,target){preparedMeasure||(preparedMeasure=prepareMeasureForLine(cm,lineObj));var targetTop=intoCoordSystem(cm,lineObj,measureCharPrepared(cm,preparedMeasure,target),"line").top;return wrappedLineExtent(cm,lineObj,preparedMeasure,targetTop)}function boxIsAfter(box,x,y,left){return box.bottom<=y?!1:box.top>y?!0:(left?box.left:box.right)>x}function coordsCharInner(cm,lineObj,lineNo2,x,y){y-=heightAtLine(lineObj);var preparedMeasure=prepareMeasureForLine(cm,lineObj),widgetHeight2=widgetTopHeight(lineObj),begin=0,end=lineObj.text.length,ltr=!0,order=getOrder(lineObj,cm.doc.direction);if(order){var part=(cm.options.lineWrapping?coordsBidiPartWrapped:coordsBidiPart)(cm,lineObj,lineNo2,preparedMeasure,order,x,y);ltr=part.level!=1,begin=ltr?part.from:part.to-1,end=ltr?part.to:part.from-1}var chAround=null,boxAround=null,ch=findFirst(function(ch2){var box=measureCharPrepared(cm,preparedMeasure,ch2);return box.top+=widgetHeight2,box.bottom+=widgetHeight2,boxIsAfter(box,x,y,!1)?(box.top<=y&&box.left<=x&&(chAround=ch2,boxAround=box),!0):!1},begin,end),baseX,sticky,outside=!1;if(boxAround){var atLeft=x-boxAround.left<boxAround.right-x,atStart=atLeft==ltr;ch=chAround+(atStart?0:1),sticky=atStart?"after":"before",baseX=atLeft?boxAround.left:boxAround.right}else{!ltr&&(ch==end||ch==begin)&&ch++,sticky=ch==0?"after":ch==lineObj.text.length?"before":measureCharPrepared(cm,preparedMeasure,ch-(ltr?1:0)).bottom+widgetHeight2<=y==ltr?"after":"before";var coords=cursorCoords(cm,Pos(lineNo2,ch,sticky),"line",lineObj,preparedMeasure);baseX=coords.left,outside=y<coords.top?-1:y>=coords.bottom?1:0}return ch=skipExtendingChars(lineObj.text,ch,1),PosWithInfo(lineNo2,ch,sticky,outside,x-baseX)}function coordsBidiPart(cm,lineObj,lineNo2,preparedMeasure,order,x,y){var index=findFirst(function(i2){var part2=order[i2],ltr2=part2.level!=1;return boxIsAfter(cursorCoords(cm,Pos(lineNo2,ltr2?part2.to:part2.from,ltr2?"before":"after"),"line",lineObj,preparedMeasure),x,y,!0)},0,order.length-1),part=order[index];if(index>0){var ltr=part.level!=1,start=cursorCoords(cm,Pos(lineNo2,ltr?part.from:part.to,ltr?"after":"before"),"line",lineObj,preparedMeasure);boxIsAfter(start,x,y,!0)&&start.top>y&&(part=order[index-1])}return part}function coordsBidiPartWrapped(cm,lineObj,_lineNo,preparedMeasure,order,x,y){var ref=wrappedLineExtent(cm,lineObj,preparedMeasure,y),begin=ref.begin,end=ref.end;/\s/.test(lineObj.text.charAt(end-1))&&end--;for(var part=null,closestDist=null,i2=0;i2<order.length;i2++){var p=order[i2];if(!(p.from>=end||p.to<=begin)){var ltr=p.level!=1,endX=measureCharPrepared(cm,preparedMeasure,ltr?Math.min(end,p.to)-1:Math.max(begin,p.from)).right,dist=endX<x?x-endX+1e9:endX-x;(!part||closestDist>dist)&&(part=p,closestDist=dist)}}return part||(part=order[order.length-1]),part.from<begin&&(part={from:begin,to:part.to,level:part.level}),part.to>end&&(part={from:part.from,to:end,level:part.level}),part}var measureText;function textHeight(display){if(display.cachedTextHeight!=null)return display.cachedTextHeight;if(measureText==null){measureText=elt("pre",null,"CodeMirror-line-like");for(var i2=0;i2<49;++i2)measureText.appendChild(document.createTextNode("x")),measureText.appendChild(elt("br"));measureText.appendChild(document.createTextNode("x"))}removeChildrenAndAdd(display.measure,measureText);var height=measureText.offsetHeight/50;return height>3&&(display.cachedTextHeight=height),removeChildren(display.measure),height||1}function charWidth(display){if(display.cachedCharWidth!=null)return display.cachedCharWidth;var anchor=elt("span","xxxxxxxxxx"),pre=elt("pre",[anchor],"CodeMirror-line-like");removeChildrenAndAdd(display.measure,pre);var rect=anchor.getBoundingClientRect(),width=(rect.right-rect.left)/10;return width>2&&(display.cachedCharWidth=width),width||10}function getDimensions(cm){for(var d=cm.display,left={},width={},gutterLeft=d.gutters.clientLeft,n=d.gutters.firstChild,i2=0;n;n=n.nextSibling,++i2){var id=cm.display.gutterSpecs[i2].className;left[id]=n.offsetLeft+n.clientLeft+gutterLeft,width[id]=n.clientWidth}return{fixedPos:compensateForHScroll(d),gutterTotalWidth:d.gutters.offsetWidth,gutterLeft:left,gutterWidth:width,wrapperWidth:d.wrapper.clientWidth}}function compensateForHScroll(display){return display.scroller.getBoundingClientRect().left-display.sizer.getBoundingClientRect().left}function estimateHeight(cm){var th=textHeight(cm.display),wrapping=cm.options.lineWrapping,perLine=wrapping&&Math.max(5,cm.display.scroller.clientWidth/charWidth(cm.display)-3);return function(line){if(lineIsHidden(cm.doc,line))return 0;var widgetsHeight=0;if(line.widgets)for(var i2=0;i2<line.widgets.length;i2++)line.widgets[i2].height&&(widgetsHeight+=line.widgets[i2].height);return wrapping?widgetsHeight+(Math.ceil(line.text.length/perLine)||1)*th:widgetsHeight+th}}function estimateLineHeights(cm){var doc2=cm.doc,est=estimateHeight(cm);doc2.iter(function(line){var estHeight=est(line);estHeight!=line.height&&updateLineHeight(line,estHeight)})}function posFromMouse(cm,e,liberal,forRect){var display=cm.display;if(!liberal&&e_target(e).getAttribute("cm-not-content")=="true")return null;var x,y,space=display.lineSpace.getBoundingClientRect();try{x=e.clientX-space.left,y=e.clientY-space.top}catch{return null}var coords=coordsChar(cm,x,y),line;if(forRect&&coords.xRel>0&&(line=getLine(cm.doc,coords.line).text).length==coords.ch){var colDiff=countColumn(line,line.length,cm.options.tabSize)-line.length;coords=Pos(coords.line,Math.max(0,Math.round((x-paddingH(cm.display).left)/charWidth(cm.display))-colDiff))}return coords}function findViewIndex(cm,n){if(n>=cm.display.viewTo||(n-=cm.display.viewFrom,n<0))return null;for(var view=cm.display.view,i2=0;i2<view.length;i2++)if(n-=view[i2].size,n<0)return i2}function regChange(cm,from,to,lendiff){from==null&&(from=cm.doc.first),to==null&&(to=cm.doc.first+cm.doc.size),lendiff||(lendiff=0);var display=cm.display;if(lendiff&&to<display.viewTo&&(display.updateLineNumbers==null||display.updateLineNumbers>from)&&(display.updateLineNumbers=from),cm.curOp.viewChanged=!0,from>=display.viewTo)sawCollapsedSpans&&visualLineNo(cm.doc,from)<display.viewTo&&resetView(cm);else if(to<=display.viewFrom)sawCollapsedSpans&&visualLineEndNo(cm.doc,to+lendiff)>display.viewFrom?resetView(cm):(display.viewFrom+=lendiff,display.viewTo+=lendiff);else if(from<=display.viewFrom&&to>=display.viewTo)resetView(cm);else if(from<=display.viewFrom){var cut=viewCuttingPoint(cm,to,to+lendiff,1);cut?(display.view=display.view.slice(cut.index),display.viewFrom=cut.lineN,display.viewTo+=lendiff):resetView(cm)}else if(to>=display.viewTo){var cut$1=viewCuttingPoint(cm,from,from,-1);cut$1?(display.view=display.view.slice(0,cut$1.index),display.viewTo=cut$1.lineN):resetView(cm)}else{var cutTop=viewCuttingPoint(cm,from,from,-1),cutBot=viewCuttingPoint(cm,to,to+lendiff,1);cutTop&&cutBot?(display.view=display.view.slice(0,cutTop.index).concat(buildViewArray(cm,cutTop.lineN,cutBot.lineN)).concat(display.view.slice(cutBot.index)),display.viewTo+=lendiff):resetView(cm)}var ext=display.externalMeasured;ext&&(to<ext.lineN?ext.lineN+=lendiff:from<ext.lineN+ext.size&&(display.externalMeasured=null))}function regLineChange(cm,line,type){cm.curOp.viewChanged=!0;var display=cm.display,ext=cm.display.externalMeasured;if(ext&&line>=ext.lineN&&line<ext.lineN+ext.size&&(display.externalMeasured=null),!(line<display.viewFrom||line>=display.viewTo)){var lineView=display.view[findViewIndex(cm,line)];if(lineView.node!=null){var arr=lineView.changes||(lineView.changes=[]);indexOf(arr,type)==-1&&arr.push(type)}}}function resetView(cm){cm.display.viewFrom=cm.display.viewTo=cm.doc.first,cm.display.view=[],cm.display.viewOffset=0}function viewCuttingPoint(cm,oldN,newN,dir){var index=findViewIndex(cm,oldN),diff,view=cm.display.view;if(!sawCollapsedSpans||newN==cm.doc.first+cm.doc.size)return{index,lineN:newN};for(var n=cm.display.viewFrom,i2=0;i2<index;i2++)n+=view[i2].size;if(n!=oldN){if(dir>0){if(index==view.length-1)return null;diff=n+view[index].size-oldN,index++}else diff=n-oldN;oldN+=diff,newN+=diff}for(;visualLineNo(cm.doc,newN)!=newN;){if(index==(dir<0?0:view.length-1))return null;newN+=dir*view[index-(dir<0?1:0)].size,index+=dir}return{index,lineN:newN}}function adjustView(cm,from,to){var display=cm.display,view=display.view;view.length==0||from>=display.viewTo||to<=display.viewFrom?(display.view=buildViewArray(cm,from,to),display.viewFrom=from):(display.viewFrom>from?display.view=buildViewArray(cm,from,display.viewFrom).concat(display.view):display.viewFrom<from&&(display.view=display.view.slice(findViewIndex(cm,from))),display.viewFrom=from,display.viewTo<to?display.view=display.view.concat(buildViewArray(cm,display.viewTo,to)):display.viewTo>to&&(display.view=display.view.slice(0,findViewIndex(cm,to)))),display.viewTo=to}function countDirtyView(cm){for(var view=cm.display.view,dirty=0,i2=0;i2<view.length;i2++){var lineView=view[i2];!lineView.hidden&&(!lineView.node||lineView.changes)&&++dirty}return dirty}function updateSelection(cm){cm.display.input.showSelection(cm.display.input.prepareSelection())}function prepareSelection(cm,primary){primary===void 0&&(primary=!0);var doc2=cm.doc,result={},curFragment=result.cursors=document.createDocumentFragment(),selFragment=result.selection=document.createDocumentFragment(),customCursor=cm.options.$customCursor;customCursor&&(primary=!0);for(var i2=0;i2<doc2.sel.ranges.length;i2++)if(!(!primary&&i2==doc2.sel.primIndex)){var range2=doc2.sel.ranges[i2];if(!(range2.from().line>=cm.display.viewTo||range2.to().line<cm.display.viewFrom)){var collapsed=range2.empty();if(customCursor){var head=customCursor(cm,range2);head&&drawSelectionCursor(cm,head,curFragment)}else(collapsed||cm.options.showCursorWhenSelecting)&&drawSelectionCursor(cm,range2.head,curFragment);collapsed||drawSelectionRange(cm,range2,selFragment)}}return result}function drawSelectionCursor(cm,head,output){var pos=cursorCoords(cm,head,"div",null,null,!cm.options.singleCursorHeightPerLine),cursor=output.appendChild(elt("div"," ","CodeMirror-cursor"));if(cursor.style.left=pos.left+"px",cursor.style.top=pos.top+"px",cursor.style.height=Math.max(0,pos.bottom-pos.top)*cm.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(cm.getWrapperElement().className)){var charPos=charCoords(cm,head,"div",null,null),width=charPos.right-charPos.left;cursor.style.width=(width>0?width:cm.defaultCharWidth())+"px"}if(pos.other){var otherCursor=output.appendChild(elt("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));otherCursor.style.display="",otherCursor.style.left=pos.other.left+"px",otherCursor.style.top=pos.other.top+"px",otherCursor.style.height=(pos.other.bottom-pos.other.top)*.85+"px"}}function cmpCoords(a,b){return a.top-b.top||a.left-b.left}function drawSelectionRange(cm,range2,output){var display=cm.display,doc2=cm.doc,fragment=document.createDocumentFragment(),padding=paddingH(cm.display),leftSide=padding.left,rightSide=Math.max(display.sizerWidth,displayWidth(cm)-display.sizer.offsetLeft)-padding.right,docLTR=doc2.direction=="ltr";function add(left,top,width,bottom){top<0&&(top=0),top=Math.round(top),bottom=Math.round(bottom),fragment.appendChild(elt("div",null,"CodeMirror-selected","position: absolute; left: "+left+`px;
|
|
7
6
|
top: `+top+"px; width: "+(width??rightSide-left)+`px;
|
|
8
7
|
height: `+(bottom-top)+"px"))}function drawForLine(line,fromArg,toArg){var lineObj=getLine(doc2,line),lineLen=lineObj.text.length,start,end;function coords(ch,bias){return charCoords(cm,Pos(line,ch),"div",lineObj,bias)}function wrapX(pos,dir,side){var extent=wrappedLineExtentChar(cm,lineObj,null,pos),prop2=dir=="ltr"==(side=="after")?"left":"right",ch=side=="after"?extent.begin:extent.end-(/\s/.test(lineObj.text.charAt(extent.end-1))?2:1);return coords(ch,prop2)[prop2]}var order=getOrder(lineObj,doc2.direction);return iterateBidiSections(order,fromArg||0,toArg??lineLen,function(from,to,dir,i2){var ltr=dir=="ltr",fromPos=coords(from,ltr?"left":"right"),toPos=coords(to-1,ltr?"right":"left"),openStart=fromArg==null&&from==0,openEnd=toArg==null&&to==lineLen,first=i2==0,last=!order||i2==order.length-1;if(toPos.top-fromPos.top<=3){var openLeft=(docLTR?openStart:openEnd)&&first,openRight=(docLTR?openEnd:openStart)&&last,left=openLeft?leftSide:(ltr?fromPos:toPos).left,right=openRight?rightSide:(ltr?toPos:fromPos).right;add(left,fromPos.top,right-left,fromPos.bottom)}else{var topLeft,topRight,botLeft,botRight;ltr?(topLeft=docLTR&&openStart&&first?leftSide:fromPos.left,topRight=docLTR?rightSide:wrapX(from,dir,"before"),botLeft=docLTR?leftSide:wrapX(to,dir,"after"),botRight=docLTR&&openEnd&&last?rightSide:toPos.right):(topLeft=docLTR?wrapX(from,dir,"before"):leftSide,topRight=!docLTR&&openStart&&first?rightSide:fromPos.right,botLeft=!docLTR&&openEnd&&last?leftSide:toPos.left,botRight=docLTR?wrapX(to,dir,"after"):rightSide),add(topLeft,fromPos.top,topRight-topLeft,fromPos.bottom),fromPos.bottom<toPos.top&&add(leftSide,fromPos.bottom,null,toPos.top),add(botLeft,toPos.top,botRight-botLeft,toPos.bottom)}(!start||cmpCoords(fromPos,start)<0)&&(start=fromPos),cmpCoords(toPos,start)<0&&(start=toPos),(!end||cmpCoords(fromPos,end)<0)&&(end=fromPos),cmpCoords(toPos,end)<0&&(end=toPos)}),{start,end}}var sFrom=range2.from(),sTo=range2.to();if(sFrom.line==sTo.line)drawForLine(sFrom.line,sFrom.ch,sTo.ch);else{var fromLine=getLine(doc2,sFrom.line),toLine=getLine(doc2,sTo.line),singleVLine=visualLine(fromLine)==visualLine(toLine),leftEnd=drawForLine(sFrom.line,sFrom.ch,singleVLine?fromLine.text.length+1:null).end,rightStart=drawForLine(sTo.line,singleVLine?0:null,sTo.ch).start;singleVLine&&(leftEnd.top<rightStart.top-2?(add(leftEnd.right,leftEnd.top,null,leftEnd.bottom),add(leftSide,rightStart.top,rightStart.left,rightStart.bottom)):add(leftEnd.right,leftEnd.top,rightStart.left-leftEnd.right,leftEnd.bottom)),leftEnd.bottom<rightStart.top&&add(leftSide,leftEnd.bottom,null,rightStart.top)}output.appendChild(fragment)}function restartBlink(cm){if(cm.state.focused){var display=cm.display;clearInterval(display.blinker);var on2=!0;display.cursorDiv.style.visibility="",cm.options.cursorBlinkRate>0?display.blinker=setInterval(function(){cm.hasFocus()||onBlur(cm),display.cursorDiv.style.visibility=(on2=!on2)?"":"hidden"},cm.options.cursorBlinkRate):cm.options.cursorBlinkRate<0&&(display.cursorDiv.style.visibility="hidden")}}function ensureFocus(cm){cm.hasFocus()||(cm.display.input.focus(),cm.state.focused||onFocus(cm))}function delayBlurEvent(cm){cm.state.delayingBlurEvent=!0,setTimeout(function(){cm.state.delayingBlurEvent&&(cm.state.delayingBlurEvent=!1,cm.state.focused&&onBlur(cm))},100)}function onFocus(cm,e){cm.state.delayingBlurEvent&&!cm.state.draggingText&&(cm.state.delayingBlurEvent=!1),cm.options.readOnly!="nocursor"&&(cm.state.focused||(signal(cm,"focus",cm,e),cm.state.focused=!0,addClass(cm.display.wrapper,"CodeMirror-focused"),!cm.curOp&&cm.display.selForContextMenu!=cm.doc.sel&&(cm.display.input.reset(),webkit&&setTimeout(function(){return cm.display.input.reset(!0)},20)),cm.display.input.receivedFocus()),restartBlink(cm))}function onBlur(cm,e){cm.state.delayingBlurEvent||(cm.state.focused&&(signal(cm,"blur",cm,e),cm.state.focused=!1,rmClass(cm.display.wrapper,"CodeMirror-focused")),clearInterval(cm.display.blinker),setTimeout(function(){cm.state.focused||(cm.display.shift=!1)},150))}function updateHeightsInViewport(cm){for(var display=cm.display,prevBottom=display.lineDiv.offsetTop,viewTop=Math.max(0,display.scroller.getBoundingClientRect().top),oldHeight=display.lineDiv.getBoundingClientRect().top,mustScroll=0,i2=0;i2<display.view.length;i2++){var cur=display.view[i2],wrapping=cm.options.lineWrapping,height=void 0,width=0;if(!cur.hidden){if(oldHeight+=cur.line.height,ie&&ie_version<8){var bot=cur.node.offsetTop+cur.node.offsetHeight;height=bot-prevBottom,prevBottom=bot}else{var box=cur.node.getBoundingClientRect();height=box.bottom-box.top,!wrapping&&cur.text.firstChild&&(width=cur.text.firstChild.getBoundingClientRect().right-box.left-1)}var diff=cur.line.height-height;if((diff>.005||diff<-.005)&&(oldHeight<viewTop&&(mustScroll-=diff),updateLineHeight(cur.line,height),updateWidgetHeight(cur.line),cur.rest))for(var j=0;j<cur.rest.length;j++)updateWidgetHeight(cur.rest[j]);if(width>cm.display.sizerWidth){var chWidth=Math.ceil(width/charWidth(cm.display));chWidth>cm.display.maxLineLength&&(cm.display.maxLineLength=chWidth,cm.display.maxLine=cur.line,cm.display.maxLineChanged=!0)}}}Math.abs(mustScroll)>2&&(display.scroller.scrollTop+=mustScroll)}function updateWidgetHeight(line){if(line.widgets)for(var i2=0;i2<line.widgets.length;++i2){var w=line.widgets[i2],parent=w.node.parentNode;parent&&(w.height=parent.offsetHeight)}}function visibleLines(display,doc2,viewport){var top=viewport&&viewport.top!=null?Math.max(0,viewport.top):display.scroller.scrollTop;top=Math.floor(top-paddingTop(display));var bottom=viewport&&viewport.bottom!=null?viewport.bottom:top+display.wrapper.clientHeight,from=lineAtHeight(doc2,top),to=lineAtHeight(doc2,bottom);if(viewport&&viewport.ensure){var ensureFrom=viewport.ensure.from.line,ensureTo=viewport.ensure.to.line;ensureFrom<from?(from=ensureFrom,to=lineAtHeight(doc2,heightAtLine(getLine(doc2,ensureFrom))+display.wrapper.clientHeight)):Math.min(ensureTo,doc2.lastLine())>=to&&(from=lineAtHeight(doc2,heightAtLine(getLine(doc2,ensureTo))-display.wrapper.clientHeight),to=ensureTo)}return{from,to:Math.max(to,from+1)}}function maybeScrollWindow(cm,rect){if(!signalDOMEvent(cm,"scrollCursorIntoView")){var display=cm.display,box=display.sizer.getBoundingClientRect(),doScroll=null,doc2=display.wrapper.ownerDocument;if(rect.top+box.top<0?doScroll=!0:rect.bottom+box.top>(doc2.defaultView.innerHeight||doc2.documentElement.clientHeight)&&(doScroll=!1),doScroll!=null&&!phantom){var scrollNode=elt("div","",null,`position: absolute;
|
|
@@ -22,12 +21,13 @@ b`.split(/\n/).length!=3?function(string){for(var pos=0,result=[],l=string.lengt
|
|
|
22
21
|
`)>-1?input.value=this$1$1.prevInput="":this$1$1.prevInput=text,this$1$1.composing&&(this$1$1.composing.range.clear(),this$1$1.composing.range=cm.markText(this$1$1.composing.start,cm.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},TextareaInput.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},TextareaInput.prototype.onKeyPress=function(){ie&&ie_version>=9&&(this.hasSelection=null),this.fastPoll()},TextareaInput.prototype.onContextMenu=function(e){var input=this,cm=input.cm,display=cm.display,te=input.textarea;input.contextMenuPending&&input.contextMenuPending();var pos=posFromMouse(cm,e),scrollPos=display.scroller.scrollTop;if(!pos||presto)return;var reset=cm.options.resetSelectionOnContextMenu;reset&&cm.doc.sel.contains(pos)==-1&&operation(cm,setSelection)(cm.doc,simpleSelection(pos),sel_dontScroll);var oldCSS=te.style.cssText,oldWrapperCSS=input.wrapper.style.cssText,wrapperBox=input.wrapper.offsetParent.getBoundingClientRect();input.wrapper.style.cssText="position: static",te.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
23
22
|
top: `+(e.clientY-wrapperBox.top-5)+"px; left: "+(e.clientX-wrapperBox.left-5)+`px;
|
|
24
23
|
z-index: 1000; background: `+(ie?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
25
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var oldScrollY;webkit&&(oldScrollY=te.ownerDocument.defaultView.scrollY),display.input.focus(),webkit&&te.ownerDocument.defaultView.scrollTo(null,oldScrollY),display.input.reset(),cm.somethingSelected()||(te.value=input.prevInput=" "),input.contextMenuPending=rehide,display.selForContextMenu=cm.doc.sel,clearTimeout(display.detectingSelectAll);function prepareSelectAllHack(){if(te.selectionStart!=null){var selected=cm.somethingSelected(),extval=""+(selected?te.value:"");te.value="⇚",te.value=extval,input.prevInput=selected?"":"",te.selectionStart=1,te.selectionEnd=extval.length,display.selForContextMenu=cm.doc.sel}}function rehide(){if(input.contextMenuPending==rehide&&(input.contextMenuPending=!1,input.wrapper.style.cssText=oldWrapperCSS,te.style.cssText=oldCSS,ie&&ie_version<9&&display.scrollbars.setScrollTop(display.scroller.scrollTop=scrollPos),te.selectionStart!=null)){(!ie||ie&&ie_version<9)&&prepareSelectAllHack();var i2=0,poll=function(){display.selForContextMenu==cm.doc.sel&&te.selectionStart==0&&te.selectionEnd>0&&input.prevInput==""?operation(cm,selectAll)(cm):i2++<10?display.detectingSelectAll=setTimeout(poll,500):(display.selForContextMenu=null,display.input.reset())};display.detectingSelectAll=setTimeout(poll,200)}}if(ie&&ie_version>=9&&prepareSelectAllHack(),captureRightClick){e_stop(e);var mouseup=function(){off(window,"mouseup",mouseup),setTimeout(rehide,20)};on(window,"mouseup",mouseup)}else setTimeout(rehide,50)},TextareaInput.prototype.readOnlyChanged=function(val){val||this.reset(),this.textarea.disabled=val=="nocursor",this.textarea.readOnly=!!val},TextareaInput.prototype.setUneditable=function(){},TextareaInput.prototype.needsContentAttribute=!1;function fromTextArea(textarea,options){if(options=options?copyObj(options):{},options.value=textarea.value,!options.tabindex&&textarea.tabIndex&&(options.tabindex=textarea.tabIndex),!options.placeholder&&textarea.placeholder&&(options.placeholder=textarea.placeholder),options.autofocus==null){var hasFocus=activeElt(rootNode(textarea));options.autofocus=hasFocus==textarea||textarea.getAttribute("autofocus")!=null&&hasFocus==document.body}function save(){textarea.value=cm.getValue()}var realSubmit;if(textarea.form&&(on(textarea.form,"submit",save),!options.leaveSubmitMethodAlone)){var form=textarea.form;realSubmit=form.submit;try{var wrappedSubmit=form.submit=function(){save(),form.submit=realSubmit,form.submit(),form.submit=wrappedSubmit}}catch{}}options.finishInit=function(cm2){cm2.save=save,cm2.getTextArea=function(){return textarea},cm2.toTextArea=function(){cm2.toTextArea=isNaN,save(),textarea.parentNode.removeChild(cm2.getWrapperElement()),textarea.style.display="",textarea.form&&(off(textarea.form,"submit",save),!options.leaveSubmitMethodAlone&&typeof textarea.form.submit=="function"&&(textarea.form.submit=realSubmit))}},textarea.style.display="none";var cm=CodeMirror2(function(node){return textarea.parentNode.insertBefore(node,textarea.nextSibling)},options);return cm}function addLegacyProps(CodeMirror3){CodeMirror3.off=off,CodeMirror3.on=on,CodeMirror3.wheelEventPixels=wheelEventPixels,CodeMirror3.Doc=Doc,CodeMirror3.splitLines=splitLinesAuto,CodeMirror3.countColumn=countColumn,CodeMirror3.findColumn=findColumn,CodeMirror3.isWordChar=isWordCharBasic,CodeMirror3.Pass=Pass,CodeMirror3.signal=signal,CodeMirror3.Line=Line,CodeMirror3.changeEnd=changeEnd,CodeMirror3.scrollbarModel=scrollbarModel,CodeMirror3.Pos=Pos,CodeMirror3.cmpPos=cmp,CodeMirror3.modes=modes,CodeMirror3.mimeModes=mimeModes,CodeMirror3.resolveMode=resolveMode,CodeMirror3.getMode=getMode,CodeMirror3.modeExtensions=modeExtensions,CodeMirror3.extendMode=extendMode,CodeMirror3.copyState=copyState,CodeMirror3.startState=startState,CodeMirror3.innerMode=innerMode,CodeMirror3.commands=commands,CodeMirror3.keyMap=keyMap,CodeMirror3.keyName=keyName,CodeMirror3.isModifierKey=isModifierKey,CodeMirror3.lookupKey=lookupKey,CodeMirror3.normalizeKeyMap=normalizeKeyMap,CodeMirror3.StringStream=StringStream,CodeMirror3.SharedTextMarker=SharedTextMarker,CodeMirror3.TextMarker=TextMarker,CodeMirror3.LineWidget=LineWidget,CodeMirror3.e_preventDefault=e_preventDefault,CodeMirror3.e_stopPropagation=e_stopPropagation,CodeMirror3.e_stop=e_stop,CodeMirror3.addClass=addClass,CodeMirror3.contains=contains,CodeMirror3.rmClass=rmClass,CodeMirror3.keyNames=keyNames}defineOptions(CodeMirror2),addEditorMethods(CodeMirror2);var dontDelegate="iter insert remove copy getEditor constructor".split(" ");for(var prop in Doc.prototype)Doc.prototype.hasOwnProperty(prop)&&indexOf(dontDelegate,prop)<0&&(CodeMirror2.prototype[prop]=function(method){return function(){return method.apply(this.doc,arguments)}}(Doc.prototype[prop]));return eventMixin(Doc),CodeMirror2.inputStyles={textarea:TextareaInput,contenteditable:ContentEditableInput},CodeMirror2.defineMode=function(name){!CodeMirror2.defaults.mode&&name!="null"&&(CodeMirror2.defaults.mode=name),defineMode.apply(this,arguments)},CodeMirror2.defineMIME=defineMIME,CodeMirror2.defineMode("null",function(){return{token:function(stream){return stream.skipToEnd()}}}),CodeMirror2.defineMIME("text/plain","null"),CodeMirror2.defineExtension=function(name,func){CodeMirror2.prototype[name]=func},CodeMirror2.defineDocExtension=function(name,func){Doc.prototype[name]=func},CodeMirror2.fromTextArea=fromTextArea,addLegacyProps(CodeMirror2),CodeMirror2.version="5.65.18",CodeMirror2})}(codemirror$1)),codemirror$1.exports}var hasRequiredCss;function requireCss(){return hasRequiredCss||(hasRequiredCss=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("css",function(config,parserConfig){var inline=parserConfig.inline;parserConfig.propertyKeywords||(parserConfig=CodeMirror2.resolveMode("text/css"));var indentUnit=config.indentUnit,tokenHooks=parserConfig.tokenHooks,documentTypes2=parserConfig.documentTypes||{},mediaTypes2=parserConfig.mediaTypes||{},mediaFeatures2=parserConfig.mediaFeatures||{},mediaValueKeywords2=parserConfig.mediaValueKeywords||{},propertyKeywords2=parserConfig.propertyKeywords||{},nonStandardPropertyKeywords2=parserConfig.nonStandardPropertyKeywords||{},fontProperties2=parserConfig.fontProperties||{},counterDescriptors2=parserConfig.counterDescriptors||{},colorKeywords2=parserConfig.colorKeywords||{},valueKeywords2=parserConfig.valueKeywords||{},allowNested=parserConfig.allowNested,lineComment=parserConfig.lineComment,supportsAtComponent=parserConfig.supportsAtComponent===!0,highlightNonStandardPropertyKeywords=config.highlightNonStandardPropertyKeywords!==!1,type,override;function ret(style,tp){return type=tp,style}function tokenBase(stream,state){var ch=stream.next();if(tokenHooks[ch]){var result=tokenHooks[ch](stream,state);if(result!==!1)return result}if(ch=="@")return stream.eatWhile(/[\w\\\-]/),ret("def",stream.current());if(ch=="="||(ch=="~"||ch=="|")&&stream.eat("="))return ret(null,"compare");if(ch=='"'||ch=="'")return state.tokenize=tokenString(ch),state.tokenize(stream,state);if(ch=="#")return stream.eatWhile(/[\w\\\-]/),ret("atom","hash");if(ch=="!")return stream.match(/^\s*\w*/),ret("keyword","important");if(/\d/.test(ch)||ch=="."&&stream.eat(/\d/))return stream.eatWhile(/[\w.%]/),ret("number","unit");if(ch==="-"){if(/[\d.]/.test(stream.peek()))return stream.eatWhile(/[\w.%]/),ret("number","unit");if(stream.match(/^-[\w\\\-]*/))return stream.eatWhile(/[\w\\\-]/),stream.match(/^\s*:/,!1)?ret("variable-2","variable-definition"):ret("variable-2","variable");if(stream.match(/^\w+-/))return ret("meta","meta")}else return/[,+>*\/]/.test(ch)?ret(null,"select-op"):ch=="."&&stream.match(/^-?[_a-z][_a-z0-9-]*/i)?ret("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ch)?ret(null,ch):stream.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())&&(state.tokenize=tokenParenthesized),ret("variable callee","variable")):/[\w\\\-]/.test(ch)?(stream.eatWhile(/[\w\\\-]/),ret("property","word")):ret(null,null)}function tokenString(quote){return function(stream,state){for(var escaped=!1,ch;(ch=stream.next())!=null;){if(ch==quote&&!escaped){quote==")"&&stream.backUp(1);break}escaped=!escaped&&ch=="\\"}return(ch==quote||!escaped&"e!=")")&&(state.tokenize=null),ret("string","string")}}function tokenParenthesized(stream,state){return stream.next(),stream.match(/^\s*[\"\')]/,!1)?state.tokenize=null:state.tokenize=tokenString(")"),ret(null,"(")}function Context(type2,indent,prev){this.type=type2,this.indent=indent,this.prev=prev}function pushContext(state,stream,type2,indent){return state.context=new Context(type2,stream.indentation()+(indent===!1?0:indentUnit),state.context),type2}function popContext(state){return state.context.prev&&(state.context=state.context.prev),state.context.type}function pass(type2,stream,state){return states[state.context.type](type2,stream,state)}function popAndPass(type2,stream,state,n){for(var i=n||1;i>0;i--)state.context=state.context.prev;return pass(type2,stream,state)}function wordAsValue(stream){var word=stream.current().toLowerCase();valueKeywords2.hasOwnProperty(word)?override="atom":colorKeywords2.hasOwnProperty(word)?override="keyword":override="variable"}var states={};return states.top=function(type2,stream,state){if(type2=="{")return pushContext(state,stream,"block");if(type2=="}"&&state.context.prev)return popContext(state);if(supportsAtComponent&&/@component/i.test(type2))return pushContext(state,stream,"atComponentBlock");if(/^@(-moz-)?document$/i.test(type2))return pushContext(state,stream,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(type2))return pushContext(state,stream,"atBlock");if(/^@(font-face|counter-style)/i.test(type2))return state.stateArg=type2,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type2))return"keyframes";if(type2&&type2.charAt(0)=="@")return pushContext(state,stream,"at");if(type2=="hash")override="builtin";else if(type2=="word")override="tag";else{if(type2=="variable-definition")return"maybeprop";if(type2=="interpolation")return pushContext(state,stream,"interpolation");if(type2==":")return"pseudo";if(allowNested&&type2=="(")return pushContext(state,stream,"parens")}return state.context.type},states.block=function(type2,stream,state){if(type2=="word"){var word=stream.current().toLowerCase();return propertyKeywords2.hasOwnProperty(word)?(override="property","maybeprop"):nonStandardPropertyKeywords2.hasOwnProperty(word)?(override=highlightNonStandardPropertyKeywords?"string-2":"property","maybeprop"):allowNested?(override=stream.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(override+=" error","maybeprop")}else return type2=="meta"?"block":!allowNested&&(type2=="hash"||type2=="qualifier")?(override="error","block"):states.top(type2,stream,state)},states.maybeprop=function(type2,stream,state){return type2==":"?pushContext(state,stream,"prop"):pass(type2,stream,state)},states.prop=function(type2,stream,state){if(type2==";")return popContext(state);if(type2=="{"&&allowNested)return pushContext(state,stream,"propBlock");if(type2=="}"||type2=="{")return popAndPass(type2,stream,state);if(type2=="(")return pushContext(state,stream,"parens");if(type2=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current()))override+=" error";else if(type2=="word")wordAsValue(stream);else if(type2=="interpolation")return pushContext(state,stream,"interpolation");return"prop"},states.propBlock=function(type2,_stream,state){return type2=="}"?popContext(state):type2=="word"?(override="property","maybeprop"):state.context.type},states.parens=function(type2,stream,state){return type2=="{"||type2=="}"?popAndPass(type2,stream,state):type2==")"?popContext(state):type2=="("?pushContext(state,stream,"parens"):type2=="interpolation"?pushContext(state,stream,"interpolation"):(type2=="word"&&wordAsValue(stream),"parens")},states.pseudo=function(type2,stream,state){return type2=="meta"?"pseudo":type2=="word"?(override="variable-3",state.context.type):pass(type2,stream,state)},states.documentTypes=function(type2,stream,state){return type2=="word"&&documentTypes2.hasOwnProperty(stream.current())?(override="tag",state.context.type):states.atBlock(type2,stream,state)},states.atBlock=function(type2,stream,state){if(type2=="(")return pushContext(state,stream,"atBlock_parens");if(type2=="}"||type2==";")return popAndPass(type2,stream,state);if(type2=="{")return popContext(state)&&pushContext(state,stream,allowNested?"block":"top");if(type2=="interpolation")return pushContext(state,stream,"interpolation");if(type2=="word"){var word=stream.current().toLowerCase();word=="only"||word=="not"||word=="and"||word=="or"?override="keyword":mediaTypes2.hasOwnProperty(word)?override="attribute":mediaFeatures2.hasOwnProperty(word)?override="property":mediaValueKeywords2.hasOwnProperty(word)?override="keyword":propertyKeywords2.hasOwnProperty(word)?override="property":nonStandardPropertyKeywords2.hasOwnProperty(word)?override=highlightNonStandardPropertyKeywords?"string-2":"property":valueKeywords2.hasOwnProperty(word)?override="atom":colorKeywords2.hasOwnProperty(word)?override="keyword":override="error"}return state.context.type},states.atComponentBlock=function(type2,stream,state){return type2=="}"?popAndPass(type2,stream,state):type2=="{"?popContext(state)&&pushContext(state,stream,allowNested?"block":"top",!1):(type2=="word"&&(override="error"),state.context.type)},states.atBlock_parens=function(type2,stream,state){return type2==")"?popContext(state):type2=="{"||type2=="}"?popAndPass(type2,stream,state,2):states.atBlock(type2,stream,state)},states.restricted_atBlock_before=function(type2,stream,state){return type2=="{"?pushContext(state,stream,"restricted_atBlock"):type2=="word"&&state.stateArg=="@counter-style"?(override="variable","restricted_atBlock_before"):pass(type2,stream,state)},states.restricted_atBlock=function(type2,stream,state){return type2=="}"?(state.stateArg=null,popContext(state)):type2=="word"?(state.stateArg=="@font-face"&&!fontProperties2.hasOwnProperty(stream.current().toLowerCase())||state.stateArg=="@counter-style"&&!counterDescriptors2.hasOwnProperty(stream.current().toLowerCase())?override="error":override="property","maybeprop"):"restricted_atBlock"},states.keyframes=function(type2,stream,state){return type2=="word"?(override="variable","keyframes"):type2=="{"?pushContext(state,stream,"top"):pass(type2,stream,state)},states.at=function(type2,stream,state){return type2==";"?popContext(state):type2=="{"||type2=="}"?popAndPass(type2,stream,state):(type2=="word"?override="tag":type2=="hash"&&(override="builtin"),"at")},states.interpolation=function(type2,stream,state){return type2=="}"?popContext(state):type2=="{"||type2==";"?popAndPass(type2,stream,state):(type2=="word"?override="variable":type2!="variable"&&type2!="("&&type2!=")"&&(override="error"),"interpolation")},{startState:function(base){return{tokenize:null,state:inline?"block":"top",stateArg:null,context:new Context(inline?"block":"top",base||0,null)}},token:function(stream,state){if(!state.tokenize&&stream.eatSpace())return null;var style=(state.tokenize||tokenBase)(stream,state);return style&&typeof style=="object"&&(type=style[1],style=style[0]),override=style,type!="comment"&&(state.state=states[state.state](type,stream,state)),override},indent:function(state,textAfter){var cx=state.context,ch=textAfter&&textAfter.charAt(0),indent=cx.indent;return cx.type=="prop"&&(ch=="}"||ch==")")&&(cx=cx.prev),cx.prev&&(ch=="}"&&(cx.type=="block"||cx.type=="top"||cx.type=="interpolation"||cx.type=="restricted_atBlock")?(cx=cx.prev,indent=cx.indent):(ch==")"&&(cx.type=="parens"||cx.type=="atBlock_parens")||ch=="{"&&(cx.type=="at"||cx.type=="atBlock"))&&(indent=Math.max(0,cx.indent-indentUnit))),indent},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment,fold:"brace"}});function keySet(array){for(var keys={},i=0;i<array.length;++i)keys[array[i].toLowerCase()]=!0;return keys}var documentTypes_=["domain","regexp","url","url-prefix"],documentTypes=keySet(documentTypes_),mediaTypes_=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],mediaTypes=keySet(mediaTypes_),mediaFeatures_=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],mediaFeatures=keySet(mediaFeatures_),mediaValueKeywords_=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],mediaValueKeywords=keySet(mediaValueKeywords_),propertyKeywords_=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],propertyKeywords=keySet(propertyKeywords_),nonStandardPropertyKeywords_=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],nonStandardPropertyKeywords=keySet(nonStandardPropertyKeywords_),fontProperties_=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],fontProperties=keySet(fontProperties_),counterDescriptors_=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],counterDescriptors=keySet(counterDescriptors_),colorKeywords_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],colorKeywords=keySet(colorKeywords_),valueKeywords_=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],valueKeywords=keySet(valueKeywords_),allWords=documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_).concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_).concat(valueKeywords_);CodeMirror2.registerHelper("hintWords","css",allWords);function tokenCComment(stream,state){for(var maybeEnd=!1,ch;(ch=stream.next())!=null;){if(maybeEnd&&ch=="/"){state.tokenize=null;break}maybeEnd=ch=="*"}return["comment","comment"]}CodeMirror2.defineMIME("text/css",{documentTypes,mediaTypes,mediaFeatures,mediaValueKeywords,propertyKeywords,nonStandardPropertyKeywords,fontProperties,counterDescriptors,colorKeywords,valueKeywords,tokenHooks:{"/":function(stream,state){return stream.eat("*")?(state.tokenize=tokenCComment,tokenCComment(stream,state)):!1}},name:"css"}),CodeMirror2.defineMIME("text/x-scss",{mediaTypes,mediaFeatures,mediaValueKeywords,propertyKeywords,nonStandardPropertyKeywords,colorKeywords,valueKeywords,fontProperties,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(stream,state){return stream.eat("/")?(stream.skipToEnd(),["comment","comment"]):stream.eat("*")?(state.tokenize=tokenCComment,tokenCComment(stream,state)):["operator","operator"]},":":function(stream){return stream.match(/^\s*\{/,!1)?[null,null]:!1},$:function(stream){return stream.match(/^[\w-]+/),stream.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(stream){return stream.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),CodeMirror2.defineMIME("text/x-less",{mediaTypes,mediaFeatures,mediaValueKeywords,propertyKeywords,nonStandardPropertyKeywords,colorKeywords,valueKeywords,fontProperties,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(stream,state){return stream.eat("/")?(stream.skipToEnd(),["comment","comment"]):stream.eat("*")?(state.tokenize=tokenCComment,tokenCComment(stream,state)):["operator","operator"]},"@":function(stream){return stream.eat("{")?[null,"interpolation"]:stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(stream.eatWhile(/[\w\\\-]/),stream.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),CodeMirror2.defineMIME("text/x-gss",{documentTypes,mediaTypes,mediaFeatures,propertyKeywords,nonStandardPropertyKeywords,fontProperties,counterDescriptors,colorKeywords,valueKeywords,supportsAtComponent:!0,tokenHooks:{"/":function(stream,state){return stream.eat("*")?(state.tokenize=tokenCComment,tokenCComment(stream,state)):!1}},name:"css",helperType:"gss"})})}()),css.exports}requireCss();var ecl={exports:{}},hasRequiredEcl;function requireEcl(){return hasRequiredEcl||(hasRequiredEcl=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("ecl",function(config){function words(str){for(var obj={},words2=str.split(" "),i=0;i<words2.length;++i)obj[words2[i]]=!0;return obj}function metaHook(stream,state){return state.startOfLine?(stream.skipToEnd(),"meta"):!1}var indentUnit=config.indentUnit,keyword=words("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),variable=words("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),variable_2=words("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),variable_3=words("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),builtin=words("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),blockKeywords=words("catch class do else finally for if switch try while"),atoms=words("true false null"),hooks={"#":metaHook},isOperatorChar=/[+\-*&%=<>!?|\/]/,curPunc;function tokenBase(stream,state){var ch=stream.next();if(hooks[ch]){var result=hooks[ch](stream,state);if(result!==!1)return result}if(ch=='"'||ch=="'")return state.tokenize=tokenString(ch),state.tokenize(stream,state);if(/[\[\]{}\(\),;\:\.]/.test(ch))return curPunc=ch,null;if(/\d/.test(ch))return stream.eatWhile(/[\w\.]/),"number";if(ch=="/"){if(stream.eat("*"))return state.tokenize=tokenComment,tokenComment(stream,state);if(stream.eat("/"))return stream.skipToEnd(),"comment"}if(isOperatorChar.test(ch))return stream.eatWhile(isOperatorChar),"operator";stream.eatWhile(/[\w\$_]/);var cur=stream.current().toLowerCase();if(keyword.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"keyword";if(variable.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"variable";if(variable_2.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"variable-2";if(variable_3.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"variable-3";if(builtin.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"builtin";for(var i=cur.length-1;i>=0&&(!isNaN(cur[i])||cur[i]=="_");)--i;if(i>0){var cur2=cur.substr(0,i+1);if(variable_3.propertyIsEnumerable(cur2))return blockKeywords.propertyIsEnumerable(cur2)&&(curPunc="newstatement"),"variable-3"}return atoms.propertyIsEnumerable(cur)?"atom":null}function tokenString(quote){return function(stream,state){for(var escaped=!1,next,end=!1;(next=stream.next())!=null;){if(next==quote&&!escaped){end=!0;break}escaped=!escaped&&next=="\\"}return(end||!escaped)&&(state.tokenize=tokenBase),"string"}}function tokenComment(stream,state){for(var maybeEnd=!1,ch;ch=stream.next();){if(ch=="/"&&maybeEnd){state.tokenize=tokenBase;break}maybeEnd=ch=="*"}return"comment"}function Context(indented,column,type,align,prev){this.indented=indented,this.column=column,this.type=type,this.align=align,this.prev=prev}function pushContext(state,col,type){return state.context=new Context(state.indented,col,type,null,state.context)}function popContext(state){var t=state.context.type;return(t==")"||t=="]"||t=="}")&&(state.indented=state.context.indented),state.context=state.context.prev}return{startState:function(basecolumn){return{tokenize:null,context:new Context((basecolumn||0)-indentUnit,0,"top",!1),indented:0,startOfLine:!0}},token:function(stream,state){var ctx=state.context;if(stream.sol()&&(ctx.align==null&&(ctx.align=!1),state.indented=stream.indentation(),state.startOfLine=!0),stream.eatSpace())return null;curPunc=null;var style=(state.tokenize||tokenBase)(stream,state);if(style=="comment"||style=="meta")return style;if(ctx.align==null&&(ctx.align=!0),(curPunc==";"||curPunc==":")&&ctx.type=="statement")popContext(state);else if(curPunc=="{")pushContext(state,stream.column(),"}");else if(curPunc=="[")pushContext(state,stream.column(),"]");else if(curPunc=="(")pushContext(state,stream.column(),")");else if(curPunc=="}"){for(;ctx.type=="statement";)ctx=popContext(state);for(ctx.type=="}"&&(ctx=popContext(state));ctx.type=="statement";)ctx=popContext(state)}else curPunc==ctx.type?popContext(state):(ctx.type=="}"||ctx.type=="top"||ctx.type=="statement"&&curPunc=="newstatement")&&pushContext(state,stream.column(),"statement");return state.startOfLine=!1,style},indent:function(state,textAfter){if(state.tokenize!=tokenBase&&state.tokenize!=null)return 0;var ctx=state.context,firstChar=textAfter&&textAfter.charAt(0);ctx.type=="statement"&&firstChar=="}"&&(ctx=ctx.prev);var closing=firstChar==ctx.type;return ctx.type=="statement"?ctx.indented+(firstChar=="{"?0:indentUnit):ctx.align?ctx.column+(closing?0:1):ctx.indented+(closing?0:indentUnit)},electricChars:"{}"}}),CodeMirror2.defineMIME("text/x-ecl","ecl")})}()),ecl.exports}requireEcl();var gfm={exports:{}},markdown={exports:{}},xml={exports:{}},hasRequiredXml;function requireXml(){return hasRequiredXml||(hasRequiredXml=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){var htmlConfig={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},xmlConfig={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};CodeMirror2.defineMode("xml",function(editorConf,config_){var indentUnit=editorConf.indentUnit,config={},defaults=config_.htmlMode?htmlConfig:xmlConfig;for(var prop in defaults)config[prop]=defaults[prop];for(var prop in config_)config[prop]=config_[prop];var type,setStyle;function inText(stream,state){function chain(parser){return state.tokenize=parser,parser(stream,state)}var ch=stream.next();if(ch=="<")return stream.eat("!")?stream.eat("[")?stream.match("CDATA[")?chain(inBlock("atom","]]>")):null:stream.match("--")?chain(inBlock("comment","-->")):stream.match("DOCTYPE",!0,!0)?(stream.eatWhile(/[\w\._\-]/),chain(doctype(1))):null:stream.eat("?")?(stream.eatWhile(/[\w\._\-]/),state.tokenize=inBlock("meta","?>"),"meta"):(type=stream.eat("/")?"closeTag":"openTag",state.tokenize=inTag,"tag bracket");if(ch=="&"){var ok;return stream.eat("#")?stream.eat("x")?ok=stream.eatWhile(/[a-fA-F\d]/)&&stream.eat(";"):ok=stream.eatWhile(/[\d]/)&&stream.eat(";"):ok=stream.eatWhile(/[\w\.\-:]/)&&stream.eat(";"),ok?"atom":"error"}else return stream.eatWhile(/[^&<]/),null}inText.isInText=!0;function inTag(stream,state){var ch=stream.next();if(ch==">"||ch=="/"&&stream.eat(">"))return state.tokenize=inText,type=ch==">"?"endTag":"selfcloseTag","tag bracket";if(ch=="=")return type="equals",null;if(ch=="<"){state.tokenize=inText,state.state=baseState,state.tagName=state.tagStart=null;var next=state.tokenize(stream,state);return next?next+" tag error":"tag error"}else return/[\'\"]/.test(ch)?(state.tokenize=inAttribute(ch),state.stringStartCol=stream.column(),state.tokenize(stream,state)):(stream.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function inAttribute(quote){var closure=function(stream,state){for(;!stream.eol();)if(stream.next()==quote){state.tokenize=inTag;break}return"string"};return closure.isInAttribute=!0,closure}function inBlock(style,terminator){return function(stream,state){for(;!stream.eol();){if(stream.match(terminator)){state.tokenize=inText;break}stream.next()}return style}}function doctype(depth){return function(stream,state){for(var ch;(ch=stream.next())!=null;){if(ch=="<")return state.tokenize=doctype(depth+1),state.tokenize(stream,state);if(ch==">")if(depth==1){state.tokenize=inText;break}else return state.tokenize=doctype(depth-1),state.tokenize(stream,state)}return"meta"}}function lower(tagName){return tagName&&tagName.toLowerCase()}function Context(state,tagName,startOfLine){this.prev=state.context,this.tagName=tagName||"",this.indent=state.indented,this.startOfLine=startOfLine,(config.doNotIndent.hasOwnProperty(tagName)||state.context&&state.context.noIndent)&&(this.noIndent=!0)}function popContext(state){state.context&&(state.context=state.context.prev)}function maybePopContext(state,nextTagName){for(var parentTagName;;){if(!state.context||(parentTagName=state.context.tagName,!config.contextGrabbers.hasOwnProperty(lower(parentTagName))||!config.contextGrabbers[lower(parentTagName)].hasOwnProperty(lower(nextTagName))))return;popContext(state)}}function baseState(type2,stream,state){return type2=="openTag"?(state.tagStart=stream.column(),tagNameState):type2=="closeTag"?closeTagNameState:baseState}function tagNameState(type2,stream,state){return type2=="word"?(state.tagName=stream.current(),setStyle="tag",attrState):config.allowMissingTagName&&type2=="endTag"?(setStyle="tag bracket",attrState(type2,stream,state)):(setStyle="error",tagNameState)}function closeTagNameState(type2,stream,state){if(type2=="word"){var tagName=stream.current();return state.context&&state.context.tagName!=tagName&&config.implicitlyClosed.hasOwnProperty(lower(state.context.tagName))&&popContext(state),state.context&&state.context.tagName==tagName||config.matchClosing===!1?(setStyle="tag",closeState):(setStyle="tag error",closeStateErr)}else return config.allowMissingTagName&&type2=="endTag"?(setStyle="tag bracket",closeState(type2,stream,state)):(setStyle="error",closeStateErr)}function closeState(type2,_stream,state){return type2!="endTag"?(setStyle="error",closeState):(popContext(state),baseState)}function closeStateErr(type2,stream,state){return setStyle="error",closeState(type2,stream,state)}function attrState(type2,_stream,state){if(type2=="word")return setStyle="attribute",attrEqState;if(type2=="endTag"||type2=="selfcloseTag"){var tagName=state.tagName,tagStart=state.tagStart;return state.tagName=state.tagStart=null,type2=="selfcloseTag"||config.autoSelfClosers.hasOwnProperty(lower(tagName))?maybePopContext(state,tagName):(maybePopContext(state,tagName),state.context=new Context(state,tagName,tagStart==state.indented)),baseState}return setStyle="error",attrState}function attrEqState(type2,stream,state){return type2=="equals"?attrValueState:(config.allowMissing||(setStyle="error"),attrState(type2,stream,state))}function attrValueState(type2,stream,state){return type2=="string"?attrContinuedState:type2=="word"&&config.allowUnquoted?(setStyle="string",attrState):(setStyle="error",attrState(type2,stream,state))}function attrContinuedState(type2,stream,state){return type2=="string"?attrContinuedState:attrState(type2,stream,state)}return{startState:function(baseIndent){var state={tokenize:inText,state:baseState,indented:baseIndent||0,tagName:null,tagStart:null,context:null};return baseIndent!=null&&(state.baseIndent=baseIndent),state},token:function(stream,state){if(!state.tagName&&stream.sol()&&(state.indented=stream.indentation()),stream.eatSpace())return null;type=null;var style=state.tokenize(stream,state);return(style||type)&&style!="comment"&&(setStyle=null,state.state=state.state(type||style,stream,state),setStyle&&(style=setStyle=="error"?style+" error":setStyle)),style},indent:function(state,textAfter,fullLine){var context=state.context;if(state.tokenize.isInAttribute)return state.tagStart==state.indented?state.stringStartCol+1:state.indented+indentUnit;if(context&&context.noIndent)return CodeMirror2.Pass;if(state.tokenize!=inTag&&state.tokenize!=inText)return fullLine?fullLine.match(/^(\s*)/)[0].length:0;if(state.tagName)return config.multilineTagIndentPastTag!==!1?state.tagStart+state.tagName.length+2:state.tagStart+indentUnit*(config.multilineTagIndentFactor||1);if(config.alignCDATA&&/<!\[CDATA\[/.test(textAfter))return 0;var tagAfter=textAfter&&/^<(\/)?([\w_:\.-]*)/.exec(textAfter);if(tagAfter&&tagAfter[1])for(;context;)if(context.tagName==tagAfter[2]){context=context.prev;break}else if(config.implicitlyClosed.hasOwnProperty(lower(context.tagName)))context=context.prev;else break;else if(tagAfter)for(;context;){var grabbers=config.contextGrabbers[lower(context.tagName)];if(grabbers&&grabbers.hasOwnProperty(lower(tagAfter[2])))context=context.prev;else break}for(;context&&context.prev&&!context.startOfLine;)context=context.prev;return context?context.indent+indentUnit:state.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:config.htmlMode?"html":"xml",helperType:config.htmlMode?"html":"xml",skipAttribute:function(state){state.state==attrValueState&&(state.state=attrState)},xmlCurrentTag:function(state){return state.tagName?{name:state.tagName,close:state.type=="closeTag"}:null},xmlCurrentContext:function(state){for(var context=[],cx=state.context;cx;cx=cx.prev)context.push(cx.tagName);return context.reverse()}}}),CodeMirror2.defineMIME("text/xml","xml"),CodeMirror2.defineMIME("application/xml","xml"),CodeMirror2.mimeModes.hasOwnProperty("text/html")||CodeMirror2.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xml.exports}var meta={exports:{}},hasRequiredMeta;function requireMeta(){return hasRequiredMeta||(hasRequiredMeta=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var i=0;i<CodeMirror2.modeInfo.length;i++){var info=CodeMirror2.modeInfo[i];info.mimes&&(info.mime=info.mimes[0])}CodeMirror2.findModeByMIME=function(mime){mime=mime.toLowerCase();for(var i2=0;i2<CodeMirror2.modeInfo.length;i2++){var info2=CodeMirror2.modeInfo[i2];if(info2.mime==mime)return info2;if(info2.mimes){for(var j=0;j<info2.mimes.length;j++)if(info2.mimes[j]==mime)return info2}}if(/\+xml$/.test(mime))return CodeMirror2.findModeByMIME("application/xml");if(/\+json$/.test(mime))return CodeMirror2.findModeByMIME("application/json")},CodeMirror2.findModeByExtension=function(ext){ext=ext.toLowerCase();for(var i2=0;i2<CodeMirror2.modeInfo.length;i2++){var info2=CodeMirror2.modeInfo[i2];if(info2.ext){for(var j=0;j<info2.ext.length;j++)if(info2.ext[j]==ext)return info2}}},CodeMirror2.findModeByFileName=function(filename){for(var i2=0;i2<CodeMirror2.modeInfo.length;i2++){var info2=CodeMirror2.modeInfo[i2];if(info2.file&&info2.file.test(filename))return info2}var dot=filename.lastIndexOf("."),ext=dot>-1&&filename.substring(dot+1,filename.length);if(ext)return CodeMirror2.findModeByExtension(ext)},CodeMirror2.findModeByName=function(name){name=name.toLowerCase();for(var i2=0;i2<CodeMirror2.modeInfo.length;i2++){var info2=CodeMirror2.modeInfo[i2];if(info2.name.toLowerCase()==name)return info2;if(info2.alias){for(var j=0;j<info2.alias.length;j++)if(info2.alias[j].toLowerCase()==name)return info2}}}})}()),meta.exports}var hasRequiredMarkdown;function requireMarkdown(){return hasRequiredMarkdown||(hasRequiredMarkdown=1,function(module2,exports3){(function(mod){mod(requireCodemirror(),requireXml(),requireMeta())})(function(CodeMirror2){CodeMirror2.defineMode("markdown",function(cmCfg,modeCfg){var htmlMode=CodeMirror2.getMode(cmCfg,"text/html"),htmlModeMissing=htmlMode.name=="null";function getMode(name){if(CodeMirror2.findModeByName){var found=CodeMirror2.findModeByName(name);found&&(name=found.mime||found.mimes[0])}var mode2=CodeMirror2.getMode(cmCfg,name);return mode2.name=="null"?null:mode2}modeCfg.highlightFormatting===void 0&&(modeCfg.highlightFormatting=!1),modeCfg.maxBlockquoteDepth===void 0&&(modeCfg.maxBlockquoteDepth=0),modeCfg.taskLists===void 0&&(modeCfg.taskLists=!1),modeCfg.strikethrough===void 0&&(modeCfg.strikethrough=!1),modeCfg.emoji===void 0&&(modeCfg.emoji=!1),modeCfg.fencedCodeBlockHighlighting===void 0&&(modeCfg.fencedCodeBlockHighlighting=!0),modeCfg.fencedCodeBlockDefaultMode===void 0&&(modeCfg.fencedCodeBlockDefaultMode="text/plain"),modeCfg.xml===void 0&&(modeCfg.xml=!0),modeCfg.tokenTypeOverrides===void 0&&(modeCfg.tokenTypeOverrides={});var tokenTypes={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 tokenType in tokenTypes)tokenTypes.hasOwnProperty(tokenType)&&modeCfg.tokenTypeOverrides[tokenType]&&(tokenTypes[tokenType]=modeCfg.tokenTypeOverrides[tokenType]);var hrRE=/^([*\-_])(?:\s*\1){2,}\s*$/,listRE=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,taskListRE=/^\[(x| )\](?=\s)/i,atxHeaderRE=modeCfg.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,setextHeaderRE=/^ {0,3}(?:\={1,}|-{2,})\s*$/,textRE=/^[^#!\[\]*_\\<>` "'(~:]+/,fencedCodeRE=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,linkDefRE=/^\s*\[[^\]]+?\]:.*$/,punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,expandedTab=" ";function switchInline(stream,state,f){return state.f=state.inline=f,f(stream,state)}function switchBlock(stream,state,f){return state.f=state.block=f,f(stream,state)}function lineIsEmpty(line){return!line||!/\S/.test(line.string)}function blankLine(state){if(state.linkTitle=!1,state.linkHref=!1,state.linkText=!1,state.em=!1,state.strong=!1,state.strikethrough=!1,state.quote=0,state.indentedCode=!1,state.f==htmlBlock){var exit=htmlModeMissing;if(!exit){var inner=CodeMirror2.innerMode(htmlMode,state.htmlState);exit=inner.mode.name=="xml"&&inner.state.tagStart===null&&!inner.state.context&&inner.state.tokenize.isInText}exit&&(state.f=inlineNormal,state.block=blockNormal,state.htmlState=null)}return state.trailingSpace=0,state.trailingSpaceNewLine=!1,state.prevLine=state.thisLine,state.thisLine={stream:null},null}function blockNormal(stream,state){var firstTokenOnLine=stream.column()===state.indentation,prevLineLineIsEmpty=lineIsEmpty(state.prevLine.stream),prevLineIsIndentedCode=state.indentedCode,prevLineIsHr=state.prevLine.hr,prevLineIsList=state.list!==!1,maxNonCodeIndentation=(state.listStack[state.listStack.length-1]||0)+3;state.indentedCode=!1;var lineIndentation=state.indentation;if(state.indentationDiff===null&&(state.indentationDiff=state.indentation,prevLineIsList)){for(state.list=null;lineIndentation<state.listStack[state.listStack.length-1];)state.listStack.pop(),state.listStack.length?state.indentation=state.listStack[state.listStack.length-1]:state.list=!1;state.list!==!1&&(state.indentationDiff=lineIndentation-state.listStack[state.listStack.length-1])}var allowsInlineContinuation=!prevLineLineIsEmpty&&!prevLineIsHr&&!state.prevLine.header&&(!prevLineIsList||!prevLineIsIndentedCode)&&!state.prevLine.fencedCodeEnd,isHr=(state.list===!1||prevLineIsHr||prevLineLineIsEmpty)&&state.indentation<=maxNonCodeIndentation&&stream.match(hrRE),match=null;if(state.indentationDiff>=4&&(prevLineIsIndentedCode||state.prevLine.fencedCodeEnd||state.prevLine.header||prevLineLineIsEmpty))return stream.skipToEnd(),state.indentedCode=!0,tokenTypes.code;if(stream.eatSpace())return null;if(firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(atxHeaderRE))&&match[1].length<=6)return state.quote=0,state.header=match[1].length,state.thisLine.header=!0,modeCfg.highlightFormatting&&(state.formatting="header"),state.f=state.inline,getType(state);if(state.indentation<=maxNonCodeIndentation&&stream.eat(">"))return state.quote=firstTokenOnLine?1:state.quote+1,modeCfg.highlightFormatting&&(state.formatting="quote"),stream.eatSpace(),getType(state);if(!isHr&&!state.setext&&firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(listRE))){var listType=match[1]?"ol":"ul";return state.indentation=lineIndentation+stream.current().length,state.list=!0,state.quote=0,state.listStack.push(state.indentation),state.em=!1,state.strong=!1,state.code=!1,state.strikethrough=!1,modeCfg.taskLists&&stream.match(taskListRE,!1)&&(state.taskList=!0),state.f=state.inline,modeCfg.highlightFormatting&&(state.formatting=["list","list-"+listType]),getType(state)}else{if(firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(fencedCodeRE,!0)))return state.quote=0,state.fencedEndRE=new RegExp(match[1]+"+ *$"),state.localMode=modeCfg.fencedCodeBlockHighlighting&&getMode(match[2]||modeCfg.fencedCodeBlockDefaultMode),state.localMode&&(state.localState=CodeMirror2.startState(state.localMode)),state.f=state.block=local,modeCfg.highlightFormatting&&(state.formatting="code-block"),state.code=-1,getType(state);if(state.setext||(!allowsInlineContinuation||!prevLineIsList)&&!state.quote&&state.list===!1&&!state.code&&!isHr&&!linkDefRE.test(stream.string)&&(match=stream.lookAhead(1))&&(match=match.match(setextHeaderRE)))return state.setext?(state.header=state.setext,state.setext=0,stream.skipToEnd(),modeCfg.highlightFormatting&&(state.formatting="header")):(state.header=match[0].charAt(0)=="="?1:2,state.setext=state.header),state.thisLine.header=!0,state.f=state.inline,getType(state);if(isHr)return stream.skipToEnd(),state.hr=!0,state.thisLine.hr=!0,tokenTypes.hr;if(stream.peek()==="[")return switchInline(stream,state,footnoteLink)}return switchInline(stream,state,state.inline)}function htmlBlock(stream,state){var style=htmlMode.token(stream,state.htmlState);if(!htmlModeMissing){var inner=CodeMirror2.innerMode(htmlMode,state.htmlState);(inner.mode.name=="xml"&&inner.state.tagStart===null&&!inner.state.context&&inner.state.tokenize.isInText||state.md_inside&&stream.current().indexOf(">")>-1)&&(state.f=inlineNormal,state.block=blockNormal,state.htmlState=null)}return style}function local(stream,state){var currListInd=state.listStack[state.listStack.length-1]||0,hasExitedList=state.indentation<currListInd,maxFencedEndInd=currListInd+3;if(state.fencedEndRE&&state.indentation<=maxFencedEndInd&&(hasExitedList||stream.match(state.fencedEndRE))){modeCfg.highlightFormatting&&(state.formatting="code-block");var returnType;return hasExitedList||(returnType=getType(state)),state.localMode=state.localState=null,state.block=blockNormal,state.f=inlineNormal,state.fencedEndRE=null,state.code=0,state.thisLine.fencedCodeEnd=!0,hasExitedList?switchBlock(stream,state,state.block):returnType}else return state.localMode?state.localMode.token(stream,state.localState):(stream.skipToEnd(),tokenTypes.code)}function getType(state){var styles=[];if(state.formatting){styles.push(tokenTypes.formatting),typeof state.formatting=="string"&&(state.formatting=[state.formatting]);for(var i=0;i<state.formatting.length;i++)styles.push(tokenTypes.formatting+"-"+state.formatting[i]),state.formatting[i]==="header"&&styles.push(tokenTypes.formatting+"-"+state.formatting[i]+"-"+state.header),state.formatting[i]==="quote"&&(!modeCfg.maxBlockquoteDepth||modeCfg.maxBlockquoteDepth>=state.quote?styles.push(tokenTypes.formatting+"-"+state.formatting[i]+"-"+state.quote):styles.push("error"))}if(state.taskOpen)return styles.push("meta"),styles.length?styles.join(" "):null;if(state.taskClosed)return styles.push("property"),styles.length?styles.join(" "):null;if(state.linkHref?styles.push(tokenTypes.linkHref,"url"):(state.strong&&styles.push(tokenTypes.strong),state.em&&styles.push(tokenTypes.em),state.strikethrough&&styles.push(tokenTypes.strikethrough),state.emoji&&styles.push(tokenTypes.emoji),state.linkText&&styles.push(tokenTypes.linkText),state.code&&styles.push(tokenTypes.code),state.image&&styles.push(tokenTypes.image),state.imageAltText&&styles.push(tokenTypes.imageAltText,"link"),state.imageMarker&&styles.push(tokenTypes.imageMarker)),state.header&&styles.push(tokenTypes.header,tokenTypes.header+"-"+state.header),state.quote&&(styles.push(tokenTypes.quote),!modeCfg.maxBlockquoteDepth||modeCfg.maxBlockquoteDepth>=state.quote?styles.push(tokenTypes.quote+"-"+state.quote):styles.push(tokenTypes.quote+"-"+modeCfg.maxBlockquoteDepth)),state.list!==!1){var listMod=(state.listStack.length-1)%3;listMod?listMod===1?styles.push(tokenTypes.list2):styles.push(tokenTypes.list3):styles.push(tokenTypes.list1)}return state.trailingSpaceNewLine?styles.push("trailing-space-new-line"):state.trailingSpace&&styles.push("trailing-space-"+(state.trailingSpace%2?"a":"b")),styles.length?styles.join(" "):null}function handleText(stream,state){if(stream.match(textRE,!0))return getType(state)}function inlineNormal(stream,state){var style=state.text(stream,state);if(typeof style<"u")return style;if(state.list)return state.list=null,getType(state);if(state.taskList){var taskOpen=stream.match(taskListRE,!0)[1]===" ";return taskOpen?state.taskOpen=!0:state.taskClosed=!0,modeCfg.highlightFormatting&&(state.formatting="task"),state.taskList=!1,getType(state)}if(state.taskOpen=!1,state.taskClosed=!1,state.header&&stream.match(/^#+$/,!0))return modeCfg.highlightFormatting&&(state.formatting="header"),getType(state);var ch=stream.next();if(state.linkTitle){state.linkTitle=!1;var matchCh=ch;ch==="("&&(matchCh=")"),matchCh=(matchCh+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var regex="^\\s*(?:[^"+matchCh+"\\\\]+|\\\\\\\\|\\\\.)"+matchCh;if(stream.match(new RegExp(regex),!0))return tokenTypes.linkHref}if(ch==="`"){var previousFormatting=state.formatting;modeCfg.highlightFormatting&&(state.formatting="code"),stream.eatWhile("`");var count=stream.current().length;if(state.code==0&&(!state.quote||count==1))return state.code=count,getType(state);if(count==state.code){var t=getType(state);return state.code=0,t}else return state.formatting=previousFormatting,getType(state)}else if(state.code)return getType(state);if(ch==="\\"&&(stream.next(),modeCfg.highlightFormatting)){var type=getType(state),formattingEscape=tokenTypes.formatting+"-escape";return type?type+" "+formattingEscape:formattingEscape}if(ch==="!"&&stream.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return state.imageMarker=!0,state.image=!0,modeCfg.highlightFormatting&&(state.formatting="image"),getType(state);if(ch==="["&&state.imageMarker&&stream.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return state.imageMarker=!1,state.imageAltText=!0,modeCfg.highlightFormatting&&(state.formatting="image"),getType(state);if(ch==="]"&&state.imageAltText){modeCfg.highlightFormatting&&(state.formatting="image");var type=getType(state);return state.imageAltText=!1,state.image=!1,state.inline=state.f=linkHref,type}if(ch==="["&&!state.image)return state.linkText&&stream.match(/^.*?\]/)||(state.linkText=!0,modeCfg.highlightFormatting&&(state.formatting="link")),getType(state);if(ch==="]"&&state.linkText){modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return state.linkText=!1,state.inline=state.f=stream.match(/\(.*?\)| ?\[.*?\]/,!1)?linkHref:inlineNormal,type}if(ch==="<"&&stream.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){state.f=state.inline=linkInline,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkInline}if(ch==="<"&&stream.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){state.f=state.inline=linkInline,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkEmail}if(modeCfg.xml&&ch==="<"&&stream.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var end=stream.string.indexOf(">",stream.pos);if(end!=-1){var atts=stream.string.substring(stream.start,end);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(atts)&&(state.md_inside=!0)}return stream.backUp(1),state.htmlState=CodeMirror2.startState(htmlMode),switchBlock(stream,state,htmlBlock)}if(modeCfg.xml&&ch==="<"&&stream.match(/^\/\w*?>/))return state.md_inside=!1,"tag";if(ch==="*"||ch==="_"){for(var len=1,before=stream.pos==1?" ":stream.string.charAt(stream.pos-2);len<3&&stream.eat(ch);)len++;var after=stream.peek()||" ",leftFlanking=!/\s/.test(after)&&(!punctuation.test(after)||/\s/.test(before)||punctuation.test(before)),rightFlanking=!/\s/.test(before)&&(!punctuation.test(before)||/\s/.test(after)||punctuation.test(after)),setEm=null,setStrong=null;if(len%2&&(!state.em&&leftFlanking&&(ch==="*"||!rightFlanking||punctuation.test(before))?setEm=!0:state.em==ch&&rightFlanking&&(ch==="*"||!leftFlanking||punctuation.test(after))&&(setEm=!1)),len>1&&(!state.strong&&leftFlanking&&(ch==="*"||!rightFlanking||punctuation.test(before))?setStrong=!0:state.strong==ch&&rightFlanking&&(ch==="*"||!leftFlanking||punctuation.test(after))&&(setStrong=!1)),setStrong!=null||setEm!=null){modeCfg.highlightFormatting&&(state.formatting=setEm==null?"strong":setStrong==null?"em":"strong em"),setEm===!0&&(state.em=ch),setStrong===!0&&(state.strong=ch);var t=getType(state);return setEm===!1&&(state.em=!1),setStrong===!1&&(state.strong=!1),t}}else if(ch===" "&&(stream.eat("*")||stream.eat("_"))){if(stream.peek()===" ")return getType(state);stream.backUp(1)}if(modeCfg.strikethrough){if(ch==="~"&&stream.eatWhile(ch)){if(state.strikethrough){modeCfg.highlightFormatting&&(state.formatting="strikethrough");var t=getType(state);return state.strikethrough=!1,t}else if(stream.match(/^[^\s]/,!1))return state.strikethrough=!0,modeCfg.highlightFormatting&&(state.formatting="strikethrough"),getType(state)}else if(ch===" "&&stream.match("~~",!0)){if(stream.peek()===" ")return getType(state);stream.backUp(2)}}if(modeCfg.emoji&&ch===":"&&stream.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){state.emoji=!0,modeCfg.highlightFormatting&&(state.formatting="emoji");var retType=getType(state);return state.emoji=!1,retType}return ch===" "&&(stream.match(/^ +$/,!1)?state.trailingSpace++:state.trailingSpace&&(state.trailingSpaceNewLine=!0)),getType(state)}function linkInline(stream,state){var ch=stream.next();if(ch===">"){state.f=state.inline=inlineNormal,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkInline}return stream.match(/^[^>]+/,!0),tokenTypes.linkInline}function linkHref(stream,state){if(stream.eatSpace())return null;var ch=stream.next();return ch==="("||ch==="["?(state.f=state.inline=getLinkHrefInside(ch==="("?")":"]"),modeCfg.highlightFormatting&&(state.formatting="link-string"),state.linkHref=!0,getType(state)):"error"}var linkRE={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function getLinkHrefInside(endChar){return function(stream,state){var ch=stream.next();if(ch===endChar){state.f=state.inline=inlineNormal,modeCfg.highlightFormatting&&(state.formatting="link-string");var returnState=getType(state);return state.linkHref=!1,returnState}return stream.match(linkRE[endChar]),state.linkHref=!0,getType(state)}}function footnoteLink(stream,state){return stream.match(/^([^\]\\]|\\.)*\]:/,!1)?(state.f=footnoteLinkInside,stream.next(),modeCfg.highlightFormatting&&(state.formatting="link"),state.linkText=!0,getType(state)):switchInline(stream,state,inlineNormal)}function footnoteLinkInside(stream,state){if(stream.match("]:",!0)){state.f=state.inline=footnoteUrl,modeCfg.highlightFormatting&&(state.formatting="link");var returnType=getType(state);return state.linkText=!1,returnType}return stream.match(/^([^\]\\]|\\.)+/,!0),tokenTypes.linkText}function footnoteUrl(stream,state){return stream.eatSpace()?null:(stream.match(/^[^\s]+/,!0),stream.peek()===void 0?state.linkTitle=!0:stream.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),state.f=state.inline=inlineNormal,tokenTypes.linkHref+" url")}var mode={startState:function(){return{f:blockNormal,prevLine:{stream:null},thisLine:{stream:null},block:blockNormal,htmlState:null,indentation:0,inline:inlineNormal,text:handleText,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&&CodeMirror2.copyState(htmlMode,s.htmlState),indentation:s.indentation,localMode:s.localMode,localState:s.localMode?CodeMirror2.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(stream,state){if(state.formatting=!1,stream!=state.thisLine.stream){if(state.header=0,state.hr=!1,stream.match(/^\s*$/,!0))return blankLine(state),null;if(state.prevLine=state.thisLine,state.thisLine={stream},state.taskList=!1,state.trailingSpace=0,state.trailingSpaceNewLine=!1,!state.localState&&(state.f=state.block,state.f!=htmlBlock)){var indentation=stream.match(/^\s*/,!0)[0].replace(/\t/g,expandedTab).length;if(state.indentation=indentation,state.indentationDiff=null,indentation>0)return null}}return state.f(stream,state)},innerMode:function(state){return state.block==htmlBlock?{state:state.htmlState,mode:htmlMode}:state.localState?{state:state.localState,mode:state.localMode}:{state,mode}},indent:function(state,textAfter,line){return state.block==htmlBlock&&htmlMode.indent?htmlMode.indent(state.htmlState,textAfter,line):state.localState&&state.localMode.indent?state.localMode.indent(state.localState,textAfter,line):CodeMirror2.Pass},blankLine,getType,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return mode},"xml"),CodeMirror2.defineMIME("text/markdown","markdown"),CodeMirror2.defineMIME("text/x-markdown","markdown")})}()),markdown.exports}var overlay={exports:{}},hasRequiredOverlay;function requireOverlay(){return hasRequiredOverlay||(hasRequiredOverlay=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.overlayMode=function(base,overlay2,combine){return{startState:function(){return{base:CodeMirror2.startState(base),overlay:CodeMirror2.startState(overlay2),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(state){return{base:CodeMirror2.copyState(base,state.base),overlay:CodeMirror2.copyState(overlay2,state.overlay),basePos:state.basePos,baseCur:null,overlayPos:state.overlayPos,overlayCur:null}},token:function(stream,state){return(stream!=state.streamSeen||Math.min(state.basePos,state.overlayPos)<stream.start)&&(state.streamSeen=stream,state.basePos=state.overlayPos=stream.start),stream.start==state.basePos&&(state.baseCur=base.token(stream,state.base),state.basePos=stream.pos),stream.start==state.overlayPos&&(stream.pos=stream.start,state.overlayCur=overlay2.token(stream,state.overlay),state.overlayPos=stream.pos),stream.pos=Math.min(state.basePos,state.overlayPos),state.overlayCur==null?state.baseCur:state.baseCur!=null&&state.overlay.combineTokens||combine&&state.overlay.combineTokens==null?state.baseCur+" "+state.overlayCur:state.overlayCur},indent:base.indent&&function(state,textAfter,line){return base.indent(state.base,textAfter,line)},electricChars:base.electricChars,innerMode:function(state){return{state:state.base,mode:base}},blankLine:function(state){var baseToken,overlayToken;return base.blankLine&&(baseToken=base.blankLine(state.base)),overlay2.blankLine&&(overlayToken=overlay2.blankLine(state.overlay)),overlayToken==null?baseToken:combine&&baseToken!=null?baseToken+" "+overlayToken:overlayToken}}}})}()),overlay.exports}var hasRequiredGfm;function requireGfm(){return hasRequiredGfm||(hasRequiredGfm=1,function(module2,exports3){(function(mod){mod(requireCodemirror(),requireMarkdown(),requireOverlay())})(function(CodeMirror2){var urlRE=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;CodeMirror2.defineMode("gfm",function(config,modeConfig){var codeDepth=0;function blankLine(state){return state.code=!1,null}var gfmOverlay={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(s){return{code:s.code,codeBlock:s.codeBlock,ateSpace:s.ateSpace}},token:function(stream,state){if(state.combineTokens=null,state.codeBlock)return stream.match(/^```+/)?(state.codeBlock=!1,null):(stream.skipToEnd(),null);if(stream.sol()&&(state.code=!1),stream.sol()&&stream.match(/^```+/))return stream.skipToEnd(),state.codeBlock=!0,null;if(stream.peek()==="`"){stream.next();var before=stream.pos;stream.eatWhile("`");var difference=1+stream.pos-before;return state.code?difference===codeDepth&&(state.code=!1):(codeDepth=difference,state.code=!0),null}else if(state.code)return stream.next(),null;if(stream.eatSpace())return state.ateSpace=!0,null;if((stream.sol()||state.ateSpace)&&(state.ateSpace=!1,modeConfig.gitHubSpice!==!1)){if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return state.combineTokens=!0,"link";if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return state.combineTokens=!0,"link"}return stream.match(urlRE)&&stream.string.slice(stream.start-2,stream.start)!="]("&&(stream.start==0||/\W/.test(stream.string.charAt(stream.start-1)))?(state.combineTokens=!0,"link"):(stream.next(),null)},blankLine},markdownConfig={taskLists:!0,strikethrough:!0,emoji:!0};for(var attr in modeConfig)markdownConfig[attr]=modeConfig[attr];return markdownConfig.name="markdown",CodeMirror2.overlayMode(CodeMirror2.getMode(config,markdownConfig),gfmOverlay)},"markdown"),CodeMirror2.defineMIME("text/x-gfm","gfm")})}()),gfm.exports}requireGfm();var htmlmixed={exports:{}},javascript={exports:{}},hasRequiredJavascript;function requireJavascript(){return hasRequiredJavascript||(hasRequiredJavascript=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("javascript",function(config,parserConfig){var indentUnit=config.indentUnit,statementIndent=parserConfig.statementIndent,jsonldMode=parserConfig.jsonld,jsonMode=parserConfig.json||jsonldMode,trackScope=parserConfig.trackScope!==!1,isTS=parserConfig.typescript,wordRE=parserConfig.wordCharacters||/[\w$\xa1-\uffff]/,keywords=function(){function kw(type2){return{type:type2,style:"keyword"}}var A=kw("keyword a"),B=kw("keyword b"),C=kw("keyword c"),D=kw("keyword d"),operator=kw("operator"),atom={type:"atom",style:"atom"};return{if:kw("if"),while:A,with:A,else:B,do:B,try:B,finally:B,return:D,break:D,continue:D,new:kw("new"),delete:C,void:C,throw:C,debugger:kw("debugger"),var:kw("var"),const:kw("var"),let:kw("var"),function:kw("function"),catch:kw("catch"),for:kw("for"),switch:kw("switch"),case:kw("case"),default:kw("default"),in:operator,typeof:operator,instanceof:operator,true:atom,false:atom,null:atom,undefined:atom,NaN:atom,Infinity:atom,this:kw("this"),class:kw("class"),super:kw("atom"),yield:C,export:kw("export"),import:kw("import"),extends:C,await:C}}(),isOperatorChar=/[+\-*&%=<>!?|~^@]/,isJsonldKeyword=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function readRegexp(stream){for(var escaped=!1,next,inSet=!1;(next=stream.next())!=null;){if(!escaped){if(next=="/"&&!inSet)return;next=="["?inSet=!0:inSet&&next=="]"&&(inSet=!1)}escaped=!escaped&&next=="\\"}}var type,content;function ret(tp,style,cont2){return type=tp,content=cont2,style}function tokenBase(stream,state){var ch=stream.next();if(ch=='"'||ch=="'")return state.tokenize=tokenString(ch),state.tokenize(stream,state);if(ch=="."&&stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return ret("number","number");if(ch=="."&&stream.match(".."))return ret("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ch))return ret(ch);if(ch=="="&&stream.eat(">"))return ret("=>","operator");if(ch=="0"&&stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return ret("number","number");if(/\d/.test(ch))return stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),ret("number","number");if(ch=="/")return stream.eat("*")?(state.tokenize=tokenComment,tokenComment(stream,state)):stream.eat("/")?(stream.skipToEnd(),ret("comment","comment")):expressionAllowed(stream,state,1)?(readRegexp(stream),stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ret("regexp","string-2")):(stream.eat("="),ret("operator","operator",stream.current()));if(ch=="`")return state.tokenize=tokenQuasi,tokenQuasi(stream,state);if(ch=="#"&&stream.peek()=="!")return stream.skipToEnd(),ret("meta","meta");if(ch=="#"&&stream.eatWhile(wordRE))return ret("variable","property");if(ch=="<"&&stream.match("!--")||ch=="-"&&stream.match("->")&&!/\S/.test(stream.string.slice(0,stream.start)))return stream.skipToEnd(),ret("comment","comment");if(isOperatorChar.test(ch))return(ch!=">"||!state.lexical||state.lexical.type!=">")&&(stream.eat("=")?(ch=="!"||ch=="=")&&stream.eat("="):/[<>*+\-|&?]/.test(ch)&&(stream.eat(ch),ch==">"&&stream.eat(ch))),ch=="?"&&stream.eat(".")?ret("."):ret("operator","operator",stream.current());if(wordRE.test(ch)){stream.eatWhile(wordRE);var word=stream.current();if(state.lastType!="."){if(keywords.propertyIsEnumerable(word)){var kw=keywords[word];return ret(kw.type,kw.style,word)}if(word=="async"&&stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return ret("async","keyword",word)}return ret("variable","variable",word)}}function tokenString(quote){return function(stream,state){var escaped=!1,next;if(jsonldMode&&stream.peek()=="@"&&stream.match(isJsonldKeyword))return state.tokenize=tokenBase,ret("jsonld-keyword","meta");for(;(next=stream.next())!=null&&!(next==quote&&!escaped);)escaped=!escaped&&next=="\\";return escaped||(state.tokenize=tokenBase),ret("string","string")}}function tokenComment(stream,state){for(var maybeEnd=!1,ch;ch=stream.next();){if(ch=="/"&&maybeEnd){state.tokenize=tokenBase;break}maybeEnd=ch=="*"}return ret("comment","comment")}function tokenQuasi(stream,state){for(var escaped=!1,next;(next=stream.next())!=null;){if(!escaped&&(next=="`"||next=="$"&&stream.eat("{"))){state.tokenize=tokenBase;break}escaped=!escaped&&next=="\\"}return ret("quasi","string-2",stream.current())}var brackets="([{}])";function findFatArrow(stream,state){state.fatArrowAt&&(state.fatArrowAt=null);var arrow=stream.string.indexOf("=>",stream.start);if(!(arrow<0)){if(isTS){var m=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start,arrow));m&&(arrow=m.index)}for(var depth=0,sawSomething=!1,pos=arrow-1;pos>=0;--pos){var ch=stream.string.charAt(pos),bracket=brackets.indexOf(ch);if(bracket>=0&&bracket<3){if(!depth){++pos;break}if(--depth==0){ch=="("&&(sawSomething=!0);break}}else if(bracket>=3&&bracket<6)++depth;else if(wordRE.test(ch))sawSomething=!0;else if(/["'\/`]/.test(ch))for(;;--pos){if(pos==0)return;var next=stream.string.charAt(pos-1);if(next==ch&&stream.string.charAt(pos-2)!="\\"){pos--;break}}else if(sawSomething&&!depth){++pos;break}}sawSomething&&!depth&&(state.fatArrowAt=pos)}}var atomicTypes={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function JSLexical(indented,column,type2,align,prev,info){this.indented=indented,this.column=column,this.type=type2,this.prev=prev,this.info=info,align!=null&&(this.align=align)}function inScope(state,varname){if(!trackScope)return!1;for(var v=state.localVars;v;v=v.next)if(v.name==varname)return!0;for(var cx2=state.context;cx2;cx2=cx2.prev)for(var v=cx2.vars;v;v=v.next)if(v.name==varname)return!0}function parseJS(state,style,type2,content2,stream){var cc=state.cc;for(cx.state=state,cx.stream=stream,cx.marked=null,cx.cc=cc,cx.style=style,state.lexical.hasOwnProperty("align")||(state.lexical.align=!0);;){var combinator=cc.length?cc.pop():jsonMode?expression:statement;if(combinator(type2,content2)){for(;cc.length&&cc[cc.length-1].lex;)cc.pop()();return cx.marked?cx.marked:type2=="variable"&&inScope(state,content2)?"variable-2":style}}}var cx={state:null,column:null,marked:null,cc:null};function pass(){for(var i=arguments.length-1;i>=0;i--)cx.cc.push(arguments[i])}function cont(){return pass.apply(null,arguments),!0}function inList(name,list){for(var v=list;v;v=v.next)if(v.name==name)return!0;return!1}function register(varname){var state=cx.state;if(cx.marked="def",!!trackScope){if(state.context){if(state.lexical.info=="var"&&state.context&&state.context.block){var newContext=registerVarScoped(varname,state.context);if(newContext!=null){state.context=newContext;return}}else if(!inList(varname,state.localVars)){state.localVars=new Var(varname,state.localVars);return}}parserConfig.globalVars&&!inList(varname,state.globalVars)&&(state.globalVars=new Var(varname,state.globalVars))}}function registerVarScoped(varname,context){if(context)if(context.block){var inner=registerVarScoped(varname,context.prev);return inner?inner==context.prev?context:new Context(inner,context.vars,!0):null}else return inList(varname,context.vars)?context:new Context(context.prev,new Var(varname,context.vars),!1);else return null}function isModifier(name){return name=="public"||name=="private"||name=="protected"||name=="abstract"||name=="readonly"}function Context(prev,vars,block2){this.prev=prev,this.vars=vars,this.block=block2}function Var(name,next){this.name=name,this.next=next}var defaultVars=new Var("this",new Var("arguments",null));function pushcontext(){cx.state.context=new Context(cx.state.context,cx.state.localVars,!1),cx.state.localVars=defaultVars}function pushblockcontext(){cx.state.context=new Context(cx.state.context,cx.state.localVars,!0),cx.state.localVars=null}pushcontext.lex=pushblockcontext.lex=!0;function popcontext(){cx.state.localVars=cx.state.context.vars,cx.state.context=cx.state.context.prev}popcontext.lex=!0;function pushlex(type2,info){var result=function(){var state=cx.state,indent=state.indented;if(state.lexical.type=="stat")indent=state.lexical.indented;else for(var outer=state.lexical;outer&&outer.type==")"&&outer.align;outer=outer.prev)indent=outer.indented;state.lexical=new JSLexical(indent,cx.stream.column(),type2,null,state.lexical,info)};return result.lex=!0,result}function poplex(){var state=cx.state;state.lexical.prev&&(state.lexical.type==")"&&(state.indented=state.lexical.indented),state.lexical=state.lexical.prev)}poplex.lex=!0;function expect(wanted){function exp(type2){return type2==wanted?cont():wanted==";"||type2=="}"||type2==")"||type2=="]"?pass():cont(exp)}return exp}function statement(type2,value){return type2=="var"?cont(pushlex("vardef",value),vardef,expect(";"),poplex):type2=="keyword a"?cont(pushlex("form"),parenExpr,statement,poplex):type2=="keyword b"?cont(pushlex("form"),statement,poplex):type2=="keyword d"?cx.stream.match(/^\s*$/,!1)?cont():cont(pushlex("stat"),maybeexpression,expect(";"),poplex):type2=="debugger"?cont(expect(";")):type2=="{"?cont(pushlex("}"),pushblockcontext,block,poplex,popcontext):type2==";"?cont():type2=="if"?(cx.state.lexical.info=="else"&&cx.state.cc[cx.state.cc.length-1]==poplex&&cx.state.cc.pop()(),cont(pushlex("form"),parenExpr,statement,poplex,maybeelse)):type2=="function"?cont(functiondef):type2=="for"?cont(pushlex("form"),pushblockcontext,forspec,statement,popcontext,poplex):type2=="class"||isTS&&value=="interface"?(cx.marked="keyword",cont(pushlex("form",type2=="class"?type2:value),className,poplex)):type2=="variable"?isTS&&value=="declare"?(cx.marked="keyword",cont(statement)):isTS&&(value=="module"||value=="enum"||value=="type")&&cx.stream.match(/^\s*\w/,!1)?(cx.marked="keyword",value=="enum"?cont(enumdef):value=="type"?cont(typename,expect("operator"),typeexpr,expect(";")):cont(pushlex("form"),pattern,expect("{"),pushlex("}"),block,poplex,poplex)):isTS&&value=="namespace"?(cx.marked="keyword",cont(pushlex("form"),expression,statement,poplex)):isTS&&value=="abstract"?(cx.marked="keyword",cont(statement)):cont(pushlex("stat"),maybelabel):type2=="switch"?cont(pushlex("form"),parenExpr,expect("{"),pushlex("}","switch"),pushblockcontext,block,poplex,poplex,popcontext):type2=="case"?cont(expression,expect(":")):type2=="default"?cont(expect(":")):type2=="catch"?cont(pushlex("form"),pushcontext,maybeCatchBinding,statement,poplex,popcontext):type2=="export"?cont(pushlex("stat"),afterExport,poplex):type2=="import"?cont(pushlex("stat"),afterImport,poplex):type2=="async"?cont(statement):value=="@"?cont(expression,statement):pass(pushlex("stat"),expression,expect(";"),poplex)}function maybeCatchBinding(type2){if(type2=="(")return cont(funarg,expect(")"))}function expression(type2,value){return expressionInner(type2,value,!1)}function expressionNoComma(type2,value){return expressionInner(type2,value,!0)}function parenExpr(type2){return type2!="("?pass():cont(pushlex(")"),maybeexpression,expect(")"),poplex)}function expressionInner(type2,value,noComma){if(cx.state.fatArrowAt==cx.stream.start){var body=noComma?arrowBodyNoComma:arrowBody;if(type2=="(")return cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,expect("=>"),body,popcontext);if(type2=="variable")return pass(pushcontext,pattern,expect("=>"),body,popcontext)}var maybeop=noComma?maybeoperatorNoComma:maybeoperatorComma;return atomicTypes.hasOwnProperty(type2)?cont(maybeop):type2=="function"?cont(functiondef,maybeop):type2=="class"||isTS&&value=="interface"?(cx.marked="keyword",cont(pushlex("form"),classExpression,poplex)):type2=="keyword c"||type2=="async"?cont(noComma?expressionNoComma:expression):type2=="("?cont(pushlex(")"),maybeexpression,expect(")"),poplex,maybeop):type2=="operator"||type2=="spread"?cont(noComma?expressionNoComma:expression):type2=="["?cont(pushlex("]"),arrayLiteral,poplex,maybeop):type2=="{"?contCommasep(objprop,"}",null,maybeop):type2=="quasi"?pass(quasi,maybeop):type2=="new"?cont(maybeTarget(noComma)):cont()}function maybeexpression(type2){return type2.match(/[;\}\)\],]/)?pass():pass(expression)}function maybeoperatorComma(type2,value){return type2==","?cont(maybeexpression):maybeoperatorNoComma(type2,value,!1)}function maybeoperatorNoComma(type2,value,noComma){var me=noComma==!1?maybeoperatorComma:maybeoperatorNoComma,expr=noComma==!1?expression:expressionNoComma;if(type2=="=>")return cont(pushcontext,noComma?arrowBodyNoComma:arrowBody,popcontext);if(type2=="operator")return/\+\+|--/.test(value)||isTS&&value=="!"?cont(me):isTS&&value=="<"&&cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?cont(pushlex(">"),commasep(typeexpr,">"),poplex,me):value=="?"?cont(expression,expect(":"),expr):cont(expr);if(type2=="quasi")return pass(quasi,me);if(type2!=";"){if(type2=="(")return contCommasep(expressionNoComma,")","call",me);if(type2==".")return cont(property,me);if(type2=="[")return cont(pushlex("]"),maybeexpression,expect("]"),poplex,me);if(isTS&&value=="as")return cx.marked="keyword",cont(typeexpr,me);if(type2=="regexp")return cx.state.lastType=cx.marked="operator",cx.stream.backUp(cx.stream.pos-cx.stream.start-1),cont(expr)}}function quasi(type2,value){return type2!="quasi"?pass():value.slice(value.length-2)!="${"?cont(quasi):cont(maybeexpression,continueQuasi)}function continueQuasi(type2){if(type2=="}")return cx.marked="string-2",cx.state.tokenize=tokenQuasi,cont(quasi)}function arrowBody(type2){return findFatArrow(cx.stream,cx.state),pass(type2=="{"?statement:expression)}function arrowBodyNoComma(type2){return findFatArrow(cx.stream,cx.state),pass(type2=="{"?statement:expressionNoComma)}function maybeTarget(noComma){return function(type2){return type2=="."?cont(noComma?targetNoComma:target):type2=="variable"&&isTS?cont(maybeTypeArgs,noComma?maybeoperatorNoComma:maybeoperatorComma):pass(noComma?expressionNoComma:expression)}}function target(_,value){if(value=="target")return cx.marked="keyword",cont(maybeoperatorComma)}function targetNoComma(_,value){if(value=="target")return cx.marked="keyword",cont(maybeoperatorNoComma)}function maybelabel(type2){return type2==":"?cont(poplex,statement):pass(maybeoperatorComma,expect(";"),poplex)}function property(type2){if(type2=="variable")return cx.marked="property",cont()}function objprop(type2,value){if(type2=="async")return cx.marked="property",cont(objprop);if(type2=="variable"||cx.style=="keyword"){if(cx.marked="property",value=="get"||value=="set")return cont(getterSetter);var m;return isTS&&cx.state.fatArrowAt==cx.stream.start&&(m=cx.stream.match(/^\s*:\s*/,!1))&&(cx.state.fatArrowAt=cx.stream.pos+m[0].length),cont(afterprop)}else{if(type2=="number"||type2=="string")return cx.marked=jsonldMode?"property":cx.style+" property",cont(afterprop);if(type2=="jsonld-keyword")return cont(afterprop);if(isTS&&isModifier(value))return cx.marked="keyword",cont(objprop);if(type2=="[")return cont(expression,maybetype,expect("]"),afterprop);if(type2=="spread")return cont(expressionNoComma,afterprop);if(value=="*")return cx.marked="keyword",cont(objprop);if(type2==":")return pass(afterprop)}}function getterSetter(type2){return type2!="variable"?pass(afterprop):(cx.marked="property",cont(functiondef))}function afterprop(type2){if(type2==":")return cont(expressionNoComma);if(type2=="(")return pass(functiondef)}function commasep(what,end,sep){function proceed(type2,value){if(sep?sep.indexOf(type2)>-1:type2==","){var lex=cx.state.lexical;return lex.info=="call"&&(lex.pos=(lex.pos||0)+1),cont(function(type3,value2){return type3==end||value2==end?pass():pass(what)},proceed)}return type2==end||value==end?cont():sep&&sep.indexOf(";")>-1?pass(what):cont(expect(end))}return function(type2,value){return type2==end||value==end?cont():pass(what,proceed)}}function contCommasep(what,end,info){for(var i=3;i<arguments.length;i++)cx.cc.push(arguments[i]);return cont(pushlex(end,info),commasep(what,end),poplex)}function block(type2){return type2=="}"?cont():pass(statement,block)}function maybetype(type2,value){if(isTS){if(type2==":")return cont(typeexpr);if(value=="?")return cont(maybetype)}}function maybetypeOrIn(type2,value){if(isTS&&(type2==":"||value=="in"))return cont(typeexpr)}function mayberettype(type2){if(isTS&&type2==":")return cx.stream.match(/^\s*\w+\s+is\b/,!1)?cont(expression,isKW,typeexpr):cont(typeexpr)}function isKW(_,value){if(value=="is")return cx.marked="keyword",cont()}function typeexpr(type2,value){if(value=="keyof"||value=="typeof"||value=="infer"||value=="readonly")return cx.marked="keyword",cont(value=="typeof"?expressionNoComma:typeexpr);if(type2=="variable"||value=="void")return cx.marked="type",cont(afterType);if(value=="|"||value=="&")return cont(typeexpr);if(type2=="string"||type2=="number"||type2=="atom")return cont(afterType);if(type2=="[")return cont(pushlex("]"),commasep(typeexpr,"]",","),poplex,afterType);if(type2=="{")return cont(pushlex("}"),typeprops,poplex,afterType);if(type2=="(")return cont(commasep(typearg,")"),maybeReturnType,afterType);if(type2=="<")return cont(commasep(typeexpr,">"),typeexpr);if(type2=="quasi")return pass(quasiType,afterType)}function maybeReturnType(type2){if(type2=="=>")return cont(typeexpr)}function typeprops(type2){return type2.match(/[\}\)\]]/)?cont():type2==","||type2==";"?cont(typeprops):pass(typeprop,typeprops)}function typeprop(type2,value){if(type2=="variable"||cx.style=="keyword")return cx.marked="property",cont(typeprop);if(value=="?"||type2=="number"||type2=="string")return cont(typeprop);if(type2==":")return cont(typeexpr);if(type2=="[")return cont(expect("variable"),maybetypeOrIn,expect("]"),typeprop);if(type2=="(")return pass(functiondecl,typeprop);if(!type2.match(/[;\}\)\],]/))return cont()}function quasiType(type2,value){return type2!="quasi"?pass():value.slice(value.length-2)!="${"?cont(quasiType):cont(typeexpr,continueQuasiType)}function continueQuasiType(type2){if(type2=="}")return cx.marked="string-2",cx.state.tokenize=tokenQuasi,cont(quasiType)}function typearg(type2,value){return type2=="variable"&&cx.stream.match(/^\s*[?:]/,!1)||value=="?"?cont(typearg):type2==":"?cont(typeexpr):type2=="spread"?cont(typearg):pass(typeexpr)}function afterType(type2,value){if(value=="<")return cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType);if(value=="|"||type2=="."||value=="&")return cont(typeexpr);if(type2=="[")return cont(typeexpr,expect("]"),afterType);if(value=="extends"||value=="implements")return cx.marked="keyword",cont(typeexpr);if(value=="?")return cont(typeexpr,expect(":"),typeexpr)}function maybeTypeArgs(_,value){if(value=="<")return cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType)}function typeparam(){return pass(typeexpr,maybeTypeDefault)}function maybeTypeDefault(_,value){if(value=="=")return cont(typeexpr)}function vardef(_,value){return value=="enum"?(cx.marked="keyword",cont(enumdef)):pass(pattern,maybetype,maybeAssign,vardefCont)}function pattern(type2,value){if(isTS&&isModifier(value))return cx.marked="keyword",cont(pattern);if(type2=="variable")return register(value),cont();if(type2=="spread")return cont(pattern);if(type2=="[")return contCommasep(eltpattern,"]");if(type2=="{")return contCommasep(proppattern,"}")}function proppattern(type2,value){return type2=="variable"&&!cx.stream.match(/^\s*:/,!1)?(register(value),cont(maybeAssign)):(type2=="variable"&&(cx.marked="property"),type2=="spread"?cont(pattern):type2=="}"?pass():type2=="["?cont(expression,expect("]"),expect(":"),proppattern):cont(expect(":"),pattern,maybeAssign))}function eltpattern(){return pass(pattern,maybeAssign)}function maybeAssign(_type,value){if(value=="=")return cont(expressionNoComma)}function vardefCont(type2){if(type2==",")return cont(vardef)}function maybeelse(type2,value){if(type2=="keyword b"&&value=="else")return cont(pushlex("form","else"),statement,poplex)}function forspec(type2,value){if(value=="await")return cont(forspec);if(type2=="(")return cont(pushlex(")"),forspec1,poplex)}function forspec1(type2){return type2=="var"?cont(vardef,forspec2):type2=="variable"?cont(forspec2):pass(forspec2)}function forspec2(type2,value){return type2==")"?cont():type2==";"?cont(forspec2):value=="in"||value=="of"?(cx.marked="keyword",cont(expression,forspec2)):pass(expression,forspec2)}function functiondef(type2,value){if(value=="*")return cx.marked="keyword",cont(functiondef);if(type2=="variable")return register(value),cont(functiondef);if(type2=="(")return cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,mayberettype,statement,popcontext);if(isTS&&value=="<")return cont(pushlex(">"),commasep(typeparam,">"),poplex,functiondef)}function functiondecl(type2,value){if(value=="*")return cx.marked="keyword",cont(functiondecl);if(type2=="variable")return register(value),cont(functiondecl);if(type2=="(")return cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,mayberettype,popcontext);if(isTS&&value=="<")return cont(pushlex(">"),commasep(typeparam,">"),poplex,functiondecl)}function typename(type2,value){if(type2=="keyword"||type2=="variable")return cx.marked="type",cont(typename);if(value=="<")return cont(pushlex(">"),commasep(typeparam,">"),poplex)}function funarg(type2,value){return value=="@"&&cont(expression,funarg),type2=="spread"?cont(funarg):isTS&&isModifier(value)?(cx.marked="keyword",cont(funarg)):isTS&&type2=="this"?cont(maybetype,maybeAssign):pass(pattern,maybetype,maybeAssign)}function classExpression(type2,value){return type2=="variable"?className(type2,value):classNameAfter(type2,value)}function className(type2,value){if(type2=="variable")return register(value),cont(classNameAfter)}function classNameAfter(type2,value){if(value=="<")return cont(pushlex(">"),commasep(typeparam,">"),poplex,classNameAfter);if(value=="extends"||value=="implements"||isTS&&type2==",")return value=="implements"&&(cx.marked="keyword"),cont(isTS?typeexpr:expression,classNameAfter);if(type2=="{")return cont(pushlex("}"),classBody,poplex)}function classBody(type2,value){if(type2=="async"||type2=="variable"&&(value=="static"||value=="get"||value=="set"||isTS&&isModifier(value))&&cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return cx.marked="keyword",cont(classBody);if(type2=="variable"||cx.style=="keyword")return cx.marked="property",cont(classfield,classBody);if(type2=="number"||type2=="string")return cont(classfield,classBody);if(type2=="[")return cont(expression,maybetype,expect("]"),classfield,classBody);if(value=="*")return cx.marked="keyword",cont(classBody);if(isTS&&type2=="(")return pass(functiondecl,classBody);if(type2==";"||type2==",")return cont(classBody);if(type2=="}")return cont();if(value=="@")return cont(expression,classBody)}function classfield(type2,value){if(value=="!"||value=="?")return cont(classfield);if(type2==":")return cont(typeexpr,maybeAssign);if(value=="=")return cont(expressionNoComma);var context=cx.state.lexical.prev,isInterface=context&&context.info=="interface";return pass(isInterface?functiondecl:functiondef)}function afterExport(type2,value){return value=="*"?(cx.marked="keyword",cont(maybeFrom,expect(";"))):value=="default"?(cx.marked="keyword",cont(expression,expect(";"))):type2=="{"?cont(commasep(exportField,"}"),maybeFrom,expect(";")):pass(statement)}function exportField(type2,value){if(value=="as")return cx.marked="keyword",cont(expect("variable"));if(type2=="variable")return pass(expressionNoComma,exportField)}function afterImport(type2){return type2=="string"?cont():type2=="("?pass(expression):type2=="."?pass(maybeoperatorComma):pass(importSpec,maybeMoreImports,maybeFrom)}function importSpec(type2,value){return type2=="{"?contCommasep(importSpec,"}"):(type2=="variable"&®ister(value),value=="*"&&(cx.marked="keyword"),cont(maybeAs))}function maybeMoreImports(type2){if(type2==",")return cont(importSpec,maybeMoreImports)}function maybeAs(_type,value){if(value=="as")return cx.marked="keyword",cont(importSpec)}function maybeFrom(_type,value){if(value=="from")return cx.marked="keyword",cont(expression)}function arrayLiteral(type2){return type2=="]"?cont():pass(commasep(expressionNoComma,"]"))}function enumdef(){return pass(pushlex("form"),pattern,expect("{"),pushlex("}"),commasep(enummember,"}"),poplex,poplex)}function enummember(){return pass(pattern,maybeAssign)}function isContinuedStatement(state,textAfter){return state.lastType=="operator"||state.lastType==","||isOperatorChar.test(textAfter.charAt(0))||/[,.]/.test(textAfter.charAt(0))}function expressionAllowed(stream,state,backUp){return state.tokenize==tokenBase&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType)||state.lastType=="quasi"&&/\{\s*$/.test(stream.string.slice(0,stream.pos-(backUp||0)))}return{startState:function(basecolumn){var state={tokenize:tokenBase,lastType:"sof",cc:[],lexical:new JSLexical((basecolumn||0)-indentUnit,0,"block",!1),localVars:parserConfig.localVars,context:parserConfig.localVars&&new Context(null,null,!1),indented:basecolumn||0};return parserConfig.globalVars&&typeof parserConfig.globalVars=="object"&&(state.globalVars=parserConfig.globalVars),state},token:function(stream,state){if(stream.sol()&&(state.lexical.hasOwnProperty("align")||(state.lexical.align=!1),state.indented=stream.indentation(),findFatArrow(stream,state)),state.tokenize!=tokenComment&&stream.eatSpace())return null;var style=state.tokenize(stream,state);return type=="comment"?style:(state.lastType=type=="operator"&&(content=="++"||content=="--")?"incdec":type,parseJS(state,style,type,content,stream))},indent:function(state,textAfter){if(state.tokenize==tokenComment||state.tokenize==tokenQuasi)return CodeMirror2.Pass;if(state.tokenize!=tokenBase)return 0;var firstChar=textAfter&&textAfter.charAt(0),lexical=state.lexical,top;if(!/^\s*else\b/.test(textAfter))for(var i=state.cc.length-1;i>=0;--i){var c=state.cc[i];if(c==poplex)lexical=lexical.prev;else if(c!=maybeelse&&c!=popcontext)break}for(;(lexical.type=="stat"||lexical.type=="form")&&(firstChar=="}"||(top=state.cc[state.cc.length-1])&&(top==maybeoperatorComma||top==maybeoperatorNoComma)&&!/^[,\.=+\-*:?[\(]/.test(textAfter));)lexical=lexical.prev;statementIndent&&lexical.type==")"&&lexical.prev.type=="stat"&&(lexical=lexical.prev);var type2=lexical.type,closing=firstChar==type2;return type2=="vardef"?lexical.indented+(state.lastType=="operator"||state.lastType==","?lexical.info.length+1:0):type2=="form"&&firstChar=="{"?lexical.indented:type2=="form"?lexical.indented+indentUnit:type2=="stat"?lexical.indented+(isContinuedStatement(state,textAfter)?statementIndent||indentUnit:0):lexical.info=="switch"&&!closing&&parserConfig.doubleIndentSwitch!=!1?lexical.indented+(/^(?:case|default)\b/.test(textAfter)?indentUnit:2*indentUnit):lexical.align?lexical.column+(closing?0:1):lexical.indented+(closing?0:indentUnit)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:jsonMode?null:"/*",blockCommentEnd:jsonMode?null:"*/",blockCommentContinue:jsonMode?null:" * ",lineComment:jsonMode?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:jsonMode?"json":"javascript",jsonldMode,jsonMode,expressionAllowed,skipExpression:function(state){parseJS(state,"atom","atom","true",new CodeMirror2.StringStream("",2,null))}}}),CodeMirror2.registerHelper("wordChars","javascript",/[\w$]/),CodeMirror2.defineMIME("text/javascript","javascript"),CodeMirror2.defineMIME("text/ecmascript","javascript"),CodeMirror2.defineMIME("application/javascript","javascript"),CodeMirror2.defineMIME("application/x-javascript","javascript"),CodeMirror2.defineMIME("application/ecmascript","javascript"),CodeMirror2.defineMIME("application/json",{name:"javascript",json:!0}),CodeMirror2.defineMIME("application/x-json",{name:"javascript",json:!0}),CodeMirror2.defineMIME("application/manifest+json",{name:"javascript",json:!0}),CodeMirror2.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),CodeMirror2.defineMIME("text/typescript",{name:"javascript",typescript:!0}),CodeMirror2.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),javascript.exports}var hasRequiredHtmlmixed;function requireHtmlmixed(){return hasRequiredHtmlmixed||(hasRequiredHtmlmixed=1,function(module2,exports3){(function(mod){mod(requireCodemirror(),requireXml(),requireJavascript(),requireCss())})(function(CodeMirror2){var defaultTags={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 maybeBackup(stream,pat,style){var cur=stream.current(),close=cur.search(pat);return close>-1?stream.backUp(cur.length-close):cur.match(/<\/?$/)&&(stream.backUp(cur.length),stream.match(pat,!1)||stream.match(cur)),style}var attrRegexpCache={};function getAttrRegexp(attr){var regexp=attrRegexpCache[attr];return regexp||(attrRegexpCache[attr]=new RegExp("\\s+"+attr+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function getAttrValue(text,attr){var match=text.match(getAttrRegexp(attr));return match?/^\s*(.*?)\s*$/.exec(match[2])[1]:""}function getTagRegexp(tagName,anchored){return new RegExp((anchored?"^":"")+"</\\s*"+tagName+"\\s*>","i")}function addTags(from,to){for(var tag in from)for(var dest=to[tag]||(to[tag]=[]),source=from[tag],i=source.length-1;i>=0;i--)dest.unshift(source[i])}function findMatchingMode(tagInfo,tagText){for(var i=0;i<tagInfo.length;i++){var spec=tagInfo[i];if(!spec[0]||spec[1].test(getAttrValue(tagText,spec[0])))return spec[2]}}CodeMirror2.defineMode("htmlmixed",function(config,parserConfig){var htmlMode=CodeMirror2.getMode(config,{name:"xml",htmlMode:!0,multilineTagIndentFactor:parserConfig.multilineTagIndentFactor,multilineTagIndentPastTag:parserConfig.multilineTagIndentPastTag,allowMissingTagName:parserConfig.allowMissingTagName}),tags={},configTags=parserConfig&&parserConfig.tags,configScript=parserConfig&&parserConfig.scriptTypes;if(addTags(defaultTags,tags),configTags&&addTags(configTags,tags),configScript)for(var i=configScript.length-1;i>=0;i--)tags.script.unshift(["type",configScript[i].matches,configScript[i].mode]);function html(stream,state){var style=htmlMode.token(stream,state.htmlState),tag=/\btag\b/.test(style),tagName;if(tag&&!/[<>\s\/]/.test(stream.current())&&(tagName=state.htmlState.tagName&&state.htmlState.tagName.toLowerCase())&&tags.hasOwnProperty(tagName))state.inTag=tagName+" ";else if(state.inTag&&tag&&/>$/.test(stream.current())){var inTag=/^([\S]+) (.*)/.exec(state.inTag);state.inTag=null;var modeSpec=stream.current()==">"&&findMatchingMode(tags[inTag[1]],inTag[2]),mode=CodeMirror2.getMode(config,modeSpec),endTagA=getTagRegexp(inTag[1],!0),endTag=getTagRegexp(inTag[1],!1);state.token=function(stream2,state2){return stream2.match(endTagA,!1)?(state2.token=html,state2.localState=state2.localMode=null,null):maybeBackup(stream2,endTag,state2.localMode.token(stream2,state2.localState))},state.localMode=mode,state.localState=CodeMirror2.startState(mode,htmlMode.indent(state.htmlState,"",""))}else state.inTag&&(state.inTag+=stream.current(),stream.eol()&&(state.inTag+=" "));return style}return{startState:function(){var state=CodeMirror2.startState(htmlMode);return{token:html,inTag:null,localMode:null,localState:null,htmlState:state}},copyState:function(state){var local;return state.localState&&(local=CodeMirror2.copyState(state.localMode,state.localState)),{token:state.token,inTag:state.inTag,localMode:state.localMode,localState:local,htmlState:CodeMirror2.copyState(htmlMode,state.htmlState)}},token:function(stream,state){return state.token(stream,state)},indent:function(state,textAfter,line){return!state.localMode||/^\s*<\//.test(textAfter)?htmlMode.indent(state.htmlState,textAfter,line):state.localMode.indent?state.localMode.indent(state.localState,textAfter,line):CodeMirror2.Pass},innerMode:function(state){return{state:state.localState||state.htmlState,mode:state.localMode||htmlMode}}}},"xml","javascript","css"),CodeMirror2.defineMIME("text/html","htmlmixed")})}()),htmlmixed.exports}requireHtmlmixed(),requireJavascript(),requireXml();var sql={exports:{}},hasRequiredSql;function requireSql(){return hasRequiredSql||(hasRequiredSql=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("sql",function(config,parserConfig){var client=parserConfig.client||{},atoms=parserConfig.atoms||{false:!0,true:!0,null:!0},builtin=parserConfig.builtin||set(defaultBuiltin),keywords=parserConfig.keywords||set(sqlKeywords),operatorChars=parserConfig.operatorChars||/^[*+\-%<>!=&|~^\/]/,support=parserConfig.support||{},hooks=parserConfig.hooks||{},dateSQL=parserConfig.dateSQL||{date:!0,time:!0,timestamp:!0},backslashStringEscapes=parserConfig.backslashStringEscapes!==!1,brackets=parserConfig.brackets||/^[\{}\(\)\[\]]/,punctuation=parserConfig.punctuation||/^[;.,:]/;function tokenBase(stream,state){var ch=stream.next();if(hooks[ch]){var result=hooks[ch](stream,state);if(result!==!1)return result}if(support.hexNumber&&(ch=="0"&&stream.match(/^[xX][0-9a-fA-F]+/)||(ch=="x"||ch=="X")&&stream.match(/^'[0-9a-fA-F]*'/)))return"number";if(support.binaryNumber&&((ch=="b"||ch=="B")&&stream.match(/^'[01]*'/)||ch=="0"&&stream.match(/^b[01]+/)))return"number";if(ch.charCodeAt(0)>47&&ch.charCodeAt(0)<58)return stream.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),support.decimallessFloat&&stream.match(/^\.(?!\.)/),"number";if(ch=="?"&&(stream.eatSpace()||stream.eol()||stream.eat(";")))return"variable-3";if(ch=="'"||ch=='"'&&support.doubleQuote)return state.tokenize=tokenLiteral(ch),state.tokenize(stream,state);if((support.nCharCast&&(ch=="n"||ch=="N")||support.charsetCast&&ch=="_"&&stream.match(/[a-z][a-z0-9]*/i))&&(stream.peek()=="'"||stream.peek()=='"'))return"keyword";if(support.escapeConstant&&(ch=="e"||ch=="E")&&(stream.peek()=="'"||stream.peek()=='"'&&support.doubleQuote))return state.tokenize=function(stream2,state2){return(state2.tokenize=tokenLiteral(stream2.next(),!0))(stream2,state2)},"keyword";if(support.commentSlashSlash&&ch=="/"&&stream.eat("/"))return stream.skipToEnd(),"comment";if(support.commentHash&&ch=="#"||ch=="-"&&stream.eat("-")&&(!support.commentSpaceRequired||stream.eat(" ")))return stream.skipToEnd(),"comment";if(ch=="/"&&stream.eat("*"))return state.tokenize=tokenComment(1),state.tokenize(stream,state);if(ch=="."){if(support.zerolessFloat&&stream.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(stream.match(/^\.+/))return null;if(stream.match(/^[\w\d_$#]+/))return"variable-2"}else{if(operatorChars.test(ch))return stream.eatWhile(operatorChars),"operator";if(brackets.test(ch))return"bracket";if(punctuation.test(ch))return stream.eatWhile(punctuation),"punctuation";if(ch=="{"&&(stream.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||stream.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";stream.eatWhile(/^[_\w\d]/);var word=stream.current().toLowerCase();return dateSQL.hasOwnProperty(word)&&(stream.match(/^( )+'[^']*'/)||stream.match(/^( )+"[^"]*"/))?"number":atoms.hasOwnProperty(word)?"atom":builtin.hasOwnProperty(word)?"type":keywords.hasOwnProperty(word)?"keyword":client.hasOwnProperty(word)?"builtin":null}}function tokenLiteral(quote,backslashEscapes){return function(stream,state){for(var escaped=!1,ch;(ch=stream.next())!=null;){if(ch==quote&&!escaped){state.tokenize=tokenBase;break}escaped=(backslashStringEscapes||backslashEscapes)&&!escaped&&ch=="\\"}return"string"}}function tokenComment(depth){return function(stream,state){var m=stream.match(/^.*?(\/\*|\*\/)/);return m?m[1]=="/*"?state.tokenize=tokenComment(depth+1):depth>1?state.tokenize=tokenComment(depth-1):state.tokenize=tokenBase:stream.skipToEnd(),"comment"}}function pushContext(stream,state,type){state.context={prev:state.context,indent:stream.indentation(),col:stream.column(),type}}function popContext(state){state.indent=state.context.indent,state.context=state.context.prev}return{startState:function(){return{tokenize:tokenBase,context:null}},token:function(stream,state){if(stream.sol()&&state.context&&state.context.align==null&&(state.context.align=!1),state.tokenize==tokenBase&&stream.eatSpace())return null;var style=state.tokenize(stream,state);if(style=="comment")return style;state.context&&state.context.align==null&&(state.context.align=!0);var tok=stream.current();return tok=="("?pushContext(stream,state,")"):tok=="["?pushContext(stream,state,"]"):state.context&&state.context.type==tok&&popContext(state),style},indent:function(state,textAfter){var cx=state.context;if(!cx)return CodeMirror2.Pass;var closing=textAfter.charAt(0)==cx.type;return cx.align?cx.col+(closing?0:1):cx.indent+(closing?0:config.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:support.commentSlashSlash?"//":support.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:parserConfig}});function hookIdentifier(stream){for(var ch;(ch=stream.next())!=null;)if(ch=="`"&&!stream.eat("`"))return"variable-2";return stream.backUp(stream.current().length-1),stream.eatWhile(/\w/)?"variable-2":null}function hookIdentifierDoublequote(stream){for(var ch;(ch=stream.next())!=null;)if(ch=='"'&&!stream.eat('"'))return"variable-2";return stream.backUp(stream.current().length-1),stream.eatWhile(/\w/)?"variable-2":null}function hookVar(stream){return stream.eat("@")&&(stream.match("session."),stream.match("local."),stream.match("global.")),stream.eat("'")?(stream.match(/^.*'/),"variable-2"):stream.eat('"')?(stream.match(/^.*"/),"variable-2"):stream.eat("`")?(stream.match(/^.*`/),"variable-2"):stream.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function hookClient(stream){return stream.eat("N")?"atom":stream.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var sqlKeywords="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 set(str){for(var obj={},words=str.split(" "),i=0;i<words.length;++i)obj[words[i]]=!0;return obj}var defaultBuiltin="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";CodeMirror2.defineMIME("text/x-sql",{name:"sql",keywords:set(sqlKeywords+"begin"),builtin:set(defaultBuiltin),atoms:set("false true null unknown"),dateSQL:set("date time timestamp"),support:set("doubleQuote binaryNumber hexNumber")}),CodeMirror2.defineMIME("text/x-mssql",{name:"sql",client:set("$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:set(sqlKeywords+"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:set("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:set("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:set("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":hookVar}}),CodeMirror2.defineMIME("text/x-mysql",{name:"sql",client:set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:set(sqlKeywords+"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:set("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:set("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:set("date time timestamp"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":hookVar,"`":hookIdentifier,"\\":hookClient}}),CodeMirror2.defineMIME("text/x-mariadb",{name:"sql",client:set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:set(sqlKeywords+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:set("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:set("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:set("date time timestamp"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":hookVar,"`":hookIdentifier,"\\":hookClient}}),CodeMirror2.defineMIME("text/x-sqlite",{name:"sql",client:set("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:set(sqlKeywords+"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:set("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:set("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:set("date time timestamp datetime"),support:set("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":hookVar,":":hookVar,"?":hookVar,$:hookVar,'"':hookIdentifierDoublequote,"`":hookIdentifier}}),CodeMirror2.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:set("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:set("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:set("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:set("commentSlashSlash decimallessFloat"),hooks:{}}),CodeMirror2.defineMIME("text/x-plsql",{name:"sql",client:set("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:set("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:set("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:set("date time timestamp"),support:set("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),CodeMirror2.defineMIME("text/x-hive",{name:"sql",keywords:set("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:set("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:set("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:set("date timestamp"),support:set("doubleQuote binaryNumber hexNumber")}),CodeMirror2.defineMIME("text/x-pgsql",{name:"sql",client:set("source"),keywords:set(sqlKeywords+"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:set("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 zone timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:set("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:set("date time timestamp"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),CodeMirror2.defineMIME("text/x-gql",{name:"sql",keywords:set("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:set("false true"),builtin:set("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),CodeMirror2.defineMIME("text/x-gpsql",{name:"sql",client:set("source"),keywords:set("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:set("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:set("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:set("date time timestamp"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),CodeMirror2.defineMIME("text/x-sparksql",{name:"sql",keywords:set("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:set("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:set("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:set("date time timestamp"),support:set("doubleQuote zerolessFloat")}),CodeMirror2.defineMIME("text/x-esper",{name:"sql",client:set("source"),keywords:set("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:set("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:set("time"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber")}),CodeMirror2.defineMIME("text/x-trino",{name:"sql",keywords:set("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:set("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:set("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:set("date time timestamp zone"),support:set("decimallessFloat zerolessFloat hexNumber")})})}()),sql.exports}requireSql();var yaml={exports:{}},hasRequiredYaml;function requireYaml(){return hasRequiredYaml||(hasRequiredYaml=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("yaml",function(){var cons=["true","false","on","off","yes","no"],keywordRegex=new RegExp("\\b(("+cons.join(")|(")+"))$","i");return{token:function(stream,state){var ch=stream.peek(),esc=state.escaped;if(state.escaped=!1,ch=="#"&&(stream.pos==0||/\s/.test(stream.string.charAt(stream.pos-1))))return stream.skipToEnd(),"comment";if(stream.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(state.literal&&stream.indentation()>state.keyCol)return stream.skipToEnd(),"string";if(state.literal&&(state.literal=!1),stream.sol()){if(state.keyCol=0,state.pair=!1,state.pairStart=!1,stream.match("---")||stream.match("..."))return"def";if(stream.match(/\s*-\s+/))return"meta"}if(stream.match(/^(\{|\}|\[|\])/))return ch=="{"?state.inlinePairs++:ch=="}"?state.inlinePairs--:ch=="["?state.inlineList++:state.inlineList--,"meta";if(state.inlineList>0&&!esc&&ch==",")return stream.next(),"meta";if(state.inlinePairs>0&&!esc&&ch==",")return state.keyCol=0,state.pair=!1,state.pairStart=!1,stream.next(),"meta";if(state.pairStart){if(stream.match(/^\s*(\||\>)\s*/))return state.literal=!0,"meta";if(stream.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(state.inlinePairs==0&&stream.match(/^\s*-?[0-9\.\,]+\s?$/)||state.inlinePairs>0&&stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(stream.match(keywordRegex))return"keyword"}return!state.pair&&stream.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(state.pair=!0,state.keyCol=stream.indentation(),"atom"):state.pair&&stream.match(/^:\s*/)?(state.pairStart=!0,"meta"):(state.pairStart=!1,state.escaped=ch=="\\",stream.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),CodeMirror2.defineMIME("text/x-yaml","yaml"),CodeMirror2.defineMIME("text/yaml","yaml")})}()),yaml.exports}requireYaml();var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);CodeMirror.defineMode("dot",function(config){const ops=/--|->|=|;/,brackets=/[\[\]{}]/;return{startState(){return{indent_level:0}},token(stream,state){switch(stream.eatSpace(),state.looking_for){case"multiline-comment":return stream.match(/.*\*\//)?state.looking_for=null:stream.skipToEnd(),"comment";case"property":return stream.match("=")?"variable-3":(stream.match(/\w+/),state.looking_for=null,"string-2");case"graphname":if(state.looking_for=null,stream.match(/{\W*$/))return state.indent_level+=1,"bracket";if(stream.match("{"))return"bracket";if(stream.match(/[^\W]+/))return"variable-2";default:return stream.match(/{\W*$/)?(state.indent_level+=1,"bracket"):stream.match(/}\W*$/)?(state.indent_level-=1,"bracket"):stream.match(brackets)?"bracket":stream.match(/".*"/)?"string":stream.match(/\w+=[\"\w]+/,!1)?(state.looking_for="property",stream.match(/[^=]+/),"attribute"):stream.match(ops)?"variable-3":stream.match(/(di)?graph[^{\w]+/)?(state.looking_for="graphname","keyword"):stream.match(/\/\/|#/)?(stream.skipToEnd(),"comment"):stream.match(/\/\*.*\*\//)?"comment":stream.match("/*")?(state.looking_for="multiline-comment","comment"):(stream.match(/\w+/)||stream.skipToEnd(),"variable")}},indent(state,_textAfter){return state.indent_level*(config.indentUnit||2)},closeBrackets:{pairs:'[]{}""'},lineComment:/(\/\/|#)/,blockCommentStart:"/*",blockCommentEnd:"*/"}}),CodeMirror.defineMIME("text/x-dot","dot"),CodeMirror.defineMode("markdown",function(cmCfg,modeCfg){var htmlMode=CodeMirror.getMode(cmCfg,"text/html"),htmlModeMissing=htmlMode.name=="null";modeCfg.defaultMode===void 0&&(modeCfg.defaultMode="");function getMode(name){if(name=name===""?modeCfg.defaultMode:name,CodeMirror.findModeByName){var found=CodeMirror.findModeByName(name);found&&(name=found.mime||found.mimes[0])}var mode2=CodeMirror.getMode(cmCfg,name);return mode2.name=="null"?null:mode2}modeCfg.highlightFormatting===void 0&&(modeCfg.highlightFormatting=!1),modeCfg.maxBlockquoteDepth===void 0&&(modeCfg.maxBlockquoteDepth=0),modeCfg.taskLists===void 0&&(modeCfg.taskLists=!1),modeCfg.strikethrough===void 0&&(modeCfg.strikethrough=!1),modeCfg.emoji===void 0&&(modeCfg.emoji=!1),modeCfg.fencedCodeBlockHighlighting===void 0&&(modeCfg.fencedCodeBlockHighlighting=!0),modeCfg.xml===void 0&&(modeCfg.xml=!0),modeCfg.tokenTypeOverrides===void 0&&(modeCfg.tokenTypeOverrides={});var tokenTypes={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 tokenType in tokenTypes)tokenTypes.hasOwnProperty(tokenType)&&modeCfg.tokenTypeOverrides[tokenType]&&(tokenTypes[tokenType]=modeCfg.tokenTypeOverrides[tokenType]);var hrRE=/^([*\-_])(?:\s*\1){2,}\s*$/,listRE=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,taskListRE=/^\[(x| )\](?=\s)/i,atxHeaderRE=modeCfg.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,setextHeaderRE=/^ *(?:\={1,}|-{1,})\s*$/,textRE=/^[^#!\[\]*_\\<>` "'(~:]+/,fencedCodeRE=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,linkDefRE=/^\s*\[[^\]]+?\]:.*$/,punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,expandedTab=" ";function switchInline(stream,state,f){return state.f=state.inline=f,f(stream,state)}function switchBlock(stream,state,f){return state.f=state.block=f,f(stream,state)}function lineIsEmpty(line){return!line||!/\S/.test(line.string)}function blankLine(state){if(state.linkTitle=!1,state.linkHref=!1,state.linkText=!1,state.em=!1,state.strong=!1,state.strikethrough=!1,state.quote=0,state.indentedCode=!1,state.f==htmlBlock){var exit=htmlModeMissing;if(!exit){var inner=CodeMirror.innerMode(htmlMode,state.htmlState);exit=inner.mode.name=="xml"&&inner.state.tagStart===null&&!inner.state.context&&inner.state.tokenize.isInText}exit&&(state.f=inlineNormal,state.block=blockNormal,state.htmlState=null)}return state.trailingSpace=0,state.trailingSpaceNewLine=!1,state.prevLine=state.thisLine,state.thisLine={stream:null},null}function blockNormal(stream,state){var firstTokenOnLine=stream.column()===state.indentation,prevLineLineIsEmpty=lineIsEmpty(state.prevLine.stream),prevLineIsIndentedCode=state.indentedCode,prevLineIsHr=state.prevLine.hr,prevLineIsList=state.list!==!1,maxNonCodeIndentation=(state.listStack[state.listStack.length-1]||0)+3;state.indentedCode=!1;var lineIndentation=state.indentation;if(state.indentationDiff===null&&(state.indentationDiff=state.indentation,prevLineIsList)){for(state.list=null;lineIndentation<state.listStack[state.listStack.length-1];)state.listStack.pop(),state.listStack.length?state.indentation=state.listStack[state.listStack.length-1]:state.list=!1;state.list!==!1&&(state.indentationDiff=lineIndentation-state.listStack[state.listStack.length-1])}var allowsInlineContinuation=!prevLineLineIsEmpty&&!prevLineIsHr&&!state.prevLine.header&&(!prevLineIsList||!prevLineIsIndentedCode)&&!state.prevLine.fencedCodeEnd,isHr=(state.list===!1||prevLineIsHr||prevLineLineIsEmpty)&&state.indentation<=maxNonCodeIndentation&&stream.match(hrRE),match=null;if(state.indentationDiff>=4&&(prevLineIsIndentedCode||state.prevLine.fencedCodeEnd||state.prevLine.header||prevLineLineIsEmpty))return stream.skipToEnd(),state.indentedCode=!0,tokenTypes.code;if(stream.eatSpace())return null;if(firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(atxHeaderRE))&&match[1].length<=6)return state.quote=0,state.header=match[1].length,state.thisLine.header=!0,modeCfg.highlightFormatting&&(state.formatting="header"),state.f=state.inline,getType(state);if(state.indentation<=maxNonCodeIndentation&&stream.eat(">"))return state.quote=firstTokenOnLine?1:state.quote+1,modeCfg.highlightFormatting&&(state.formatting="quote"),stream.eatSpace(),getType(state);if(!isHr&&!state.setext&&firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(listRE))){var listType=match[1]?"ol":"ul";return state.indentation=lineIndentation+stream.current().length,state.list=!0,state.quote=0,state.listStack.push(state.indentation),state.em=!1,state.strong=!1,state.code=!1,state.strikethrough=!1,modeCfg.taskLists&&stream.match(taskListRE,!1)&&(state.taskList=!0),state.f=state.inline,modeCfg.highlightFormatting&&(state.formatting=["list","list-"+listType]),getType(state)}else{if(firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(fencedCodeRE,!0)))return state.quote=0,state.fencedEndRE=new RegExp(match[1]+"+ *$"),state.localMode=modeCfg.fencedCodeBlockHighlighting&&getMode(match[2]),state.localMode&&(state.localState=CodeMirror.startState(state.localMode)),state.f=state.block=local,modeCfg.highlightFormatting&&(state.formatting="code-block"),state.code=-1,getType(state);if(state.setext||(!allowsInlineContinuation||!prevLineIsList)&&!state.quote&&state.list===!1&&!state.code&&!isHr&&!linkDefRE.test(stream.string)&&(match=stream.lookAhead(1))&&(match=match.match(setextHeaderRE)))return state.setext?(state.header=state.setext,state.setext=0,stream.skipToEnd(),modeCfg.highlightFormatting&&(state.formatting="header")):(state.header=match[0].charAt(0)=="="?1:2,state.setext=state.header),state.thisLine.header=!0,state.f=state.inline,getType(state);if(isHr)return stream.skipToEnd(),state.hr=!0,state.thisLine.hr=!0,tokenTypes.hr;if(stream.peek()==="[")return switchInline(stream,state,footnoteLink)}return switchInline(stream,state,state.inline)}function htmlBlock(stream,state){var style=htmlMode.token(stream,state.htmlState);if(!htmlModeMissing){var inner=CodeMirror.innerMode(htmlMode,state.htmlState);(inner.mode.name=="xml"&&inner.state.tagStart===null&&!inner.state.context&&inner.state.tokenize.isInText||state.md_inside&&stream.current().indexOf(">")>-1)&&(state.f=inlineNormal,state.block=blockNormal,state.htmlState=null)}return style}function local(stream,state){var currListInd=state.listStack[state.listStack.length-1]||0,hasExitedList=state.indentation<currListInd,maxFencedEndInd=currListInd+3;if(state.fencedEndRE&&state.indentation<=maxFencedEndInd&&(hasExitedList||stream.match(state.fencedEndRE))){modeCfg.highlightFormatting&&(state.formatting="code-block");var returnType;return hasExitedList||(returnType=getType(state)),state.localMode=state.localState=null,state.block=blockNormal,state.f=inlineNormal,state.fencedEndRE=null,state.code=0,state.thisLine.fencedCodeEnd=!0,hasExitedList?switchBlock(stream,state,state.block):returnType}else return state.localMode?state.localMode.token(stream,state.localState):(stream.skipToEnd(),tokenTypes.code)}function getType(state){var styles=[];if(state.formatting){styles.push(tokenTypes.formatting),typeof state.formatting=="string"&&(state.formatting=[state.formatting]);for(var i=0;i<state.formatting.length;i++)styles.push(tokenTypes.formatting+"-"+state.formatting[i]),state.formatting[i]==="header"&&styles.push(tokenTypes.formatting+"-"+state.formatting[i]+"-"+state.header),state.formatting[i]==="quote"&&(!modeCfg.maxBlockquoteDepth||modeCfg.maxBlockquoteDepth>=state.quote?styles.push(tokenTypes.formatting+"-"+state.formatting[i]+"-"+state.quote):styles.push("error"))}if(state.taskOpen)return styles.push("meta"),styles.length?styles.join(" "):null;if(state.taskClosed)return styles.push("property"),styles.length?styles.join(" "):null;if(state.linkHref?styles.push(tokenTypes.linkHref,"url"):(state.strong&&styles.push(tokenTypes.strong),state.em&&styles.push(tokenTypes.em),state.strikethrough&&styles.push(tokenTypes.strikethrough),state.emoji&&styles.push(tokenTypes.emoji),state.linkText&&styles.push(tokenTypes.linkText),state.code&&styles.push(tokenTypes.code),state.image&&styles.push(tokenTypes.image),state.imageAltText&&styles.push(tokenTypes.imageAltText,"link"),state.imageMarker&&styles.push(tokenTypes.imageMarker)),state.header&&styles.push(tokenTypes.header,tokenTypes.header+"-"+state.header),state.quote&&(styles.push(tokenTypes.quote),!modeCfg.maxBlockquoteDepth||modeCfg.maxBlockquoteDepth>=state.quote?styles.push(tokenTypes.quote+"-"+state.quote):styles.push(tokenTypes.quote+"-"+modeCfg.maxBlockquoteDepth)),state.list!==!1){var listMod=(state.listStack.length-1)%3;listMod?listMod===1?styles.push(tokenTypes.list2):styles.push(tokenTypes.list3):styles.push(tokenTypes.list1)}return state.trailingSpaceNewLine?styles.push("trailing-space-new-line"):state.trailingSpace&&styles.push("trailing-space-"+(state.trailingSpace%2?"a":"b")),styles.length?styles.join(" "):null}function handleText(stream,state){if(stream.match(textRE,!0))return getType(state)}function inlineNormal(stream,state){var style=state.text(stream,state);if(typeof style<"u")return style;if(state.list)return state.list=null,getType(state);if(state.taskList){var taskOpen=stream.match(taskListRE,!0)[1]===" ";return taskOpen?state.taskOpen=!0:state.taskClosed=!0,modeCfg.highlightFormatting&&(state.formatting="task"),state.taskList=!1,getType(state)}if(state.taskOpen=!1,state.taskClosed=!1,state.header&&stream.match(/^#+$/,!0))return modeCfg.highlightFormatting&&(state.formatting="header"),getType(state);var ch=stream.next();if(state.linkTitle){state.linkTitle=!1;var matchCh=ch;ch==="("&&(matchCh=")"),matchCh=(matchCh+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var regex="^\\s*(?:[^"+matchCh+"\\\\]+|\\\\\\\\|\\\\.)"+matchCh;if(stream.match(new RegExp(regex),!0))return tokenTypes.linkHref}if(ch==="`"){var previousFormatting=state.formatting;modeCfg.highlightFormatting&&(state.formatting="code"),stream.eatWhile("`");var count=stream.current().length;if(state.code==0&&(!state.quote||count==1))return state.code=count,getType(state);if(count==state.code){var t=getType(state);return state.code=0,t}else return state.formatting=previousFormatting,getType(state)}else if(state.code)return getType(state);if(ch==="\\"&&(stream.next(),modeCfg.highlightFormatting)){var type=getType(state),formattingEscape=tokenTypes.formatting+"-escape";return type?type+" "+formattingEscape:formattingEscape}if(ch==="!"&&stream.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return state.imageMarker=!0,state.image=!0,modeCfg.highlightFormatting&&(state.formatting="image"),getType(state);if(ch==="["&&state.imageMarker&&stream.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return state.imageMarker=!1,state.imageAltText=!0,modeCfg.highlightFormatting&&(state.formatting="image"),getType(state);if(ch==="]"&&state.imageAltText){modeCfg.highlightFormatting&&(state.formatting="image");var type=getType(state);return state.imageAltText=!1,state.image=!1,state.inline=state.f=linkHref,type}if(ch==="["&&!state.image)return state.linkText&&stream.match(/^.*?\]/)||(state.linkText=!0,modeCfg.highlightFormatting&&(state.formatting="link")),getType(state);if(ch==="]"&&state.linkText){modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return state.linkText=!1,state.inline=state.f=stream.match(/\(.*?\)| ?\[.*?\]/,!1)?linkHref:inlineNormal,type}if(ch==="<"&&stream.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){state.f=state.inline=linkInline,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkInline}if(ch==="<"&&stream.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){state.f=state.inline=linkInline,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkEmail}if(modeCfg.xml&&ch==="<"&&stream.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var end=stream.string.indexOf(">",stream.pos);if(end!=-1){var atts=stream.string.substring(stream.start,end);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(atts)&&(state.md_inside=!0)}return stream.backUp(1),state.htmlState=CodeMirror.startState(htmlMode),switchBlock(stream,state,htmlBlock)}if(modeCfg.xml&&ch==="<"&&stream.match(/^\/\w*?>/))return state.md_inside=!1,"tag";if(ch==="*"||ch==="_"){for(var len=1,before=stream.pos==1?" ":stream.string.charAt(stream.pos-2);len<3&&stream.eat(ch);)len++;var after=stream.peek()||" ",leftFlanking=!/\s/.test(after)&&(!punctuation.test(after)||/\s/.test(before)||punctuation.test(before)),rightFlanking=!/\s/.test(before)&&(!punctuation.test(before)||/\s/.test(after)||punctuation.test(after)),setEm=null,setStrong=null;if(len%2&&(!state.em&&leftFlanking&&(ch==="*"||!rightFlanking||punctuation.test(before))?setEm=!0:state.em==ch&&rightFlanking&&(ch==="*"||!leftFlanking||punctuation.test(after))&&(setEm=!1)),len>1&&(!state.strong&&leftFlanking&&(ch==="*"||!rightFlanking||punctuation.test(before))?setStrong=!0:state.strong==ch&&rightFlanking&&(ch==="*"||!leftFlanking||punctuation.test(after))&&(setStrong=!1)),setStrong!=null||setEm!=null){modeCfg.highlightFormatting&&(state.formatting=setEm==null?"strong":setStrong==null?"em":"strong em"),setEm===!0&&(state.em=ch),setStrong===!0&&(state.strong=ch);var t=getType(state);return setEm===!1&&(state.em=!1),setStrong===!1&&(state.strong=!1),t}}else if(ch===" "&&(stream.eat("*")||stream.eat("_"))){if(stream.peek()===" ")return getType(state);stream.backUp(1)}if(modeCfg.strikethrough){if(ch==="~"&&stream.eatWhile(ch)){if(state.strikethrough){modeCfg.highlightFormatting&&(state.formatting="strikethrough");var t=getType(state);return state.strikethrough=!1,t}else if(stream.match(/^[^\s]/,!1))return state.strikethrough=!0,modeCfg.highlightFormatting&&(state.formatting="strikethrough"),getType(state)}else if(ch===" "&&stream.match(/^~~/,!0)){if(stream.peek()===" ")return getType(state);stream.backUp(2)}}if(modeCfg.emoji&&ch===":"&&stream.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){state.emoji=!0,modeCfg.highlightFormatting&&(state.formatting="emoji");var retType=getType(state);return state.emoji=!1,retType}return ch===" "&&(stream.match(/^ +$/,!1)?state.trailingSpace++:state.trailingSpace&&(state.trailingSpaceNewLine=!0)),getType(state)}function linkInline(stream,state){var ch=stream.next();if(ch===">"){state.f=state.inline=inlineNormal,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkInline}return stream.match(/^[^>]+/,!0),tokenTypes.linkInline}function linkHref(stream,state){if(stream.eatSpace())return null;var ch=stream.next();return ch==="("||ch==="["?(state.f=state.inline=getLinkHrefInside(ch==="("?")":"]"),modeCfg.highlightFormatting&&(state.formatting="link-string"),state.linkHref=!0,getType(state)):"error"}var linkRE={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function getLinkHrefInside(endChar){return function(stream,state){var ch=stream.next();if(ch===endChar){state.f=state.inline=inlineNormal,modeCfg.highlightFormatting&&(state.formatting="link-string");var returnState=getType(state);return state.linkHref=!1,returnState}return stream.match(linkRE[endChar]),state.linkHref=!0,getType(state)}}function footnoteLink(stream,state){return stream.match(/^([^\]\\]|\\.)*\]:/,!1)?(state.f=footnoteLinkInside,stream.next(),modeCfg.highlightFormatting&&(state.formatting="link"),state.linkText=!0,getType(state)):switchInline(stream,state,inlineNormal)}function footnoteLinkInside(stream,state){if(stream.match(/^\]:/,!0)){state.f=state.inline=footnoteUrl,modeCfg.highlightFormatting&&(state.formatting="link");var returnType=getType(state);return state.linkText=!1,returnType}return stream.match(/^([^\]\\]|\\.)+/,!0),tokenTypes.linkText}function footnoteUrl(stream,state){return stream.eatSpace()?null:(stream.match(/^[^\s]+/,!0),stream.peek()===void 0?state.linkTitle=!0:stream.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),state.f=state.inline=inlineNormal,tokenTypes.linkHref+" url")}var mode={startState:function(){return{f:blockNormal,prevLine:{stream:null},thisLine:{stream:null},block:blockNormal,htmlState:null,indentation:0,inline:inlineNormal,text:handleText,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&&CodeMirror.copyState(htmlMode,s.htmlState),indentation:s.indentation,localMode:s.localMode,localState:s.localMode?CodeMirror.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(stream,state){if(state.formatting=!1,stream!=state.thisLine.stream){if(state.header=0,state.hr=!1,stream.match(/^\s*$/,!0))return blankLine(state),null;if(state.prevLine=state.thisLine,state.thisLine={stream},state.taskList=!1,state.trailingSpace=0,state.trailingSpaceNewLine=!1,!state.localState&&(state.f=state.block,state.f!=htmlBlock)){var indentation=stream.match(/^\s*/,!0)[0].replace(/\t/g,expandedTab).length;if(state.indentation=indentation,state.indentationDiff=null,indentation>0)return null}}return state.f(stream,state)},innerMode:function(state){return state.block==htmlBlock?{state:state.htmlState,mode:htmlMode}:state.localState?{state:state.localState,mode:state.localMode}:{state,mode}},indent:function(state,textAfter,line){return state.block==htmlBlock&&htmlMode.indent?htmlMode.indent(state.htmlState,textAfter,line):state.localState&&state.localMode.indent?state.localMode.indent(state.localState,textAfter,line):CodeMirror.Pass},blankLine,getType,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return mode},"xml"),CodeMirror.defineMIME("text/markdown","markdown"),CodeMirror.defineMIME("text/x-markdown","markdown");var braceFold={exports:{}},hasRequiredBraceFold;function requireBraceFold(){return hasRequiredBraceFold||(hasRequiredBraceFold=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){function bracketFolding(pairs){return function(cm,start){var line=start.line,lineText=cm.getLine(line);function findOpening(pair){for(var tokenType,at=start.ch,pass=0;;){var found2=at<=0?-1:lineText.lastIndexOf(pair[0],at-1);if(found2==-1){if(pass==1)break;pass=1,at=lineText.length;continue}if(pass==1&&found2<start.ch)break;if(tokenType=cm.getTokenTypeAt(CodeMirror2.Pos(line,found2+1)),!/^(comment|string)/.test(tokenType))return{ch:found2+1,tokenType,pair};at=found2-1}}function findRange(found2){var count=1,lastLine=cm.lastLine(),end,startCh=found2.ch,endCh;outer:for(var i2=line;i2<=lastLine;++i2)for(var text=cm.getLine(i2),pos=i2==line?startCh:0;;){var nextOpen=text.indexOf(found2.pair[0],pos),nextClose=text.indexOf(found2.pair[1],pos);if(nextOpen<0&&(nextOpen=text.length),nextClose<0&&(nextClose=text.length),pos=Math.min(nextOpen,nextClose),pos==text.length)break;if(cm.getTokenTypeAt(CodeMirror2.Pos(i2,pos+1))==found2.tokenType){if(pos==nextOpen)++count;else if(!--count){end=i2,endCh=pos;break outer}}++pos}return end==null||line==end?null:{from:CodeMirror2.Pos(line,startCh),to:CodeMirror2.Pos(end,endCh)}}for(var found=[],i=0;i<pairs.length;i++){var open=findOpening(pairs[i]);open&&found.push(open)}found.sort(function(a,b){return a.ch-b.ch});for(var i=0;i<found.length;i++){var range=findRange(found[i]);if(range)return range}return null}}CodeMirror2.registerHelper("fold","brace",bracketFolding([["{","}"],["[","]"]])),CodeMirror2.registerHelper("fold","brace-paren",bracketFolding([["{","}"],["[","]"],["(",")"]])),CodeMirror2.registerHelper("fold","import",function(cm,start){function hasImport(line){if(line<cm.firstLine()||line>cm.lastLine())return null;var start2=cm.getTokenAt(CodeMirror2.Pos(line,1));if(/\S/.test(start2.string)||(start2=cm.getTokenAt(CodeMirror2.Pos(line,start2.end+1))),start2.type!="keyword"||start2.string!="import")return null;for(var i=line,e=Math.min(cm.lastLine(),line+10);i<=e;++i){var text=cm.getLine(i),semi=text.indexOf(";");if(semi!=-1)return{startCh:start2.end,end:CodeMirror2.Pos(i,semi)}}}var startLine=start.line,has=hasImport(startLine),prev;if(!has||hasImport(startLine-1)||(prev=hasImport(startLine-2))&&prev.end.line==startLine-1)return null;for(var end=has.end;;){var next=hasImport(end.line+1);if(next==null)break;end=next.end}return{from:cm.clipPos(CodeMirror2.Pos(startLine,has.startCh+1)),to:end}}),CodeMirror2.registerHelper("fold","include",function(cm,start){function hasInclude(line){if(line<cm.firstLine()||line>cm.lastLine())return null;var start2=cm.getTokenAt(CodeMirror2.Pos(line,1));if(/\S/.test(start2.string)||(start2=cm.getTokenAt(CodeMirror2.Pos(line,start2.end+1))),start2.type=="meta"&&start2.string.slice(0,8)=="#include")return start2.start+8}var startLine=start.line,has=hasInclude(startLine);if(has==null||hasInclude(startLine-1)!=null)return null;for(var end=startLine;;){var next=hasInclude(end+1);if(next==null)break;++end}return{from:CodeMirror2.Pos(startLine,has+1),to:cm.clipPos(CodeMirror2.Pos(end))}})})}()),braceFold.exports}requireBraceFold();var commentFold={exports:{}},hasRequiredCommentFold;function requireCommentFold(){return hasRequiredCommentFold||(hasRequiredCommentFold=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.registerGlobalHelper("fold","comment",function(mode){return mode.blockCommentStart&&mode.blockCommentEnd},function(cm,start){var mode=cm.getModeAt(start),startToken=mode.blockCommentStart,endToken=mode.blockCommentEnd;if(!(!startToken||!endToken)){for(var line=start.line,lineText=cm.getLine(line),startCh,at=start.ch,pass=0;;){var found=at<=0?-1:lineText.lastIndexOf(startToken,at-1);if(found==-1){if(pass==1)return;pass=1,at=lineText.length;continue}if(pass==1&&found<start.ch)return;if(/comment/.test(cm.getTokenTypeAt(CodeMirror2.Pos(line,found+1)))&&(found==0||lineText.slice(found-endToken.length,found)==endToken||!/comment/.test(cm.getTokenTypeAt(CodeMirror2.Pos(line,found))))){startCh=found+startToken.length;break}at=found-1}var depth=1,lastLine=cm.lastLine(),end,endCh;outer:for(var i=line;i<=lastLine;++i)for(var text=cm.getLine(i),pos=i==line?startCh:0;;){var nextOpen=text.indexOf(startToken,pos),nextClose=text.indexOf(endToken,pos);if(nextOpen<0&&(nextOpen=text.length),nextClose<0&&(nextClose=text.length),pos=Math.min(nextOpen,nextClose),pos==text.length)break;if(pos==nextOpen)++depth;else if(!--depth){end=i,endCh=pos;break outer}++pos}if(!(end==null||line==end&&endCh==startCh))return{from:CodeMirror2.Pos(line,startCh),to:CodeMirror2.Pos(end,endCh)}}})})}()),commentFold.exports}requireCommentFold();var foldcode={exports:{}},hasRequiredFoldcode;function requireFoldcode(){return hasRequiredFoldcode||(hasRequiredFoldcode=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){function doFold(cm,pos,options,force){if(options&&options.call){var finder=options;options=null}else var finder=getOption(cm,options,"rangeFinder");typeof pos=="number"&&(pos=CodeMirror2.Pos(pos,0));var minSize=getOption(cm,options,"minFoldSize");function getRange(allowFolded){var range2=finder(cm,pos);if(!range2||range2.to.line-range2.from.line<minSize)return null;if(force==="fold")return range2;for(var marks=cm.findMarksAt(range2.from),i=0;i<marks.length;++i)if(marks[i].__isFold){if(!allowFolded)return null;range2.cleared=!0,marks[i].clear()}return range2}var range=getRange(!0);if(getOption(cm,options,"scanUp"))for(;!range&&pos.line>cm.firstLine();)pos=CodeMirror2.Pos(pos.line-1,0),range=getRange(!1);if(!(!range||range.cleared||force==="unfold")){var myWidget=makeWidget(cm,options,range);CodeMirror2.on(myWidget,"mousedown",function(e){myRange.clear(),CodeMirror2.e_preventDefault(e)});var myRange=cm.markText(range.from,range.to,{replacedWith:myWidget,clearOnEnter:getOption(cm,options,"clearOnEnter"),__isFold:!0});myRange.on("clear",function(from,to){CodeMirror2.signal(cm,"unfold",cm,from,to)}),CodeMirror2.signal(cm,"fold",cm,range.from,range.to)}}function makeWidget(cm,options,range){var widget=getOption(cm,options,"widget");if(typeof widget=="function"&&(widget=widget(range.from,range.to)),typeof widget=="string"){var text=document.createTextNode(widget);widget=document.createElement("span"),widget.appendChild(text),widget.className="CodeMirror-foldmarker"}else widget&&(widget=widget.cloneNode(!0));return widget}CodeMirror2.newFoldFunction=function(rangeFinder,widget){return function(cm,pos){doFold(cm,pos,{rangeFinder,widget})}},CodeMirror2.defineExtension("foldCode",function(pos,options,force){doFold(this,pos,options,force)}),CodeMirror2.defineExtension("isFolded",function(pos){for(var marks=this.findMarksAt(pos),i=0;i<marks.length;++i)if(marks[i].__isFold)return!0}),CodeMirror2.commands.toggleFold=function(cm){cm.foldCode(cm.getCursor())},CodeMirror2.commands.fold=function(cm){cm.foldCode(cm.getCursor(),null,"fold")},CodeMirror2.commands.unfold=function(cm){cm.foldCode(cm.getCursor(),{scanUp:!1},"unfold")},CodeMirror2.commands.foldAll=function(cm){cm.operation(function(){for(var i=cm.firstLine(),e=cm.lastLine();i<=e;i++)cm.foldCode(CodeMirror2.Pos(i,0),{scanUp:!1},"fold")})},CodeMirror2.commands.unfoldAll=function(cm){cm.operation(function(){for(var i=cm.firstLine(),e=cm.lastLine();i<=e;i++)cm.foldCode(CodeMirror2.Pos(i,0),{scanUp:!1},"unfold")})},CodeMirror2.registerHelper("fold","combine",function(){var funcs=Array.prototype.slice.call(arguments,0);return function(cm,start){for(var i=0;i<funcs.length;++i){var found=funcs[i](cm,start);if(found)return found}}}),CodeMirror2.registerHelper("fold","auto",function(cm,start){for(var helpers=cm.getHelpers(start,"fold"),i=0;i<helpers.length;i++){var cur=helpers[i](cm,start);if(cur)return cur}});var defaultOptions={rangeFinder:CodeMirror2.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};CodeMirror2.defineOption("foldOptions",null);function getOption(cm,options,name){if(options&&options[name]!==void 0)return options[name];var editorOptions=cm.options.foldOptions;return editorOptions&&editorOptions[name]!==void 0?editorOptions[name]:defaultOptions[name]}CodeMirror2.defineExtension("foldOption",function(options,name){return getOption(this,options,name)})})}()),foldcode.exports}requireFoldcode();var foldgutter={exports:{}},hasRequiredFoldgutter;function requireFoldgutter(){return hasRequiredFoldgutter||(hasRequiredFoldgutter=1,function(module2,exports3){(function(mod){mod(requireCodemirror(),requireFoldcode())})(function(CodeMirror2){CodeMirror2.defineOption("foldGutter",!1,function(cm,val,old){old&&old!=CodeMirror2.Init&&(cm.clearGutter(cm.state.foldGutter.options.gutter),cm.state.foldGutter=null,cm.off("gutterClick",onGutterClick),cm.off("changes",onChange),cm.off("viewportChange",onViewportChange),cm.off("fold",onFold),cm.off("unfold",onFold),cm.off("swapDoc",onChange),cm.off("optionChange",optionChange)),val&&(cm.state.foldGutter=new State(parseOptions(val)),updateInViewport(cm),cm.on("gutterClick",onGutterClick),cm.on("changes",onChange),cm.on("viewportChange",onViewportChange),cm.on("fold",onFold),cm.on("unfold",onFold),cm.on("swapDoc",onChange),cm.on("optionChange",optionChange))});var Pos=CodeMirror2.Pos;function State(options){this.options=options,this.from=this.to=0}function parseOptions(opts){return opts===!0&&(opts={}),opts.gutter==null&&(opts.gutter="CodeMirror-foldgutter"),opts.indicatorOpen==null&&(opts.indicatorOpen="CodeMirror-foldgutter-open"),opts.indicatorFolded==null&&(opts.indicatorFolded="CodeMirror-foldgutter-folded"),opts}function isFolded(cm,line){for(var marks=cm.findMarks(Pos(line,0),Pos(line+1,0)),i=0;i<marks.length;++i)if(marks[i].__isFold){var fromPos=marks[i].find(-1);if(fromPos&&fromPos.line===line)return marks[i]}}function marker(spec){if(typeof spec=="string"){var elt=document.createElement("div");return elt.className=spec+" CodeMirror-guttermarker-subtle",elt}else return spec.cloneNode(!0)}function updateFoldInfo(cm,from,to){var opts=cm.state.foldGutter.options,cur=from-1,minSize=cm.foldOption(opts,"minFoldSize"),func=cm.foldOption(opts,"rangeFinder"),clsFolded=typeof opts.indicatorFolded=="string"&&classTest(opts.indicatorFolded),clsOpen=typeof opts.indicatorOpen=="string"&&classTest(opts.indicatorOpen);cm.eachLine(from,to,function(line){++cur;var mark=null,old=line.gutterMarkers;if(old&&(old=old[opts.gutter]),isFolded(cm,cur)){if(clsFolded&&old&&clsFolded.test(old.className))return;mark=marker(opts.indicatorFolded)}else{var pos=Pos(cur,0),range=func&&func(cm,pos);if(range&&range.to.line-range.from.line>=minSize){if(clsOpen&&old&&clsOpen.test(old.className))return;mark=marker(opts.indicatorOpen)}}!mark&&!old||cm.setGutterMarker(line,opts.gutter,mark)})}function classTest(cls){return new RegExp("(^|\\s)"+cls+"(?:$|\\s)\\s*")}function updateInViewport(cm){var vp=cm.getViewport(),state=cm.state.foldGutter;state&&(cm.operation(function(){updateFoldInfo(cm,vp.from,vp.to)}),state.from=vp.from,state.to=vp.to)}function onGutterClick(cm,line,gutter){var state=cm.state.foldGutter;if(state){var opts=state.options;if(gutter==opts.gutter){var folded=isFolded(cm,line);folded?folded.clear():cm.foldCode(Pos(line,0),opts)}}}function optionChange(cm,option){option=="mode"&&onChange(cm)}function onChange(cm){var state=cm.state.foldGutter;if(state){var opts=state.options;state.from=state.to=0,clearTimeout(state.changeUpdate),state.changeUpdate=setTimeout(function(){updateInViewport(cm)},opts.foldOnChangeTimeSpan||600)}}function onViewportChange(cm){var state=cm.state.foldGutter;if(state){var opts=state.options;clearTimeout(state.changeUpdate),state.changeUpdate=setTimeout(function(){var vp=cm.getViewport();state.from==state.to||vp.from-state.to>20||state.from-vp.to>20?updateInViewport(cm):cm.operation(function(){vp.from<state.from&&(updateFoldInfo(cm,vp.from,state.from),state.from=vp.from),vp.to>state.to&&(updateFoldInfo(cm,state.to,vp.to),state.to=vp.to)})},opts.updateViewportTimeSpan||400)}}function onFold(cm,from){var state=cm.state.foldGutter;if(state){var line=from.line;line>=state.from&&line<state.to&&updateFoldInfo(cm,line,line+1)}}})}()),foldgutter.exports}requireFoldgutter();var indentFold={exports:{}},hasRequiredIndentFold;function requireIndentFold(){return hasRequiredIndentFold||(hasRequiredIndentFold=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){function lineIndent(cm,lineNo){var text=cm.getLine(lineNo),spaceTo=text.search(/\S/);return spaceTo==-1||/\bcomment\b/.test(cm.getTokenTypeAt(CodeMirror2.Pos(lineNo,spaceTo+1)))?-1:CodeMirror2.countColumn(text,null,cm.getOption("tabSize"))}CodeMirror2.registerHelper("fold","indent",function(cm,start){var myIndent=lineIndent(cm,start.line);if(!(myIndent<0)){for(var lastLineInFold=null,i=start.line+1,end=cm.lastLine();i<=end;++i){var indent=lineIndent(cm,i);if(indent!=-1)if(indent>myIndent)lastLineInFold=i;else break}if(lastLineInFold)return{from:CodeMirror2.Pos(start.line,cm.getLine(start.line).length),to:CodeMirror2.Pos(lastLineInFold,cm.getLine(lastLineInFold).length)}}})})}()),indentFold.exports}requireIndentFold();var xmlFold={exports:{}},hasRequiredXmlFold;function requireXmlFold(){return hasRequiredXmlFold||(hasRequiredXmlFold=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){var Pos=CodeMirror2.Pos;function cmp(a,b){return a.line-b.line||a.ch-b.ch}var nameStartChar="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",nameChar=nameStartChar+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xmlTagStart=new RegExp("<(/?)(["+nameStartChar+"]["+nameChar+"]*)","g");function Iter(cm,line,ch,range){this.line=line,this.ch=ch,this.cm=cm,this.text=cm.getLine(line),this.min=range?Math.max(range.from,cm.firstLine()):cm.firstLine(),this.max=range?Math.min(range.to-1,cm.lastLine()):cm.lastLine()}function tagAt(iter,ch){var type=iter.cm.getTokenTypeAt(Pos(iter.line,ch));return type&&/\btag\b/.test(type)}function nextLine(iter){if(!(iter.line>=iter.max))return iter.ch=0,iter.text=iter.cm.getLine(++iter.line),!0}function prevLine(iter){if(!(iter.line<=iter.min))return iter.text=iter.cm.getLine(--iter.line),iter.ch=iter.text.length,!0}function toTagEnd(iter){for(;;){var gt=iter.text.indexOf(">",iter.ch);if(gt==-1){if(nextLine(iter))continue;return}if(!tagAt(iter,gt+1)){iter.ch=gt+1;continue}var lastSlash=iter.text.lastIndexOf("/",gt),selfClose=lastSlash>-1&&!/\S/.test(iter.text.slice(lastSlash+1,gt));return iter.ch=gt+1,selfClose?"selfClose":"regular"}}function toTagStart(iter){for(;;){var lt=iter.ch?iter.text.lastIndexOf("<",iter.ch-1):-1;if(lt==-1){if(prevLine(iter))continue;return}if(!tagAt(iter,lt+1)){iter.ch=lt;continue}xmlTagStart.lastIndex=lt,iter.ch=lt;var match=xmlTagStart.exec(iter.text);if(match&&match.index==lt)return match}}function toNextTag(iter){for(;;){xmlTagStart.lastIndex=iter.ch;var found=xmlTagStart.exec(iter.text);if(!found){if(nextLine(iter))continue;return}if(!tagAt(iter,found.index+1)){iter.ch=found.index+1;continue}return iter.ch=found.index+found[0].length,found}}function toPrevTag(iter){for(;;){var gt=iter.ch?iter.text.lastIndexOf(">",iter.ch-1):-1;if(gt==-1){if(prevLine(iter))continue;return}if(!tagAt(iter,gt+1)){iter.ch=gt;continue}var lastSlash=iter.text.lastIndexOf("/",gt),selfClose=lastSlash>-1&&!/\S/.test(iter.text.slice(lastSlash+1,gt));return iter.ch=gt+1,selfClose?"selfClose":"regular"}}function findMatchingClose(iter,tag){for(var stack=[];;){var next=toNextTag(iter),end,startLine=iter.line,startCh=iter.ch-(next?next[0].length:0);if(!next||!(end=toTagEnd(iter)))return;if(end!="selfClose")if(next[1]){for(var i=stack.length-1;i>=0;--i)if(stack[i]==next[2]){stack.length=i;break}if(i<0&&(!tag||tag==next[2]))return{tag:next[2],from:Pos(startLine,startCh),to:Pos(iter.line,iter.ch)}}else stack.push(next[2])}}function findMatchingOpen(iter,tag){for(var stack=[];;){var prev=toPrevTag(iter);if(!prev)return;if(prev=="selfClose"){toTagStart(iter);continue}var endLine=iter.line,endCh=iter.ch,start=toTagStart(iter);if(!start)return;if(start[1])stack.push(start[2]);else{for(var i=stack.length-1;i>=0;--i)if(stack[i]==start[2]){stack.length=i;break}if(i<0&&(!tag||tag==start[2]))return{tag:start[2],from:Pos(iter.line,iter.ch),to:Pos(endLine,endCh)}}}}CodeMirror2.registerHelper("fold","xml",function(cm,start){for(var iter=new Iter(cm,start.line,0);;){var openTag=toNextTag(iter);if(!openTag||iter.line!=start.line)return;var end=toTagEnd(iter);if(!end)return;if(!openTag[1]&&end!="selfClose"){var startPos=Pos(iter.line,iter.ch),endPos=findMatchingClose(iter,openTag[2]);return endPos&&cmp(endPos.from,startPos)>0?{from:startPos,to:endPos.from}:null}}}),CodeMirror2.findMatchingTag=function(cm,pos,range){var iter=new Iter(cm,pos.line,pos.ch,range);if(!(iter.text.indexOf(">")==-1&&iter.text.indexOf("<")==-1)){var end=toTagEnd(iter),to=end&&Pos(iter.line,iter.ch),start=end&&toTagStart(iter);if(!(!end||!start||cmp(iter,pos)>0)){var here={from:Pos(iter.line,iter.ch),to,tag:start[2]};return end=="selfClose"?{open:here,close:null,at:"open"}:start[1]?{open:findMatchingOpen(iter,start[2]),close:here,at:"close"}:(iter=new Iter(cm,to.line,to.ch,range),{open:here,close:findMatchingClose(iter,start[2]),at:"open"})}}},CodeMirror2.findEnclosingTag=function(cm,pos,range,tag){for(var iter=new Iter(cm,pos.line,pos.ch,range);;){var open=findMatchingOpen(iter,tag);if(!open)break;var forward=new Iter(cm,pos.line,pos.ch,range),close=findMatchingClose(forward,open.tag);if(close)return{open,close}}},CodeMirror2.scanForClosingTag=function(cm,pos,name,end){var iter=new Iter(cm,pos.line,pos.ch,end?{from:0,to:end}:null);return findMatchingClose(iter,name)}})}()),xmlFold.exports}requireXmlFold();var dialog={exports:{}},hasRequiredDialog;function requireDialog(){return hasRequiredDialog||(hasRequiredDialog=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){function dialogDiv(cm,template,bottom){var wrap=cm.getWrapperElement(),dialog2;return dialog2=wrap.appendChild(document.createElement("div")),bottom?dialog2.className="CodeMirror-dialog CodeMirror-dialog-bottom":dialog2.className="CodeMirror-dialog CodeMirror-dialog-top",typeof template=="string"?dialog2.innerHTML=template:dialog2.appendChild(template),CodeMirror2.addClass(wrap,"dialog-opened"),dialog2}function closeNotification(cm,newVal){cm.state.currentNotificationClose&&cm.state.currentNotificationClose(),cm.state.currentNotificationClose=newVal}CodeMirror2.defineExtension("openDialog",function(template,callback,options){options||(options={}),closeNotification(this,null);var dialog2=dialogDiv(this,template,options.bottom),closed=!1,me=this;function close(newVal){if(typeof newVal=="string")inp.value=newVal;else{if(closed)return;closed=!0,CodeMirror2.rmClass(dialog2.parentNode,"dialog-opened"),dialog2.parentNode.removeChild(dialog2),me.focus(),options.onClose&&options.onClose(dialog2)}}var inp=dialog2.getElementsByTagName("input")[0],button;return inp?(inp.focus(),options.value&&(inp.value=options.value,options.selectValueOnOpen!==!1&&inp.select()),options.onInput&&CodeMirror2.on(inp,"input",function(e){options.onInput(e,inp.value,close)}),options.onKeyUp&&CodeMirror2.on(inp,"keyup",function(e){options.onKeyUp(e,inp.value,close)}),CodeMirror2.on(inp,"keydown",function(e){options&&options.onKeyDown&&options.onKeyDown(e,inp.value,close)||((e.keyCode==27||options.closeOnEnter!==!1&&e.keyCode==13)&&(inp.blur(),CodeMirror2.e_stop(e),close()),e.keyCode==13&&callback(inp.value,e))}),options.closeOnBlur!==!1&&CodeMirror2.on(dialog2,"focusout",function(evt){evt.relatedTarget!==null&&close()})):(button=dialog2.getElementsByTagName("button")[0])&&(CodeMirror2.on(button,"click",function(){close(),me.focus()}),options.closeOnBlur!==!1&&CodeMirror2.on(button,"blur",close),button.focus()),close}),CodeMirror2.defineExtension("openConfirm",function(template,callbacks,options){closeNotification(this,null);var dialog2=dialogDiv(this,template,options&&options.bottom),buttons=dialog2.getElementsByTagName("button"),closed=!1,me=this,blurring=1;function close(){closed||(closed=!0,CodeMirror2.rmClass(dialog2.parentNode,"dialog-opened"),dialog2.parentNode.removeChild(dialog2),me.focus())}buttons[0].focus();for(var i=0;i<buttons.length;++i){var b=buttons[i];(function(callback){CodeMirror2.on(b,"click",function(e){CodeMirror2.e_preventDefault(e),close(),callback&&callback(me)})})(callbacks[i]),CodeMirror2.on(b,"blur",function(){--blurring,setTimeout(function(){blurring<=0&&close()},200)}),CodeMirror2.on(b,"focus",function(){++blurring})}}),CodeMirror2.defineExtension("openNotification",function(template,options){closeNotification(this,close);var dialog2=dialogDiv(this,template,options&&options.bottom),closed=!1,doneTimer,duration=options&&typeof options.duration<"u"?options.duration:5e3;function close(){closed||(closed=!0,clearTimeout(doneTimer),CodeMirror2.rmClass(dialog2.parentNode,"dialog-opened"),dialog2.parentNode.removeChild(dialog2))}return CodeMirror2.on(dialog2,"click",function(e){CodeMirror2.e_preventDefault(e),close()}),duration&&(doneTimer=setTimeout(close,duration)),close})})}()),dialog.exports}requireDialog();var jumpToLine={exports:{}},hasRequiredJumpToLine;function requireJumpToLine(){return hasRequiredJumpToLine||(hasRequiredJumpToLine=1,function(module2,exports3){(function(mod){mod(requireCodemirror(),requireDialog())})(function(CodeMirror2){CodeMirror2.defineOption("search",{bottom:!1});function dialog2(cm,text,shortText,deflt,f){cm.openDialog?cm.openDialog(text,f,{value:deflt,selectValueOnOpen:!0,bottom:cm.options.search.bottom}):f(prompt(shortText,deflt))}function getJumpDialog(cm){return cm.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+cm.phrase("(Use line:column or scroll% syntax)")+"</span>"}function interpretLine(cm,string){var num=Number(string);return/^[-+]/.test(string)?cm.getCursor().line+num:num-1}CodeMirror2.commands.jumpToLine=function(cm){var cur=cm.getCursor();dialog2(cm,getJumpDialog(cm),cm.phrase("Jump to line:"),cur.line+1+":"+cur.ch,function(posStr){if(posStr){var match;if(match=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(posStr))cm.setCursor(interpretLine(cm,match[1]),Number(match[2]));else if(match=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(posStr)){var line=Math.round(cm.lineCount()*Number(match[1])/100);/^[-+]/.test(match[1])&&(line=cur.line+line+1),cm.setCursor(line-1,cur.ch)}else(match=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(posStr))&&cm.setCursor(interpretLine(cm,match[1]),cur.ch)}})},CodeMirror2.keyMap.default["Alt-G"]="jumpToLine"})}()),jumpToLine.exports}requireJumpToLine();var search={exports:{}},searchcursor={exports:{}},hasRequiredSearchcursor;function requireSearchcursor(){return hasRequiredSearchcursor||(hasRequiredSearchcursor=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){var Pos=CodeMirror2.Pos;function regexpFlags(regexp){var flags=regexp.flags;return flags??(regexp.ignoreCase?"i":"")+(regexp.global?"g":"")+(regexp.multiline?"m":"")}function ensureFlags(regexp,flags){for(var current=regexpFlags(regexp),target=current,i=0;i<flags.length;i++)target.indexOf(flags.charAt(i))==-1&&(target+=flags.charAt(i));return current==target?regexp:new RegExp(regexp.source,target)}function maybeMultiline(regexp){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(regexp.source)}function searchRegexpForward(doc,regexp,start){regexp=ensureFlags(regexp,"g");for(var line=start.line,ch=start.ch,last=doc.lastLine();line<=last;line++,ch=0){regexp.lastIndex=ch;var string=doc.getLine(line),match=regexp.exec(string);if(match)return{from:Pos(line,match.index),to:Pos(line,match.index+match[0].length),match}}}function searchRegexpForwardMultiline(doc,regexp,start){if(!maybeMultiline(regexp))return searchRegexpForward(doc,regexp,start);regexp=ensureFlags(regexp,"gm");for(var string,chunk=1,line=start.line,last=doc.lastLine();line<=last;){for(var i=0;i<chunk&&!(line>last);i++){var curLine=doc.getLine(line++);string=string==null?curLine:string+`
|
|
24
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var oldScrollY;webkit&&(oldScrollY=te.ownerDocument.defaultView.scrollY),display.input.focus(),webkit&&te.ownerDocument.defaultView.scrollTo(null,oldScrollY),display.input.reset(),cm.somethingSelected()||(te.value=input.prevInput=" "),input.contextMenuPending=rehide,display.selForContextMenu=cm.doc.sel,clearTimeout(display.detectingSelectAll);function prepareSelectAllHack(){if(te.selectionStart!=null){var selected=cm.somethingSelected(),extval=""+(selected?te.value:"");te.value="⇚",te.value=extval,input.prevInput=selected?"":"",te.selectionStart=1,te.selectionEnd=extval.length,display.selForContextMenu=cm.doc.sel}}function rehide(){if(input.contextMenuPending==rehide&&(input.contextMenuPending=!1,input.wrapper.style.cssText=oldWrapperCSS,te.style.cssText=oldCSS,ie&&ie_version<9&&display.scrollbars.setScrollTop(display.scroller.scrollTop=scrollPos),te.selectionStart!=null)){(!ie||ie&&ie_version<9)&&prepareSelectAllHack();var i2=0,poll=function(){display.selForContextMenu==cm.doc.sel&&te.selectionStart==0&&te.selectionEnd>0&&input.prevInput==""?operation(cm,selectAll)(cm):i2++<10?display.detectingSelectAll=setTimeout(poll,500):(display.selForContextMenu=null,display.input.reset())};display.detectingSelectAll=setTimeout(poll,200)}}if(ie&&ie_version>=9&&prepareSelectAllHack(),captureRightClick){e_stop(e);var mouseup=function(){off(window,"mouseup",mouseup),setTimeout(rehide,20)};on(window,"mouseup",mouseup)}else setTimeout(rehide,50)},TextareaInput.prototype.readOnlyChanged=function(val){val||this.reset(),this.textarea.disabled=val=="nocursor",this.textarea.readOnly=!!val},TextareaInput.prototype.setUneditable=function(){},TextareaInput.prototype.needsContentAttribute=!1;function fromTextArea(textarea,options){if(options=options?copyObj(options):{},options.value=textarea.value,!options.tabindex&&textarea.tabIndex&&(options.tabindex=textarea.tabIndex),!options.placeholder&&textarea.placeholder&&(options.placeholder=textarea.placeholder),options.autofocus==null){var hasFocus=activeElt(rootNode(textarea));options.autofocus=hasFocus==textarea||textarea.getAttribute("autofocus")!=null&&hasFocus==document.body}function save(){textarea.value=cm.getValue()}var realSubmit;if(textarea.form&&(on(textarea.form,"submit",save),!options.leaveSubmitMethodAlone)){var form=textarea.form;realSubmit=form.submit;try{var wrappedSubmit=form.submit=function(){save(),form.submit=realSubmit,form.submit(),form.submit=wrappedSubmit}}catch{}}options.finishInit=function(cm2){cm2.save=save,cm2.getTextArea=function(){return textarea},cm2.toTextArea=function(){cm2.toTextArea=isNaN,save(),textarea.parentNode.removeChild(cm2.getWrapperElement()),textarea.style.display="",textarea.form&&(off(textarea.form,"submit",save),!options.leaveSubmitMethodAlone&&typeof textarea.form.submit=="function"&&(textarea.form.submit=realSubmit))}},textarea.style.display="none";var cm=CodeMirror2(function(node){return textarea.parentNode.insertBefore(node,textarea.nextSibling)},options);return cm}function addLegacyProps(CodeMirror3){CodeMirror3.off=off,CodeMirror3.on=on,CodeMirror3.wheelEventPixels=wheelEventPixels,CodeMirror3.Doc=Doc,CodeMirror3.splitLines=splitLinesAuto,CodeMirror3.countColumn=countColumn,CodeMirror3.findColumn=findColumn,CodeMirror3.isWordChar=isWordCharBasic,CodeMirror3.Pass=Pass,CodeMirror3.signal=signal,CodeMirror3.Line=Line,CodeMirror3.changeEnd=changeEnd,CodeMirror3.scrollbarModel=scrollbarModel,CodeMirror3.Pos=Pos,CodeMirror3.cmpPos=cmp,CodeMirror3.modes=modes,CodeMirror3.mimeModes=mimeModes,CodeMirror3.resolveMode=resolveMode,CodeMirror3.getMode=getMode,CodeMirror3.modeExtensions=modeExtensions,CodeMirror3.extendMode=extendMode,CodeMirror3.copyState=copyState,CodeMirror3.startState=startState,CodeMirror3.innerMode=innerMode,CodeMirror3.commands=commands,CodeMirror3.keyMap=keyMap,CodeMirror3.keyName=keyName,CodeMirror3.isModifierKey=isModifierKey,CodeMirror3.lookupKey=lookupKey,CodeMirror3.normalizeKeyMap=normalizeKeyMap,CodeMirror3.StringStream=StringStream,CodeMirror3.SharedTextMarker=SharedTextMarker,CodeMirror3.TextMarker=TextMarker,CodeMirror3.LineWidget=LineWidget,CodeMirror3.e_preventDefault=e_preventDefault,CodeMirror3.e_stopPropagation=e_stopPropagation,CodeMirror3.e_stop=e_stop,CodeMirror3.addClass=addClass,CodeMirror3.contains=contains,CodeMirror3.rmClass=rmClass,CodeMirror3.keyNames=keyNames}defineOptions(CodeMirror2),addEditorMethods(CodeMirror2);var dontDelegate="iter insert remove copy getEditor constructor".split(" ");for(var prop in Doc.prototype)Doc.prototype.hasOwnProperty(prop)&&indexOf(dontDelegate,prop)<0&&(CodeMirror2.prototype[prop]=function(method){return function(){return method.apply(this.doc,arguments)}}(Doc.prototype[prop]));return eventMixin(Doc),CodeMirror2.inputStyles={textarea:TextareaInput,contenteditable:ContentEditableInput},CodeMirror2.defineMode=function(name){!CodeMirror2.defaults.mode&&name!="null"&&(CodeMirror2.defaults.mode=name),defineMode.apply(this,arguments)},CodeMirror2.defineMIME=defineMIME,CodeMirror2.defineMode("null",function(){return{token:function(stream){return stream.skipToEnd()}}}),CodeMirror2.defineMIME("text/plain","null"),CodeMirror2.defineExtension=function(name,func){CodeMirror2.prototype[name]=func},CodeMirror2.defineDocExtension=function(name,func){Doc.prototype[name]=func},CodeMirror2.fromTextArea=fromTextArea,addLegacyProps(CodeMirror2),CodeMirror2.version="5.65.19",CodeMirror2})}(codemirror)),codemirror.exports}(function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("css",function(config,parserConfig){var inline=parserConfig.inline;parserConfig.propertyKeywords||(parserConfig=CodeMirror2.resolveMode("text/css"));var indentUnit=config.indentUnit,tokenHooks=parserConfig.tokenHooks,documentTypes2=parserConfig.documentTypes||{},mediaTypes2=parserConfig.mediaTypes||{},mediaFeatures2=parserConfig.mediaFeatures||{},mediaValueKeywords2=parserConfig.mediaValueKeywords||{},propertyKeywords2=parserConfig.propertyKeywords||{},nonStandardPropertyKeywords2=parserConfig.nonStandardPropertyKeywords||{},fontProperties2=parserConfig.fontProperties||{},counterDescriptors2=parserConfig.counterDescriptors||{},colorKeywords2=parserConfig.colorKeywords||{},valueKeywords2=parserConfig.valueKeywords||{},allowNested=parserConfig.allowNested,lineComment=parserConfig.lineComment,supportsAtComponent=parserConfig.supportsAtComponent===!0,highlightNonStandardPropertyKeywords=config.highlightNonStandardPropertyKeywords!==!1,type,override;function ret(style,tp){return type=tp,style}function tokenBase(stream,state){var ch=stream.next();if(tokenHooks[ch]){var result=tokenHooks[ch](stream,state);if(result!==!1)return result}if(ch=="@")return stream.eatWhile(/[\w\\\-]/),ret("def",stream.current());if(ch=="="||(ch=="~"||ch=="|")&&stream.eat("="))return ret(null,"compare");if(ch=='"'||ch=="'")return state.tokenize=tokenString(ch),state.tokenize(stream,state);if(ch=="#")return stream.eatWhile(/[\w\\\-]/),ret("atom","hash");if(ch=="!")return stream.match(/^\s*\w*/),ret("keyword","important");if(/\d/.test(ch)||ch=="."&&stream.eat(/\d/))return stream.eatWhile(/[\w.%]/),ret("number","unit");if(ch==="-"){if(/[\d.]/.test(stream.peek()))return stream.eatWhile(/[\w.%]/),ret("number","unit");if(stream.match(/^-[\w\\\-]*/))return stream.eatWhile(/[\w\\\-]/),stream.match(/^\s*:/,!1)?ret("variable-2","variable-definition"):ret("variable-2","variable");if(stream.match(/^\w+-/))return ret("meta","meta")}else return/[,+>*\/]/.test(ch)?ret(null,"select-op"):ch=="."&&stream.match(/^-?[_a-z][_a-z0-9-]*/i)?ret("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ch)?ret(null,ch):stream.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())&&(state.tokenize=tokenParenthesized),ret("variable callee","variable")):/[\w\\\-]/.test(ch)?(stream.eatWhile(/[\w\\\-]/),ret("property","word")):ret(null,null)}function tokenString(quote){return function(stream,state){for(var escaped=!1,ch;(ch=stream.next())!=null;){if(ch==quote&&!escaped){quote==")"&&stream.backUp(1);break}escaped=!escaped&&ch=="\\"}return(ch==quote||!escaped&"e!=")")&&(state.tokenize=null),ret("string","string")}}function tokenParenthesized(stream,state){return stream.next(),stream.match(/^\s*[\"\')]/,!1)?state.tokenize=null:state.tokenize=tokenString(")"),ret(null,"(")}function Context(type2,indent,prev){this.type=type2,this.indent=indent,this.prev=prev}function pushContext(state,stream,type2,indent){return state.context=new Context(type2,stream.indentation()+(indent===!1?0:indentUnit),state.context),type2}function popContext(state){return state.context.prev&&(state.context=state.context.prev),state.context.type}function pass(type2,stream,state){return states[state.context.type](type2,stream,state)}function popAndPass(type2,stream,state,n){for(var i=n||1;i>0;i--)state.context=state.context.prev;return pass(type2,stream,state)}function wordAsValue(stream){var word=stream.current().toLowerCase();valueKeywords2.hasOwnProperty(word)?override="atom":colorKeywords2.hasOwnProperty(word)?override="keyword":override="variable"}var states={};return states.top=function(type2,stream,state){if(type2=="{")return pushContext(state,stream,"block");if(type2=="}"&&state.context.prev)return popContext(state);if(supportsAtComponent&&/@component/i.test(type2))return pushContext(state,stream,"atComponentBlock");if(/^@(-moz-)?document$/i.test(type2))return pushContext(state,stream,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(type2))return pushContext(state,stream,"atBlock");if(/^@(font-face|counter-style)/i.test(type2))return state.stateArg=type2,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type2))return"keyframes";if(type2&&type2.charAt(0)=="@")return pushContext(state,stream,"at");if(type2=="hash")override="builtin";else if(type2=="word")override="tag";else{if(type2=="variable-definition")return"maybeprop";if(type2=="interpolation")return pushContext(state,stream,"interpolation");if(type2==":")return"pseudo";if(allowNested&&type2=="(")return pushContext(state,stream,"parens")}return state.context.type},states.block=function(type2,stream,state){if(type2=="word"){var word=stream.current().toLowerCase();return propertyKeywords2.hasOwnProperty(word)?(override="property","maybeprop"):nonStandardPropertyKeywords2.hasOwnProperty(word)?(override=highlightNonStandardPropertyKeywords?"string-2":"property","maybeprop"):allowNested?(override=stream.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(override+=" error","maybeprop")}else return type2=="meta"?"block":!allowNested&&(type2=="hash"||type2=="qualifier")?(override="error","block"):states.top(type2,stream,state)},states.maybeprop=function(type2,stream,state){return type2==":"?pushContext(state,stream,"prop"):pass(type2,stream,state)},states.prop=function(type2,stream,state){if(type2==";")return popContext(state);if(type2=="{"&&allowNested)return pushContext(state,stream,"propBlock");if(type2=="}"||type2=="{")return popAndPass(type2,stream,state);if(type2=="(")return pushContext(state,stream,"parens");if(type2=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current()))override+=" error";else if(type2=="word")wordAsValue(stream);else if(type2=="interpolation")return pushContext(state,stream,"interpolation");return"prop"},states.propBlock=function(type2,_stream,state){return type2=="}"?popContext(state):type2=="word"?(override="property","maybeprop"):state.context.type},states.parens=function(type2,stream,state){return type2=="{"||type2=="}"?popAndPass(type2,stream,state):type2==")"?popContext(state):type2=="("?pushContext(state,stream,"parens"):type2=="interpolation"?pushContext(state,stream,"interpolation"):(type2=="word"&&wordAsValue(stream),"parens")},states.pseudo=function(type2,stream,state){return type2=="meta"?"pseudo":type2=="word"?(override="variable-3",state.context.type):pass(type2,stream,state)},states.documentTypes=function(type2,stream,state){return type2=="word"&&documentTypes2.hasOwnProperty(stream.current())?(override="tag",state.context.type):states.atBlock(type2,stream,state)},states.atBlock=function(type2,stream,state){if(type2=="(")return pushContext(state,stream,"atBlock_parens");if(type2=="}"||type2==";")return popAndPass(type2,stream,state);if(type2=="{")return popContext(state)&&pushContext(state,stream,allowNested?"block":"top");if(type2=="interpolation")return pushContext(state,stream,"interpolation");if(type2=="word"){var word=stream.current().toLowerCase();word=="only"||word=="not"||word=="and"||word=="or"?override="keyword":mediaTypes2.hasOwnProperty(word)?override="attribute":mediaFeatures2.hasOwnProperty(word)?override="property":mediaValueKeywords2.hasOwnProperty(word)?override="keyword":propertyKeywords2.hasOwnProperty(word)?override="property":nonStandardPropertyKeywords2.hasOwnProperty(word)?override=highlightNonStandardPropertyKeywords?"string-2":"property":valueKeywords2.hasOwnProperty(word)?override="atom":colorKeywords2.hasOwnProperty(word)?override="keyword":override="error"}return state.context.type},states.atComponentBlock=function(type2,stream,state){return type2=="}"?popAndPass(type2,stream,state):type2=="{"?popContext(state)&&pushContext(state,stream,allowNested?"block":"top",!1):(type2=="word"&&(override="error"),state.context.type)},states.atBlock_parens=function(type2,stream,state){return type2==")"?popContext(state):type2=="{"||type2=="}"?popAndPass(type2,stream,state,2):states.atBlock(type2,stream,state)},states.restricted_atBlock_before=function(type2,stream,state){return type2=="{"?pushContext(state,stream,"restricted_atBlock"):type2=="word"&&state.stateArg=="@counter-style"?(override="variable","restricted_atBlock_before"):pass(type2,stream,state)},states.restricted_atBlock=function(type2,stream,state){return type2=="}"?(state.stateArg=null,popContext(state)):type2=="word"?(state.stateArg=="@font-face"&&!fontProperties2.hasOwnProperty(stream.current().toLowerCase())||state.stateArg=="@counter-style"&&!counterDescriptors2.hasOwnProperty(stream.current().toLowerCase())?override="error":override="property","maybeprop"):"restricted_atBlock"},states.keyframes=function(type2,stream,state){return type2=="word"?(override="variable","keyframes"):type2=="{"?pushContext(state,stream,"top"):pass(type2,stream,state)},states.at=function(type2,stream,state){return type2==";"?popContext(state):type2=="{"||type2=="}"?popAndPass(type2,stream,state):(type2=="word"?override="tag":type2=="hash"&&(override="builtin"),"at")},states.interpolation=function(type2,stream,state){return type2=="}"?popContext(state):type2=="{"||type2==";"?popAndPass(type2,stream,state):(type2=="word"?override="variable":type2!="variable"&&type2!="("&&type2!=")"&&(override="error"),"interpolation")},{startState:function(base){return{tokenize:null,state:inline?"block":"top",stateArg:null,context:new Context(inline?"block":"top",base||0,null)}},token:function(stream,state){if(!state.tokenize&&stream.eatSpace())return null;var style=(state.tokenize||tokenBase)(stream,state);return style&&typeof style=="object"&&(type=style[1],style=style[0]),override=style,type!="comment"&&(state.state=states[state.state](type,stream,state)),override},indent:function(state,textAfter){var cx=state.context,ch=textAfter&&textAfter.charAt(0),indent=cx.indent;return cx.type=="prop"&&(ch=="}"||ch==")")&&(cx=cx.prev),cx.prev&&(ch=="}"&&(cx.type=="block"||cx.type=="top"||cx.type=="interpolation"||cx.type=="restricted_atBlock")?(cx=cx.prev,indent=cx.indent):(ch==")"&&(cx.type=="parens"||cx.type=="atBlock_parens")||ch=="{"&&(cx.type=="at"||cx.type=="atBlock"))&&(indent=Math.max(0,cx.indent-indentUnit))),indent},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment,fold:"brace"}});function keySet(array){for(var keys={},i=0;i<array.length;++i)keys[array[i].toLowerCase()]=!0;return keys}var documentTypes_=["domain","regexp","url","url-prefix"],documentTypes=keySet(documentTypes_),mediaTypes_=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],mediaTypes=keySet(mediaTypes_),mediaFeatures_=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],mediaFeatures=keySet(mediaFeatures_),mediaValueKeywords_=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],mediaValueKeywords=keySet(mediaValueKeywords_),propertyKeywords_=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],propertyKeywords=keySet(propertyKeywords_),nonStandardPropertyKeywords_=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],nonStandardPropertyKeywords=keySet(nonStandardPropertyKeywords_),fontProperties_=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],fontProperties=keySet(fontProperties_),counterDescriptors_=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],counterDescriptors=keySet(counterDescriptors_),colorKeywords_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],colorKeywords=keySet(colorKeywords_),valueKeywords_=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],valueKeywords=keySet(valueKeywords_),allWords=documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_).concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_).concat(valueKeywords_);CodeMirror2.registerHelper("hintWords","css",allWords);function tokenCComment(stream,state){for(var maybeEnd=!1,ch;(ch=stream.next())!=null;){if(maybeEnd&&ch=="/"){state.tokenize=null;break}maybeEnd=ch=="*"}return["comment","comment"]}CodeMirror2.defineMIME("text/css",{documentTypes,mediaTypes,mediaFeatures,mediaValueKeywords,propertyKeywords,nonStandardPropertyKeywords,fontProperties,counterDescriptors,colorKeywords,valueKeywords,tokenHooks:{"/":function(stream,state){return stream.eat("*")?(state.tokenize=tokenCComment,tokenCComment(stream,state)):!1}},name:"css"}),CodeMirror2.defineMIME("text/x-scss",{mediaTypes,mediaFeatures,mediaValueKeywords,propertyKeywords,nonStandardPropertyKeywords,colorKeywords,valueKeywords,fontProperties,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(stream,state){return stream.eat("/")?(stream.skipToEnd(),["comment","comment"]):stream.eat("*")?(state.tokenize=tokenCComment,tokenCComment(stream,state)):["operator","operator"]},":":function(stream){return stream.match(/^\s*\{/,!1)?[null,null]:!1},$:function(stream){return stream.match(/^[\w-]+/),stream.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(stream){return stream.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),CodeMirror2.defineMIME("text/x-less",{mediaTypes,mediaFeatures,mediaValueKeywords,propertyKeywords,nonStandardPropertyKeywords,colorKeywords,valueKeywords,fontProperties,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(stream,state){return stream.eat("/")?(stream.skipToEnd(),["comment","comment"]):stream.eat("*")?(state.tokenize=tokenCComment,tokenCComment(stream,state)):["operator","operator"]},"@":function(stream){return stream.eat("{")?[null,"interpolation"]:stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(stream.eatWhile(/[\w\\\-]/),stream.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),CodeMirror2.defineMIME("text/x-gss",{documentTypes,mediaTypes,mediaFeatures,propertyKeywords,nonStandardPropertyKeywords,fontProperties,counterDescriptors,colorKeywords,valueKeywords,supportsAtComponent:!0,tokenHooks:{"/":function(stream,state){return stream.eat("*")?(state.tokenize=tokenCComment,tokenCComment(stream,state)):!1}},name:"css",helperType:"gss"})})})();var cssExports=css.exports;(function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("ecl",function(config){function words(str){for(var obj={},words2=str.split(" "),i=0;i<words2.length;++i)obj[words2[i]]=!0;return obj}function metaHook(stream,state){return state.startOfLine?(stream.skipToEnd(),"meta"):!1}var indentUnit=config.indentUnit,keyword=words("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),variable=words("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),variable_2=words("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),variable_3=words("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),builtin=words("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),blockKeywords=words("catch class do else finally for if switch try while"),atoms=words("true false null"),hooks={"#":metaHook},isOperatorChar=/[+\-*&%=<>!?|\/]/,curPunc;function tokenBase(stream,state){var ch=stream.next();if(hooks[ch]){var result=hooks[ch](stream,state);if(result!==!1)return result}if(ch=='"'||ch=="'")return state.tokenize=tokenString(ch),state.tokenize(stream,state);if(/[\[\]{}\(\),;\:\.]/.test(ch))return curPunc=ch,null;if(/\d/.test(ch))return stream.eatWhile(/[\w\.]/),"number";if(ch=="/"){if(stream.eat("*"))return state.tokenize=tokenComment,tokenComment(stream,state);if(stream.eat("/"))return stream.skipToEnd(),"comment"}if(isOperatorChar.test(ch))return stream.eatWhile(isOperatorChar),"operator";stream.eatWhile(/[\w\$_]/);var cur=stream.current().toLowerCase();if(keyword.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"keyword";if(variable.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"variable";if(variable_2.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"variable-2";if(variable_3.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"variable-3";if(builtin.propertyIsEnumerable(cur))return blockKeywords.propertyIsEnumerable(cur)&&(curPunc="newstatement"),"builtin";for(var i=cur.length-1;i>=0&&(!isNaN(cur[i])||cur[i]=="_");)--i;if(i>0){var cur2=cur.substr(0,i+1);if(variable_3.propertyIsEnumerable(cur2))return blockKeywords.propertyIsEnumerable(cur2)&&(curPunc="newstatement"),"variable-3"}return atoms.propertyIsEnumerable(cur)?"atom":null}function tokenString(quote){return function(stream,state){for(var escaped=!1,next,end=!1;(next=stream.next())!=null;){if(next==quote&&!escaped){end=!0;break}escaped=!escaped&&next=="\\"}return(end||!escaped)&&(state.tokenize=tokenBase),"string"}}function tokenComment(stream,state){for(var maybeEnd=!1,ch;ch=stream.next();){if(ch=="/"&&maybeEnd){state.tokenize=tokenBase;break}maybeEnd=ch=="*"}return"comment"}function Context(indented,column,type,align,prev){this.indented=indented,this.column=column,this.type=type,this.align=align,this.prev=prev}function pushContext(state,col,type){return state.context=new Context(state.indented,col,type,null,state.context)}function popContext(state){var t=state.context.type;return(t==")"||t=="]"||t=="}")&&(state.indented=state.context.indented),state.context=state.context.prev}return{startState:function(basecolumn){return{tokenize:null,context:new Context((basecolumn||0)-indentUnit,0,"top",!1),indented:0,startOfLine:!0}},token:function(stream,state){var ctx=state.context;if(stream.sol()&&(ctx.align==null&&(ctx.align=!1),state.indented=stream.indentation(),state.startOfLine=!0),stream.eatSpace())return null;curPunc=null;var style=(state.tokenize||tokenBase)(stream,state);if(style=="comment"||style=="meta")return style;if(ctx.align==null&&(ctx.align=!0),(curPunc==";"||curPunc==":")&&ctx.type=="statement")popContext(state);else if(curPunc=="{")pushContext(state,stream.column(),"}");else if(curPunc=="[")pushContext(state,stream.column(),"]");else if(curPunc=="(")pushContext(state,stream.column(),")");else if(curPunc=="}"){for(;ctx.type=="statement";)ctx=popContext(state);for(ctx.type=="}"&&(ctx=popContext(state));ctx.type=="statement";)ctx=popContext(state)}else curPunc==ctx.type?popContext(state):(ctx.type=="}"||ctx.type=="top"||ctx.type=="statement"&&curPunc=="newstatement")&&pushContext(state,stream.column(),"statement");return state.startOfLine=!1,style},indent:function(state,textAfter){if(state.tokenize!=tokenBase&&state.tokenize!=null)return 0;var ctx=state.context,firstChar=textAfter&&textAfter.charAt(0);ctx.type=="statement"&&firstChar=="}"&&(ctx=ctx.prev);var closing=firstChar==ctx.type;return ctx.type=="statement"?ctx.indented+(firstChar=="{"?0:indentUnit):ctx.align?ctx.column+(closing?0:1):ctx.indented+(closing?0:indentUnit)},electricChars:"{}"}}),CodeMirror2.defineMIME("text/x-ecl","ecl")})})();var markdown={exports:{}},xml={exports:{}},hasRequiredXml;function requireXml(){return hasRequiredXml||(hasRequiredXml=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){var htmlConfig={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},xmlConfig={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};CodeMirror2.defineMode("xml",function(editorConf,config_){var indentUnit=editorConf.indentUnit,config={},defaults=config_.htmlMode?htmlConfig:xmlConfig;for(var prop in defaults)config[prop]=defaults[prop];for(var prop in config_)config[prop]=config_[prop];var type,setStyle;function inText(stream,state){function chain(parser){return state.tokenize=parser,parser(stream,state)}var ch=stream.next();if(ch=="<")return stream.eat("!")?stream.eat("[")?stream.match("CDATA[")?chain(inBlock("atom","]]>")):null:stream.match("--")?chain(inBlock("comment","-->")):stream.match("DOCTYPE",!0,!0)?(stream.eatWhile(/[\w\._\-]/),chain(doctype(1))):null:stream.eat("?")?(stream.eatWhile(/[\w\._\-]/),state.tokenize=inBlock("meta","?>"),"meta"):(type=stream.eat("/")?"closeTag":"openTag",state.tokenize=inTag,"tag bracket");if(ch=="&"){var ok;return stream.eat("#")?stream.eat("x")?ok=stream.eatWhile(/[a-fA-F\d]/)&&stream.eat(";"):ok=stream.eatWhile(/[\d]/)&&stream.eat(";"):ok=stream.eatWhile(/[\w\.\-:]/)&&stream.eat(";"),ok?"atom":"error"}else return stream.eatWhile(/[^&<]/),null}inText.isInText=!0;function inTag(stream,state){var ch=stream.next();if(ch==">"||ch=="/"&&stream.eat(">"))return state.tokenize=inText,type=ch==">"?"endTag":"selfcloseTag","tag bracket";if(ch=="=")return type="equals",null;if(ch=="<"){state.tokenize=inText,state.state=baseState,state.tagName=state.tagStart=null;var next=state.tokenize(stream,state);return next?next+" tag error":"tag error"}else return/[\'\"]/.test(ch)?(state.tokenize=inAttribute(ch),state.stringStartCol=stream.column(),state.tokenize(stream,state)):(stream.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function inAttribute(quote){var closure=function(stream,state){for(;!stream.eol();)if(stream.next()==quote){state.tokenize=inTag;break}return"string"};return closure.isInAttribute=!0,closure}function inBlock(style,terminator){return function(stream,state){for(;!stream.eol();){if(stream.match(terminator)){state.tokenize=inText;break}stream.next()}return style}}function doctype(depth){return function(stream,state){for(var ch;(ch=stream.next())!=null;){if(ch=="<")return state.tokenize=doctype(depth+1),state.tokenize(stream,state);if(ch==">")if(depth==1){state.tokenize=inText;break}else return state.tokenize=doctype(depth-1),state.tokenize(stream,state)}return"meta"}}function lower(tagName){return tagName&&tagName.toLowerCase()}function Context(state,tagName,startOfLine){this.prev=state.context,this.tagName=tagName||"",this.indent=state.indented,this.startOfLine=startOfLine,(config.doNotIndent.hasOwnProperty(tagName)||state.context&&state.context.noIndent)&&(this.noIndent=!0)}function popContext(state){state.context&&(state.context=state.context.prev)}function maybePopContext(state,nextTagName){for(var parentTagName;;){if(!state.context||(parentTagName=state.context.tagName,!config.contextGrabbers.hasOwnProperty(lower(parentTagName))||!config.contextGrabbers[lower(parentTagName)].hasOwnProperty(lower(nextTagName))))return;popContext(state)}}function baseState(type2,stream,state){return type2=="openTag"?(state.tagStart=stream.column(),tagNameState):type2=="closeTag"?closeTagNameState:baseState}function tagNameState(type2,stream,state){return type2=="word"?(state.tagName=stream.current(),setStyle="tag",attrState):config.allowMissingTagName&&type2=="endTag"?(setStyle="tag bracket",attrState(type2,stream,state)):(setStyle="error",tagNameState)}function closeTagNameState(type2,stream,state){if(type2=="word"){var tagName=stream.current();return state.context&&state.context.tagName!=tagName&&config.implicitlyClosed.hasOwnProperty(lower(state.context.tagName))&&popContext(state),state.context&&state.context.tagName==tagName||config.matchClosing===!1?(setStyle="tag",closeState):(setStyle="tag error",closeStateErr)}else return config.allowMissingTagName&&type2=="endTag"?(setStyle="tag bracket",closeState(type2,stream,state)):(setStyle="error",closeStateErr)}function closeState(type2,_stream,state){return type2!="endTag"?(setStyle="error",closeState):(popContext(state),baseState)}function closeStateErr(type2,stream,state){return setStyle="error",closeState(type2,stream,state)}function attrState(type2,_stream,state){if(type2=="word")return setStyle="attribute",attrEqState;if(type2=="endTag"||type2=="selfcloseTag"){var tagName=state.tagName,tagStart=state.tagStart;return state.tagName=state.tagStart=null,type2=="selfcloseTag"||config.autoSelfClosers.hasOwnProperty(lower(tagName))?maybePopContext(state,tagName):(maybePopContext(state,tagName),state.context=new Context(state,tagName,tagStart==state.indented)),baseState}return setStyle="error",attrState}function attrEqState(type2,stream,state){return type2=="equals"?attrValueState:(config.allowMissing||(setStyle="error"),attrState(type2,stream,state))}function attrValueState(type2,stream,state){return type2=="string"?attrContinuedState:type2=="word"&&config.allowUnquoted?(setStyle="string",attrState):(setStyle="error",attrState(type2,stream,state))}function attrContinuedState(type2,stream,state){return type2=="string"?attrContinuedState:attrState(type2,stream,state)}return{startState:function(baseIndent){var state={tokenize:inText,state:baseState,indented:baseIndent||0,tagName:null,tagStart:null,context:null};return baseIndent!=null&&(state.baseIndent=baseIndent),state},token:function(stream,state){if(!state.tagName&&stream.sol()&&(state.indented=stream.indentation()),stream.eatSpace())return null;type=null;var style=state.tokenize(stream,state);return(style||type)&&style!="comment"&&(setStyle=null,state.state=state.state(type||style,stream,state),setStyle&&(style=setStyle=="error"?style+" error":setStyle)),style},indent:function(state,textAfter,fullLine){var context=state.context;if(state.tokenize.isInAttribute)return state.tagStart==state.indented?state.stringStartCol+1:state.indented+indentUnit;if(context&&context.noIndent)return CodeMirror2.Pass;if(state.tokenize!=inTag&&state.tokenize!=inText)return fullLine?fullLine.match(/^(\s*)/)[0].length:0;if(state.tagName)return config.multilineTagIndentPastTag!==!1?state.tagStart+state.tagName.length+2:state.tagStart+indentUnit*(config.multilineTagIndentFactor||1);if(config.alignCDATA&&/<!\[CDATA\[/.test(textAfter))return 0;var tagAfter=textAfter&&/^<(\/)?([\w_:\.-]*)/.exec(textAfter);if(tagAfter&&tagAfter[1])for(;context;)if(context.tagName==tagAfter[2]){context=context.prev;break}else if(config.implicitlyClosed.hasOwnProperty(lower(context.tagName)))context=context.prev;else break;else if(tagAfter)for(;context;){var grabbers=config.contextGrabbers[lower(context.tagName)];if(grabbers&&grabbers.hasOwnProperty(lower(tagAfter[2])))context=context.prev;else break}for(;context&&context.prev&&!context.startOfLine;)context=context.prev;return context?context.indent+indentUnit:state.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:config.htmlMode?"html":"xml",helperType:config.htmlMode?"html":"xml",skipAttribute:function(state){state.state==attrValueState&&(state.state=attrState)},xmlCurrentTag:function(state){return state.tagName?{name:state.tagName,close:state.type=="closeTag"}:null},xmlCurrentContext:function(state){for(var context=[],cx=state.context;cx;cx=cx.prev)context.push(cx.tagName);return context.reverse()}}}),CodeMirror2.defineMIME("text/xml","xml"),CodeMirror2.defineMIME("application/xml","xml"),CodeMirror2.mimeModes.hasOwnProperty("text/html")||CodeMirror2.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xml.exports}var meta={exports:{}},hasRequiredMeta;function requireMeta(){return hasRequiredMeta||(hasRequiredMeta=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var i=0;i<CodeMirror2.modeInfo.length;i++){var info=CodeMirror2.modeInfo[i];info.mimes&&(info.mime=info.mimes[0])}CodeMirror2.findModeByMIME=function(mime){mime=mime.toLowerCase();for(var i2=0;i2<CodeMirror2.modeInfo.length;i2++){var info2=CodeMirror2.modeInfo[i2];if(info2.mime==mime)return info2;if(info2.mimes){for(var j=0;j<info2.mimes.length;j++)if(info2.mimes[j]==mime)return info2}}if(/\+xml$/.test(mime))return CodeMirror2.findModeByMIME("application/xml");if(/\+json$/.test(mime))return CodeMirror2.findModeByMIME("application/json")},CodeMirror2.findModeByExtension=function(ext){ext=ext.toLowerCase();for(var i2=0;i2<CodeMirror2.modeInfo.length;i2++){var info2=CodeMirror2.modeInfo[i2];if(info2.ext){for(var j=0;j<info2.ext.length;j++)if(info2.ext[j]==ext)return info2}}},CodeMirror2.findModeByFileName=function(filename){for(var i2=0;i2<CodeMirror2.modeInfo.length;i2++){var info2=CodeMirror2.modeInfo[i2];if(info2.file&&info2.file.test(filename))return info2}var dot=filename.lastIndexOf("."),ext=dot>-1&&filename.substring(dot+1,filename.length);if(ext)return CodeMirror2.findModeByExtension(ext)},CodeMirror2.findModeByName=function(name){name=name.toLowerCase();for(var i2=0;i2<CodeMirror2.modeInfo.length;i2++){var info2=CodeMirror2.modeInfo[i2];if(info2.name.toLowerCase()==name)return info2;if(info2.alias){for(var j=0;j<info2.alias.length;j++)if(info2.alias[j].toLowerCase()==name)return info2}}}})}()),meta.exports}var hasRequiredMarkdown;function requireMarkdown(){return hasRequiredMarkdown||(hasRequiredMarkdown=1,function(module2,exports3){(function(mod){mod(requireCodemirror(),requireXml(),requireMeta())})(function(CodeMirror2){CodeMirror2.defineMode("markdown",function(cmCfg,modeCfg){var htmlMode=CodeMirror2.getMode(cmCfg,"text/html"),htmlModeMissing=htmlMode.name=="null";function getMode(name){if(CodeMirror2.findModeByName){var found=CodeMirror2.findModeByName(name);found&&(name=found.mime||found.mimes[0])}var mode2=CodeMirror2.getMode(cmCfg,name);return mode2.name=="null"?null:mode2}modeCfg.highlightFormatting===void 0&&(modeCfg.highlightFormatting=!1),modeCfg.maxBlockquoteDepth===void 0&&(modeCfg.maxBlockquoteDepth=0),modeCfg.taskLists===void 0&&(modeCfg.taskLists=!1),modeCfg.strikethrough===void 0&&(modeCfg.strikethrough=!1),modeCfg.emoji===void 0&&(modeCfg.emoji=!1),modeCfg.fencedCodeBlockHighlighting===void 0&&(modeCfg.fencedCodeBlockHighlighting=!0),modeCfg.fencedCodeBlockDefaultMode===void 0&&(modeCfg.fencedCodeBlockDefaultMode="text/plain"),modeCfg.xml===void 0&&(modeCfg.xml=!0),modeCfg.tokenTypeOverrides===void 0&&(modeCfg.tokenTypeOverrides={});var tokenTypes={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 tokenType in tokenTypes)tokenTypes.hasOwnProperty(tokenType)&&modeCfg.tokenTypeOverrides[tokenType]&&(tokenTypes[tokenType]=modeCfg.tokenTypeOverrides[tokenType]);var hrRE=/^([*\-_])(?:\s*\1){2,}\s*$/,listRE=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,taskListRE=/^\[(x| )\](?=\s)/i,atxHeaderRE=modeCfg.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,setextHeaderRE=/^ {0,3}(?:\={1,}|-{2,})\s*$/,textRE=/^[^#!\[\]*_\\<>` "'(~:]+/,fencedCodeRE=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,linkDefRE=/^\s*\[[^\]]+?\]:.*$/,punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,expandedTab=" ";function switchInline(stream,state,f){return state.f=state.inline=f,f(stream,state)}function switchBlock(stream,state,f){return state.f=state.block=f,f(stream,state)}function lineIsEmpty(line){return!line||!/\S/.test(line.string)}function blankLine(state){if(state.linkTitle=!1,state.linkHref=!1,state.linkText=!1,state.em=!1,state.strong=!1,state.strikethrough=!1,state.quote=0,state.indentedCode=!1,state.f==htmlBlock){var exit=htmlModeMissing;if(!exit){var inner=CodeMirror2.innerMode(htmlMode,state.htmlState);exit=inner.mode.name=="xml"&&inner.state.tagStart===null&&!inner.state.context&&inner.state.tokenize.isInText}exit&&(state.f=inlineNormal,state.block=blockNormal,state.htmlState=null)}return state.trailingSpace=0,state.trailingSpaceNewLine=!1,state.prevLine=state.thisLine,state.thisLine={stream:null},null}function blockNormal(stream,state){var firstTokenOnLine=stream.column()===state.indentation,prevLineLineIsEmpty=lineIsEmpty(state.prevLine.stream),prevLineIsIndentedCode=state.indentedCode,prevLineIsHr=state.prevLine.hr,prevLineIsList=state.list!==!1,maxNonCodeIndentation=(state.listStack[state.listStack.length-1]||0)+3;state.indentedCode=!1;var lineIndentation=state.indentation;if(state.indentationDiff===null&&(state.indentationDiff=state.indentation,prevLineIsList)){for(state.list=null;lineIndentation<state.listStack[state.listStack.length-1];)state.listStack.pop(),state.listStack.length?state.indentation=state.listStack[state.listStack.length-1]:state.list=!1;state.list!==!1&&(state.indentationDiff=lineIndentation-state.listStack[state.listStack.length-1])}var allowsInlineContinuation=!prevLineLineIsEmpty&&!prevLineIsHr&&!state.prevLine.header&&(!prevLineIsList||!prevLineIsIndentedCode)&&!state.prevLine.fencedCodeEnd,isHr=(state.list===!1||prevLineIsHr||prevLineLineIsEmpty)&&state.indentation<=maxNonCodeIndentation&&stream.match(hrRE),match=null;if(state.indentationDiff>=4&&(prevLineIsIndentedCode||state.prevLine.fencedCodeEnd||state.prevLine.header||prevLineLineIsEmpty))return stream.skipToEnd(),state.indentedCode=!0,tokenTypes.code;if(stream.eatSpace())return null;if(firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(atxHeaderRE))&&match[1].length<=6)return state.quote=0,state.header=match[1].length,state.thisLine.header=!0,modeCfg.highlightFormatting&&(state.formatting="header"),state.f=state.inline,getType(state);if(state.indentation<=maxNonCodeIndentation&&stream.eat(">"))return state.quote=firstTokenOnLine?1:state.quote+1,modeCfg.highlightFormatting&&(state.formatting="quote"),stream.eatSpace(),getType(state);if(!isHr&&!state.setext&&firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(listRE))){var listType=match[1]?"ol":"ul";return state.indentation=lineIndentation+stream.current().length,state.list=!0,state.quote=0,state.listStack.push(state.indentation),state.em=!1,state.strong=!1,state.code=!1,state.strikethrough=!1,modeCfg.taskLists&&stream.match(taskListRE,!1)&&(state.taskList=!0),state.f=state.inline,modeCfg.highlightFormatting&&(state.formatting=["list","list-"+listType]),getType(state)}else{if(firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(fencedCodeRE,!0)))return state.quote=0,state.fencedEndRE=new RegExp(match[1]+"+ *$"),state.localMode=modeCfg.fencedCodeBlockHighlighting&&getMode(match[2]||modeCfg.fencedCodeBlockDefaultMode),state.localMode&&(state.localState=CodeMirror2.startState(state.localMode)),state.f=state.block=local,modeCfg.highlightFormatting&&(state.formatting="code-block"),state.code=-1,getType(state);if(state.setext||(!allowsInlineContinuation||!prevLineIsList)&&!state.quote&&state.list===!1&&!state.code&&!isHr&&!linkDefRE.test(stream.string)&&(match=stream.lookAhead(1))&&(match=match.match(setextHeaderRE)))return state.setext?(state.header=state.setext,state.setext=0,stream.skipToEnd(),modeCfg.highlightFormatting&&(state.formatting="header")):(state.header=match[0].charAt(0)=="="?1:2,state.setext=state.header),state.thisLine.header=!0,state.f=state.inline,getType(state);if(isHr)return stream.skipToEnd(),state.hr=!0,state.thisLine.hr=!0,tokenTypes.hr;if(stream.peek()==="[")return switchInline(stream,state,footnoteLink)}return switchInline(stream,state,state.inline)}function htmlBlock(stream,state){var style=htmlMode.token(stream,state.htmlState);if(!htmlModeMissing){var inner=CodeMirror2.innerMode(htmlMode,state.htmlState);(inner.mode.name=="xml"&&inner.state.tagStart===null&&!inner.state.context&&inner.state.tokenize.isInText||state.md_inside&&stream.current().indexOf(">")>-1)&&(state.f=inlineNormal,state.block=blockNormal,state.htmlState=null)}return style}function local(stream,state){var currListInd=state.listStack[state.listStack.length-1]||0,hasExitedList=state.indentation<currListInd,maxFencedEndInd=currListInd+3;if(state.fencedEndRE&&state.indentation<=maxFencedEndInd&&(hasExitedList||stream.match(state.fencedEndRE))){modeCfg.highlightFormatting&&(state.formatting="code-block");var returnType;return hasExitedList||(returnType=getType(state)),state.localMode=state.localState=null,state.block=blockNormal,state.f=inlineNormal,state.fencedEndRE=null,state.code=0,state.thisLine.fencedCodeEnd=!0,hasExitedList?switchBlock(stream,state,state.block):returnType}else return state.localMode?state.localMode.token(stream,state.localState):(stream.skipToEnd(),tokenTypes.code)}function getType(state){var styles=[];if(state.formatting){styles.push(tokenTypes.formatting),typeof state.formatting=="string"&&(state.formatting=[state.formatting]);for(var i=0;i<state.formatting.length;i++)styles.push(tokenTypes.formatting+"-"+state.formatting[i]),state.formatting[i]==="header"&&styles.push(tokenTypes.formatting+"-"+state.formatting[i]+"-"+state.header),state.formatting[i]==="quote"&&(!modeCfg.maxBlockquoteDepth||modeCfg.maxBlockquoteDepth>=state.quote?styles.push(tokenTypes.formatting+"-"+state.formatting[i]+"-"+state.quote):styles.push("error"))}if(state.taskOpen)return styles.push("meta"),styles.length?styles.join(" "):null;if(state.taskClosed)return styles.push("property"),styles.length?styles.join(" "):null;if(state.linkHref?styles.push(tokenTypes.linkHref,"url"):(state.strong&&styles.push(tokenTypes.strong),state.em&&styles.push(tokenTypes.em),state.strikethrough&&styles.push(tokenTypes.strikethrough),state.emoji&&styles.push(tokenTypes.emoji),state.linkText&&styles.push(tokenTypes.linkText),state.code&&styles.push(tokenTypes.code),state.image&&styles.push(tokenTypes.image),state.imageAltText&&styles.push(tokenTypes.imageAltText,"link"),state.imageMarker&&styles.push(tokenTypes.imageMarker)),state.header&&styles.push(tokenTypes.header,tokenTypes.header+"-"+state.header),state.quote&&(styles.push(tokenTypes.quote),!modeCfg.maxBlockquoteDepth||modeCfg.maxBlockquoteDepth>=state.quote?styles.push(tokenTypes.quote+"-"+state.quote):styles.push(tokenTypes.quote+"-"+modeCfg.maxBlockquoteDepth)),state.list!==!1){var listMod=(state.listStack.length-1)%3;listMod?listMod===1?styles.push(tokenTypes.list2):styles.push(tokenTypes.list3):styles.push(tokenTypes.list1)}return state.trailingSpaceNewLine?styles.push("trailing-space-new-line"):state.trailingSpace&&styles.push("trailing-space-"+(state.trailingSpace%2?"a":"b")),styles.length?styles.join(" "):null}function handleText(stream,state){if(stream.match(textRE,!0))return getType(state)}function inlineNormal(stream,state){var style=state.text(stream,state);if(typeof style<"u")return style;if(state.list)return state.list=null,getType(state);if(state.taskList){var taskOpen=stream.match(taskListRE,!0)[1]===" ";return taskOpen?state.taskOpen=!0:state.taskClosed=!0,modeCfg.highlightFormatting&&(state.formatting="task"),state.taskList=!1,getType(state)}if(state.taskOpen=!1,state.taskClosed=!1,state.header&&stream.match(/^#+$/,!0))return modeCfg.highlightFormatting&&(state.formatting="header"),getType(state);var ch=stream.next();if(state.linkTitle){state.linkTitle=!1;var matchCh=ch;ch==="("&&(matchCh=")"),matchCh=(matchCh+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var regex="^\\s*(?:[^"+matchCh+"\\\\]+|\\\\\\\\|\\\\.)"+matchCh;if(stream.match(new RegExp(regex),!0))return tokenTypes.linkHref}if(ch==="`"){var previousFormatting=state.formatting;modeCfg.highlightFormatting&&(state.formatting="code"),stream.eatWhile("`");var count=stream.current().length;if(state.code==0&&(!state.quote||count==1))return state.code=count,getType(state);if(count==state.code){var t=getType(state);return state.code=0,t}else return state.formatting=previousFormatting,getType(state)}else if(state.code)return getType(state);if(ch==="\\"&&(stream.next(),modeCfg.highlightFormatting)){var type=getType(state),formattingEscape=tokenTypes.formatting+"-escape";return type?type+" "+formattingEscape:formattingEscape}if(ch==="!"&&stream.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return state.imageMarker=!0,state.image=!0,modeCfg.highlightFormatting&&(state.formatting="image"),getType(state);if(ch==="["&&state.imageMarker&&stream.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return state.imageMarker=!1,state.imageAltText=!0,modeCfg.highlightFormatting&&(state.formatting="image"),getType(state);if(ch==="]"&&state.imageAltText){modeCfg.highlightFormatting&&(state.formatting="image");var type=getType(state);return state.imageAltText=!1,state.image=!1,state.inline=state.f=linkHref,type}if(ch==="["&&!state.image)return state.linkText&&stream.match(/^.*?\]/)||(state.linkText=!0,modeCfg.highlightFormatting&&(state.formatting="link")),getType(state);if(ch==="]"&&state.linkText){modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return state.linkText=!1,state.inline=state.f=stream.match(/\(.*?\)| ?\[.*?\]/,!1)?linkHref:inlineNormal,type}if(ch==="<"&&stream.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){state.f=state.inline=linkInline,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkInline}if(ch==="<"&&stream.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){state.f=state.inline=linkInline,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkEmail}if(modeCfg.xml&&ch==="<"&&stream.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var end=stream.string.indexOf(">",stream.pos);if(end!=-1){var atts=stream.string.substring(stream.start,end);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(atts)&&(state.md_inside=!0)}return stream.backUp(1),state.htmlState=CodeMirror2.startState(htmlMode),switchBlock(stream,state,htmlBlock)}if(modeCfg.xml&&ch==="<"&&stream.match(/^\/\w*?>/))return state.md_inside=!1,"tag";if(ch==="*"||ch==="_"){for(var len=1,before=stream.pos==1?" ":stream.string.charAt(stream.pos-2);len<3&&stream.eat(ch);)len++;var after=stream.peek()||" ",leftFlanking=!/\s/.test(after)&&(!punctuation.test(after)||/\s/.test(before)||punctuation.test(before)),rightFlanking=!/\s/.test(before)&&(!punctuation.test(before)||/\s/.test(after)||punctuation.test(after)),setEm=null,setStrong=null;if(len%2&&(!state.em&&leftFlanking&&(ch==="*"||!rightFlanking||punctuation.test(before))?setEm=!0:state.em==ch&&rightFlanking&&(ch==="*"||!leftFlanking||punctuation.test(after))&&(setEm=!1)),len>1&&(!state.strong&&leftFlanking&&(ch==="*"||!rightFlanking||punctuation.test(before))?setStrong=!0:state.strong==ch&&rightFlanking&&(ch==="*"||!leftFlanking||punctuation.test(after))&&(setStrong=!1)),setStrong!=null||setEm!=null){modeCfg.highlightFormatting&&(state.formatting=setEm==null?"strong":setStrong==null?"em":"strong em"),setEm===!0&&(state.em=ch),setStrong===!0&&(state.strong=ch);var t=getType(state);return setEm===!1&&(state.em=!1),setStrong===!1&&(state.strong=!1),t}}else if(ch===" "&&(stream.eat("*")||stream.eat("_"))){if(stream.peek()===" ")return getType(state);stream.backUp(1)}if(modeCfg.strikethrough){if(ch==="~"&&stream.eatWhile(ch)){if(state.strikethrough){modeCfg.highlightFormatting&&(state.formatting="strikethrough");var t=getType(state);return state.strikethrough=!1,t}else if(stream.match(/^[^\s]/,!1))return state.strikethrough=!0,modeCfg.highlightFormatting&&(state.formatting="strikethrough"),getType(state)}else if(ch===" "&&stream.match("~~",!0)){if(stream.peek()===" ")return getType(state);stream.backUp(2)}}if(modeCfg.emoji&&ch===":"&&stream.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){state.emoji=!0,modeCfg.highlightFormatting&&(state.formatting="emoji");var retType=getType(state);return state.emoji=!1,retType}return ch===" "&&(stream.match(/^ +$/,!1)?state.trailingSpace++:state.trailingSpace&&(state.trailingSpaceNewLine=!0)),getType(state)}function linkInline(stream,state){var ch=stream.next();if(ch===">"){state.f=state.inline=inlineNormal,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkInline}return stream.match(/^[^>]+/,!0),tokenTypes.linkInline}function linkHref(stream,state){if(stream.eatSpace())return null;var ch=stream.next();return ch==="("||ch==="["?(state.f=state.inline=getLinkHrefInside(ch==="("?")":"]"),modeCfg.highlightFormatting&&(state.formatting="link-string"),state.linkHref=!0,getType(state)):"error"}var linkRE={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function getLinkHrefInside(endChar){return function(stream,state){var ch=stream.next();if(ch===endChar){state.f=state.inline=inlineNormal,modeCfg.highlightFormatting&&(state.formatting="link-string");var returnState=getType(state);return state.linkHref=!1,returnState}return stream.match(linkRE[endChar]),state.linkHref=!0,getType(state)}}function footnoteLink(stream,state){return stream.match(/^([^\]\\]|\\.)*\]:/,!1)?(state.f=footnoteLinkInside,stream.next(),modeCfg.highlightFormatting&&(state.formatting="link"),state.linkText=!0,getType(state)):switchInline(stream,state,inlineNormal)}function footnoteLinkInside(stream,state){if(stream.match("]:",!0)){state.f=state.inline=footnoteUrl,modeCfg.highlightFormatting&&(state.formatting="link");var returnType=getType(state);return state.linkText=!1,returnType}return stream.match(/^([^\]\\]|\\.)+/,!0),tokenTypes.linkText}function footnoteUrl(stream,state){return stream.eatSpace()?null:(stream.match(/^[^\s]+/,!0),stream.peek()===void 0?state.linkTitle=!0:stream.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),state.f=state.inline=inlineNormal,tokenTypes.linkHref+" url")}var mode={startState:function(){return{f:blockNormal,prevLine:{stream:null},thisLine:{stream:null},block:blockNormal,htmlState:null,indentation:0,inline:inlineNormal,text:handleText,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&&CodeMirror2.copyState(htmlMode,s.htmlState),indentation:s.indentation,localMode:s.localMode,localState:s.localMode?CodeMirror2.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(stream,state){if(state.formatting=!1,stream!=state.thisLine.stream){if(state.header=0,state.hr=!1,stream.match(/^\s*$/,!0))return blankLine(state),null;if(state.prevLine=state.thisLine,state.thisLine={stream},state.taskList=!1,state.trailingSpace=0,state.trailingSpaceNewLine=!1,!state.localState&&(state.f=state.block,state.f!=htmlBlock)){var indentation=stream.match(/^\s*/,!0)[0].replace(/\t/g,expandedTab).length;if(state.indentation=indentation,state.indentationDiff=null,indentation>0)return null}}return state.f(stream,state)},innerMode:function(state){return state.block==htmlBlock?{state:state.htmlState,mode:htmlMode}:state.localState?{state:state.localState,mode:state.localMode}:{state,mode}},indent:function(state,textAfter,line){return state.block==htmlBlock&&htmlMode.indent?htmlMode.indent(state.htmlState,textAfter,line):state.localState&&state.localMode.indent?state.localMode.indent(state.localState,textAfter,line):CodeMirror2.Pass},blankLine,getType,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return mode},"xml"),CodeMirror2.defineMIME("text/markdown","markdown"),CodeMirror2.defineMIME("text/x-markdown","markdown")})}()),markdown.exports}var overlay={exports:{}},hasRequiredOverlay;function requireOverlay(){return hasRequiredOverlay||(hasRequiredOverlay=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.overlayMode=function(base,overlay2,combine){return{startState:function(){return{base:CodeMirror2.startState(base),overlay:CodeMirror2.startState(overlay2),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(state){return{base:CodeMirror2.copyState(base,state.base),overlay:CodeMirror2.copyState(overlay2,state.overlay),basePos:state.basePos,baseCur:null,overlayPos:state.overlayPos,overlayCur:null}},token:function(stream,state){return(stream!=state.streamSeen||Math.min(state.basePos,state.overlayPos)<stream.start)&&(state.streamSeen=stream,state.basePos=state.overlayPos=stream.start),stream.start==state.basePos&&(state.baseCur=base.token(stream,state.base),state.basePos=stream.pos),stream.start==state.overlayPos&&(stream.pos=stream.start,state.overlayCur=overlay2.token(stream,state.overlay),state.overlayPos=stream.pos),stream.pos=Math.min(state.basePos,state.overlayPos),state.overlayCur==null?state.baseCur:state.baseCur!=null&&state.overlay.combineTokens||combine&&state.overlay.combineTokens==null?state.baseCur+" "+state.overlayCur:state.overlayCur},indent:base.indent&&function(state,textAfter,line){return base.indent(state.base,textAfter,line)},electricChars:base.electricChars,innerMode:function(state){return{state:state.base,mode:base}},blankLine:function(state){var baseToken,overlayToken;return base.blankLine&&(baseToken=base.blankLine(state.base)),overlay2.blankLine&&(overlayToken=overlay2.blankLine(state.overlay)),overlayToken==null?baseToken:combine&&baseToken!=null?baseToken+" "+overlayToken:overlayToken}}}})}()),overlay.exports}(function(module2,exports3){(function(mod){mod(requireCodemirror(),requireMarkdown(),requireOverlay())})(function(CodeMirror2){var urlRE=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;CodeMirror2.defineMode("gfm",function(config,modeConfig){var codeDepth=0;function blankLine(state){return state.code=!1,null}var gfmOverlay={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(s){return{code:s.code,codeBlock:s.codeBlock,ateSpace:s.ateSpace}},token:function(stream,state){if(state.combineTokens=null,state.codeBlock)return stream.match(/^```+/)?(state.codeBlock=!1,null):(stream.skipToEnd(),null);if(stream.sol()&&(state.code=!1),stream.sol()&&stream.match(/^```+/))return stream.skipToEnd(),state.codeBlock=!0,null;if(stream.peek()==="`"){stream.next();var before=stream.pos;stream.eatWhile("`");var difference=1+stream.pos-before;return state.code?difference===codeDepth&&(state.code=!1):(codeDepth=difference,state.code=!0),null}else if(state.code)return stream.next(),null;if(stream.eatSpace())return state.ateSpace=!0,null;if((stream.sol()||state.ateSpace)&&(state.ateSpace=!1,modeConfig.gitHubSpice!==!1)){if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return state.combineTokens=!0,"link";if(stream.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return state.combineTokens=!0,"link"}return stream.match(urlRE)&&stream.string.slice(stream.start-2,stream.start)!="]("&&(stream.start==0||/\W/.test(stream.string.charAt(stream.start-1)))?(state.combineTokens=!0,"link"):(stream.next(),null)},blankLine},markdownConfig={taskLists:!0,strikethrough:!0,emoji:!0};for(var attr in modeConfig)markdownConfig[attr]=modeConfig[attr];return markdownConfig.name="markdown",CodeMirror2.overlayMode(CodeMirror2.getMode(config,markdownConfig),gfmOverlay)},"markdown"),CodeMirror2.defineMIME("text/x-gfm","gfm")})})();var javascript={exports:{}},hasRequiredJavascript;function requireJavascript(){return hasRequiredJavascript||(hasRequiredJavascript=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("javascript",function(config,parserConfig){var indentUnit=config.indentUnit,statementIndent=parserConfig.statementIndent,jsonldMode=parserConfig.jsonld,jsonMode=parserConfig.json||jsonldMode,trackScope=parserConfig.trackScope!==!1,isTS=parserConfig.typescript,wordRE=parserConfig.wordCharacters||/[\w$\xa1-\uffff]/,keywords=function(){function kw(type2){return{type:type2,style:"keyword"}}var A=kw("keyword a"),B=kw("keyword b"),C=kw("keyword c"),D=kw("keyword d"),operator=kw("operator"),atom={type:"atom",style:"atom"};return{if:kw("if"),while:A,with:A,else:B,do:B,try:B,finally:B,return:D,break:D,continue:D,new:kw("new"),delete:C,void:C,throw:C,debugger:kw("debugger"),var:kw("var"),const:kw("var"),let:kw("var"),function:kw("function"),catch:kw("catch"),for:kw("for"),switch:kw("switch"),case:kw("case"),default:kw("default"),in:operator,typeof:operator,instanceof:operator,true:atom,false:atom,null:atom,undefined:atom,NaN:atom,Infinity:atom,this:kw("this"),class:kw("class"),super:kw("atom"),yield:C,export:kw("export"),import:kw("import"),extends:C,await:C}}(),isOperatorChar=/[+\-*&%=<>!?|~^@]/,isJsonldKeyword=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function readRegexp(stream){for(var escaped=!1,next,inSet=!1;(next=stream.next())!=null;){if(!escaped){if(next=="/"&&!inSet)return;next=="["?inSet=!0:inSet&&next=="]"&&(inSet=!1)}escaped=!escaped&&next=="\\"}}var type,content;function ret(tp,style,cont2){return type=tp,content=cont2,style}function tokenBase(stream,state){var ch=stream.next();if(ch=='"'||ch=="'")return state.tokenize=tokenString(ch),state.tokenize(stream,state);if(ch=="."&&stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return ret("number","number");if(ch=="."&&stream.match(".."))return ret("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ch))return ret(ch);if(ch=="="&&stream.eat(">"))return ret("=>","operator");if(ch=="0"&&stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return ret("number","number");if(/\d/.test(ch))return stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),ret("number","number");if(ch=="/")return stream.eat("*")?(state.tokenize=tokenComment,tokenComment(stream,state)):stream.eat("/")?(stream.skipToEnd(),ret("comment","comment")):expressionAllowed(stream,state,1)?(readRegexp(stream),stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),ret("regexp","string-2")):(stream.eat("="),ret("operator","operator",stream.current()));if(ch=="`")return state.tokenize=tokenQuasi,tokenQuasi(stream,state);if(ch=="#"&&stream.peek()=="!")return stream.skipToEnd(),ret("meta","meta");if(ch=="#"&&stream.eatWhile(wordRE))return ret("variable","property");if(ch=="<"&&stream.match("!--")||ch=="-"&&stream.match("->")&&!/\S/.test(stream.string.slice(0,stream.start)))return stream.skipToEnd(),ret("comment","comment");if(isOperatorChar.test(ch))return(ch!=">"||!state.lexical||state.lexical.type!=">")&&(stream.eat("=")?(ch=="!"||ch=="=")&&stream.eat("="):/[<>*+\-|&?]/.test(ch)&&(stream.eat(ch),ch==">"&&stream.eat(ch))),ch=="?"&&stream.eat(".")?ret("."):ret("operator","operator",stream.current());if(wordRE.test(ch)){stream.eatWhile(wordRE);var word=stream.current();if(state.lastType!="."){if(keywords.propertyIsEnumerable(word)){var kw=keywords[word];return ret(kw.type,kw.style,word)}if(word=="async"&&stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return ret("async","keyword",word)}return ret("variable","variable",word)}}function tokenString(quote){return function(stream,state){var escaped=!1,next;if(jsonldMode&&stream.peek()=="@"&&stream.match(isJsonldKeyword))return state.tokenize=tokenBase,ret("jsonld-keyword","meta");for(;(next=stream.next())!=null&&!(next==quote&&!escaped);)escaped=!escaped&&next=="\\";return escaped||(state.tokenize=tokenBase),ret("string","string")}}function tokenComment(stream,state){for(var maybeEnd=!1,ch;ch=stream.next();){if(ch=="/"&&maybeEnd){state.tokenize=tokenBase;break}maybeEnd=ch=="*"}return ret("comment","comment")}function tokenQuasi(stream,state){for(var escaped=!1,next;(next=stream.next())!=null;){if(!escaped&&(next=="`"||next=="$"&&stream.eat("{"))){state.tokenize=tokenBase;break}escaped=!escaped&&next=="\\"}return ret("quasi","string-2",stream.current())}var brackets="([{}])";function findFatArrow(stream,state){state.fatArrowAt&&(state.fatArrowAt=null);var arrow=stream.string.indexOf("=>",stream.start);if(!(arrow<0)){if(isTS){var m=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start,arrow));m&&(arrow=m.index)}for(var depth=0,sawSomething=!1,pos=arrow-1;pos>=0;--pos){var ch=stream.string.charAt(pos),bracket=brackets.indexOf(ch);if(bracket>=0&&bracket<3){if(!depth){++pos;break}if(--depth==0){ch=="("&&(sawSomething=!0);break}}else if(bracket>=3&&bracket<6)++depth;else if(wordRE.test(ch))sawSomething=!0;else if(/["'\/`]/.test(ch))for(;;--pos){if(pos==0)return;var next=stream.string.charAt(pos-1);if(next==ch&&stream.string.charAt(pos-2)!="\\"){pos--;break}}else if(sawSomething&&!depth){++pos;break}}sawSomething&&!depth&&(state.fatArrowAt=pos)}}var atomicTypes={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function JSLexical(indented,column,type2,align,prev,info){this.indented=indented,this.column=column,this.type=type2,this.prev=prev,this.info=info,align!=null&&(this.align=align)}function inScope(state,varname){if(!trackScope)return!1;for(var v=state.localVars;v;v=v.next)if(v.name==varname)return!0;for(var cx2=state.context;cx2;cx2=cx2.prev)for(var v=cx2.vars;v;v=v.next)if(v.name==varname)return!0}function parseJS(state,style,type2,content2,stream){var cc=state.cc;for(cx.state=state,cx.stream=stream,cx.marked=null,cx.cc=cc,cx.style=style,state.lexical.hasOwnProperty("align")||(state.lexical.align=!0);;){var combinator=cc.length?cc.pop():jsonMode?expression:statement;if(combinator(type2,content2)){for(;cc.length&&cc[cc.length-1].lex;)cc.pop()();return cx.marked?cx.marked:type2=="variable"&&inScope(state,content2)?"variable-2":style}}}var cx={state:null,marked:null,cc:null};function pass(){for(var i=arguments.length-1;i>=0;i--)cx.cc.push(arguments[i])}function cont(){return pass.apply(null,arguments),!0}function inList(name,list){for(var v=list;v;v=v.next)if(v.name==name)return!0;return!1}function register(varname){var state=cx.state;if(cx.marked="def",!!trackScope){if(state.context){if(state.lexical.info=="var"&&state.context&&state.context.block){var newContext=registerVarScoped(varname,state.context);if(newContext!=null){state.context=newContext;return}}else if(!inList(varname,state.localVars)){state.localVars=new Var(varname,state.localVars);return}}parserConfig.globalVars&&!inList(varname,state.globalVars)&&(state.globalVars=new Var(varname,state.globalVars))}}function registerVarScoped(varname,context){if(context)if(context.block){var inner=registerVarScoped(varname,context.prev);return inner?inner==context.prev?context:new Context(inner,context.vars,!0):null}else return inList(varname,context.vars)?context:new Context(context.prev,new Var(varname,context.vars),!1);else return null}function isModifier(name){return name=="public"||name=="private"||name=="protected"||name=="abstract"||name=="readonly"}function Context(prev,vars,block2){this.prev=prev,this.vars=vars,this.block=block2}function Var(name,next){this.name=name,this.next=next}var defaultVars=new Var("this",new Var("arguments",null));function pushcontext(){cx.state.context=new Context(cx.state.context,cx.state.localVars,!1),cx.state.localVars=defaultVars}function pushblockcontext(){cx.state.context=new Context(cx.state.context,cx.state.localVars,!0),cx.state.localVars=null}pushcontext.lex=pushblockcontext.lex=!0;function popcontext(){cx.state.localVars=cx.state.context.vars,cx.state.context=cx.state.context.prev}popcontext.lex=!0;function pushlex(type2,info){var result=function(){var state=cx.state,indent=state.indented;if(state.lexical.type=="stat")indent=state.lexical.indented;else for(var outer=state.lexical;outer&&outer.type==")"&&outer.align;outer=outer.prev)indent=outer.indented;state.lexical=new JSLexical(indent,cx.stream.column(),type2,null,state.lexical,info)};return result.lex=!0,result}function poplex(){var state=cx.state;state.lexical.prev&&(state.lexical.type==")"&&(state.indented=state.lexical.indented),state.lexical=state.lexical.prev)}poplex.lex=!0;function expect(wanted){function exp(type2){return type2==wanted?cont():wanted==";"||type2=="}"||type2==")"||type2=="]"?pass():cont(exp)}return exp}function statement(type2,value){return type2=="var"?cont(pushlex("vardef",value),vardef,expect(";"),poplex):type2=="keyword a"?cont(pushlex("form"),parenExpr,statement,poplex):type2=="keyword b"?cont(pushlex("form"),statement,poplex):type2=="keyword d"?cx.stream.match(/^\s*$/,!1)?cont():cont(pushlex("stat"),maybeexpression,expect(";"),poplex):type2=="debugger"?cont(expect(";")):type2=="{"?cont(pushlex("}"),pushblockcontext,block,poplex,popcontext):type2==";"?cont():type2=="if"?(cx.state.lexical.info=="else"&&cx.state.cc[cx.state.cc.length-1]==poplex&&cx.state.cc.pop()(),cont(pushlex("form"),parenExpr,statement,poplex,maybeelse)):type2=="function"?cont(functiondef):type2=="for"?cont(pushlex("form"),pushblockcontext,forspec,statement,popcontext,poplex):type2=="class"||isTS&&value=="interface"?(cx.marked="keyword",cont(pushlex("form",type2=="class"?type2:value),className,poplex)):type2=="variable"?isTS&&value=="declare"?(cx.marked="keyword",cont(statement)):isTS&&(value=="module"||value=="enum"||value=="type")&&cx.stream.match(/^\s*\w/,!1)?(cx.marked="keyword",value=="enum"?cont(enumdef):value=="type"?cont(typename,expect("operator"),typeexpr,expect(";")):cont(pushlex("form"),pattern,expect("{"),pushlex("}"),block,poplex,poplex)):isTS&&value=="namespace"?(cx.marked="keyword",cont(pushlex("form"),expression,statement,poplex)):isTS&&value=="abstract"?(cx.marked="keyword",cont(statement)):cont(pushlex("stat"),maybelabel):type2=="switch"?cont(pushlex("form"),parenExpr,expect("{"),pushlex("}","switch"),pushblockcontext,block,poplex,poplex,popcontext):type2=="case"?cont(expression,expect(":")):type2=="default"?cont(expect(":")):type2=="catch"?cont(pushlex("form"),pushcontext,maybeCatchBinding,statement,poplex,popcontext):type2=="export"?cont(pushlex("stat"),afterExport,poplex):type2=="import"?cont(pushlex("stat"),afterImport,poplex):type2=="async"?cont(statement):value=="@"?cont(expression,statement):pass(pushlex("stat"),expression,expect(";"),poplex)}function maybeCatchBinding(type2){if(type2=="(")return cont(funarg,expect(")"))}function expression(type2,value){return expressionInner(type2,value,!1)}function expressionNoComma(type2,value){return expressionInner(type2,value,!0)}function parenExpr(type2){return type2!="("?pass():cont(pushlex(")"),maybeexpression,expect(")"),poplex)}function expressionInner(type2,value,noComma){if(cx.state.fatArrowAt==cx.stream.start){var body=noComma?arrowBodyNoComma:arrowBody;if(type2=="(")return cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,expect("=>"),body,popcontext);if(type2=="variable")return pass(pushcontext,pattern,expect("=>"),body,popcontext)}var maybeop=noComma?maybeoperatorNoComma:maybeoperatorComma;return atomicTypes.hasOwnProperty(type2)?cont(maybeop):type2=="function"?cont(functiondef,maybeop):type2=="class"||isTS&&value=="interface"?(cx.marked="keyword",cont(pushlex("form"),classExpression,poplex)):type2=="keyword c"||type2=="async"?cont(noComma?expressionNoComma:expression):type2=="("?cont(pushlex(")"),maybeexpression,expect(")"),poplex,maybeop):type2=="operator"||type2=="spread"?cont(noComma?expressionNoComma:expression):type2=="["?cont(pushlex("]"),arrayLiteral,poplex,maybeop):type2=="{"?contCommasep(objprop,"}",null,maybeop):type2=="quasi"?pass(quasi,maybeop):type2=="new"?cont(maybeTarget(noComma)):cont()}function maybeexpression(type2){return type2.match(/[;\}\)\],]/)?pass():pass(expression)}function maybeoperatorComma(type2,value){return type2==","?cont(maybeexpression):maybeoperatorNoComma(type2,value,!1)}function maybeoperatorNoComma(type2,value,noComma){var me=noComma==!1?maybeoperatorComma:maybeoperatorNoComma,expr=noComma==!1?expression:expressionNoComma;if(type2=="=>")return cont(pushcontext,noComma?arrowBodyNoComma:arrowBody,popcontext);if(type2=="operator")return/\+\+|--/.test(value)||isTS&&value=="!"?cont(me):isTS&&value=="<"&&cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?cont(pushlex(">"),commasep(typeexpr,">"),poplex,me):value=="?"?cont(expression,expect(":"),expr):cont(expr);if(type2=="quasi")return pass(quasi,me);if(type2!=";"){if(type2=="(")return contCommasep(expressionNoComma,")","call",me);if(type2==".")return cont(property,me);if(type2=="[")return cont(pushlex("]"),maybeexpression,expect("]"),poplex,me);if(isTS&&value=="as")return cx.marked="keyword",cont(typeexpr,me);if(type2=="regexp")return cx.state.lastType=cx.marked="operator",cx.stream.backUp(cx.stream.pos-cx.stream.start-1),cont(expr)}}function quasi(type2,value){return type2!="quasi"?pass():value.slice(value.length-2)!="${"?cont(quasi):cont(maybeexpression,continueQuasi)}function continueQuasi(type2){if(type2=="}")return cx.marked="string-2",cx.state.tokenize=tokenQuasi,cont(quasi)}function arrowBody(type2){return findFatArrow(cx.stream,cx.state),pass(type2=="{"?statement:expression)}function arrowBodyNoComma(type2){return findFatArrow(cx.stream,cx.state),pass(type2=="{"?statement:expressionNoComma)}function maybeTarget(noComma){return function(type2){return type2=="."?cont(noComma?targetNoComma:target):type2=="variable"&&isTS?cont(maybeTypeArgs,noComma?maybeoperatorNoComma:maybeoperatorComma):pass(noComma?expressionNoComma:expression)}}function target(_,value){if(value=="target")return cx.marked="keyword",cont(maybeoperatorComma)}function targetNoComma(_,value){if(value=="target")return cx.marked="keyword",cont(maybeoperatorNoComma)}function maybelabel(type2){return type2==":"?cont(poplex,statement):pass(maybeoperatorComma,expect(";"),poplex)}function property(type2){if(type2=="variable")return cx.marked="property",cont()}function objprop(type2,value){if(type2=="async")return cx.marked="property",cont(objprop);if(type2=="variable"||cx.style=="keyword"){if(cx.marked="property",value=="get"||value=="set")return cont(getterSetter);var m;return isTS&&cx.state.fatArrowAt==cx.stream.start&&(m=cx.stream.match(/^\s*:\s*/,!1))&&(cx.state.fatArrowAt=cx.stream.pos+m[0].length),cont(afterprop)}else{if(type2=="number"||type2=="string")return cx.marked=jsonldMode?"property":cx.style+" property",cont(afterprop);if(type2=="jsonld-keyword")return cont(afterprop);if(isTS&&isModifier(value))return cx.marked="keyword",cont(objprop);if(type2=="[")return cont(expression,maybetype,expect("]"),afterprop);if(type2=="spread")return cont(expressionNoComma,afterprop);if(value=="*")return cx.marked="keyword",cont(objprop);if(type2==":")return pass(afterprop)}}function getterSetter(type2){return type2!="variable"?pass(afterprop):(cx.marked="property",cont(functiondef))}function afterprop(type2){if(type2==":")return cont(expressionNoComma);if(type2=="(")return pass(functiondef)}function commasep(what,end,sep){function proceed(type2,value){if(sep?sep.indexOf(type2)>-1:type2==","){var lex=cx.state.lexical;return lex.info=="call"&&(lex.pos=(lex.pos||0)+1),cont(function(type3,value2){return type3==end||value2==end?pass():pass(what)},proceed)}return type2==end||value==end?cont():sep&&sep.indexOf(";")>-1?pass(what):cont(expect(end))}return function(type2,value){return type2==end||value==end?cont():pass(what,proceed)}}function contCommasep(what,end,info){for(var i=3;i<arguments.length;i++)cx.cc.push(arguments[i]);return cont(pushlex(end,info),commasep(what,end),poplex)}function block(type2){return type2=="}"?cont():pass(statement,block)}function maybetype(type2,value){if(isTS){if(type2==":")return cont(typeexpr);if(value=="?")return cont(maybetype)}}function maybetypeOrIn(type2,value){if(isTS&&(type2==":"||value=="in"))return cont(typeexpr)}function mayberettype(type2){if(isTS&&type2==":")return cx.stream.match(/^\s*\w+\s+is\b/,!1)?cont(expression,isKW,typeexpr):cont(typeexpr)}function isKW(_,value){if(value=="is")return cx.marked="keyword",cont()}function typeexpr(type2,value){if(value=="keyof"||value=="typeof"||value=="infer"||value=="readonly")return cx.marked="keyword",cont(value=="typeof"?expressionNoComma:typeexpr);if(type2=="variable"||value=="void")return cx.marked="type",cont(afterType);if(value=="|"||value=="&")return cont(typeexpr);if(type2=="string"||type2=="number"||type2=="atom")return cont(afterType);if(type2=="[")return cont(pushlex("]"),commasep(typeexpr,"]",","),poplex,afterType);if(type2=="{")return cont(pushlex("}"),typeprops,poplex,afterType);if(type2=="(")return cont(commasep(typearg,")"),maybeReturnType,afterType);if(type2=="<")return cont(commasep(typeexpr,">"),typeexpr);if(type2=="quasi")return pass(quasiType,afterType)}function maybeReturnType(type2){if(type2=="=>")return cont(typeexpr)}function typeprops(type2){return type2.match(/[\}\)\]]/)?cont():type2==","||type2==";"?cont(typeprops):pass(typeprop,typeprops)}function typeprop(type2,value){if(type2=="variable"||cx.style=="keyword")return cx.marked="property",cont(typeprop);if(value=="?"||type2=="number"||type2=="string")return cont(typeprop);if(type2==":")return cont(typeexpr);if(type2=="[")return cont(expect("variable"),maybetypeOrIn,expect("]"),typeprop);if(type2=="(")return pass(functiondecl,typeprop);if(!type2.match(/[;\}\)\],]/))return cont()}function quasiType(type2,value){return type2!="quasi"?pass():value.slice(value.length-2)!="${"?cont(quasiType):cont(typeexpr,continueQuasiType)}function continueQuasiType(type2){if(type2=="}")return cx.marked="string-2",cx.state.tokenize=tokenQuasi,cont(quasiType)}function typearg(type2,value){return type2=="variable"&&cx.stream.match(/^\s*[?:]/,!1)||value=="?"?cont(typearg):type2==":"?cont(typeexpr):type2=="spread"?cont(typearg):pass(typeexpr)}function afterType(type2,value){if(value=="<")return cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType);if(value=="|"||type2=="."||value=="&")return cont(typeexpr);if(type2=="[")return cont(typeexpr,expect("]"),afterType);if(value=="extends"||value=="implements")return cx.marked="keyword",cont(typeexpr);if(value=="?")return cont(typeexpr,expect(":"),typeexpr)}function maybeTypeArgs(_,value){if(value=="<")return cont(pushlex(">"),commasep(typeexpr,">"),poplex,afterType)}function typeparam(){return pass(typeexpr,maybeTypeDefault)}function maybeTypeDefault(_,value){if(value=="=")return cont(typeexpr)}function vardef(_,value){return value=="enum"?(cx.marked="keyword",cont(enumdef)):pass(pattern,maybetype,maybeAssign,vardefCont)}function pattern(type2,value){if(isTS&&isModifier(value))return cx.marked="keyword",cont(pattern);if(type2=="variable")return register(value),cont();if(type2=="spread")return cont(pattern);if(type2=="[")return contCommasep(eltpattern,"]");if(type2=="{")return contCommasep(proppattern,"}")}function proppattern(type2,value){return type2=="variable"&&!cx.stream.match(/^\s*:/,!1)?(register(value),cont(maybeAssign)):(type2=="variable"&&(cx.marked="property"),type2=="spread"?cont(pattern):type2=="}"?pass():type2=="["?cont(expression,expect("]"),expect(":"),proppattern):cont(expect(":"),pattern,maybeAssign))}function eltpattern(){return pass(pattern,maybeAssign)}function maybeAssign(_type,value){if(value=="=")return cont(expressionNoComma)}function vardefCont(type2){if(type2==",")return cont(vardef)}function maybeelse(type2,value){if(type2=="keyword b"&&value=="else")return cont(pushlex("form","else"),statement,poplex)}function forspec(type2,value){if(value=="await")return cont(forspec);if(type2=="(")return cont(pushlex(")"),forspec1,poplex)}function forspec1(type2){return type2=="var"?cont(vardef,forspec2):type2=="variable"?cont(forspec2):pass(forspec2)}function forspec2(type2,value){return type2==")"?cont():type2==";"?cont(forspec2):value=="in"||value=="of"?(cx.marked="keyword",cont(expression,forspec2)):pass(expression,forspec2)}function functiondef(type2,value){if(value=="*")return cx.marked="keyword",cont(functiondef);if(type2=="variable")return register(value),cont(functiondef);if(type2=="(")return cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,mayberettype,statement,popcontext);if(isTS&&value=="<")return cont(pushlex(">"),commasep(typeparam,">"),poplex,functiondef)}function functiondecl(type2,value){if(value=="*")return cx.marked="keyword",cont(functiondecl);if(type2=="variable")return register(value),cont(functiondecl);if(type2=="(")return cont(pushcontext,pushlex(")"),commasep(funarg,")"),poplex,mayberettype,popcontext);if(isTS&&value=="<")return cont(pushlex(">"),commasep(typeparam,">"),poplex,functiondecl)}function typename(type2,value){if(type2=="keyword"||type2=="variable")return cx.marked="type",cont(typename);if(value=="<")return cont(pushlex(">"),commasep(typeparam,">"),poplex)}function funarg(type2,value){return value=="@"&&cont(expression,funarg),type2=="spread"?cont(funarg):isTS&&isModifier(value)?(cx.marked="keyword",cont(funarg)):isTS&&type2=="this"?cont(maybetype,maybeAssign):pass(pattern,maybetype,maybeAssign)}function classExpression(type2,value){return type2=="variable"?className(type2,value):classNameAfter(type2,value)}function className(type2,value){if(type2=="variable")return register(value),cont(classNameAfter)}function classNameAfter(type2,value){if(value=="<")return cont(pushlex(">"),commasep(typeparam,">"),poplex,classNameAfter);if(value=="extends"||value=="implements"||isTS&&type2==",")return value=="implements"&&(cx.marked="keyword"),cont(isTS?typeexpr:expression,classNameAfter);if(type2=="{")return cont(pushlex("}"),classBody,poplex)}function classBody(type2,value){if(type2=="async"||type2=="variable"&&(value=="static"||value=="get"||value=="set"||isTS&&isModifier(value))&&cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return cx.marked="keyword",cont(classBody);if(type2=="variable"||cx.style=="keyword")return cx.marked="property",cont(classfield,classBody);if(type2=="number"||type2=="string")return cont(classfield,classBody);if(type2=="[")return cont(expression,maybetype,expect("]"),classfield,classBody);if(value=="*")return cx.marked="keyword",cont(classBody);if(isTS&&type2=="(")return pass(functiondecl,classBody);if(type2==";"||type2==",")return cont(classBody);if(type2=="}")return cont();if(value=="@")return cont(expression,classBody)}function classfield(type2,value){if(value=="!"||value=="?")return cont(classfield);if(type2==":")return cont(typeexpr,maybeAssign);if(value=="=")return cont(expressionNoComma);var context=cx.state.lexical.prev,isInterface=context&&context.info=="interface";return pass(isInterface?functiondecl:functiondef)}function afterExport(type2,value){return value=="*"?(cx.marked="keyword",cont(maybeFrom,expect(";"))):value=="default"?(cx.marked="keyword",cont(expression,expect(";"))):type2=="{"?cont(commasep(exportField,"}"),maybeFrom,expect(";")):pass(statement)}function exportField(type2,value){if(value=="as")return cx.marked="keyword",cont(expect("variable"));if(type2=="variable")return pass(expressionNoComma,exportField)}function afterImport(type2){return type2=="string"?cont():type2=="("?pass(expression):type2=="."?pass(maybeoperatorComma):pass(importSpec,maybeMoreImports,maybeFrom)}function importSpec(type2,value){return type2=="{"?contCommasep(importSpec,"}"):(type2=="variable"&®ister(value),value=="*"&&(cx.marked="keyword"),cont(maybeAs))}function maybeMoreImports(type2){if(type2==",")return cont(importSpec,maybeMoreImports)}function maybeAs(_type,value){if(value=="as")return cx.marked="keyword",cont(importSpec)}function maybeFrom(_type,value){if(value=="from")return cx.marked="keyword",cont(expression)}function arrayLiteral(type2){return type2=="]"?cont():pass(commasep(expressionNoComma,"]"))}function enumdef(){return pass(pushlex("form"),pattern,expect("{"),pushlex("}"),commasep(enummember,"}"),poplex,poplex)}function enummember(){return pass(pattern,maybeAssign)}function isContinuedStatement(state,textAfter){return state.lastType=="operator"||state.lastType==","||isOperatorChar.test(textAfter.charAt(0))||/[,.]/.test(textAfter.charAt(0))}function expressionAllowed(stream,state,backUp){return state.tokenize==tokenBase&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType)||state.lastType=="quasi"&&/\{\s*$/.test(stream.string.slice(0,stream.pos-(backUp||0)))}return{startState:function(basecolumn){var state={tokenize:tokenBase,lastType:"sof",cc:[],lexical:new JSLexical((basecolumn||0)-indentUnit,0,"block",!1),localVars:parserConfig.localVars,context:parserConfig.localVars&&new Context(null,null,!1),indented:basecolumn||0};return parserConfig.globalVars&&typeof parserConfig.globalVars=="object"&&(state.globalVars=parserConfig.globalVars),state},token:function(stream,state){if(stream.sol()&&(state.lexical.hasOwnProperty("align")||(state.lexical.align=!1),state.indented=stream.indentation(),findFatArrow(stream,state)),state.tokenize!=tokenComment&&stream.eatSpace())return null;var style=state.tokenize(stream,state);return type=="comment"?style:(state.lastType=type=="operator"&&(content=="++"||content=="--")?"incdec":type,parseJS(state,style,type,content,stream))},indent:function(state,textAfter){if(state.tokenize==tokenComment||state.tokenize==tokenQuasi)return CodeMirror2.Pass;if(state.tokenize!=tokenBase)return 0;var firstChar=textAfter&&textAfter.charAt(0),lexical=state.lexical,top;if(!/^\s*else\b/.test(textAfter))for(var i=state.cc.length-1;i>=0;--i){var c=state.cc[i];if(c==poplex)lexical=lexical.prev;else if(c!=maybeelse&&c!=popcontext)break}for(;(lexical.type=="stat"||lexical.type=="form")&&(firstChar=="}"||(top=state.cc[state.cc.length-1])&&(top==maybeoperatorComma||top==maybeoperatorNoComma)&&!/^[,\.=+\-*:?[\(]/.test(textAfter));)lexical=lexical.prev;statementIndent&&lexical.type==")"&&lexical.prev.type=="stat"&&(lexical=lexical.prev);var type2=lexical.type,closing=firstChar==type2;return type2=="vardef"?lexical.indented+(state.lastType=="operator"||state.lastType==","?lexical.info.length+1:0):type2=="form"&&firstChar=="{"?lexical.indented:type2=="form"?lexical.indented+indentUnit:type2=="stat"?lexical.indented+(isContinuedStatement(state,textAfter)?statementIndent||indentUnit:0):lexical.info=="switch"&&!closing&&parserConfig.doubleIndentSwitch!=!1?lexical.indented+(/^(?:case|default)\b/.test(textAfter)?indentUnit:2*indentUnit):lexical.align?lexical.column+(closing?0:1):lexical.indented+(closing?0:indentUnit)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:jsonMode?null:"/*",blockCommentEnd:jsonMode?null:"*/",blockCommentContinue:jsonMode?null:" * ",lineComment:jsonMode?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:jsonMode?"json":"javascript",jsonldMode,jsonMode,expressionAllowed,skipExpression:function(state){parseJS(state,"atom","atom","true",new CodeMirror2.StringStream("",2,null))}}}),CodeMirror2.registerHelper("wordChars","javascript",/[\w$]/),CodeMirror2.defineMIME("text/javascript","javascript"),CodeMirror2.defineMIME("text/ecmascript","javascript"),CodeMirror2.defineMIME("application/javascript","javascript"),CodeMirror2.defineMIME("application/x-javascript","javascript"),CodeMirror2.defineMIME("application/ecmascript","javascript"),CodeMirror2.defineMIME("application/json",{name:"javascript",json:!0}),CodeMirror2.defineMIME("application/x-json",{name:"javascript",json:!0}),CodeMirror2.defineMIME("application/manifest+json",{name:"javascript",json:!0}),CodeMirror2.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),CodeMirror2.defineMIME("text/typescript",{name:"javascript",typescript:!0}),CodeMirror2.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),javascript.exports}(function(module2,exports3){(function(mod){mod(requireCodemirror(),requireXml(),requireJavascript(),cssExports)})(function(CodeMirror2){var defaultTags={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 maybeBackup(stream,pat,style){var cur=stream.current(),close=cur.search(pat);return close>-1?stream.backUp(cur.length-close):cur.match(/<\/?$/)&&(stream.backUp(cur.length),stream.match(pat,!1)||stream.match(cur)),style}var attrRegexpCache={};function getAttrRegexp(attr){var regexp=attrRegexpCache[attr];return regexp||(attrRegexpCache[attr]=new RegExp("\\s+"+attr+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function getAttrValue(text,attr){var match=text.match(getAttrRegexp(attr));return match?/^\s*(.*?)\s*$/.exec(match[2])[1]:""}function getTagRegexp(tagName,anchored){return new RegExp((anchored?"^":"")+"</\\s*"+tagName+"\\s*>","i")}function addTags(from,to){for(var tag in from)for(var dest=to[tag]||(to[tag]=[]),source=from[tag],i=source.length-1;i>=0;i--)dest.unshift(source[i])}function findMatchingMode(tagInfo,tagText){for(var i=0;i<tagInfo.length;i++){var spec=tagInfo[i];if(!spec[0]||spec[1].test(getAttrValue(tagText,spec[0])))return spec[2]}}CodeMirror2.defineMode("htmlmixed",function(config,parserConfig){var htmlMode=CodeMirror2.getMode(config,{name:"xml",htmlMode:!0,multilineTagIndentFactor:parserConfig.multilineTagIndentFactor,multilineTagIndentPastTag:parserConfig.multilineTagIndentPastTag,allowMissingTagName:parserConfig.allowMissingTagName}),tags={},configTags=parserConfig&&parserConfig.tags,configScript=parserConfig&&parserConfig.scriptTypes;if(addTags(defaultTags,tags),configTags&&addTags(configTags,tags),configScript)for(var i=configScript.length-1;i>=0;i--)tags.script.unshift(["type",configScript[i].matches,configScript[i].mode]);function html(stream,state){var style=htmlMode.token(stream,state.htmlState),tag=/\btag\b/.test(style),tagName;if(tag&&!/[<>\s\/]/.test(stream.current())&&(tagName=state.htmlState.tagName&&state.htmlState.tagName.toLowerCase())&&tags.hasOwnProperty(tagName))state.inTag=tagName+" ";else if(state.inTag&&tag&&/>$/.test(stream.current())){var inTag=/^([\S]+) (.*)/.exec(state.inTag);state.inTag=null;var modeSpec=stream.current()==">"&&findMatchingMode(tags[inTag[1]],inTag[2]),mode=CodeMirror2.getMode(config,modeSpec),endTagA=getTagRegexp(inTag[1],!0),endTag=getTagRegexp(inTag[1],!1);state.token=function(stream2,state2){return stream2.match(endTagA,!1)?(state2.token=html,state2.localState=state2.localMode=null,null):maybeBackup(stream2,endTag,state2.localMode.token(stream2,state2.localState))},state.localMode=mode,state.localState=CodeMirror2.startState(mode,htmlMode.indent(state.htmlState,"",""))}else state.inTag&&(state.inTag+=stream.current(),stream.eol()&&(state.inTag+=" "));return style}return{startState:function(){var state=CodeMirror2.startState(htmlMode);return{token:html,inTag:null,localMode:null,localState:null,htmlState:state}},copyState:function(state){var local;return state.localState&&(local=CodeMirror2.copyState(state.localMode,state.localState)),{token:state.token,inTag:state.inTag,localMode:state.localMode,localState:local,htmlState:CodeMirror2.copyState(htmlMode,state.htmlState)}},token:function(stream,state){return state.token(stream,state)},indent:function(state,textAfter,line){return!state.localMode||/^\s*<\//.test(textAfter)?htmlMode.indent(state.htmlState,textAfter,line):state.localMode.indent?state.localMode.indent(state.localState,textAfter,line):CodeMirror2.Pass},innerMode:function(state){return{state:state.localState||state.htmlState,mode:state.localMode||htmlMode}}}},"xml","javascript","css"),CodeMirror2.defineMIME("text/html","htmlmixed")})})(),requireJavascript(),requireXml(),function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("sql",function(config,parserConfig){var client=parserConfig.client||{},atoms=parserConfig.atoms||{false:!0,true:!0,null:!0},builtin=parserConfig.builtin||set(defaultBuiltin),keywords=parserConfig.keywords||set(sqlKeywords),operatorChars=parserConfig.operatorChars||/^[*+\-%<>!=&|~^\/]/,support=parserConfig.support||{},hooks=parserConfig.hooks||{},dateSQL=parserConfig.dateSQL||{date:!0,time:!0,timestamp:!0},backslashStringEscapes=parserConfig.backslashStringEscapes!==!1,brackets=parserConfig.brackets||/^[\{}\(\)\[\]]/,punctuation=parserConfig.punctuation||/^[;.,:]/;function tokenBase(stream,state){var ch=stream.next();if(hooks[ch]){var result=hooks[ch](stream,state);if(result!==!1)return result}if(support.hexNumber&&(ch=="0"&&stream.match(/^[xX][0-9a-fA-F]+/)||(ch=="x"||ch=="X")&&stream.match(/^'[0-9a-fA-F]*'/)))return"number";if(support.binaryNumber&&((ch=="b"||ch=="B")&&stream.match(/^'[01]*'/)||ch=="0"&&stream.match(/^b[01]+/)))return"number";if(ch.charCodeAt(0)>47&&ch.charCodeAt(0)<58)return stream.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),support.decimallessFloat&&stream.match(/^\.(?!\.)/),"number";if(ch=="?"&&(stream.eatSpace()||stream.eol()||stream.eat(";")))return"variable-3";if(ch=="'"||ch=='"'&&support.doubleQuote)return state.tokenize=tokenLiteral(ch),state.tokenize(stream,state);if((support.nCharCast&&(ch=="n"||ch=="N")||support.charsetCast&&ch=="_"&&stream.match(/[a-z][a-z0-9]*/i))&&(stream.peek()=="'"||stream.peek()=='"'))return"keyword";if(support.escapeConstant&&(ch=="e"||ch=="E")&&(stream.peek()=="'"||stream.peek()=='"'&&support.doubleQuote))return state.tokenize=function(stream2,state2){return(state2.tokenize=tokenLiteral(stream2.next(),!0))(stream2,state2)},"keyword";if(support.commentSlashSlash&&ch=="/"&&stream.eat("/"))return stream.skipToEnd(),"comment";if(support.commentHash&&ch=="#"||ch=="-"&&stream.eat("-")&&(!support.commentSpaceRequired||stream.eat(" ")))return stream.skipToEnd(),"comment";if(ch=="/"&&stream.eat("*"))return state.tokenize=tokenComment(1),state.tokenize(stream,state);if(ch=="."){if(support.zerolessFloat&&stream.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(stream.match(/^\.+/))return null;if(stream.match(/^[\w\d_$#]+/))return"variable-2"}else{if(operatorChars.test(ch))return stream.eatWhile(operatorChars),"operator";if(brackets.test(ch))return"bracket";if(punctuation.test(ch))return stream.eatWhile(punctuation),"punctuation";if(ch=="{"&&(stream.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||stream.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";stream.eatWhile(/^[_\w\d]/);var word=stream.current().toLowerCase();return dateSQL.hasOwnProperty(word)&&(stream.match(/^( )+'[^']*'/)||stream.match(/^( )+"[^"]*"/))?"number":atoms.hasOwnProperty(word)?"atom":builtin.hasOwnProperty(word)?"type":keywords.hasOwnProperty(word)?"keyword":client.hasOwnProperty(word)?"builtin":null}}function tokenLiteral(quote,backslashEscapes){return function(stream,state){for(var escaped=!1,ch;(ch=stream.next())!=null;){if(ch==quote&&!escaped){state.tokenize=tokenBase;break}escaped=(backslashStringEscapes||backslashEscapes)&&!escaped&&ch=="\\"}return"string"}}function tokenComment(depth){return function(stream,state){var m=stream.match(/^.*?(\/\*|\*\/)/);return m?m[1]=="/*"?state.tokenize=tokenComment(depth+1):depth>1?state.tokenize=tokenComment(depth-1):state.tokenize=tokenBase:stream.skipToEnd(),"comment"}}function pushContext(stream,state,type){state.context={prev:state.context,indent:stream.indentation(),col:stream.column(),type}}function popContext(state){state.indent=state.context.indent,state.context=state.context.prev}return{startState:function(){return{tokenize:tokenBase,context:null}},token:function(stream,state){if(stream.sol()&&state.context&&state.context.align==null&&(state.context.align=!1),state.tokenize==tokenBase&&stream.eatSpace())return null;var style=state.tokenize(stream,state);if(style=="comment")return style;state.context&&state.context.align==null&&(state.context.align=!0);var tok=stream.current();return tok=="("?pushContext(stream,state,")"):tok=="["?pushContext(stream,state,"]"):state.context&&state.context.type==tok&&popContext(state),style},indent:function(state,textAfter){var cx=state.context;if(!cx)return CodeMirror2.Pass;var closing=textAfter.charAt(0)==cx.type;return cx.align?cx.col+(closing?0:1):cx.indent+(closing?0:config.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:support.commentSlashSlash?"//":support.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:parserConfig}});function hookIdentifier(stream){for(var ch;(ch=stream.next())!=null;)if(ch=="`"&&!stream.eat("`"))return"variable-2";return stream.backUp(stream.current().length-1),stream.eatWhile(/\w/)?"variable-2":null}function hookIdentifierDoublequote(stream){for(var ch;(ch=stream.next())!=null;)if(ch=='"'&&!stream.eat('"'))return"variable-2";return stream.backUp(stream.current().length-1),stream.eatWhile(/\w/)?"variable-2":null}function hookVar(stream){return stream.eat("@")&&(stream.match("session."),stream.match("local."),stream.match("global.")),stream.eat("'")?(stream.match(/^.*'/),"variable-2"):stream.eat('"')?(stream.match(/^.*"/),"variable-2"):stream.eat("`")?(stream.match(/^.*`/),"variable-2"):stream.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function hookClient(stream){return stream.eat("N")?"atom":stream.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var sqlKeywords="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 set(str){for(var obj={},words=str.split(" "),i=0;i<words.length;++i)obj[words[i]]=!0;return obj}var defaultBuiltin="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";CodeMirror2.defineMIME("text/x-sql",{name:"sql",keywords:set(sqlKeywords+"begin"),builtin:set(defaultBuiltin),atoms:set("false true null unknown"),dateSQL:set("date time timestamp"),support:set("doubleQuote binaryNumber hexNumber")}),CodeMirror2.defineMIME("text/x-mssql",{name:"sql",client:set("$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:set(sqlKeywords+"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:set("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:set("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:set("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":hookVar}}),CodeMirror2.defineMIME("text/x-mysql",{name:"sql",client:set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:set(sqlKeywords+"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:set("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:set("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:set("date time timestamp"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":hookVar,"`":hookIdentifier,"\\":hookClient}}),CodeMirror2.defineMIME("text/x-mariadb",{name:"sql",client:set("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:set(sqlKeywords+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:set("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:set("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:set("date time timestamp"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":hookVar,"`":hookIdentifier,"\\":hookClient}}),CodeMirror2.defineMIME("text/x-sqlite",{name:"sql",client:set("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:set(sqlKeywords+"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:set("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:set("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:set("date time timestamp datetime"),support:set("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":hookVar,":":hookVar,"?":hookVar,$:hookVar,'"':hookIdentifierDoublequote,"`":hookIdentifier}}),CodeMirror2.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:set("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:set("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:set("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:set("commentSlashSlash decimallessFloat"),hooks:{}}),CodeMirror2.defineMIME("text/x-plsql",{name:"sql",client:set("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:set("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:set("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:set("date time timestamp"),support:set("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),CodeMirror2.defineMIME("text/x-hive",{name:"sql",keywords:set("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:set("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:set("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:set("date timestamp"),support:set("doubleQuote binaryNumber hexNumber")}),CodeMirror2.defineMIME("text/x-pgsql",{name:"sql",client:set("source"),keywords:set(sqlKeywords+"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:set("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 zone timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:set("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,identifierQuote:'"',hooks:{'"':hookIdentifierDoublequote},dateSQL:set("date time timestamp"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),CodeMirror2.defineMIME("text/x-gql",{name:"sql",keywords:set("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:set("false true"),builtin:set("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),CodeMirror2.defineMIME("text/x-gpsql",{name:"sql",client:set("source"),keywords:set("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:set("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:set("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:set("date time timestamp"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),CodeMirror2.defineMIME("text/x-sparksql",{name:"sql",keywords:set("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:set("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:set("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:set("date time timestamp"),support:set("doubleQuote zerolessFloat")}),CodeMirror2.defineMIME("text/x-esper",{name:"sql",client:set("source"),keywords:set("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:set("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:set("time"),support:set("decimallessFloat zerolessFloat binaryNumber hexNumber")}),CodeMirror2.defineMIME("text/x-trino",{name:"sql",keywords:set("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:set("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:set("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:set("date time timestamp zone"),support:set("decimallessFloat zerolessFloat hexNumber")})})}(),function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.defineMode("yaml",function(){var cons=["true","false","on","off","yes","no"],keywordRegex=new RegExp("\\b(("+cons.join(")|(")+"))$","i");return{token:function(stream,state){var ch=stream.peek(),esc=state.escaped;if(state.escaped=!1,ch=="#"&&(stream.pos==0||/\s/.test(stream.string.charAt(stream.pos-1))))return stream.skipToEnd(),"comment";if(stream.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(state.literal&&stream.indentation()>state.keyCol)return stream.skipToEnd(),"string";if(state.literal&&(state.literal=!1),stream.sol()){if(state.keyCol=0,state.pair=!1,state.pairStart=!1,stream.match("---")||stream.match("..."))return"def";if(stream.match(/\s*-\s+/))return"meta"}if(stream.match(/^(\{|\}|\[|\])/))return ch=="{"?state.inlinePairs++:ch=="}"?state.inlinePairs--:ch=="["?state.inlineList++:state.inlineList--,"meta";if(state.inlineList>0&&!esc&&ch==",")return stream.next(),"meta";if(state.inlinePairs>0&&!esc&&ch==",")return state.keyCol=0,state.pair=!1,state.pairStart=!1,stream.next(),"meta";if(state.pairStart){if(stream.match(/^\s*(\||\>)\s*/))return state.literal=!0,"meta";if(stream.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(state.inlinePairs==0&&stream.match(/^\s*-?[0-9\.\,]+\s?$/)||state.inlinePairs>0&&stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(stream.match(keywordRegex))return"keyword"}return!state.pair&&stream.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(state.pair=!0,state.keyCol=stream.indentation(),"atom"):state.pair&&stream.match(/^:\s*/)?(state.pairStart=!0,"meta"):(state.pairStart=!1,state.escaped=ch=="\\",stream.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),CodeMirror2.defineMIME("text/x-yaml","yaml"),CodeMirror2.defineMIME("text/yaml","yaml")})}();var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);CodeMirror.defineMode("dot",function(config){const ops=/--|->|=|;/,brackets=/[\[\]{}]/;return{startState(){return{indent_level:0}},token(stream,state){switch(stream.eatSpace(),state.looking_for){case"multiline-comment":return stream.match(/.*\*\//)?state.looking_for=null:stream.skipToEnd(),"comment";case"property":return stream.match("=")?"variable-3":(stream.match(/\w+/),state.looking_for=null,"string-2");case"graphname":if(state.looking_for=null,stream.match(/{\W*$/))return state.indent_level+=1,"bracket";if(stream.match("{"))return"bracket";if(stream.match(/[^\W]+/))return"variable-2";default:return stream.match(/{\W*$/)?(state.indent_level+=1,"bracket"):stream.match(/}\W*$/)?(state.indent_level-=1,"bracket"):stream.match(brackets)?"bracket":stream.match(/".*"/)?"string":stream.match(/\w+=[\"\w]+/,!1)?(state.looking_for="property",stream.match(/[^=]+/),"attribute"):stream.match(ops)?"variable-3":stream.match(/(di)?graph[^{\w]+/)?(state.looking_for="graphname","keyword"):stream.match(/\/\/|#/)?(stream.skipToEnd(),"comment"):stream.match(/\/\*.*\*\//)?"comment":stream.match("/*")?(state.looking_for="multiline-comment","comment"):(stream.match(/\w+/)||stream.skipToEnd(),"variable")}},indent(state,_textAfter){return state.indent_level*(config.indentUnit||2)},closeBrackets:{pairs:'[]{}""'},lineComment:/(\/\/|#)/,blockCommentStart:"/*",blockCommentEnd:"*/"}}),CodeMirror.defineMIME("text/x-dot","dot"),CodeMirror.defineMode("markdown",function(cmCfg,modeCfg){var htmlMode=CodeMirror.getMode(cmCfg,"text/html"),htmlModeMissing=htmlMode.name=="null";modeCfg.defaultMode===void 0&&(modeCfg.defaultMode="");function getMode(name){if(name=name===""?modeCfg.defaultMode:name,CodeMirror.findModeByName){var found=CodeMirror.findModeByName(name);found&&(name=found.mime||found.mimes[0])}var mode2=CodeMirror.getMode(cmCfg,name);return mode2.name=="null"?null:mode2}modeCfg.highlightFormatting===void 0&&(modeCfg.highlightFormatting=!1),modeCfg.maxBlockquoteDepth===void 0&&(modeCfg.maxBlockquoteDepth=0),modeCfg.taskLists===void 0&&(modeCfg.taskLists=!1),modeCfg.strikethrough===void 0&&(modeCfg.strikethrough=!1),modeCfg.emoji===void 0&&(modeCfg.emoji=!1),modeCfg.fencedCodeBlockHighlighting===void 0&&(modeCfg.fencedCodeBlockHighlighting=!0),modeCfg.xml===void 0&&(modeCfg.xml=!0),modeCfg.tokenTypeOverrides===void 0&&(modeCfg.tokenTypeOverrides={});var tokenTypes={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 tokenType in tokenTypes)tokenTypes.hasOwnProperty(tokenType)&&modeCfg.tokenTypeOverrides[tokenType]&&(tokenTypes[tokenType]=modeCfg.tokenTypeOverrides[tokenType]);var hrRE=/^([*\-_])(?:\s*\1){2,}\s*$/,listRE=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,taskListRE=/^\[(x| )\](?=\s)/i,atxHeaderRE=modeCfg.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,setextHeaderRE=/^ *(?:\={1,}|-{1,})\s*$/,textRE=/^[^#!\[\]*_\\<>` "'(~:]+/,fencedCodeRE=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,linkDefRE=/^\s*\[[^\]]+?\]:.*$/,punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,expandedTab=" ";function switchInline(stream,state,f){return state.f=state.inline=f,f(stream,state)}function switchBlock(stream,state,f){return state.f=state.block=f,f(stream,state)}function lineIsEmpty(line){return!line||!/\S/.test(line.string)}function blankLine(state){if(state.linkTitle=!1,state.linkHref=!1,state.linkText=!1,state.em=!1,state.strong=!1,state.strikethrough=!1,state.quote=0,state.indentedCode=!1,state.f==htmlBlock){var exit=htmlModeMissing;if(!exit){var inner=CodeMirror.innerMode(htmlMode,state.htmlState);exit=inner.mode.name=="xml"&&inner.state.tagStart===null&&!inner.state.context&&inner.state.tokenize.isInText}exit&&(state.f=inlineNormal,state.block=blockNormal,state.htmlState=null)}return state.trailingSpace=0,state.trailingSpaceNewLine=!1,state.prevLine=state.thisLine,state.thisLine={stream:null},null}function blockNormal(stream,state){var firstTokenOnLine=stream.column()===state.indentation,prevLineLineIsEmpty=lineIsEmpty(state.prevLine.stream),prevLineIsIndentedCode=state.indentedCode,prevLineIsHr=state.prevLine.hr,prevLineIsList=state.list!==!1,maxNonCodeIndentation=(state.listStack[state.listStack.length-1]||0)+3;state.indentedCode=!1;var lineIndentation=state.indentation;if(state.indentationDiff===null&&(state.indentationDiff=state.indentation,prevLineIsList)){for(state.list=null;lineIndentation<state.listStack[state.listStack.length-1];)state.listStack.pop(),state.listStack.length?state.indentation=state.listStack[state.listStack.length-1]:state.list=!1;state.list!==!1&&(state.indentationDiff=lineIndentation-state.listStack[state.listStack.length-1])}var allowsInlineContinuation=!prevLineLineIsEmpty&&!prevLineIsHr&&!state.prevLine.header&&(!prevLineIsList||!prevLineIsIndentedCode)&&!state.prevLine.fencedCodeEnd,isHr=(state.list===!1||prevLineIsHr||prevLineLineIsEmpty)&&state.indentation<=maxNonCodeIndentation&&stream.match(hrRE),match=null;if(state.indentationDiff>=4&&(prevLineIsIndentedCode||state.prevLine.fencedCodeEnd||state.prevLine.header||prevLineLineIsEmpty))return stream.skipToEnd(),state.indentedCode=!0,tokenTypes.code;if(stream.eatSpace())return null;if(firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(atxHeaderRE))&&match[1].length<=6)return state.quote=0,state.header=match[1].length,state.thisLine.header=!0,modeCfg.highlightFormatting&&(state.formatting="header"),state.f=state.inline,getType(state);if(state.indentation<=maxNonCodeIndentation&&stream.eat(">"))return state.quote=firstTokenOnLine?1:state.quote+1,modeCfg.highlightFormatting&&(state.formatting="quote"),stream.eatSpace(),getType(state);if(!isHr&&!state.setext&&firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(listRE))){var listType=match[1]?"ol":"ul";return state.indentation=lineIndentation+stream.current().length,state.list=!0,state.quote=0,state.listStack.push(state.indentation),state.em=!1,state.strong=!1,state.code=!1,state.strikethrough=!1,modeCfg.taskLists&&stream.match(taskListRE,!1)&&(state.taskList=!0),state.f=state.inline,modeCfg.highlightFormatting&&(state.formatting=["list","list-"+listType]),getType(state)}else{if(firstTokenOnLine&&state.indentation<=maxNonCodeIndentation&&(match=stream.match(fencedCodeRE,!0)))return state.quote=0,state.fencedEndRE=new RegExp(match[1]+"+ *$"),state.localMode=modeCfg.fencedCodeBlockHighlighting&&getMode(match[2]),state.localMode&&(state.localState=CodeMirror.startState(state.localMode)),state.f=state.block=local,modeCfg.highlightFormatting&&(state.formatting="code-block"),state.code=-1,getType(state);if(state.setext||(!allowsInlineContinuation||!prevLineIsList)&&!state.quote&&state.list===!1&&!state.code&&!isHr&&!linkDefRE.test(stream.string)&&(match=stream.lookAhead(1))&&(match=match.match(setextHeaderRE)))return state.setext?(state.header=state.setext,state.setext=0,stream.skipToEnd(),modeCfg.highlightFormatting&&(state.formatting="header")):(state.header=match[0].charAt(0)=="="?1:2,state.setext=state.header),state.thisLine.header=!0,state.f=state.inline,getType(state);if(isHr)return stream.skipToEnd(),state.hr=!0,state.thisLine.hr=!0,tokenTypes.hr;if(stream.peek()==="[")return switchInline(stream,state,footnoteLink)}return switchInline(stream,state,state.inline)}function htmlBlock(stream,state){var style=htmlMode.token(stream,state.htmlState);if(!htmlModeMissing){var inner=CodeMirror.innerMode(htmlMode,state.htmlState);(inner.mode.name=="xml"&&inner.state.tagStart===null&&!inner.state.context&&inner.state.tokenize.isInText||state.md_inside&&stream.current().indexOf(">")>-1)&&(state.f=inlineNormal,state.block=blockNormal,state.htmlState=null)}return style}function local(stream,state){var currListInd=state.listStack[state.listStack.length-1]||0,hasExitedList=state.indentation<currListInd,maxFencedEndInd=currListInd+3;if(state.fencedEndRE&&state.indentation<=maxFencedEndInd&&(hasExitedList||stream.match(state.fencedEndRE))){modeCfg.highlightFormatting&&(state.formatting="code-block");var returnType;return hasExitedList||(returnType=getType(state)),state.localMode=state.localState=null,state.block=blockNormal,state.f=inlineNormal,state.fencedEndRE=null,state.code=0,state.thisLine.fencedCodeEnd=!0,hasExitedList?switchBlock(stream,state,state.block):returnType}else return state.localMode?state.localMode.token(stream,state.localState):(stream.skipToEnd(),tokenTypes.code)}function getType(state){var styles=[];if(state.formatting){styles.push(tokenTypes.formatting),typeof state.formatting=="string"&&(state.formatting=[state.formatting]);for(var i=0;i<state.formatting.length;i++)styles.push(tokenTypes.formatting+"-"+state.formatting[i]),state.formatting[i]==="header"&&styles.push(tokenTypes.formatting+"-"+state.formatting[i]+"-"+state.header),state.formatting[i]==="quote"&&(!modeCfg.maxBlockquoteDepth||modeCfg.maxBlockquoteDepth>=state.quote?styles.push(tokenTypes.formatting+"-"+state.formatting[i]+"-"+state.quote):styles.push("error"))}if(state.taskOpen)return styles.push("meta"),styles.length?styles.join(" "):null;if(state.taskClosed)return styles.push("property"),styles.length?styles.join(" "):null;if(state.linkHref?styles.push(tokenTypes.linkHref,"url"):(state.strong&&styles.push(tokenTypes.strong),state.em&&styles.push(tokenTypes.em),state.strikethrough&&styles.push(tokenTypes.strikethrough),state.emoji&&styles.push(tokenTypes.emoji),state.linkText&&styles.push(tokenTypes.linkText),state.code&&styles.push(tokenTypes.code),state.image&&styles.push(tokenTypes.image),state.imageAltText&&styles.push(tokenTypes.imageAltText,"link"),state.imageMarker&&styles.push(tokenTypes.imageMarker)),state.header&&styles.push(tokenTypes.header,tokenTypes.header+"-"+state.header),state.quote&&(styles.push(tokenTypes.quote),!modeCfg.maxBlockquoteDepth||modeCfg.maxBlockquoteDepth>=state.quote?styles.push(tokenTypes.quote+"-"+state.quote):styles.push(tokenTypes.quote+"-"+modeCfg.maxBlockquoteDepth)),state.list!==!1){var listMod=(state.listStack.length-1)%3;listMod?listMod===1?styles.push(tokenTypes.list2):styles.push(tokenTypes.list3):styles.push(tokenTypes.list1)}return state.trailingSpaceNewLine?styles.push("trailing-space-new-line"):state.trailingSpace&&styles.push("trailing-space-"+(state.trailingSpace%2?"a":"b")),styles.length?styles.join(" "):null}function handleText(stream,state){if(stream.match(textRE,!0))return getType(state)}function inlineNormal(stream,state){var style=state.text(stream,state);if(typeof style<"u")return style;if(state.list)return state.list=null,getType(state);if(state.taskList){var taskOpen=stream.match(taskListRE,!0)[1]===" ";return taskOpen?state.taskOpen=!0:state.taskClosed=!0,modeCfg.highlightFormatting&&(state.formatting="task"),state.taskList=!1,getType(state)}if(state.taskOpen=!1,state.taskClosed=!1,state.header&&stream.match(/^#+$/,!0))return modeCfg.highlightFormatting&&(state.formatting="header"),getType(state);var ch=stream.next();if(state.linkTitle){state.linkTitle=!1;var matchCh=ch;ch==="("&&(matchCh=")"),matchCh=(matchCh+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var regex="^\\s*(?:[^"+matchCh+"\\\\]+|\\\\\\\\|\\\\.)"+matchCh;if(stream.match(new RegExp(regex),!0))return tokenTypes.linkHref}if(ch==="`"){var previousFormatting=state.formatting;modeCfg.highlightFormatting&&(state.formatting="code"),stream.eatWhile("`");var count=stream.current().length;if(state.code==0&&(!state.quote||count==1))return state.code=count,getType(state);if(count==state.code){var t=getType(state);return state.code=0,t}else return state.formatting=previousFormatting,getType(state)}else if(state.code)return getType(state);if(ch==="\\"&&(stream.next(),modeCfg.highlightFormatting)){var type=getType(state),formattingEscape=tokenTypes.formatting+"-escape";return type?type+" "+formattingEscape:formattingEscape}if(ch==="!"&&stream.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return state.imageMarker=!0,state.image=!0,modeCfg.highlightFormatting&&(state.formatting="image"),getType(state);if(ch==="["&&state.imageMarker&&stream.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return state.imageMarker=!1,state.imageAltText=!0,modeCfg.highlightFormatting&&(state.formatting="image"),getType(state);if(ch==="]"&&state.imageAltText){modeCfg.highlightFormatting&&(state.formatting="image");var type=getType(state);return state.imageAltText=!1,state.image=!1,state.inline=state.f=linkHref,type}if(ch==="["&&!state.image)return state.linkText&&stream.match(/^.*?\]/)||(state.linkText=!0,modeCfg.highlightFormatting&&(state.formatting="link")),getType(state);if(ch==="]"&&state.linkText){modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return state.linkText=!1,state.inline=state.f=stream.match(/\(.*?\)| ?\[.*?\]/,!1)?linkHref:inlineNormal,type}if(ch==="<"&&stream.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){state.f=state.inline=linkInline,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkInline}if(ch==="<"&&stream.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){state.f=state.inline=linkInline,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkEmail}if(modeCfg.xml&&ch==="<"&&stream.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var end=stream.string.indexOf(">",stream.pos);if(end!=-1){var atts=stream.string.substring(stream.start,end);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(atts)&&(state.md_inside=!0)}return stream.backUp(1),state.htmlState=CodeMirror.startState(htmlMode),switchBlock(stream,state,htmlBlock)}if(modeCfg.xml&&ch==="<"&&stream.match(/^\/\w*?>/))return state.md_inside=!1,"tag";if(ch==="*"||ch==="_"){for(var len=1,before=stream.pos==1?" ":stream.string.charAt(stream.pos-2);len<3&&stream.eat(ch);)len++;var after=stream.peek()||" ",leftFlanking=!/\s/.test(after)&&(!punctuation.test(after)||/\s/.test(before)||punctuation.test(before)),rightFlanking=!/\s/.test(before)&&(!punctuation.test(before)||/\s/.test(after)||punctuation.test(after)),setEm=null,setStrong=null;if(len%2&&(!state.em&&leftFlanking&&(ch==="*"||!rightFlanking||punctuation.test(before))?setEm=!0:state.em==ch&&rightFlanking&&(ch==="*"||!leftFlanking||punctuation.test(after))&&(setEm=!1)),len>1&&(!state.strong&&leftFlanking&&(ch==="*"||!rightFlanking||punctuation.test(before))?setStrong=!0:state.strong==ch&&rightFlanking&&(ch==="*"||!leftFlanking||punctuation.test(after))&&(setStrong=!1)),setStrong!=null||setEm!=null){modeCfg.highlightFormatting&&(state.formatting=setEm==null?"strong":setStrong==null?"em":"strong em"),setEm===!0&&(state.em=ch),setStrong===!0&&(state.strong=ch);var t=getType(state);return setEm===!1&&(state.em=!1),setStrong===!1&&(state.strong=!1),t}}else if(ch===" "&&(stream.eat("*")||stream.eat("_"))){if(stream.peek()===" ")return getType(state);stream.backUp(1)}if(modeCfg.strikethrough){if(ch==="~"&&stream.eatWhile(ch)){if(state.strikethrough){modeCfg.highlightFormatting&&(state.formatting="strikethrough");var t=getType(state);return state.strikethrough=!1,t}else if(stream.match(/^[^\s]/,!1))return state.strikethrough=!0,modeCfg.highlightFormatting&&(state.formatting="strikethrough"),getType(state)}else if(ch===" "&&stream.match(/^~~/,!0)){if(stream.peek()===" ")return getType(state);stream.backUp(2)}}if(modeCfg.emoji&&ch===":"&&stream.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){state.emoji=!0,modeCfg.highlightFormatting&&(state.formatting="emoji");var retType=getType(state);return state.emoji=!1,retType}return ch===" "&&(stream.match(/^ +$/,!1)?state.trailingSpace++:state.trailingSpace&&(state.trailingSpaceNewLine=!0)),getType(state)}function linkInline(stream,state){var ch=stream.next();if(ch===">"){state.f=state.inline=inlineNormal,modeCfg.highlightFormatting&&(state.formatting="link");var type=getType(state);return type?type+=" ":type="",type+tokenTypes.linkInline}return stream.match(/^[^>]+/,!0),tokenTypes.linkInline}function linkHref(stream,state){if(stream.eatSpace())return null;var ch=stream.next();return ch==="("||ch==="["?(state.f=state.inline=getLinkHrefInside(ch==="("?")":"]"),modeCfg.highlightFormatting&&(state.formatting="link-string"),state.linkHref=!0,getType(state)):"error"}var linkRE={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function getLinkHrefInside(endChar){return function(stream,state){var ch=stream.next();if(ch===endChar){state.f=state.inline=inlineNormal,modeCfg.highlightFormatting&&(state.formatting="link-string");var returnState=getType(state);return state.linkHref=!1,returnState}return stream.match(linkRE[endChar]),state.linkHref=!0,getType(state)}}function footnoteLink(stream,state){return stream.match(/^([^\]\\]|\\.)*\]:/,!1)?(state.f=footnoteLinkInside,stream.next(),modeCfg.highlightFormatting&&(state.formatting="link"),state.linkText=!0,getType(state)):switchInline(stream,state,inlineNormal)}function footnoteLinkInside(stream,state){if(stream.match(/^\]:/,!0)){state.f=state.inline=footnoteUrl,modeCfg.highlightFormatting&&(state.formatting="link");var returnType=getType(state);return state.linkText=!1,returnType}return stream.match(/^([^\]\\]|\\.)+/,!0),tokenTypes.linkText}function footnoteUrl(stream,state){return stream.eatSpace()?null:(stream.match(/^[^\s]+/,!0),stream.peek()===void 0?state.linkTitle=!0:stream.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),state.f=state.inline=inlineNormal,tokenTypes.linkHref+" url")}var mode={startState:function(){return{f:blockNormal,prevLine:{stream:null},thisLine:{stream:null},block:blockNormal,htmlState:null,indentation:0,inline:inlineNormal,text:handleText,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&&CodeMirror.copyState(htmlMode,s.htmlState),indentation:s.indentation,localMode:s.localMode,localState:s.localMode?CodeMirror.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(stream,state){if(state.formatting=!1,stream!=state.thisLine.stream){if(state.header=0,state.hr=!1,stream.match(/^\s*$/,!0))return blankLine(state),null;if(state.prevLine=state.thisLine,state.thisLine={stream},state.taskList=!1,state.trailingSpace=0,state.trailingSpaceNewLine=!1,!state.localState&&(state.f=state.block,state.f!=htmlBlock)){var indentation=stream.match(/^\s*/,!0)[0].replace(/\t/g,expandedTab).length;if(state.indentation=indentation,state.indentationDiff=null,indentation>0)return null}}return state.f(stream,state)},innerMode:function(state){return state.block==htmlBlock?{state:state.htmlState,mode:htmlMode}:state.localState?{state:state.localState,mode:state.localMode}:{state,mode}},indent:function(state,textAfter,line){return state.block==htmlBlock&&htmlMode.indent?htmlMode.indent(state.htmlState,textAfter,line):state.localState&&state.localMode.indent?state.localMode.indent(state.localState,textAfter,line):CodeMirror.Pass},blankLine,getType,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return mode},"xml"),CodeMirror.defineMIME("text/markdown","markdown"),CodeMirror.defineMIME("text/x-markdown","markdown"),function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){function bracketFolding(pairs){return function(cm,start){var line=start.line,lineText=cm.getLine(line);function findOpening(pair){for(var tokenType,at=start.ch,pass=0;;){var found2=at<=0?-1:lineText.lastIndexOf(pair[0],at-1);if(found2==-1){if(pass==1)break;pass=1,at=lineText.length;continue}if(pass==1&&found2<start.ch)break;if(tokenType=cm.getTokenTypeAt(CodeMirror2.Pos(line,found2+1)),!/^(comment|string)/.test(tokenType))return{ch:found2+1,tokenType,pair};at=found2-1}}function findRange(found2){var count=1,lastLine=cm.lastLine(),end,startCh=found2.ch,endCh;outer:for(var i2=line;i2<=lastLine;++i2)for(var text=cm.getLine(i2),pos=i2==line?startCh:0;;){var nextOpen=text.indexOf(found2.pair[0],pos),nextClose=text.indexOf(found2.pair[1],pos);if(nextOpen<0&&(nextOpen=text.length),nextClose<0&&(nextClose=text.length),pos=Math.min(nextOpen,nextClose),pos==text.length)break;if(cm.getTokenTypeAt(CodeMirror2.Pos(i2,pos+1))==found2.tokenType){if(pos==nextOpen)++count;else if(!--count){end=i2,endCh=pos;break outer}}++pos}return end==null||line==end?null:{from:CodeMirror2.Pos(line,startCh),to:CodeMirror2.Pos(end,endCh)}}for(var found=[],i=0;i<pairs.length;i++){var open=findOpening(pairs[i]);open&&found.push(open)}found.sort(function(a,b){return a.ch-b.ch});for(var i=0;i<found.length;i++){var range=findRange(found[i]);if(range)return range}return null}}CodeMirror2.registerHelper("fold","brace",bracketFolding([["{","}"],["[","]"]])),CodeMirror2.registerHelper("fold","brace-paren",bracketFolding([["{","}"],["[","]"],["(",")"]])),CodeMirror2.registerHelper("fold","import",function(cm,start){function hasImport(line){if(line<cm.firstLine()||line>cm.lastLine())return null;var start2=cm.getTokenAt(CodeMirror2.Pos(line,1));if(/\S/.test(start2.string)||(start2=cm.getTokenAt(CodeMirror2.Pos(line,start2.end+1))),start2.type!="keyword"||start2.string!="import")return null;for(var i=line,e=Math.min(cm.lastLine(),line+10);i<=e;++i){var text=cm.getLine(i),semi=text.indexOf(";");if(semi!=-1)return{startCh:start2.end,end:CodeMirror2.Pos(i,semi)}}}var startLine=start.line,has=hasImport(startLine),prev;if(!has||hasImport(startLine-1)||(prev=hasImport(startLine-2))&&prev.end.line==startLine-1)return null;for(var end=has.end;;){var next=hasImport(end.line+1);if(next==null)break;end=next.end}return{from:cm.clipPos(CodeMirror2.Pos(startLine,has.startCh+1)),to:end}}),CodeMirror2.registerHelper("fold","include",function(cm,start){function hasInclude(line){if(line<cm.firstLine()||line>cm.lastLine())return null;var start2=cm.getTokenAt(CodeMirror2.Pos(line,1));if(/\S/.test(start2.string)||(start2=cm.getTokenAt(CodeMirror2.Pos(line,start2.end+1))),start2.type=="meta"&&start2.string.slice(0,8)=="#include")return start2.start+8}var startLine=start.line,has=hasInclude(startLine);if(has==null||hasInclude(startLine-1)!=null)return null;for(var end=startLine;;){var next=hasInclude(end+1);if(next==null)break;++end}return{from:CodeMirror2.Pos(startLine,has+1),to:cm.clipPos(CodeMirror2.Pos(end))}})})}(),function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){CodeMirror2.registerGlobalHelper("fold","comment",function(mode){return mode.blockCommentStart&&mode.blockCommentEnd},function(cm,start){var mode=cm.getModeAt(start),startToken=mode.blockCommentStart,endToken=mode.blockCommentEnd;if(!(!startToken||!endToken)){for(var line=start.line,lineText=cm.getLine(line),startCh,at=start.ch,pass=0;;){var found=at<=0?-1:lineText.lastIndexOf(startToken,at-1);if(found==-1){if(pass==1)return;pass=1,at=lineText.length;continue}if(pass==1&&found<start.ch)return;if(/comment/.test(cm.getTokenTypeAt(CodeMirror2.Pos(line,found+1)))&&(found==0||lineText.slice(found-endToken.length,found)==endToken||!/comment/.test(cm.getTokenTypeAt(CodeMirror2.Pos(line,found))))){startCh=found+startToken.length;break}at=found-1}var depth=1,lastLine=cm.lastLine(),end,endCh;outer:for(var i=line;i<=lastLine;++i)for(var text=cm.getLine(i),pos=i==line?startCh:0;;){var nextOpen=text.indexOf(startToken,pos),nextClose=text.indexOf(endToken,pos);if(nextOpen<0&&(nextOpen=text.length),nextClose<0&&(nextClose=text.length),pos=Math.min(nextOpen,nextClose),pos==text.length)break;if(pos==nextOpen)++depth;else if(!--depth){end=i,endCh=pos;break outer}++pos}if(!(end==null||line==end&&endCh==startCh))return{from:CodeMirror2.Pos(line,startCh),to:CodeMirror2.Pos(end,endCh)}}})})}();var foldcode={exports:{}};(function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){function doFold(cm,pos,options,force){if(options&&options.call){var finder=options;options=null}else var finder=getOption(cm,options,"rangeFinder");typeof pos=="number"&&(pos=CodeMirror2.Pos(pos,0));var minSize=getOption(cm,options,"minFoldSize");function getRange(allowFolded){var range2=finder(cm,pos);if(!range2||range2.to.line-range2.from.line<minSize)return null;if(force==="fold")return range2;for(var marks=cm.findMarksAt(range2.from),i=0;i<marks.length;++i)if(marks[i].__isFold){if(!allowFolded)return null;range2.cleared=!0,marks[i].clear()}return range2}var range=getRange(!0);if(getOption(cm,options,"scanUp"))for(;!range&&pos.line>cm.firstLine();)pos=CodeMirror2.Pos(pos.line-1,0),range=getRange(!1);if(!(!range||range.cleared||force==="unfold")){var myWidget=makeWidget(cm,options,range);CodeMirror2.on(myWidget,"mousedown",function(e){myRange.clear(),CodeMirror2.e_preventDefault(e)});var myRange=cm.markText(range.from,range.to,{replacedWith:myWidget,clearOnEnter:getOption(cm,options,"clearOnEnter"),__isFold:!0});myRange.on("clear",function(from,to){CodeMirror2.signal(cm,"unfold",cm,from,to)}),CodeMirror2.signal(cm,"fold",cm,range.from,range.to)}}function makeWidget(cm,options,range){var widget=getOption(cm,options,"widget");if(typeof widget=="function"&&(widget=widget(range.from,range.to)),typeof widget=="string"){var text=document.createTextNode(widget);widget=document.createElement("span"),widget.appendChild(text),widget.className="CodeMirror-foldmarker"}else widget&&(widget=widget.cloneNode(!0));return widget}CodeMirror2.newFoldFunction=function(rangeFinder,widget){return function(cm,pos){doFold(cm,pos,{rangeFinder,widget})}},CodeMirror2.defineExtension("foldCode",function(pos,options,force){doFold(this,pos,options,force)}),CodeMirror2.defineExtension("isFolded",function(pos){for(var marks=this.findMarksAt(pos),i=0;i<marks.length;++i)if(marks[i].__isFold)return!0}),CodeMirror2.commands.toggleFold=function(cm){cm.foldCode(cm.getCursor())},CodeMirror2.commands.fold=function(cm){cm.foldCode(cm.getCursor(),null,"fold")},CodeMirror2.commands.unfold=function(cm){cm.foldCode(cm.getCursor(),{scanUp:!1},"unfold")},CodeMirror2.commands.foldAll=function(cm){cm.operation(function(){for(var i=cm.firstLine(),e=cm.lastLine();i<=e;i++)cm.foldCode(CodeMirror2.Pos(i,0),{scanUp:!1},"fold")})},CodeMirror2.commands.unfoldAll=function(cm){cm.operation(function(){for(var i=cm.firstLine(),e=cm.lastLine();i<=e;i++)cm.foldCode(CodeMirror2.Pos(i,0),{scanUp:!1},"unfold")})},CodeMirror2.registerHelper("fold","combine",function(){var funcs=Array.prototype.slice.call(arguments,0);return function(cm,start){for(var i=0;i<funcs.length;++i){var found=funcs[i](cm,start);if(found)return found}}}),CodeMirror2.registerHelper("fold","auto",function(cm,start){for(var helpers=cm.getHelpers(start,"fold"),i=0;i<helpers.length;i++){var cur=helpers[i](cm,start);if(cur)return cur}});var defaultOptions={rangeFinder:CodeMirror2.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};CodeMirror2.defineOption("foldOptions",null);function getOption(cm,options,name){if(options&&options[name]!==void 0)return options[name];var editorOptions=cm.options.foldOptions;return editorOptions&&editorOptions[name]!==void 0?editorOptions[name]:defaultOptions[name]}CodeMirror2.defineExtension("foldOption",function(options,name){return getOption(this,options,name)})})})();var foldcodeExports=foldcode.exports;(function(module2,exports3){(function(mod){mod(requireCodemirror(),foldcodeExports)})(function(CodeMirror2){CodeMirror2.defineOption("foldGutter",!1,function(cm,val,old){old&&old!=CodeMirror2.Init&&(cm.clearGutter(cm.state.foldGutter.options.gutter),cm.state.foldGutter=null,cm.off("gutterClick",onGutterClick),cm.off("changes",onChange),cm.off("viewportChange",onViewportChange),cm.off("fold",onFold),cm.off("unfold",onFold),cm.off("swapDoc",onChange),cm.off("optionChange",optionChange)),val&&(cm.state.foldGutter=new State(parseOptions(val)),updateInViewport(cm),cm.on("gutterClick",onGutterClick),cm.on("changes",onChange),cm.on("viewportChange",onViewportChange),cm.on("fold",onFold),cm.on("unfold",onFold),cm.on("swapDoc",onChange),cm.on("optionChange",optionChange))});var Pos=CodeMirror2.Pos;function State(options){this.options=options,this.from=this.to=0}function parseOptions(opts){return opts===!0&&(opts={}),opts.gutter==null&&(opts.gutter="CodeMirror-foldgutter"),opts.indicatorOpen==null&&(opts.indicatorOpen="CodeMirror-foldgutter-open"),opts.indicatorFolded==null&&(opts.indicatorFolded="CodeMirror-foldgutter-folded"),opts}function isFolded(cm,line){for(var marks=cm.findMarks(Pos(line,0),Pos(line+1,0)),i=0;i<marks.length;++i)if(marks[i].__isFold){var fromPos=marks[i].find(-1);if(fromPos&&fromPos.line===line)return marks[i]}}function marker(spec){if(typeof spec=="string"){var elt=document.createElement("div");return elt.className=spec+" CodeMirror-guttermarker-subtle",elt}else return spec.cloneNode(!0)}function updateFoldInfo(cm,from,to){var opts=cm.state.foldGutter.options,cur=from-1,minSize=cm.foldOption(opts,"minFoldSize"),func=cm.foldOption(opts,"rangeFinder"),clsFolded=typeof opts.indicatorFolded=="string"&&classTest(opts.indicatorFolded),clsOpen=typeof opts.indicatorOpen=="string"&&classTest(opts.indicatorOpen);cm.eachLine(from,to,function(line){++cur;var mark=null,old=line.gutterMarkers;if(old&&(old=old[opts.gutter]),isFolded(cm,cur)){if(clsFolded&&old&&clsFolded.test(old.className))return;mark=marker(opts.indicatorFolded)}else{var pos=Pos(cur,0),range=func&&func(cm,pos);if(range&&range.to.line-range.from.line>=minSize){if(clsOpen&&old&&clsOpen.test(old.className))return;mark=marker(opts.indicatorOpen)}}!mark&&!old||cm.setGutterMarker(line,opts.gutter,mark)})}function classTest(cls){return new RegExp("(^|\\s)"+cls+"(?:$|\\s)\\s*")}function updateInViewport(cm){var vp=cm.getViewport(),state=cm.state.foldGutter;state&&(cm.operation(function(){updateFoldInfo(cm,vp.from,vp.to)}),state.from=vp.from,state.to=vp.to)}function onGutterClick(cm,line,gutter){var state=cm.state.foldGutter;if(state){var opts=state.options;if(gutter==opts.gutter){var folded=isFolded(cm,line);folded?folded.clear():cm.foldCode(Pos(line,0),opts)}}}function optionChange(cm,option){option=="mode"&&onChange(cm)}function onChange(cm){var state=cm.state.foldGutter;if(state){var opts=state.options;state.from=state.to=0,clearTimeout(state.changeUpdate),state.changeUpdate=setTimeout(function(){updateInViewport(cm)},opts.foldOnChangeTimeSpan||600)}}function onViewportChange(cm){var state=cm.state.foldGutter;if(state){var opts=state.options;clearTimeout(state.changeUpdate),state.changeUpdate=setTimeout(function(){var vp=cm.getViewport();state.from==state.to||vp.from-state.to>20||state.from-vp.to>20?updateInViewport(cm):cm.operation(function(){vp.from<state.from&&(updateFoldInfo(cm,vp.from,state.from),state.from=vp.from),vp.to>state.to&&(updateFoldInfo(cm,state.to,vp.to),state.to=vp.to)})},opts.updateViewportTimeSpan||400)}}function onFold(cm,from){var state=cm.state.foldGutter;if(state){var line=from.line;line>=state.from&&line<state.to&&updateFoldInfo(cm,line,line+1)}}})})(),function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){function lineIndent(cm,lineNo){var text=cm.getLine(lineNo),spaceTo=text.search(/\S/);return spaceTo==-1||/\bcomment\b/.test(cm.getTokenTypeAt(CodeMirror2.Pos(lineNo,spaceTo+1)))?-1:CodeMirror2.countColumn(text,null,cm.getOption("tabSize"))}CodeMirror2.registerHelper("fold","indent",function(cm,start){var myIndent=lineIndent(cm,start.line);if(!(myIndent<0)){for(var lastLineInFold=null,i=start.line+1,end=cm.lastLine();i<=end;++i){var indent=lineIndent(cm,i);if(indent!=-1)if(indent>myIndent)lastLineInFold=i;else break}if(lastLineInFold)return{from:CodeMirror2.Pos(start.line,cm.getLine(start.line).length),to:CodeMirror2.Pos(lastLineInFold,cm.getLine(lastLineInFold).length)}}})})}(),function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){var Pos=CodeMirror2.Pos;function cmp(a,b){return a.line-b.line||a.ch-b.ch}var nameStartChar="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",nameChar=nameStartChar+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xmlTagStart=new RegExp("<(/?)(["+nameStartChar+"]["+nameChar+"]*)","g");function Iter(cm,line,ch,range){this.line=line,this.ch=ch,this.cm=cm,this.text=cm.getLine(line),this.min=range?Math.max(range.from,cm.firstLine()):cm.firstLine(),this.max=range?Math.min(range.to-1,cm.lastLine()):cm.lastLine()}function tagAt(iter,ch){var type=iter.cm.getTokenTypeAt(Pos(iter.line,ch));return type&&/\btag\b/.test(type)}function nextLine(iter){if(!(iter.line>=iter.max))return iter.ch=0,iter.text=iter.cm.getLine(++iter.line),!0}function prevLine(iter){if(!(iter.line<=iter.min))return iter.text=iter.cm.getLine(--iter.line),iter.ch=iter.text.length,!0}function toTagEnd(iter){for(;;){var gt=iter.text.indexOf(">",iter.ch);if(gt==-1){if(nextLine(iter))continue;return}if(!tagAt(iter,gt+1)){iter.ch=gt+1;continue}var lastSlash=iter.text.lastIndexOf("/",gt),selfClose=lastSlash>-1&&!/\S/.test(iter.text.slice(lastSlash+1,gt));return iter.ch=gt+1,selfClose?"selfClose":"regular"}}function toTagStart(iter){for(;;){var lt=iter.ch?iter.text.lastIndexOf("<",iter.ch-1):-1;if(lt==-1){if(prevLine(iter))continue;return}if(!tagAt(iter,lt+1)){iter.ch=lt;continue}xmlTagStart.lastIndex=lt,iter.ch=lt;var match=xmlTagStart.exec(iter.text);if(match&&match.index==lt)return match}}function toNextTag(iter){for(;;){xmlTagStart.lastIndex=iter.ch;var found=xmlTagStart.exec(iter.text);if(!found){if(nextLine(iter))continue;return}if(!tagAt(iter,found.index+1)){iter.ch=found.index+1;continue}return iter.ch=found.index+found[0].length,found}}function toPrevTag(iter){for(;;){var gt=iter.ch?iter.text.lastIndexOf(">",iter.ch-1):-1;if(gt==-1){if(prevLine(iter))continue;return}if(!tagAt(iter,gt+1)){iter.ch=gt;continue}var lastSlash=iter.text.lastIndexOf("/",gt),selfClose=lastSlash>-1&&!/\S/.test(iter.text.slice(lastSlash+1,gt));return iter.ch=gt+1,selfClose?"selfClose":"regular"}}function findMatchingClose(iter,tag){for(var stack=[];;){var next=toNextTag(iter),end,startLine=iter.line,startCh=iter.ch-(next?next[0].length:0);if(!next||!(end=toTagEnd(iter)))return;if(end!="selfClose")if(next[1]){for(var i=stack.length-1;i>=0;--i)if(stack[i]==next[2]){stack.length=i;break}if(i<0&&(!tag||tag==next[2]))return{tag:next[2],from:Pos(startLine,startCh),to:Pos(iter.line,iter.ch)}}else stack.push(next[2])}}function findMatchingOpen(iter,tag){for(var stack=[];;){var prev=toPrevTag(iter);if(!prev)return;if(prev=="selfClose"){toTagStart(iter);continue}var endLine=iter.line,endCh=iter.ch,start=toTagStart(iter);if(!start)return;if(start[1])stack.push(start[2]);else{for(var i=stack.length-1;i>=0;--i)if(stack[i]==start[2]){stack.length=i;break}if(i<0&&(!tag||tag==start[2]))return{tag:start[2],from:Pos(iter.line,iter.ch),to:Pos(endLine,endCh)}}}}CodeMirror2.registerHelper("fold","xml",function(cm,start){for(var iter=new Iter(cm,start.line,0);;){var openTag=toNextTag(iter);if(!openTag||iter.line!=start.line)return;var end=toTagEnd(iter);if(!end)return;if(!openTag[1]&&end!="selfClose"){var startPos=Pos(iter.line,iter.ch),endPos=findMatchingClose(iter,openTag[2]);return endPos&&cmp(endPos.from,startPos)>0?{from:startPos,to:endPos.from}:null}}}),CodeMirror2.findMatchingTag=function(cm,pos,range){var iter=new Iter(cm,pos.line,pos.ch,range);if(!(iter.text.indexOf(">")==-1&&iter.text.indexOf("<")==-1)){var end=toTagEnd(iter),to=end&&Pos(iter.line,iter.ch),start=end&&toTagStart(iter);if(!(!end||!start||cmp(iter,pos)>0)){var here={from:Pos(iter.line,iter.ch),to,tag:start[2]};return end=="selfClose"?{open:here,close:null,at:"open"}:start[1]?{open:findMatchingOpen(iter,start[2]),close:here,at:"close"}:(iter=new Iter(cm,to.line,to.ch,range),{open:here,close:findMatchingClose(iter,start[2]),at:"open"})}}},CodeMirror2.findEnclosingTag=function(cm,pos,range,tag){for(var iter=new Iter(cm,pos.line,pos.ch,range);;){var open=findMatchingOpen(iter,tag);if(!open)break;var forward=new Iter(cm,pos.line,pos.ch,range),close=findMatchingClose(forward,open.tag);if(close)return{open,close}}},CodeMirror2.scanForClosingTag=function(cm,pos,name,end){var iter=new Iter(cm,pos.line,pos.ch,end?{from:0,to:end}:null);return findMatchingClose(iter,name)}})}();var dialog={exports:{}};(function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){function dialogDiv(cm,template,bottom){var wrap=cm.getWrapperElement(),dialog2;return dialog2=wrap.appendChild(document.createElement("div")),bottom?dialog2.className="CodeMirror-dialog CodeMirror-dialog-bottom":dialog2.className="CodeMirror-dialog CodeMirror-dialog-top",typeof template=="string"?dialog2.innerHTML=template:dialog2.appendChild(template),CodeMirror2.addClass(wrap,"dialog-opened"),dialog2}function closeNotification(cm,newVal){cm.state.currentNotificationClose&&cm.state.currentNotificationClose(),cm.state.currentNotificationClose=newVal}CodeMirror2.defineExtension("openDialog",function(template,callback,options){options||(options={}),closeNotification(this,null);var dialog2=dialogDiv(this,template,options.bottom),closed=!1,me=this;function close(newVal){if(typeof newVal=="string")inp.value=newVal;else{if(closed)return;closed=!0,CodeMirror2.rmClass(dialog2.parentNode,"dialog-opened"),dialog2.parentNode.removeChild(dialog2),me.focus(),options.onClose&&options.onClose(dialog2)}}var inp=dialog2.getElementsByTagName("input")[0],button;return inp?(inp.focus(),options.value&&(inp.value=options.value,options.selectValueOnOpen!==!1&&inp.select()),options.onInput&&CodeMirror2.on(inp,"input",function(e){options.onInput(e,inp.value,close)}),options.onKeyUp&&CodeMirror2.on(inp,"keyup",function(e){options.onKeyUp(e,inp.value,close)}),CodeMirror2.on(inp,"keydown",function(e){options&&options.onKeyDown&&options.onKeyDown(e,inp.value,close)||((e.keyCode==27||options.closeOnEnter!==!1&&e.keyCode==13)&&(inp.blur(),CodeMirror2.e_stop(e),close()),e.keyCode==13&&callback(inp.value,e))}),options.closeOnBlur!==!1&&CodeMirror2.on(dialog2,"focusout",function(evt){evt.relatedTarget!==null&&close()})):(button=dialog2.getElementsByTagName("button")[0])&&(CodeMirror2.on(button,"click",function(){close(),me.focus()}),options.closeOnBlur!==!1&&CodeMirror2.on(button,"blur",close),button.focus()),close}),CodeMirror2.defineExtension("openConfirm",function(template,callbacks,options){closeNotification(this,null);var dialog2=dialogDiv(this,template,options&&options.bottom),buttons=dialog2.getElementsByTagName("button"),closed=!1,me=this,blurring=1;function close(){closed||(closed=!0,CodeMirror2.rmClass(dialog2.parentNode,"dialog-opened"),dialog2.parentNode.removeChild(dialog2),me.focus())}buttons[0].focus();for(var i=0;i<buttons.length;++i){var b=buttons[i];(function(callback){CodeMirror2.on(b,"click",function(e){CodeMirror2.e_preventDefault(e),close(),callback&&callback(me)})})(callbacks[i]),CodeMirror2.on(b,"blur",function(){--blurring,setTimeout(function(){blurring<=0&&close()},200)}),CodeMirror2.on(b,"focus",function(){++blurring})}}),CodeMirror2.defineExtension("openNotification",function(template,options){closeNotification(this,close);var dialog2=dialogDiv(this,template,options&&options.bottom),closed=!1,doneTimer,duration=options&&typeof options.duration<"u"?options.duration:5e3;function close(){closed||(closed=!0,clearTimeout(doneTimer),CodeMirror2.rmClass(dialog2.parentNode,"dialog-opened"),dialog2.parentNode.removeChild(dialog2))}return CodeMirror2.on(dialog2,"click",function(e){CodeMirror2.e_preventDefault(e),close()}),duration&&(doneTimer=setTimeout(close,duration)),close})})})();var dialogExports=dialog.exports;(function(module2,exports3){(function(mod){mod(requireCodemirror(),dialogExports)})(function(CodeMirror2){CodeMirror2.defineOption("search",{bottom:!1});function dialog2(cm,text,shortText,deflt,f){cm.openDialog?cm.openDialog(text,f,{value:deflt,selectValueOnOpen:!0,bottom:cm.options.search.bottom}):f(prompt(shortText,deflt))}function getJumpDialog(cm){return cm.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+cm.phrase("(Use line:column or scroll% syntax)")+"</span>"}function interpretLine(cm,string){var num=Number(string);return/^[-+]/.test(string)?cm.getCursor().line+num:num-1}CodeMirror2.commands.jumpToLine=function(cm){var cur=cm.getCursor();dialog2(cm,getJumpDialog(cm),cm.phrase("Jump to line:"),cur.line+1+":"+cur.ch,function(posStr){if(posStr){var match;if(match=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(posStr))cm.setCursor(interpretLine(cm,match[1]),Number(match[2]));else if(match=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(posStr)){var line=Math.round(cm.lineCount()*Number(match[1])/100);/^[-+]/.test(match[1])&&(line=cur.line+line+1),cm.setCursor(line-1,cur.ch)}else(match=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(posStr))&&cm.setCursor(interpretLine(cm,match[1]),cur.ch)}})},CodeMirror2.keyMap.default["Alt-G"]="jumpToLine"})})();var searchcursor={exports:{}},hasRequiredSearchcursor;function requireSearchcursor(){return hasRequiredSearchcursor||(hasRequiredSearchcursor=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){var Pos=CodeMirror2.Pos;function regexpFlags(regexp){var flags=regexp.flags;return flags??(regexp.ignoreCase?"i":"")+(regexp.global?"g":"")+(regexp.multiline?"m":"")}function ensureFlags(regexp,flags){for(var current=regexpFlags(regexp),target=current,i=0;i<flags.length;i++)target.indexOf(flags.charAt(i))==-1&&(target+=flags.charAt(i));return current==target?regexp:new RegExp(regexp.source,target)}function maybeMultiline(regexp){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(regexp.source)}function searchRegexpForward(doc,regexp,start){regexp=ensureFlags(regexp,"g");for(var line=start.line,ch=start.ch,last=doc.lastLine();line<=last;line++,ch=0){regexp.lastIndex=ch;var string=doc.getLine(line),match=regexp.exec(string);if(match)return{from:Pos(line,match.index),to:Pos(line,match.index+match[0].length),match}}}function searchRegexpForwardMultiline(doc,regexp,start){if(!maybeMultiline(regexp))return searchRegexpForward(doc,regexp,start);regexp=ensureFlags(regexp,"gm");for(var string,chunk=1,line=start.line,last=doc.lastLine();line<=last;){for(var i=0;i<chunk&&!(line>last);i++){var curLine=doc.getLine(line++);string=string==null?curLine:string+`
|
|
26
25
|
`+curLine}chunk=chunk*2,regexp.lastIndex=start.ch;var match=regexp.exec(string);if(match){var before=string.slice(0,match.index).split(`
|
|
27
26
|
`),inside=match[0].split(`
|
|
28
27
|
`),startLine=start.line+before.length-1,startCh=before[before.length-1].length;return{from:Pos(startLine,startCh),to:Pos(startLine+inside.length-1,inside.length==1?startCh+inside[0].length:inside[inside.length-1].length),match}}}}function lastMatchIn(string,regexp,endMargin){for(var match,from=0;from<=string.length;){regexp.lastIndex=from;var newMatch=regexp.exec(string);if(!newMatch)break;var end=newMatch.index+newMatch[0].length;if(end>string.length-endMargin)break;(!match||end>match.index+match[0].length)&&(match=newMatch),from=newMatch.index+1}return match}function searchRegexpBackward(doc,regexp,start){regexp=ensureFlags(regexp,"g");for(var line=start.line,ch=start.ch,first=doc.firstLine();line>=first;line--,ch=-1){var string=doc.getLine(line),match=lastMatchIn(string,regexp,ch<0?0:string.length-ch);if(match)return{from:Pos(line,match.index),to:Pos(line,match.index+match[0].length),match}}}function searchRegexpBackwardMultiline(doc,regexp,start){if(!maybeMultiline(regexp))return searchRegexpBackward(doc,regexp,start);regexp=ensureFlags(regexp,"gm");for(var string,chunkSize=1,endMargin=doc.getLine(start.line).length-start.ch,line=start.line,first=doc.firstLine();line>=first;){for(var i=0;i<chunkSize&&line>=first;i++){var curLine=doc.getLine(line--);string=string==null?curLine:curLine+`
|
|
29
28
|
`+string}chunkSize*=2;var match=lastMatchIn(string,regexp,endMargin);if(match){var before=string.slice(0,match.index).split(`
|
|
30
29
|
`),inside=match[0].split(`
|
|
31
|
-
`),startLine=line+before.length,startCh=before[before.length-1].length;return{from:Pos(startLine,startCh),to:Pos(startLine+inside.length-1,inside.length==1?startCh+inside[0].length:inside[inside.length-1].length),match}}}}var doFold,noFold;String.prototype.normalize?(doFold=function(str){return str.normalize("NFD").toLowerCase()},noFold=function(str){return str.normalize("NFD")}):(doFold=function(str){return str.toLowerCase()},noFold=function(str){return str});function adjustPos(orig,folded,pos,foldFunc){if(orig.length==folded.length)return pos;for(var min=0,max=pos+Math.max(0,orig.length-folded.length);;){if(min==max)return min;var mid=min+max>>1,len=foldFunc(orig.slice(0,mid)).length;if(len==pos)return mid;len>pos?max=mid:min=mid+1}}function searchStringForward(doc,query,start,caseFold){if(!query.length)return null;var fold=caseFold?doFold:noFold,lines=fold(query).split(/\r|\n\r?/);search:for(var line=start.line,ch=start.ch,last=doc.lastLine()+1-lines.length;line<=last;line++,ch=0){var orig=doc.getLine(line).slice(ch),string=fold(orig);if(lines.length==1){var found=string.indexOf(lines[0]);if(found==-1)continue search;var start=adjustPos(orig,string,found,fold)+ch;return{from:Pos(line,adjustPos(orig,string,found,fold)+ch),to:Pos(line,adjustPos(orig,string,found+lines[0].length,fold)+ch)}}else{var cutFrom=string.length-lines[0].length;if(string.slice(cutFrom)!=lines[0])continue search;for(var i=1;i<lines.length-1;i++)if(fold(doc.getLine(line+i))!=lines[i])continue search;var end=doc.getLine(line+lines.length-1),endString=fold(end),lastLine=lines[lines.length-1];if(endString.slice(0,lastLine.length)!=lastLine)continue search;return{from:Pos(line,adjustPos(orig,string,cutFrom,fold)+ch),to:Pos(line+lines.length-1,adjustPos(end,endString,lastLine.length,fold))}}}}function searchStringBackward(doc,query,start,caseFold){if(!query.length)return null;var fold=caseFold?doFold:noFold,lines=fold(query).split(/\r|\n\r?/);search:for(var line=start.line,ch=start.ch,first=doc.firstLine()-1+lines.length;line>=first;line--,ch=-1){var orig=doc.getLine(line);ch>-1&&(orig=orig.slice(0,ch));var string=fold(orig);if(lines.length==1){var found=string.lastIndexOf(lines[0]);if(found==-1)continue search;return{from:Pos(line,adjustPos(orig,string,found,fold)),to:Pos(line,adjustPos(orig,string,found+lines[0].length,fold))}}else{var lastLine=lines[lines.length-1];if(string.slice(0,lastLine.length)!=lastLine)continue search;for(var i=1,start=line-lines.length+1;i<lines.length-1;i++)if(fold(doc.getLine(start+i))!=lines[i])continue search;var top=doc.getLine(line+1-lines.length),topString=fold(top);if(topString.slice(topString.length-lines[0].length)!=lines[0])continue search;return{from:Pos(line+1-lines.length,adjustPos(top,topString,top.length-lines[0].length,fold)),to:Pos(line,adjustPos(orig,string,lastLine.length,fold))}}}}function SearchCursor(doc,query,pos,options){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=doc,pos=pos?doc.clipPos(pos):Pos(0,0),this.pos={from:pos,to:pos};var caseFold;typeof options=="object"?caseFold=options.caseFold:(caseFold=options,options=null),typeof query=="string"?(caseFold==null&&(caseFold=!1),this.matches=function(reverse,pos2){return(reverse?searchStringBackward:searchStringForward)(doc,query,pos2,caseFold)}):(query=ensureFlags(query,"gm"),!options||options.multiline!==!1?this.matches=function(reverse,pos2){return(reverse?searchRegexpBackwardMultiline:searchRegexpForwardMultiline)(doc,query,pos2)}:this.matches=function(reverse,pos2){return(reverse?searchRegexpBackward:searchRegexpForward)(doc,query,pos2)})}SearchCursor.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(reverse){var head=this.doc.clipPos(reverse?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(head=Pos(head.line,head.ch),reverse?(head.ch--,head.ch<0&&(head.line--,head.ch=(this.doc.getLine(head.line)||"").length)):(head.ch++,head.ch>(this.doc.getLine(head.line)||"").length&&(head.ch=0,head.line++)),CodeMirror2.cmpPos(head,this.doc.clipPos(head))!=0))return this.atOccurrence=!1;var result=this.matches(reverse,head);if(this.afterEmptyMatch=result&&CodeMirror2.cmpPos(result.from,result.to)==0,result)return this.pos=result,this.atOccurrence=!0,this.pos.match||!0;var end=Pos(reverse?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:end,to:end},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(newText,origin){if(this.atOccurrence){var lines=CodeMirror2.splitLines(newText);this.doc.replaceRange(lines,this.pos.from,this.pos.to,origin),this.pos.to=Pos(this.pos.from.line+lines.length-1,lines[lines.length-1].length+(lines.length==1?this.pos.from.ch:0))}}},CodeMirror2.defineExtension("getSearchCursor",function(query,pos,caseFold){return new SearchCursor(this.doc,query,pos,caseFold)}),CodeMirror2.defineDocExtension("getSearchCursor",function(query,pos,caseFold){return new SearchCursor(this,query,pos,caseFold)}),CodeMirror2.defineExtension("selectMatches",function(query,caseFold){for(var ranges=[],cur=this.getSearchCursor(query,this.getCursor("from"),caseFold);cur.findNext()&&!(CodeMirror2.cmpPos(cur.to(),this.getCursor("to"))>0);)ranges.push({anchor:cur.from(),head:cur.to()});ranges.length&&this.setSelections(ranges,0)})})}()),searchcursor.exports}
|
|
32
|
-
`:ch=="r"?"\r":ch=="t"?" ":ch=="\\"?"\\":match})}function parseQuery(query){var isRE=query.match(/^\/(.*)\/([a-z]*)$/);if(isRE)try{query=new RegExp(isRE[1],isRE[2].indexOf("i")==-1?"":"i")}catch{}else query=parseString(query);return(typeof query=="string"?query=="":query.test(""))&&(query=/x^/),query}function startSearch(cm,state,query){state.queryText=query,state.query=parseQuery(query),cm.removeOverlay(state.overlay,queryCaseInsensitive(state.query)),state.overlay=searchOverlay(state.query,queryCaseInsensitive(state.query)),cm.addOverlay(state.overlay),cm.showMatchesOnScrollbar&&(state.annotate&&(state.annotate.clear(),state.annotate=null),state.annotate=cm.showMatchesOnScrollbar(state.query,queryCaseInsensitive(state.query)))}function doSearch(cm,rev,persistent,immediate){var state=getSearchState(cm);if(state.query)return findNext(cm,rev);var q=cm.getSelection()||state.lastQuery;if(q instanceof RegExp&&q.source=="x^"&&(q=null),persistent&&cm.openDialog){var hiding=null,searchNext=function(query,event){CodeMirror2.e_stop(event),query&&(query!=state.queryText&&(startSearch(cm,state,query),state.posFrom=state.posTo=cm.getCursor()),hiding&&(hiding.style.opacity=1),findNext(cm,event.shiftKey,function(_,to){var dialog3;to.line<3&&document.querySelector&&(dialog3=cm.display.wrapper.querySelector(".CodeMirror-dialog"))&&dialog3.getBoundingClientRect().bottom-4>cm.cursorCoords(to,"window").top&&((hiding=dialog3).style.opacity=.4)}))};persistentDialog(cm,getQueryDialog(cm),q,searchNext,function(event,query){var keyName=CodeMirror2.keyName(event),extra=cm.getOption("extraKeys"),cmd=extra&&extra[keyName]||CodeMirror2.keyMap[cm.getOption("keyMap")][keyName];cmd=="findNext"||cmd=="findPrev"||cmd=="findPersistentNext"||cmd=="findPersistentPrev"?(CodeMirror2.e_stop(event),startSearch(cm,getSearchState(cm),query),cm.execCommand(cmd)):(cmd=="find"||cmd=="findPersistent")&&(CodeMirror2.e_stop(event),searchNext(query,event))}),immediate&&q&&(startSearch(cm,state,q),findNext(cm,rev))}else dialog2(cm,getQueryDialog(cm),"Search for:",q,function(query){query&&!state.query&&cm.operation(function(){startSearch(cm,state,query),state.posFrom=state.posTo=cm.getCursor(),findNext(cm,rev)})})}function findNext(cm,rev,callback){cm.operation(function(){var state=getSearchState(cm),cursor=getSearchCursor(cm,state.query,rev?state.posFrom:state.posTo);!cursor.find(rev)&&(cursor=getSearchCursor(cm,state.query,rev?CodeMirror2.Pos(cm.lastLine()):CodeMirror2.Pos(cm.firstLine(),0)),!cursor.find(rev))||(cm.setSelection(cursor.from(),cursor.to()),cm.scrollIntoView({from:cursor.from(),to:cursor.to()},20),state.posFrom=cursor.from(),state.posTo=cursor.to(),callback&&callback(cursor.from(),cursor.to()))})}function clearSearch(cm){cm.operation(function(){var state=getSearchState(cm);state.lastQuery=state.query,state.query&&(state.query=state.queryText=null,cm.removeOverlay(state.overlay),state.annotate&&(state.annotate.clear(),state.annotate=null))})}function el(tag,attrs){var element=tag?document.createElement(tag):document.createDocumentFragment();for(var key in attrs)element[key]=attrs[key];for(var i=2;i<arguments.length;i++){var child=arguments[i];element.appendChild(typeof child=="string"?document.createTextNode(child):child)}return element}function getQueryDialog(cm){var label=el("label",{className:"CodeMirror-search-label"},cm.phrase("Search:"),el("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return label.setAttribute("for","CodeMirror-search-field"),el("",null,label," ",el("span",{style:"color: #666",className:"CodeMirror-search-hint"},cm.phrase("(Use /re/ syntax for regexp search)")))}function getReplaceQueryDialog(cm){return el("",null," ",el("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",el("span",{style:"color: #666",className:"CodeMirror-search-hint"},cm.phrase("(Use /re/ syntax for regexp search)")))}function getReplacementQueryDialog(cm){return el("",null,el("span",{className:"CodeMirror-search-label"},cm.phrase("With:"))," ",el("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function getDoReplaceConfirm(cm){return el("",null,el("span",{className:"CodeMirror-search-label"},cm.phrase("Replace?"))," ",el("button",{},cm.phrase("Yes"))," ",el("button",{},cm.phrase("No"))," ",el("button",{},cm.phrase("All"))," ",el("button",{},cm.phrase("Stop")))}function replaceAll(cm,query,text){cm.operation(function(){for(var cursor=getSearchCursor(cm,query);cursor.findNext();)if(typeof query!="string"){var match=cm.getRange(cursor.from(),cursor.to()).match(query);cursor.replace(text.replace(/\$(\d)/g,function(_,i){return match[i]}))}else cursor.replace(text)})}function replace(cm,all){if(!cm.getOption("readOnly")){var query=cm.getSelection()||getSearchState(cm).lastQuery,dialogText=all?cm.phrase("Replace all:"):cm.phrase("Replace:"),fragment=el("",null,el("span",{className:"CodeMirror-search-label"},dialogText),getReplaceQueryDialog(cm));dialog2(cm,fragment,dialogText,query,function(query2){query2&&(query2=parseQuery(query2),dialog2(cm,getReplacementQueryDialog(cm),cm.phrase("Replace with:"),"",function(text){if(text=parseString(text),all)replaceAll(cm,query2,text);else{clearSearch(cm);var cursor=getSearchCursor(cm,query2,cm.getCursor("from")),advance=function(){var start=cursor.from(),match;!(match=cursor.findNext())&&(cursor=getSearchCursor(cm,query2),!(match=cursor.findNext())||start&&cursor.from().line==start.line&&cursor.from().ch==start.ch)||(cm.setSelection(cursor.from(),cursor.to()),cm.scrollIntoView({from:cursor.from(),to:cursor.to()}),confirmDialog(cm,getDoReplaceConfirm(cm),cm.phrase("Replace?"),[function(){doReplace(match)},advance,function(){replaceAll(cm,query2,text)}]))},doReplace=function(match){cursor.replace(typeof query2=="string"?text:text.replace(/\$(\d)/g,function(_,i){return match[i]})),advance()};advance()}}))})}}CodeMirror2.commands.find=function(cm){clearSearch(cm),doSearch(cm)},CodeMirror2.commands.findPersistent=function(cm){clearSearch(cm),doSearch(cm,!1,!0)},CodeMirror2.commands.findPersistentNext=function(cm){doSearch(cm,!1,!0,!0)},CodeMirror2.commands.findPersistentPrev=function(cm){doSearch(cm,!0,!0,!0)},CodeMirror2.commands.findNext=doSearch,CodeMirror2.commands.findPrev=function(cm){doSearch(cm,!0)},CodeMirror2.commands.clearSearch=clearSearch,CodeMirror2.commands.replace=replace,CodeMirror2.commands.replaceAll=function(cm){replace(cm,!0)}})}()),search.exports}requireSearch(),requireSearchcursor();var showHint={exports:{}},hasRequiredShowHint;function requireShowHint(){return hasRequiredShowHint||(hasRequiredShowHint=1,function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){var HINT_ELEMENT_CLASS="CodeMirror-hint",ACTIVE_HINT_ELEMENT_CLASS="CodeMirror-hint-active";CodeMirror2.showHint=function(cm,getHints,options){if(!getHints)return cm.showHint(options);options&&options.async&&(getHints.async=!0);var newOpts={hint:getHints};if(options)for(var prop in options)newOpts[prop]=options[prop];return cm.showHint(newOpts)},CodeMirror2.defineExtension("showHint",function(options){options=parseOptions(this,this.getCursor("start"),options);var selections=this.listSelections();if(!(selections.length>1)){if(this.somethingSelected()){if(!options.hint.supportsSelection)return;for(var i=0;i<selections.length;i++)if(selections[i].head.line!=selections[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var completion=this.state.completionActive=new Completion(this,options);completion.options.hint&&(CodeMirror2.signal(this,"startCompletion",this),completion.update(!0))}}),CodeMirror2.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function Completion(cm,options){if(this.cm=cm,this.options=options,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 self2=this;cm.on("cursorActivity",this.activityFunc=function(){self2.cursorActivity()})}}var requestAnimationFrame=window.requestAnimationFrame||function(fn){return setTimeout(fn,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||clearTimeout;Completion.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&&CodeMirror2.signal(this.data,"close"),this.widget&&this.widget.close(),CodeMirror2.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(data,i){var completion=data.list[i],self2=this;this.cm.operation(function(){completion.hint?completion.hint(self2.cm,data,completion):self2.cm.replaceRange(getText(completion),completion.from||data.from,completion.to||data.to,"complete"),CodeMirror2.signal(data,"pick",completion),self2.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(cancelAnimationFrame(this.debounce),this.debounce=0);var identStart=this.startPos;this.data&&(identStart=this.data.from);var pos=this.cm.getCursor(),line=this.cm.getLine(pos.line);if(pos.line!=this.startPos.line||line.length-pos.ch!=this.startLen-this.startPos.ch||pos.ch<identStart.ch||this.cm.somethingSelected()||!pos.ch||this.options.closeCharacters.test(line.charAt(pos.ch-1)))this.close();else{var self2=this;this.debounce=requestAnimationFrame(function(){self2.update()}),this.widget&&this.widget.disable()}},update:function(first){if(this.tick!=null){var self2=this,myTick=++this.tick;fetchHints(this.options.hint,this.cm,this.options,function(data){self2.tick==myTick&&self2.finishUpdate(data,first)})}},finishUpdate:function(data,first){this.data&&CodeMirror2.signal(this.data,"update");var picked=this.widget&&this.widget.picked||first&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=data,data&&data.list.length&&(picked&&data.list.length==1?this.pick(data,0):(this.widget=new Widget(this,data),CodeMirror2.signal(data,"shown")))}};function parseOptions(cm,pos,options){var editor=cm.options.hintOptions,out={};for(var prop in defaultOptions)out[prop]=defaultOptions[prop];if(editor)for(var prop in editor)editor[prop]!==void 0&&(out[prop]=editor[prop]);if(options)for(var prop in options)options[prop]!==void 0&&(out[prop]=options[prop]);return out.hint.resolve&&(out.hint=out.hint.resolve(cm,pos)),out}function getText(completion){return typeof completion=="string"?completion:completion.text}function buildKeyMap(completion,handle){var baseMap={Up:function(){handle.moveFocus(-1)},Down:function(){handle.moveFocus(1)},PageUp:function(){handle.moveFocus(-handle.menuSize()+1,!0)},PageDown:function(){handle.moveFocus(handle.menuSize()-1,!0)},Home:function(){handle.setFocus(0)},End:function(){handle.setFocus(handle.length-1)},Enter:handle.pick,Tab:handle.pick,Esc:handle.close},mac=/Mac/.test(navigator.platform);mac&&(baseMap["Ctrl-P"]=function(){handle.moveFocus(-1)},baseMap["Ctrl-N"]=function(){handle.moveFocus(1)});var custom=completion.options.customKeys,ourMap=custom?{}:baseMap;function addBinding(key2,val){var bound;typeof val!="string"?bound=function(cm){return val(cm,handle)}:baseMap.hasOwnProperty(val)?bound=baseMap[val]:bound=val,ourMap[key2]=bound}if(custom)for(var key in custom)custom.hasOwnProperty(key)&&addBinding(key,custom[key]);var extra=completion.options.extraKeys;if(extra)for(var key in extra)extra.hasOwnProperty(key)&&addBinding(key,extra[key]);return ourMap}function getHintElement(hintsElement,el){for(;el&&el!=hintsElement;){if(el.nodeName.toUpperCase()==="LI"&&el.parentNode==hintsElement)return el;el=el.parentNode}}function Widget(completion,data){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=completion,this.data=data,this.picked=!1;var widget=this,cm=completion.cm,ownerDocument=cm.getInputField().ownerDocument,parentWindow=ownerDocument.defaultView||ownerDocument.parentWindow,hints=this.hints=ownerDocument.createElement("ul");hints.setAttribute("role","listbox"),hints.setAttribute("aria-expanded","true"),hints.id=this.id;var theme=completion.cm.options.theme;hints.className="CodeMirror-hints "+theme,this.selectedHint=data.selectedHint||0;for(var completions=data.list,i=0;i<completions.length;++i){var elt=hints.appendChild(ownerDocument.createElement("li")),cur=completions[i],className=HINT_ELEMENT_CLASS+(i!=this.selectedHint?"":" "+ACTIVE_HINT_ELEMENT_CLASS);cur.className!=null&&(className=cur.className+" "+className),elt.className=className,i==this.selectedHint&&elt.setAttribute("aria-selected","true"),elt.id=this.id+"-"+i,elt.setAttribute("role","option"),cur.render?cur.render(elt,data,cur):elt.appendChild(ownerDocument.createTextNode(cur.displayText||getText(cur))),elt.hintId=i}var container=completion.options.container||ownerDocument.body,pos=cm.cursorCoords(completion.options.alignWithWord?data.from:null),left=pos.left,top=pos.bottom,below=!0,offsetLeft=0,offsetTop=0;if(container!==ownerDocument.body){var isContainerPositioned=["absolute","relative","fixed"].indexOf(parentWindow.getComputedStyle(container).position)!==-1,offsetParent=isContainerPositioned?container:container.offsetParent,offsetParentPosition=offsetParent.getBoundingClientRect(),bodyPosition=ownerDocument.body.getBoundingClientRect();offsetLeft=offsetParentPosition.left-bodyPosition.left-offsetParent.scrollLeft,offsetTop=offsetParentPosition.top-bodyPosition.top-offsetParent.scrollTop}hints.style.left=left-offsetLeft+"px",hints.style.top=top-offsetTop+"px";var winW=parentWindow.innerWidth||Math.max(ownerDocument.body.offsetWidth,ownerDocument.documentElement.offsetWidth),winH=parentWindow.innerHeight||Math.max(ownerDocument.body.offsetHeight,ownerDocument.documentElement.offsetHeight);container.appendChild(hints),cm.getInputField().setAttribute("aria-autocomplete","list"),cm.getInputField().setAttribute("aria-owns",this.id),cm.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var box=completion.options.moveOnOverlap?hints.getBoundingClientRect():new DOMRect,scrolls=completion.options.paddingForScrollbar?hints.scrollHeight>hints.clientHeight+1:!1,startScroll;setTimeout(function(){startScroll=cm.getScrollInfo()});var overlapY=box.bottom-winH;if(overlapY>0){var height=box.bottom-box.top,spaceAbove=box.top-(pos.bottom-pos.top)-2;winH-box.top<spaceAbove?(height>spaceAbove&&(hints.style.height=(height=spaceAbove)+"px"),hints.style.top=(top=pos.top-height)+offsetTop+"px",below=!1):hints.style.height=winH-box.top-2+"px"}var overlapX=box.right-winW;if(scrolls&&(overlapX+=cm.display.nativeBarWidth),overlapX>0&&(box.right-box.left>winW&&(hints.style.width=winW-5+"px",overlapX-=box.right-box.left-winW),hints.style.left=(left=Math.max(pos.left-overlapX-offsetLeft,0))+"px"),scrolls)for(var node=hints.firstChild;node;node=node.nextSibling)node.style.paddingRight=cm.display.nativeBarWidth+"px";if(cm.addKeyMap(this.keyMap=buildKeyMap(completion,{moveFocus:function(n,avoidWrap){widget.changeActive(widget.selectedHint+n,avoidWrap)},setFocus:function(n){widget.changeActive(n)},menuSize:function(){return widget.screenAmount()},length:completions.length,close:function(){completion.close()},pick:function(){widget.pick()},data})),completion.options.closeOnUnfocus){var closingOnBlur;cm.on("blur",this.onBlur=function(){closingOnBlur=setTimeout(function(){completion.close()},100)}),cm.on("focus",this.onFocus=function(){clearTimeout(closingOnBlur)})}cm.on("scroll",this.onScroll=function(){var curScroll=cm.getScrollInfo(),editor=cm.getWrapperElement().getBoundingClientRect();startScroll||(startScroll=cm.getScrollInfo());var newTop=top+startScroll.top-curScroll.top,point=newTop-(parentWindow.pageYOffset||(ownerDocument.documentElement||ownerDocument.body).scrollTop);if(below||(point+=hints.offsetHeight),point<=editor.top||point>=editor.bottom)return completion.close();hints.style.top=newTop+"px",hints.style.left=left+startScroll.left-curScroll.left+"px"}),CodeMirror2.on(hints,"dblclick",function(e){var t=getHintElement(hints,e.target||e.srcElement);t&&t.hintId!=null&&(widget.changeActive(t.hintId),widget.pick())}),CodeMirror2.on(hints,"click",function(e){var t=getHintElement(hints,e.target||e.srcElement);t&&t.hintId!=null&&(widget.changeActive(t.hintId),completion.options.completeOnSingleClick&&widget.pick())}),CodeMirror2.on(hints,"mousedown",function(){setTimeout(function(){cm.focus()},20)});var selectedHintRange=this.getSelectedHintRange();return(selectedHintRange.from!==0||selectedHintRange.to!==0)&&this.scrollToActive(),CodeMirror2.signal(data,"select",completions[this.selectedHint],hints.childNodes[this.selectedHint]),!0}Widget.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 input=this.completion.cm.getInputField();input.removeAttribute("aria-activedescendant"),input.removeAttribute("aria-owns");var cm=this.completion.cm;this.completion.options.closeOnUnfocus&&(cm.off("blur",this.onBlur),cm.off("focus",this.onFocus)),cm.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var widget=this;this.keyMap={Enter:function(){widget.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(i,avoidWrap){if(i>=this.data.list.length?i=avoidWrap?this.data.list.length-1:0:i<0&&(i=avoidWrap?0:this.data.list.length-1),this.selectedHint!=i){var node=this.hints.childNodes[this.selectedHint];node&&(node.className=node.className.replace(" "+ACTIVE_HINT_ELEMENT_CLASS,""),node.removeAttribute("aria-selected")),node=this.hints.childNodes[this.selectedHint=i],node.className+=" "+ACTIVE_HINT_ELEMENT_CLASS,node.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",node.id),this.scrollToActive(),CodeMirror2.signal(this.data,"select",this.data.list[this.selectedHint],node)}},scrollToActive:function(){var selectedHintRange=this.getSelectedHintRange(),node1=this.hints.childNodes[selectedHintRange.from],node2=this.hints.childNodes[selectedHintRange.to],firstNode=this.hints.firstChild;node1.offsetTop<this.hints.scrollTop?this.hints.scrollTop=node1.offsetTop-firstNode.offsetTop:node2.offsetTop+node2.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=node2.offsetTop+node2.offsetHeight-this.hints.clientHeight+firstNode.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var margin=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-margin),to:Math.min(this.data.list.length-1,this.selectedHint+margin)}}};function applicableHelpers(cm,helpers){if(!cm.somethingSelected())return helpers;for(var result=[],i=0;i<helpers.length;i++)helpers[i].supportsSelection&&result.push(helpers[i]);return result}function fetchHints(hint,cm,options,callback){if(hint.async)hint(cm,callback,options);else{var result=hint(cm,options);result&&result.then?result.then(callback):callback(result)}}function resolveAutoHints(cm,pos){var helpers=cm.getHelpers(pos,"hint"),words;if(helpers.length){var resolved=function(cm2,callback,options){var app=applicableHelpers(cm2,helpers);function run(i){if(i==app.length)return callback(null);fetchHints(app[i],cm2,options,function(result){result&&result.list.length>0?callback(result):run(i+1)})}run(0)};return resolved.async=!0,resolved.supportsSelection=!0,resolved}else return(words=cm.getHelper(cm.getCursor(),"hintWords"))?function(cm2){return CodeMirror2.hint.fromList(cm2,{words})}:CodeMirror2.hint.anyword?function(cm2,options){return CodeMirror2.hint.anyword(cm2,options)}:function(){}}CodeMirror2.registerHelper("hint","auto",{resolve:resolveAutoHints}),CodeMirror2.registerHelper("hint","fromList",function(cm,options){var cur=cm.getCursor(),token=cm.getTokenAt(cur),term,from=CodeMirror2.Pos(cur.line,token.start),to=cur;token.start<cur.ch&&/\w/.test(token.string.charAt(cur.ch-token.start-1))?term=token.string.substr(0,cur.ch-token.start):(term="",from=cur);for(var found=[],i=0;i<options.words.length;i++){var word=options.words[i];word.slice(0,term.length)==term&&found.push(word)}if(found.length)return{list:found,from,to}}),CodeMirror2.commands.autocomplete=CodeMirror2.showHint;var defaultOptions={hint:CodeMirror2.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};CodeMirror2.defineOption("hintOptions",null)})}()),showHint.exports}requireShowHint();class Editor extends common.HTMLWidget{constructor(){super(...arguments);__publicField(this,"_codemirror");__publicField(this,"_markedText",[]);__publicField(this,"_initialText","");__publicField(this,"_options",new Map)}options(){return{gutters:this.guttersOption(),readOnly:this.readOnly(),lineNumbers:!0,tabSize:2}}option(option,value){if(this._codemirror)return arguments.length<2?this._codemirror.getOption(option):(this._codemirror.setOption(option,value),this);if(arguments.length<2)return this._options.get(option);this._options.set(option,value)}guttersOption(){const gutters=["CodeMirror-linenumbers"];return this.gutterMarkerWidth()>0&&gutters.unshift({className:"CodeMirror-guttermarker",style:`width:${this.gutterMarkerWidth()}px;`}),gutters}addGutterMarker(lineNumber,commentText,backgroundColor=null,fontFamily=null,fontSize=null,onmouseenter=()=>{},onmouseleave=()=>{},onclick=event=>{}){const line=this._codemirror.getLineHandle(lineNumber),marker=document.createElement("div");marker.textContent=commentText,marker.style.paddingLeft="3px",marker.style.paddingRight="3px",marker.style.color=common.Palette.textColor(backgroundColor),fontFamily!==null&&(marker.style.fontFamily=fontFamily),fontSize!==null&&(marker.style.fontSize=fontSize),marker.style.backgroundColor=backgroundColor,marker.style.textAlign=this.markerTextAlign(),this._codemirror.setGutterMarker(line,"CodeMirror-guttermarker",marker),marker.onmouseenter=onmouseenter,marker.onmouseleave=onmouseleave,marker.onclick=onclick}removeGutterMarker(lineNumber){const line=this._codemirror.getLineHandle(lineNumber);this._codemirror.setGutterMarker(line,"CodeMirror-guttermarker",null)}hasFocus(){return this._codemirror.hasFocus()}text(_){if(this._codemirror){const doc=this._codemirror.getDoc();return arguments.length?(doc.setValue(_),this):doc.getValue()}return arguments.length?(this._initialText=_,this):this._initialText}highlight(start,end,className="cm-marked-text"){return typeof start=="number"&&(start=this.positionAt(start)),typeof end=="number"&&(end=this.positionAt(end)),this._codemirror&&this._markedText.push(this._codemirror.markText(start,end,{className})),this}highlightInfo(start,end){return this.highlight(start,end,"cm-marked-info"),this}highlightWarning(start,end){return this.highlight(start,end,"cm-marked-warning"),this}highlightError(start,end){return this.highlight(start,end,"cm-marked-error"),this}removeAllHighlight(){for(const marked of this._markedText)marked.clear();return this._markedText=[],this}positionAt(i){return this._codemirror.posFromIndex(i)}getLineLength(lineNumber){var _a;return((_a=this._codemirror.doc.getLine(lineNumber))==null?void 0:_a.length)||0}highlightSubstring(str){const splitTextArr=this.text().split(str).slice(0,-1);let idx=0;splitTextArr.forEach(splitText=>{idx+=splitText.length,this.highlight(this.positionAt(idx),this.positionAt(idx+str.length)),idx+=str.length})}setCursor(row,col,focus=!0){this._codemirror.setCursor(row,col),focus&&setTimeout(()=>{this._codemirror.focus()},0)}enter(domNode,element){super.enter(domNode,element),this._codemirror=CodeMirror.fromTextArea(element.append("textarea").node(),this.options()),this._codemirror.on("changes",(cm,changes)=>{this.changes(changes)}),this._options.forEach((value,key)=>{this._codemirror.setOption(key,value)}),this.text(this._initialText)}update(domNode,Element){super.update(domNode,Element);const extraKeys=this._codemirror.getOption("extraKeys")??{};this.showHints()?extraKeys["Ctrl-Space"]="autocomplete":delete extraKeys["Ctrl-Space"],this._codemirror.setOption("readOnly",this.readOnly()),this._codemirror.setOption("gutters",this.guttersOption()),this._codemirror.setOption("extraKeys",extraKeys),this._codemirror.setOption("hintOptions",this.showHints()?{hint:(cm,option)=>this.fetchHints(cm,option)}:{}),this._codemirror.setSize(this.width()-2,this.height()-2),this._codemirror.refresh()}changes(changes){}fetchHints(cm,option){return Promise.resolve(null)}setOption(option,value){this._codemirror.setOption(option,value)}}Editor.prototype._class+=" codemirror_Editor",Editor.prototype.publish("markerTextAlign","right","string","Gutter marker text alignment",["left","center","right"]),Editor.prototype.publish("readOnly",!1,"boolean","If true, the contents will be uneditable"),Editor.prototype.publish("gutterMarkerWidth",0,"number","Width of gutter marker column displayed to the left of line numbers (pixels)"),Editor.prototype.publish("showHints",!1,"boolean","Show autocomplete hints on ctrl+space");class CSSEditor extends Editor{options(){return{...super.options(),mode:"text/css",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}css(_){return arguments.length?(this.text(_),this):this.text()}}CSSEditor.prototype._class+=" codemirror_CSSEditor";class DOTEditor extends Editor{options(){return{...super.options(),mode:"text/x-dot"}}dot(_){return arguments.length?(this.text(_),this):this.text()}}DOTEditor.prototype._class+=" codemirror_DOTEditor";class ECLEditor extends Editor{options(){return{...super.options(),mode:"text/x-ecl",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}ecl(_){return arguments.length?(this.text(_),this):this.text()}}ECLEditor.prototype._class+=" codemirror_ECLEditor";class HTMLEditor extends Editor{options(){return{...super.options(),mode:"htmlmixed",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}html(_){return arguments.length?(this.text(_),this):this.text()}}HTMLEditor.prototype._class+=" codemirror_HTMLEditor";class JSEditor extends Editor{options(){return{...super.options(),mode:"text/javascript",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}javascript(_){return arguments.length?(this.text(_),this):this.text()}}JSEditor.prototype._class+=" codemirror_JSEditor";class JSONEditor extends Editor{options(){return{...super.options(),mode:"application/json",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}json(_){return arguments.length?(this.text(JSON.stringify(_,null," ")),this):JSON.parse(this.text())}}JSONEditor.prototype._class+=" codemirror_JSONEditor";class MarkdownEditor extends Editor{options(){return{...super.options(),mode:"text/x-gfm",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}markdown(_){return arguments.length?(this.text(_),this):this.text()}}MarkdownEditor.prototype._class+=" codemirror_MarkdownEditor";class ObservableMarkdownEditor extends MarkdownEditor{options(){return{...super.options(),mode:{name:"text/x-gfm",defaultMode:"javascript"}}}}ObservableMarkdownEditor.prototype._class+=" codemirror_ObservableMarkdownEditor";class XMLEditor extends Editor{options(){return{...super.options(),mode:"application/xml",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}xml(_){return arguments.length?(this.text(_),this):this.text()}}XMLEditor.prototype._class+=" codemirror_XMLEditor";class SQLEditor extends Editor{options(){return{...super.options(),mode:"text/x-pgsql",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}sql(_){return arguments.length?(this.text(_),this):this.text()}}SQLEditor.prototype._class+=" codemirror_SQLEditor";class YAMLEditor extends Editor{options(){return{...super.options(),mode:"text/x-yaml",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}yaml(_){return arguments.length?(this.text(_),this):this.text()}}YAMLEditor.prototype._class+=" codemirror_YAMLEditor",exports2.BUILD_VERSION=BUILD_VERSION,exports2.CSSEditor=CSSEditor,exports2.DOTEditor=DOTEditor,exports2.ECLEditor=ECLEditor,exports2.Editor=Editor,exports2.HTMLEditor=HTMLEditor,exports2.JSEditor=JSEditor,exports2.JSONEditor=JSONEditor,exports2.MarkdownEditor=MarkdownEditor,exports2.ObservableMarkdownEditor=ObservableMarkdownEditor,exports2.PKG_NAME=PKG_NAME,exports2.PKG_VERSION=PKG_VERSION,exports2.SQLEditor=SQLEditor,exports2.XMLEditor=XMLEditor,exports2.YAMLEditor=YAMLEditor,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
|
|
30
|
+
`),startLine=line+before.length,startCh=before[before.length-1].length;return{from:Pos(startLine,startCh),to:Pos(startLine+inside.length-1,inside.length==1?startCh+inside[0].length:inside[inside.length-1].length),match}}}}var doFold,noFold;String.prototype.normalize?(doFold=function(str){return str.normalize("NFD").toLowerCase()},noFold=function(str){return str.normalize("NFD")}):(doFold=function(str){return str.toLowerCase()},noFold=function(str){return str});function adjustPos(orig,folded,pos,foldFunc){if(orig.length==folded.length)return pos;for(var min=0,max=pos+Math.max(0,orig.length-folded.length);;){if(min==max)return min;var mid=min+max>>1,len=foldFunc(orig.slice(0,mid)).length;if(len==pos)return mid;len>pos?max=mid:min=mid+1}}function searchStringForward(doc,query,start,caseFold){if(!query.length)return null;var fold=caseFold?doFold:noFold,lines=fold(query).split(/\r|\n\r?/);search:for(var line=start.line,ch=start.ch,last=doc.lastLine()+1-lines.length;line<=last;line++,ch=0){var orig=doc.getLine(line).slice(ch),string=fold(orig);if(lines.length==1){var found=string.indexOf(lines[0]);if(found==-1)continue search;var start=adjustPos(orig,string,found,fold)+ch;return{from:Pos(line,adjustPos(orig,string,found,fold)+ch),to:Pos(line,adjustPos(orig,string,found+lines[0].length,fold)+ch)}}else{var cutFrom=string.length-lines[0].length;if(string.slice(cutFrom)!=lines[0])continue search;for(var i=1;i<lines.length-1;i++)if(fold(doc.getLine(line+i))!=lines[i])continue search;var end=doc.getLine(line+lines.length-1),endString=fold(end),lastLine=lines[lines.length-1];if(endString.slice(0,lastLine.length)!=lastLine)continue search;return{from:Pos(line,adjustPos(orig,string,cutFrom,fold)+ch),to:Pos(line+lines.length-1,adjustPos(end,endString,lastLine.length,fold))}}}}function searchStringBackward(doc,query,start,caseFold){if(!query.length)return null;var fold=caseFold?doFold:noFold,lines=fold(query).split(/\r|\n\r?/);search:for(var line=start.line,ch=start.ch,first=doc.firstLine()-1+lines.length;line>=first;line--,ch=-1){var orig=doc.getLine(line);ch>-1&&(orig=orig.slice(0,ch));var string=fold(orig);if(lines.length==1){var found=string.lastIndexOf(lines[0]);if(found==-1)continue search;return{from:Pos(line,adjustPos(orig,string,found,fold)),to:Pos(line,adjustPos(orig,string,found+lines[0].length,fold))}}else{var lastLine=lines[lines.length-1];if(string.slice(0,lastLine.length)!=lastLine)continue search;for(var i=1,start=line-lines.length+1;i<lines.length-1;i++)if(fold(doc.getLine(start+i))!=lines[i])continue search;var top=doc.getLine(line+1-lines.length),topString=fold(top);if(topString.slice(topString.length-lines[0].length)!=lines[0])continue search;return{from:Pos(line+1-lines.length,adjustPos(top,topString,top.length-lines[0].length,fold)),to:Pos(line,adjustPos(orig,string,lastLine.length,fold))}}}}function SearchCursor(doc,query,pos,options){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=doc,pos=pos?doc.clipPos(pos):Pos(0,0),this.pos={from:pos,to:pos};var caseFold;typeof options=="object"?caseFold=options.caseFold:(caseFold=options,options=null),typeof query=="string"?(caseFold==null&&(caseFold=!1),this.matches=function(reverse,pos2){return(reverse?searchStringBackward:searchStringForward)(doc,query,pos2,caseFold)}):(query=ensureFlags(query,"gm"),!options||options.multiline!==!1?this.matches=function(reverse,pos2){return(reverse?searchRegexpBackwardMultiline:searchRegexpForwardMultiline)(doc,query,pos2)}:this.matches=function(reverse,pos2){return(reverse?searchRegexpBackward:searchRegexpForward)(doc,query,pos2)})}SearchCursor.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(reverse){var head=this.doc.clipPos(reverse?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(head=Pos(head.line,head.ch),reverse?(head.ch--,head.ch<0&&(head.line--,head.ch=(this.doc.getLine(head.line)||"").length)):(head.ch++,head.ch>(this.doc.getLine(head.line)||"").length&&(head.ch=0,head.line++)),CodeMirror2.cmpPos(head,this.doc.clipPos(head))!=0))return this.atOccurrence=!1;var result=this.matches(reverse,head);if(this.afterEmptyMatch=result&&CodeMirror2.cmpPos(result.from,result.to)==0,result)return this.pos=result,this.atOccurrence=!0,this.pos.match||!0;var end=Pos(reverse?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:end,to:end},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(newText,origin){if(this.atOccurrence){var lines=CodeMirror2.splitLines(newText);this.doc.replaceRange(lines,this.pos.from,this.pos.to,origin),this.pos.to=Pos(this.pos.from.line+lines.length-1,lines[lines.length-1].length+(lines.length==1?this.pos.from.ch:0))}}},CodeMirror2.defineExtension("getSearchCursor",function(query,pos,caseFold){return new SearchCursor(this.doc,query,pos,caseFold)}),CodeMirror2.defineDocExtension("getSearchCursor",function(query,pos,caseFold){return new SearchCursor(this,query,pos,caseFold)}),CodeMirror2.defineExtension("selectMatches",function(query,caseFold){for(var ranges=[],cur=this.getSearchCursor(query,this.getCursor("from"),caseFold);cur.findNext()&&!(CodeMirror2.cmpPos(cur.to(),this.getCursor("to"))>0);)ranges.push({anchor:cur.from(),head:cur.to()});ranges.length&&this.setSelections(ranges,0)})})}()),searchcursor.exports}(function(module2,exports3){(function(mod){mod(requireCodemirror(),requireSearchcursor(),dialogExports)})(function(CodeMirror2){CodeMirror2.defineOption("search",{bottom:!1});function searchOverlay(query,caseInsensitive){return typeof query=="string"?query=new RegExp(query.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),caseInsensitive?"gi":"g"):query.global||(query=new RegExp(query.source,query.ignoreCase?"gi":"g")),{token:function(stream){query.lastIndex=stream.pos;var match=query.exec(stream.string);if(match&&match.index==stream.pos)return stream.pos+=match[0].length||1,"searching";match?stream.pos=match.index:stream.skipToEnd()}}}function SearchState(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function getSearchState(cm){return cm.state.search||(cm.state.search=new SearchState)}function queryCaseInsensitive(query){return typeof query=="string"&&query==query.toLowerCase()}function getSearchCursor(cm,query,pos){return cm.getSearchCursor(query,pos,{caseFold:queryCaseInsensitive(query),multiline:!0})}function persistentDialog(cm,text,deflt,onEnter,onKeyDown){cm.openDialog(text,onEnter,{value:deflt,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){clearSearch(cm)},onKeyDown,bottom:cm.options.search.bottom})}function dialog2(cm,text,shortText,deflt,f){cm.openDialog?cm.openDialog(text,f,{value:deflt,selectValueOnOpen:!0,bottom:cm.options.search.bottom}):f(prompt(shortText,deflt))}function confirmDialog(cm,text,shortText,fs){cm.openConfirm?cm.openConfirm(text,fs):confirm(shortText)&&fs[0]()}function parseString(string){return string.replace(/\\([nrt\\])/g,function(match,ch){return ch=="n"?`
|
|
31
|
+
`:ch=="r"?"\r":ch=="t"?" ":ch=="\\"?"\\":match})}function parseQuery(query){var isRE=query.match(/^\/(.*)\/([a-z]*)$/);if(isRE)try{query=new RegExp(isRE[1],isRE[2].indexOf("i")==-1?"":"i")}catch{}else query=parseString(query);return(typeof query=="string"?query=="":query.test(""))&&(query=/x^/),query}function startSearch(cm,state,query){state.queryText=query,state.query=parseQuery(query),cm.removeOverlay(state.overlay,queryCaseInsensitive(state.query)),state.overlay=searchOverlay(state.query,queryCaseInsensitive(state.query)),cm.addOverlay(state.overlay),cm.showMatchesOnScrollbar&&(state.annotate&&(state.annotate.clear(),state.annotate=null),state.annotate=cm.showMatchesOnScrollbar(state.query,queryCaseInsensitive(state.query)))}function doSearch(cm,rev,persistent,immediate){var state=getSearchState(cm);if(state.query)return findNext(cm,rev);var q=cm.getSelection()||state.lastQuery;if(q instanceof RegExp&&q.source=="x^"&&(q=null),persistent&&cm.openDialog){var hiding=null,searchNext=function(query,event){CodeMirror2.e_stop(event),query&&(query!=state.queryText&&(startSearch(cm,state,query),state.posFrom=state.posTo=cm.getCursor()),hiding&&(hiding.style.opacity=1),findNext(cm,event.shiftKey,function(_,to){var dialog3;to.line<3&&document.querySelector&&(dialog3=cm.display.wrapper.querySelector(".CodeMirror-dialog"))&&dialog3.getBoundingClientRect().bottom-4>cm.cursorCoords(to,"window").top&&((hiding=dialog3).style.opacity=.4)}))};persistentDialog(cm,getQueryDialog(cm),q,searchNext,function(event,query){var keyName=CodeMirror2.keyName(event),extra=cm.getOption("extraKeys"),cmd=extra&&extra[keyName]||CodeMirror2.keyMap[cm.getOption("keyMap")][keyName];cmd=="findNext"||cmd=="findPrev"||cmd=="findPersistentNext"||cmd=="findPersistentPrev"?(CodeMirror2.e_stop(event),startSearch(cm,getSearchState(cm),query),cm.execCommand(cmd)):(cmd=="find"||cmd=="findPersistent")&&(CodeMirror2.e_stop(event),searchNext(query,event))}),immediate&&q&&(startSearch(cm,state,q),findNext(cm,rev))}else dialog2(cm,getQueryDialog(cm),"Search for:",q,function(query){query&&!state.query&&cm.operation(function(){startSearch(cm,state,query),state.posFrom=state.posTo=cm.getCursor(),findNext(cm,rev)})})}function findNext(cm,rev,callback){cm.operation(function(){var state=getSearchState(cm),cursor=getSearchCursor(cm,state.query,rev?state.posFrom:state.posTo);!cursor.find(rev)&&(cursor=getSearchCursor(cm,state.query,rev?CodeMirror2.Pos(cm.lastLine()):CodeMirror2.Pos(cm.firstLine(),0)),!cursor.find(rev))||(cm.setSelection(cursor.from(),cursor.to()),cm.scrollIntoView({from:cursor.from(),to:cursor.to()},20),state.posFrom=cursor.from(),state.posTo=cursor.to(),callback&&callback(cursor.from(),cursor.to()))})}function clearSearch(cm){cm.operation(function(){var state=getSearchState(cm);state.lastQuery=state.query,state.query&&(state.query=state.queryText=null,cm.removeOverlay(state.overlay),state.annotate&&(state.annotate.clear(),state.annotate=null))})}function el(tag,attrs){var element=tag?document.createElement(tag):document.createDocumentFragment();for(var key in attrs)element[key]=attrs[key];for(var i=2;i<arguments.length;i++){var child=arguments[i];element.appendChild(typeof child=="string"?document.createTextNode(child):child)}return element}function getQueryDialog(cm){var label=el("label",{className:"CodeMirror-search-label"},cm.phrase("Search:"),el("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return label.setAttribute("for","CodeMirror-search-field"),el("",null,label," ",el("span",{style:"color: #666",className:"CodeMirror-search-hint"},cm.phrase("(Use /re/ syntax for regexp search)")))}function getReplaceQueryDialog(cm){return el("",null," ",el("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",el("span",{style:"color: #666",className:"CodeMirror-search-hint"},cm.phrase("(Use /re/ syntax for regexp search)")))}function getReplacementQueryDialog(cm){return el("",null,el("span",{className:"CodeMirror-search-label"},cm.phrase("With:"))," ",el("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function getDoReplaceConfirm(cm){return el("",null,el("span",{className:"CodeMirror-search-label"},cm.phrase("Replace?"))," ",el("button",{},cm.phrase("Yes"))," ",el("button",{},cm.phrase("No"))," ",el("button",{},cm.phrase("All"))," ",el("button",{},cm.phrase("Stop")))}function replaceAll(cm,query,text){cm.operation(function(){for(var cursor=getSearchCursor(cm,query);cursor.findNext();)if(typeof query!="string"){var match=cm.getRange(cursor.from(),cursor.to()).match(query);cursor.replace(text.replace(/\$(\d)/g,function(_,i){return match[i]}))}else cursor.replace(text)})}function replace(cm,all){if(!cm.getOption("readOnly")){var query=cm.getSelection()||getSearchState(cm).lastQuery,dialogText=all?cm.phrase("Replace all:"):cm.phrase("Replace:"),fragment=el("",null,el("span",{className:"CodeMirror-search-label"},dialogText),getReplaceQueryDialog(cm));dialog2(cm,fragment,dialogText,query,function(query2){query2&&(query2=parseQuery(query2),dialog2(cm,getReplacementQueryDialog(cm),cm.phrase("Replace with:"),"",function(text){if(text=parseString(text),all)replaceAll(cm,query2,text);else{clearSearch(cm);var cursor=getSearchCursor(cm,query2,cm.getCursor("from")),advance=function(){var start=cursor.from(),match;!(match=cursor.findNext())&&(cursor=getSearchCursor(cm,query2),!(match=cursor.findNext())||start&&cursor.from().line==start.line&&cursor.from().ch==start.ch)||(cm.setSelection(cursor.from(),cursor.to()),cm.scrollIntoView({from:cursor.from(),to:cursor.to()}),confirmDialog(cm,getDoReplaceConfirm(cm),cm.phrase("Replace?"),[function(){doReplace(match)},advance,function(){replaceAll(cm,query2,text)}]))},doReplace=function(match){cursor.replace(typeof query2=="string"?text:text.replace(/\$(\d)/g,function(_,i){return match[i]})),advance()};advance()}}))})}}CodeMirror2.commands.find=function(cm){clearSearch(cm),doSearch(cm)},CodeMirror2.commands.findPersistent=function(cm){clearSearch(cm),doSearch(cm,!1,!0)},CodeMirror2.commands.findPersistentNext=function(cm){doSearch(cm,!1,!0,!0)},CodeMirror2.commands.findPersistentPrev=function(cm){doSearch(cm,!0,!0,!0)},CodeMirror2.commands.findNext=doSearch,CodeMirror2.commands.findPrev=function(cm){doSearch(cm,!0)},CodeMirror2.commands.clearSearch=clearSearch,CodeMirror2.commands.replace=replace,CodeMirror2.commands.replaceAll=function(cm){replace(cm,!0)}})})(),requireSearchcursor(),function(module2,exports3){(function(mod){mod(requireCodemirror())})(function(CodeMirror2){var HINT_ELEMENT_CLASS="CodeMirror-hint",ACTIVE_HINT_ELEMENT_CLASS="CodeMirror-hint-active";CodeMirror2.showHint=function(cm,getHints,options){if(!getHints)return cm.showHint(options);options&&options.async&&(getHints.async=!0);var newOpts={hint:getHints};if(options)for(var prop in options)newOpts[prop]=options[prop];return cm.showHint(newOpts)},CodeMirror2.defineExtension("showHint",function(options){options=parseOptions(this,this.getCursor("start"),options);var selections=this.listSelections();if(!(selections.length>1)){if(this.somethingSelected()){if(!options.hint.supportsSelection)return;for(var i=0;i<selections.length;i++)if(selections[i].head.line!=selections[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var completion=this.state.completionActive=new Completion(this,options);completion.options.hint&&(CodeMirror2.signal(this,"startCompletion",this),completion.update(!0))}}),CodeMirror2.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function Completion(cm,options){if(this.cm=cm,this.options=options,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 self2=this;cm.on("cursorActivity",this.activityFunc=function(){self2.cursorActivity()})}}var requestAnimationFrame=window.requestAnimationFrame||function(fn){return setTimeout(fn,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||clearTimeout;Completion.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&&CodeMirror2.signal(this.data,"close"),this.widget&&this.widget.close(),CodeMirror2.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(data,i){var completion=data.list[i],self2=this;this.cm.operation(function(){completion.hint?completion.hint(self2.cm,data,completion):self2.cm.replaceRange(getText(completion),completion.from||data.from,completion.to||data.to,"complete"),CodeMirror2.signal(data,"pick",completion),self2.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(cancelAnimationFrame(this.debounce),this.debounce=0);var identStart=this.startPos;this.data&&(identStart=this.data.from);var pos=this.cm.getCursor(),line=this.cm.getLine(pos.line);if(pos.line!=this.startPos.line||line.length-pos.ch!=this.startLen-this.startPos.ch||pos.ch<identStart.ch||this.cm.somethingSelected()||!pos.ch||this.options.closeCharacters.test(line.charAt(pos.ch-1)))this.close();else{var self2=this;this.debounce=requestAnimationFrame(function(){self2.update()}),this.widget&&this.widget.disable()}},update:function(first){if(this.tick!=null){var self2=this,myTick=++this.tick;fetchHints(this.options.hint,this.cm,this.options,function(data){self2.tick==myTick&&self2.finishUpdate(data,first)})}},finishUpdate:function(data,first){this.data&&CodeMirror2.signal(this.data,"update");var picked=this.widget&&this.widget.picked||first&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=data,data&&data.list.length&&(picked&&data.list.length==1?this.pick(data,0):(this.widget=new Widget(this,data),CodeMirror2.signal(data,"shown")))}};function parseOptions(cm,pos,options){var editor=cm.options.hintOptions,out={};for(var prop in defaultOptions)out[prop]=defaultOptions[prop];if(editor)for(var prop in editor)editor[prop]!==void 0&&(out[prop]=editor[prop]);if(options)for(var prop in options)options[prop]!==void 0&&(out[prop]=options[prop]);return out.hint.resolve&&(out.hint=out.hint.resolve(cm,pos)),out}function getText(completion){return typeof completion=="string"?completion:completion.text}function buildKeyMap(completion,handle){var baseMap={Up:function(){handle.moveFocus(-1)},Down:function(){handle.moveFocus(1)},PageUp:function(){handle.moveFocus(-handle.menuSize()+1,!0)},PageDown:function(){handle.moveFocus(handle.menuSize()-1,!0)},Home:function(){handle.setFocus(0)},End:function(){handle.setFocus(handle.length-1)},Enter:handle.pick,Tab:handle.pick,Esc:handle.close},mac=/Mac/.test(navigator.platform);mac&&(baseMap["Ctrl-P"]=function(){handle.moveFocus(-1)},baseMap["Ctrl-N"]=function(){handle.moveFocus(1)});var custom=completion.options.customKeys,ourMap=custom?{}:baseMap;function addBinding(key2,val){var bound;typeof val!="string"?bound=function(cm){return val(cm,handle)}:baseMap.hasOwnProperty(val)?bound=baseMap[val]:bound=val,ourMap[key2]=bound}if(custom)for(var key in custom)custom.hasOwnProperty(key)&&addBinding(key,custom[key]);var extra=completion.options.extraKeys;if(extra)for(var key in extra)extra.hasOwnProperty(key)&&addBinding(key,extra[key]);return ourMap}function getHintElement(hintsElement,el){for(;el&&el!=hintsElement;){if(el.nodeName.toUpperCase()==="LI"&&el.parentNode==hintsElement)return el;el=el.parentNode}}function Widget(completion,data){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=completion,this.data=data,this.picked=!1;var widget=this,cm=completion.cm,ownerDocument=cm.getInputField().ownerDocument,parentWindow=ownerDocument.defaultView||ownerDocument.parentWindow,hints=this.hints=ownerDocument.createElement("ul");hints.setAttribute("role","listbox"),hints.setAttribute("aria-expanded","true"),hints.id=this.id;var theme=completion.cm.options.theme;hints.className="CodeMirror-hints "+theme,this.selectedHint=data.selectedHint||0;for(var completions=data.list,i=0;i<completions.length;++i){var elt=hints.appendChild(ownerDocument.createElement("li")),cur=completions[i],className=HINT_ELEMENT_CLASS+(i!=this.selectedHint?"":" "+ACTIVE_HINT_ELEMENT_CLASS);cur.className!=null&&(className=cur.className+" "+className),elt.className=className,i==this.selectedHint&&elt.setAttribute("aria-selected","true"),elt.id=this.id+"-"+i,elt.setAttribute("role","option"),cur.render?cur.render(elt,data,cur):elt.appendChild(ownerDocument.createTextNode(cur.displayText||getText(cur))),elt.hintId=i}var container=completion.options.container||ownerDocument.body,pos=cm.cursorCoords(completion.options.alignWithWord?data.from:null),left=pos.left,top=pos.bottom,below=!0,offsetLeft=0,offsetTop=0;if(container!==ownerDocument.body){var isContainerPositioned=["absolute","relative","fixed"].indexOf(parentWindow.getComputedStyle(container).position)!==-1,offsetParent=isContainerPositioned?container:container.offsetParent,offsetParentPosition=offsetParent.getBoundingClientRect(),bodyPosition=ownerDocument.body.getBoundingClientRect();offsetLeft=offsetParentPosition.left-bodyPosition.left-offsetParent.scrollLeft,offsetTop=offsetParentPosition.top-bodyPosition.top-offsetParent.scrollTop}hints.style.left=left-offsetLeft+"px",hints.style.top=top-offsetTop+"px";var winW=parentWindow.innerWidth||Math.max(ownerDocument.body.offsetWidth,ownerDocument.documentElement.offsetWidth),winH=parentWindow.innerHeight||Math.max(ownerDocument.body.offsetHeight,ownerDocument.documentElement.offsetHeight);container.appendChild(hints),cm.getInputField().setAttribute("aria-autocomplete","list"),cm.getInputField().setAttribute("aria-owns",this.id),cm.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var box=completion.options.moveOnOverlap?hints.getBoundingClientRect():new DOMRect,scrolls=completion.options.paddingForScrollbar?hints.scrollHeight>hints.clientHeight+1:!1,startScroll;setTimeout(function(){startScroll=cm.getScrollInfo()});var overlapY=box.bottom-winH;if(overlapY>0){var height=box.bottom-box.top,spaceAbove=box.top-(pos.bottom-pos.top)-2;winH-box.top<spaceAbove?(height>spaceAbove&&(hints.style.height=(height=spaceAbove)+"px"),hints.style.top=(top=pos.top-height)+offsetTop+"px",below=!1):hints.style.height=winH-box.top-2+"px"}var overlapX=box.right-winW;if(scrolls&&(overlapX+=cm.display.nativeBarWidth),overlapX>0&&(box.right-box.left>winW&&(hints.style.width=winW-5+"px",overlapX-=box.right-box.left-winW),hints.style.left=(left=Math.max(pos.left-overlapX-offsetLeft,0))+"px"),scrolls)for(var node=hints.firstChild;node;node=node.nextSibling)node.style.paddingRight=cm.display.nativeBarWidth+"px";if(cm.addKeyMap(this.keyMap=buildKeyMap(completion,{moveFocus:function(n,avoidWrap){widget.changeActive(widget.selectedHint+n,avoidWrap)},setFocus:function(n){widget.changeActive(n)},menuSize:function(){return widget.screenAmount()},length:completions.length,close:function(){completion.close()},pick:function(){widget.pick()},data})),completion.options.closeOnUnfocus){var closingOnBlur;cm.on("blur",this.onBlur=function(){closingOnBlur=setTimeout(function(){completion.close()},100)}),cm.on("focus",this.onFocus=function(){clearTimeout(closingOnBlur)})}cm.on("scroll",this.onScroll=function(){var curScroll=cm.getScrollInfo(),editor=cm.getWrapperElement().getBoundingClientRect();startScroll||(startScroll=cm.getScrollInfo());var newTop=top+startScroll.top-curScroll.top,point=newTop-(parentWindow.pageYOffset||(ownerDocument.documentElement||ownerDocument.body).scrollTop);if(below||(point+=hints.offsetHeight),point<=editor.top||point>=editor.bottom)return completion.close();hints.style.top=newTop+"px",hints.style.left=left+startScroll.left-curScroll.left+"px"}),CodeMirror2.on(hints,"dblclick",function(e){var t=getHintElement(hints,e.target||e.srcElement);t&&t.hintId!=null&&(widget.changeActive(t.hintId),widget.pick())}),CodeMirror2.on(hints,"click",function(e){var t=getHintElement(hints,e.target||e.srcElement);t&&t.hintId!=null&&(widget.changeActive(t.hintId),completion.options.completeOnSingleClick&&widget.pick())}),CodeMirror2.on(hints,"mousedown",function(){setTimeout(function(){cm.focus()},20)});var selectedHintRange=this.getSelectedHintRange();return(selectedHintRange.from!==0||selectedHintRange.to!==0)&&this.scrollToActive(),CodeMirror2.signal(data,"select",completions[this.selectedHint],hints.childNodes[this.selectedHint]),!0}Widget.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 input=this.completion.cm.getInputField();input.removeAttribute("aria-activedescendant"),input.removeAttribute("aria-owns");var cm=this.completion.cm;this.completion.options.closeOnUnfocus&&(cm.off("blur",this.onBlur),cm.off("focus",this.onFocus)),cm.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var widget=this;this.keyMap={Enter:function(){widget.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(i,avoidWrap){if(i>=this.data.list.length?i=avoidWrap?this.data.list.length-1:0:i<0&&(i=avoidWrap?0:this.data.list.length-1),this.selectedHint!=i){var node=this.hints.childNodes[this.selectedHint];node&&(node.className=node.className.replace(" "+ACTIVE_HINT_ELEMENT_CLASS,""),node.removeAttribute("aria-selected")),node=this.hints.childNodes[this.selectedHint=i],node.className+=" "+ACTIVE_HINT_ELEMENT_CLASS,node.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",node.id),this.scrollToActive(),CodeMirror2.signal(this.data,"select",this.data.list[this.selectedHint],node)}},scrollToActive:function(){var selectedHintRange=this.getSelectedHintRange(),node1=this.hints.childNodes[selectedHintRange.from],node2=this.hints.childNodes[selectedHintRange.to],firstNode=this.hints.firstChild;node1.offsetTop<this.hints.scrollTop?this.hints.scrollTop=node1.offsetTop-firstNode.offsetTop:node2.offsetTop+node2.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=node2.offsetTop+node2.offsetHeight-this.hints.clientHeight+firstNode.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var margin=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-margin),to:Math.min(this.data.list.length-1,this.selectedHint+margin)}}};function applicableHelpers(cm,helpers){if(!cm.somethingSelected())return helpers;for(var result=[],i=0;i<helpers.length;i++)helpers[i].supportsSelection&&result.push(helpers[i]);return result}function fetchHints(hint,cm,options,callback){if(hint.async)hint(cm,callback,options);else{var result=hint(cm,options);result&&result.then?result.then(callback):callback(result)}}function resolveAutoHints(cm,pos){var helpers=cm.getHelpers(pos,"hint"),words;if(helpers.length){var resolved=function(cm2,callback,options){var app=applicableHelpers(cm2,helpers);function run(i){if(i==app.length)return callback(null);fetchHints(app[i],cm2,options,function(result){result&&result.list.length>0?callback(result):run(i+1)})}run(0)};return resolved.async=!0,resolved.supportsSelection=!0,resolved}else return(words=cm.getHelper(cm.getCursor(),"hintWords"))?function(cm2){return CodeMirror2.hint.fromList(cm2,{words})}:CodeMirror2.hint.anyword?function(cm2,options){return CodeMirror2.hint.anyword(cm2,options)}:function(){}}CodeMirror2.registerHelper("hint","auto",{resolve:resolveAutoHints}),CodeMirror2.registerHelper("hint","fromList",function(cm,options){var cur=cm.getCursor(),token=cm.getTokenAt(cur),term,from=CodeMirror2.Pos(cur.line,token.start),to=cur;token.start<cur.ch&&/\w/.test(token.string.charAt(cur.ch-token.start-1))?term=token.string.substr(0,cur.ch-token.start):(term="",from=cur);for(var found=[],i=0;i<options.words.length;i++){var word=options.words[i];word.slice(0,term.length)==term&&found.push(word)}if(found.length)return{list:found,from,to}}),CodeMirror2.commands.autocomplete=CodeMirror2.showHint;var defaultOptions={hint:CodeMirror2.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};CodeMirror2.defineOption("hintOptions",null)})}();class Editor extends common.HTMLWidget{constructor(){super(...arguments);__publicField(this,"_codemirror");__publicField(this,"_markedText",[]);__publicField(this,"_initialText","");__publicField(this,"_options",new Map)}options(){return{gutters:this.guttersOption(),readOnly:this.readOnly(),lineNumbers:!0,tabSize:2}}option(option,value){if(this._codemirror)return arguments.length<2?this._codemirror.getOption(option):(this._codemirror.setOption(option,value),this);if(arguments.length<2)return this._options.get(option);this._options.set(option,value)}guttersOption(){const gutters=["CodeMirror-linenumbers"];return this.gutterMarkerWidth()>0&&gutters.unshift({className:"CodeMirror-guttermarker",style:`width:${this.gutterMarkerWidth()}px;`}),gutters}addGutterMarker(lineNumber,commentText,backgroundColor=null,fontFamily=null,fontSize=null,onmouseenter=()=>{},onmouseleave=()=>{},onclick=event=>{}){const line=this._codemirror.getLineHandle(lineNumber),marker=document.createElement("div");marker.textContent=commentText,marker.style.paddingLeft="3px",marker.style.paddingRight="3px",marker.style.color=common.Palette.textColor(backgroundColor),fontFamily!==null&&(marker.style.fontFamily=fontFamily),fontSize!==null&&(marker.style.fontSize=fontSize),marker.style.backgroundColor=backgroundColor,marker.style.textAlign=this.markerTextAlign(),this._codemirror.setGutterMarker(line,"CodeMirror-guttermarker",marker),marker.onmouseenter=onmouseenter,marker.onmouseleave=onmouseleave,marker.onclick=onclick}removeGutterMarker(lineNumber){const line=this._codemirror.getLineHandle(lineNumber);this._codemirror.setGutterMarker(line,"CodeMirror-guttermarker",null)}hasFocus(){return this._codemirror.hasFocus()}text(_){if(this._codemirror){const doc=this._codemirror.getDoc();return arguments.length?(doc.setValue(_),this):doc.getValue()}return arguments.length?(this._initialText=_,this):this._initialText}highlight(start,end,className="cm-marked-text"){return typeof start=="number"&&(start=this.positionAt(start)),typeof end=="number"&&(end=this.positionAt(end)),this._codemirror&&this._markedText.push(this._codemirror.markText(start,end,{className})),this}highlightInfo(start,end){return this.highlight(start,end,"cm-marked-info"),this}highlightWarning(start,end){return this.highlight(start,end,"cm-marked-warning"),this}highlightError(start,end){return this.highlight(start,end,"cm-marked-error"),this}removeAllHighlight(){for(const marked of this._markedText)marked.clear();return this._markedText=[],this}positionAt(i){return this._codemirror.posFromIndex(i)}getLineLength(lineNumber){var _a;return((_a=this._codemirror.doc.getLine(lineNumber))==null?void 0:_a.length)||0}highlightSubstring(str){const splitTextArr=this.text().split(str).slice(0,-1);let idx=0;splitTextArr.forEach(splitText=>{idx+=splitText.length,this.highlight(this.positionAt(idx),this.positionAt(idx+str.length)),idx+=str.length})}setCursor(row,col,focus=!0){this._codemirror.setCursor(row,col),focus&&setTimeout(()=>{this._codemirror.focus()},0)}enter(domNode,element){super.enter(domNode,element),this._codemirror=CodeMirror.fromTextArea(element.append("textarea").node(),this.options()),this._codemirror.on("changes",(cm,changes)=>{this.changes(changes)}),this._options.forEach((value,key)=>{this._codemirror.setOption(key,value)}),this.text(this._initialText)}update(domNode,Element){super.update(domNode,Element);const extraKeys=this._codemirror.getOption("extraKeys")??{};this.showHints()?extraKeys["Ctrl-Space"]="autocomplete":delete extraKeys["Ctrl-Space"],this._codemirror.setOption("readOnly",this.readOnly()),this._codemirror.setOption("gutters",this.guttersOption()),this._codemirror.setOption("extraKeys",extraKeys),this._codemirror.setOption("hintOptions",this.showHints()?{hint:(cm,option)=>this.fetchHints(cm,option)}:{}),this._codemirror.setSize(this.width()-2,this.height()-2),this._codemirror.refresh()}changes(changes){}fetchHints(cm,option){return Promise.resolve(null)}setOption(option,value){this._codemirror.setOption(option,value)}}Editor.prototype._class+=" codemirror_Editor",Editor.prototype.publish("markerTextAlign","right","string","Gutter marker text alignment",["left","center","right"]),Editor.prototype.publish("readOnly",!1,"boolean","If true, the contents will be uneditable"),Editor.prototype.publish("gutterMarkerWidth",0,"number","Width of gutter marker column displayed to the left of line numbers (pixels)"),Editor.prototype.publish("showHints",!1,"boolean","Show autocomplete hints on ctrl+space");class CSSEditor extends Editor{options(){return{...super.options(),mode:"text/css",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}css(_){return arguments.length?(this.text(_),this):this.text()}}CSSEditor.prototype._class+=" codemirror_CSSEditor";class DOTEditor extends Editor{options(){return{...super.options(),mode:"text/x-dot"}}dot(_){return arguments.length?(this.text(_),this):this.text()}}DOTEditor.prototype._class+=" codemirror_DOTEditor";class ECLEditor extends Editor{options(){return{...super.options(),mode:"text/x-ecl",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}ecl(_){return arguments.length?(this.text(_),this):this.text()}}ECLEditor.prototype._class+=" codemirror_ECLEditor";class HTMLEditor extends Editor{options(){return{...super.options(),mode:"htmlmixed",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}html(_){return arguments.length?(this.text(_),this):this.text()}}HTMLEditor.prototype._class+=" codemirror_HTMLEditor";class JSEditor extends Editor{options(){return{...super.options(),mode:"text/javascript",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}javascript(_){return arguments.length?(this.text(_),this):this.text()}}JSEditor.prototype._class+=" codemirror_JSEditor";class JSONEditor extends Editor{options(){return{...super.options(),mode:"application/json",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}json(_){return arguments.length?(this.text(JSON.stringify(_,null," ")),this):JSON.parse(this.text())}}JSONEditor.prototype._class+=" codemirror_JSONEditor";class MarkdownEditor extends Editor{options(){return{...super.options(),mode:"text/x-gfm",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}markdown(_){return arguments.length?(this.text(_),this):this.text()}}MarkdownEditor.prototype._class+=" codemirror_MarkdownEditor";class ObservableMarkdownEditor extends MarkdownEditor{options(){return{...super.options(),mode:{name:"text/x-gfm",defaultMode:"javascript"}}}}ObservableMarkdownEditor.prototype._class+=" codemirror_ObservableMarkdownEditor";class XMLEditor extends Editor{options(){return{...super.options(),mode:"application/xml",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}xml(_){return arguments.length?(this.text(_),this):this.text()}}XMLEditor.prototype._class+=" codemirror_XMLEditor";class SQLEditor extends Editor{options(){return{...super.options(),mode:"text/x-pgsql",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}sql(_){return arguments.length?(this.text(_),this):this.text()}}SQLEditor.prototype._class+=" codemirror_SQLEditor";class YAMLEditor extends Editor{options(){return{...super.options(),mode:"text/x-yaml",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"]}}yaml(_){return arguments.length?(this.text(_),this):this.text()}}YAMLEditor.prototype._class+=" codemirror_YAMLEditor",exports2.BUILD_VERSION=BUILD_VERSION,exports2.CSSEditor=CSSEditor,exports2.DOTEditor=DOTEditor,exports2.ECLEditor=ECLEditor,exports2.Editor=Editor,exports2.HTMLEditor=HTMLEditor,exports2.JSEditor=JSEditor,exports2.JSONEditor=JSONEditor,exports2.MarkdownEditor=MarkdownEditor,exports2.ObservableMarkdownEditor=ObservableMarkdownEditor,exports2.PKG_NAME=PKG_NAME,exports2.PKG_VERSION=PKG_VERSION,exports2.SQLEditor=SQLEditor,exports2.XMLEditor=XMLEditor,exports2.YAMLEditor=YAMLEditor,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
|
|
33
32
|
//# sourceMappingURL=index.umd.cjs.map
|
|
33
|
+
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.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 .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.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}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.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-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,.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,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.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}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-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:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.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,.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:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"▾"}.CodeMirror-foldgutter-folded:after{content:"▸"}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.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 #0003;border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.codemirror_Editor{border-style:solid;border-width:1px;border-color:#d3d3d3}.codemirror_Editor .cm-marked-text{background-color:#ff0}.codemirror_Editor .cm-marked-info,.codemirror_Editor .cm-marked-error,.codemirror_Editor .cm-marked-warning{display:inline-block;position:relative;background-position:left bottom;background-repeat:repeat-x}.codemirror_Editor .cm-marked-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHElEQVQYV2NkgIP//xkYGBkZIXwIB0SDCQgHAgDEXAgCKU2DPwAAAABJRU5ErkJggg==)}.codemirror_Editor .cm-marked-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/DAz/GRkYGBlBfBgHTMM4MJUAzFoIAuwf4BEAAAAASUVORK5CYII=)}.codemirror_Editor .cm-marked-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAHUlEQVQYV2NkgIL/Sxn+M0YzMDKC+DAOmIZxYCoBKQkLp8ga+UwAAAAASUVORK5CYII=)}.codemirror_ECLEditor .cm-s-default span.cm-comment{color:green}.codemirror_ECLEditor .cm-s-default span.cm-keyword{color:#00f}.codemirror_ECLEditor .cm-s-default span.cm-variable{font-weight:700;color:navy}.codemirror_ECLEditor .cm-s-default span.cm-variable-2,.codemirror_ECLEditor .cm-s-default span.cm-variable-3{color:maroon}.codemirror_ECLEditor .cm-s-default span.cm-builtin{color:purple}.codemirror_ECLEditor .cm-s-default span.cm-string{color:gray}.codemirror_ECLEditor .cm-s-default span.cm-number,.cm-s-default span.cm-atom{color:#000}.codemirror_ECLEditor .cm-s-default span.cm-meta{color:#004080}.codemirror_ECLEditor .ErrorLine{background:#c00!important;color:#fff!important}.codemirror_ECLEditor .WarningLine{background:#ff9!important}.codemirror_ECLEditor .highlightline{background:#e8f2ff!important}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|