/*! cdtexteditor 2021-04-07 */ "use strict";var Typo;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).CodeMirror=t()}(this,function(){var e=navigator.userAgent,t=navigator.platform,d=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),w=n||r||i,v=w&&(n?document.documentMode||6:+(i||r)[1]),p=!i&&/WebKit\//.test(e),r=p&&/Qt\/\d+\.\d+/.test(e),o=!i&&/Chrome\//.test(e),f=/Opera\//.test(e),u=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),c=/PhantomJS/.test(e),s=u&&(/Mobile\/\w+/.test(e)||2t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:oe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:oe=i)}return null!=r?r:oe}var se,le,ce,ue,he,de,pe,fe=(se="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",le="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",ce=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ue=/[stwN]/,he=/[LRr]/,de=/[Lb1n]/,pe=/[1n]/,function(e,t){var n="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!ce.test(e))return!1;for(var r,i=e.length,o=[],a=0;a=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?rt(n,Xe(e,n).text.length):(e=Xe(e,(n=t).line).text.length,null==(t=n.ch)||e=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.post},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){e=this.string.indexOf(e,this.pos);if(-1e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=ft(e,t,r),i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))),t.styles}function mt(n,r,e){var t=n.doc,i=n.display;if(!t.mode.startState)return new pt(t,!0,r);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;at.first&&Xe(t,o-1).stateAfter,s=a?pt.fromSaved(t,a,o):new pt(t,Ve(t.mode),o);return t.iter(o,r,function(e){vt(n,e.text,s);var t=s.line;e.stateAfter=t==r-1||t%5==0||t>=i.viewFrom&&tt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}pt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},pt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},pt.prototype.nextLine=function(){this.line++,0e.options.maxHighlightLength?(s=!1,a&&vt(e,t,r,u.pos),u.pos=t.length,null):_t(yt(n,u,r.state,h),o);if(!h||(d=h[0].name)&&(p="m-"+(p?d+" "+p:d)),!s||c!=p){for(;l=t:a.to>t),(r=r||[]).push(new Lt(s,a.from,o?null:a.to)))}return r}(n,i,e),s=function(e,t,n){var r;if(e)for(var i=0;i=t:a.to>t))&&(a.from!=t||"bookmark"!=s.type||n&&!a.marker.insertLeft)||(o=null==a.from||(s.inclusiveLeft?a.from<=t:a.frome.lastLine())return t;var n,r=Xe(e,t);if(!Bt(e,r))return t;for(;n=Ht(r);)r=n.find(1,!0).line;return Je(r)+1}function Bt(e,t){var n=St&&t.markedSpans;if(n)for(var r,i=0;in.maxLineLength&&(n.maxLineLength=t,n.maxLine=e)})}var Gt=function(e,t,n){this.text=e,Dt(this,t),this.height=n?n(this):1};Gt.prototype.lineNo=function(){return Je(this)},Se(Gt);var Vt={},Kt={};function Xt(e,t){if(!e||/^\s*$/.test(e))return null;t=t.addModeClass?Kt:Vt;return t[e]||(t[e]=e.replace(/\S+/g,"cm-$&"))}function Yt(e,t){var n=L("span",null,null,p?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Qt,function(e){if(null!=Fe)return Fe;var t=S(e,document.createTextNode("AخA")),n=P(t,0,1).getBoundingClientRect(),t=P(t,1,2).getBoundingClientRect();return C(e),n&&n.left!=n.right&&(Fe=t.right-n.right<3)}(e.display.measure)&&(a=me(o,e.doc.direction))&&(r.addToken=function(h,d){return function(e,t,n,r,i,o,a){n=n?n+" cm-force-border":"cm-force-border";for(var s=e.pos,l=s+t.length;;){for(var c=void 0,u=0;us&&c.from<=s);u++);if(c.to>=l)return h(e,t,n,r,i,o,a);h(e,t.slice(0,c.to-s),n,r,null,o,a),r=null,t=t.slice(c.to-s),s=c.to}}}(r.addToken,a)),r.map=[],function(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,h,d,p=i.length,f=0,g=1,m="",v=0;;){if(v==f){l=c=u=s="",h=d=null,v=1/0;for(var b=[],y=void 0,w=0;wf||_.collapsed&&k.to==f&&k.from==f)){if(null!=k.to&&k.to!=f&&v>k.to&&(v=k.to,c=""),_.className&&(l+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&k.from==f&&(u+=" "+_.startStyle),_.endStyle&&k.to==v&&(y=y||[]).push(_.endStyle,k.to),_.title&&((d=d||{}).title=_.title),_.attributes)for(var x in _.attributes)(d=d||{})[x]=_.attributes[x];_.collapsed&&(!h||Ot(h.marker,_)<0)&&(h=k)}else k.from>f&&v>k.from&&(v=k.from)}if(y)for(var C=0;Cn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Cn(e,t,n,r){return Tn(e,Ln(e,t),n,r)}function Sn(e,t){if(t>=e.display.viewFrom&&t=e.lineN&&tt)&&(i=(o=l-s)-1,l<=t&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c=i.text.length?(t=i.text.length,c="before"):t<=0&&(t=0,c="after"),!l)return s("before"==c?t-1:t,"before"==c);function u(e,t,n){return s(n?e-1:e,1==l[t].level!=n)}var h=ae(l,t,c),e=oe,h=u(t,h,"before"==c);return null!=e&&(h.other=u(t,e,"before"!=c)),h}function Rn(e,t){var n=0;t=ut(e.doc,t),e.options.lineWrapping||(n=Kn(e.display)*t.ch);t=Xe(e.doc,t.line),e=Ut(t)+vn(e.display);return{left:n,right:n,top:e,bottom:e+t.height}}function Bn(e,t,n,r,i){n=rt(e,t,n);return n.xRel=i,r&&(n.outside=r),n}function Un(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Bn(r.first,0,null,-1,-1);var i=et(r,n),o=r.first+r.size-1;if(o=l||p.to<=s||(d=1!=p.level,d=Tn(e,r,d?Math.min(l,p.to)-1:Math.max(s,p.from)).right,d=dl&&(c={from:c.from,to:l,level:c.level});return c}:function(n,r,i,o,a,s,l){var e=ie(function(e){var t=a[e],e=1!=t.level;return Gn(In(n,rt(i,e?t.to:t.from,e?"before":"after"),"line",r,o),s,l,!0)},0,a.length-1),t=a[e];{var c;0l&&(t=a[e-1]))}return t})(n,e,t,o,u,r,i),c=1!=p.level,s=c?p.from:p.to-1,l=c?p.to:p.from-1);var h=null,d=null,u=ie(function(e){var t=Tn(n,o,e);return t.top+=a,t.bottom+=a,Gn(t,r,i,!1)&&(t.top<=i&&t.left<=r&&(h=e,d=t),1)},s,l),p=!1;{var f,g;d?(f=r-d.left=c.bottom?1:0)}return u=re(e.text,u,1),Bn(t,u,g,p,r-f)}(e,a,i,t,n),l=function(e,t){var n,r=St&&e.markedSpans;if(r)for(var i=0;it)&&(!n||Ot(n,o.marker)<0)&&(n=o.marker)}return n}(a,s.ch+(0r},e,i)}}function $n(e,t,n,r){return qn(e,t,n=n||Ln(e,t),Hn(e,t,Tn(e,n,r),"line").top)}function Gn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Vn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Mn){Mn=T("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Mn.appendChild(document.createTextNode("x")),Mn.appendChild(T("br"));Mn.appendChild(document.createTextNode("x"))}S(e.measure,Mn);var n=Mn.offsetHeight/50;return 3=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(a.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=a.viewTo?St&&It(e.doc,t)a.viewFrom?rr(e):(a.viewFrom+=r,a.viewTo+=r):t<=a.viewFrom&&n>=a.viewTo?rr(e):t<=a.viewFrom?(i=ir(e,n,n+r,1))?(a.view=a.view.slice(i.index),a.viewFrom=i.lineN,a.viewTo+=r):rr(e):n>=a.viewTo?(o=ir(e,t,t,-1))?(a.view=a.view.slice(0,o.index),a.viewTo=o.lineN):rr(e):(i=ir(e,t,t,-1),o=ir(e,n,n+r,1),i&&o?(a.view=a.view.slice(0,i.index).concat(tn(e,i.lineN,o.lineN)).concat(a.view.slice(o.index)),a.viewTo+=r):rr(e));e=a.externalMeasured;e&&(n=i.lineN&&t=r.viewTo||(null==(t=r.view[er(e,t)]).node||-1==j(t=t.changes||(t.changes=[]),n)&&t.push(n))}function rr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ir(e,t,n,r){var i,o=er(e,t),a=e.display.view;if(!St||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l=e.display.viewTo||n.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(_,g||0,null==m?y:m,function(e,t,n,r){var i,o,a,s,l="ltr"==n,c=w(e,l?"left":"right"),u=w(t-1,l?"right":"left"),h=null==g&&0==e,d=null==m&&t==y,p=0==r,f=!_||r==_.length-1;u.top-c.top<=3?(i=(S?h:d)&&p?x:(l?c:u).left,r=(S?d:h)&&f?C:(l?u:c).right,L(i,c.top,r-i,c.bottom)):(n=l?(o=S&&h&&p?x:c.left,a=S?C:k(e,n,"before"),s=S?x:k(t,n,"after"),S&&d&&f?C:u.right):(o=S?k(e,n,"before"):x,a=!S&&h&&p?C:c.right,s=!S&&d&&f?x:u.left,S?k(t,n,"after"):C),L(o,c.top,a-o,c.bottom),c.bottome.display.sizerWidth&&((l=Math.ceil(l/Kn(e.display)))>e.display.maxLineLength&&(e.display.maxLineLength=l,e.display.maxLine=o.line,e.display.maxLineChanged=!0))}}}function mr(e){if(e.widgets)for(var t=0;t=r&&(o=et(t,Ut(Xe(t,n))-e.wrapper.clientHeight),r=n)),{from:o,to:Math.max(r,o+1)}}function br(e,t){var n=e.display,r=Vn(e.display);t.top<0&&(t.top=0);var i=(e.curOp&&null!=e.curOp.scrollTop?e.curOp:n.scroller).scrollTop,o=_n(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+bn(n),l=t.tops-r;t.topi+o&&((c=Math.min(t.top,(r?s:t.bottom)-o))!=i&&(a.scrollTop=c));var i=e.options.fixedGutter?0:n.gutters.offsetWidth,c=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-i,e=kn(e)-n.gutters.offsetWidth,n=t.right-t.left>e;return n&&(t.right=t.left+e),t.left<10?a.scrollLeft=0:t.lefte+c-3&&(a.scrollLeft=t.right+(n?0:10)-e),a}function yr(e,t){null!=t&&(_r(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc:e.curOp).scrollTop+t)}function wr(e){_r(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function kr(e,t,n){null==t&&null==n||_r(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function _r(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,xr(e,Rn(e,t.from),Rn(e,t.to),t.margin))}function xr(e,t,n,r){r=br(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});kr(e,r.scrollLeft,r.scrollTop)}function Cr(e,t){Math.abs(e.doc.scrollTop-t)<2||(d||qr(e,{top:t}),Sr(e,t,!0),d&&qr(e),Wr(e,100))}function Sr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!n||(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Lr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Vr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Tr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+bn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+wn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}e=function(e,t,n){this.cm=n;var r=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),be(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),be(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,w&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};e.prototype.update=function(e){var t,n=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;return r?(this.vert.style.display="block",this.vert.style.bottom=n?i+"px":"0",t=e.viewHeight-(n?i:0),this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+t)+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),n?(this.horiz.style.display="block",this.horiz.style.right=r?i+"px":"0",this.horiz.style.left=e.barLeft+"px",t=e.viewWidth-e.barLeft-(r?i:0),this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+t)+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&0=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Rr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}(t[n]);for(var r=0;r(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null==i||c||(t=T("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-vn(e.display))+"px;\n height: "+(t.bottom-t.top+wn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;"),e.display.lineSpace.appendChild(t),t.scrollIntoView(i),e.display.lineSpace.removeChild(t)))}(t,i))}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s=a.display.viewTo||(s=+new Date+a.options.workTime,l=mt(a,u.highlightFrontier),c=[],u.iter(l.line,Math.min(u.first+u.size,a.display.viewTo+500),function(e){if(l.line>=a.display.viewFrom){var t=e.styles,n=e.text.length>a.options.maxHighlightLength?$e(u.mode,l.state):null,r=ft(a,e,l,!0);n&&(l.state=n),e.styles=r.styles;n=e.styleClasses,r=r.classes;r?e.styleClasses=r:n&&(e.styleClasses=null);for(var i=!t||t.length!=e.styles.length||n!=r&&(!n||!r||n.bgClass!=r.bgClass||n.textClass!=r.textClass),o=0;!i&&os)return Wr(a,a.options.workDelay),!0}),u.highlightFrontier=l.line,u.modeFrontier=Math.max(u.modeFrontier,l.line),c.length&&Nr(a,function(){for(var e=0;e=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==or(e))return!1;Kr(e)&&(rr(e),t.dims=Xn(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),St&&(o=It(e.doc,o),a=Rt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;r=o,i=a,0==(a=(o=e).display).view.length||r>=a.viewTo||i<=a.viewFrom?(a.view=tn(o,r,i),a.viewFrom=r):(a.viewFrom>r?a.view=tn(o,r,a.viewFrom).concat(a.view):a.viewFromi&&(a.view=a.view.slice(0,er(o,i)))),a.viewTo=i,n.viewOffset=Ut(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";o=or(e);if(!s&&0==o&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;a=function(e){if(e.hasFocus())return null;var t=A();if(!t||!M(e.display.lineDiv,t))return null;var n={activeElt:t};return!window.getSelection||(t=window.getSelection()).anchorNode&&t.extend&&M(e.display.lineDiv,t.anchorNode)&&(n.anchorNode=t.anchorNode,n.anchorOffset=t.anchorOffset,n.focusNode=t.focusNode,n.focusOffset=t.focusOffset),n}(e);return 4=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Br(e,t))break;gr(e);var i=Tr(e);ar(e),Mr(e,i),Gr(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function qr(e,t){var n=new Rr(e,t);Br(e,n)&&(gr(e),Ur(e,n),t=Tr(e),ar(e),Mr(e,t),Gr(e,t),n.finish())}function $r(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Gr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+wn(e)+"px"}function Vr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Yn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;aa.clientWidth,l=a.scrollHeight>a.clientHeight;if(r&&s||i&&l){if(i&&g&&p)e:for(var c=t.target,u=o.view;c!=a;c=c.parentNode)for(var h=0;hs-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=(l=i).lastOp==r?(ki(l.done),V(l.done)):l.done.length&&!V(l.done).ranges?V(l.done):1i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ke(e,"historyAdded")}function xi(e,t,n,r){var i,o,a,s=e.history,l=r&&r.origin;n==s.lastSelOp||l&&s.lastSelOrigin==l&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==l||(i=e,o=l,a=V(s.done),e=t,"*"==(o=o.charAt(0))||"+"==o&&a.ranges.length==e.ranges.length&&a.somethingSelected()==e.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)))?s.done[s.done.length-1]=t:Ci(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=l,s.lastSelOp=n,r&&!1!==r.clearRedo&&ki(s.undone)}function Ci(e,t){var n=V(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Si(t,n,e,r){var i=n["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,r),function(e){e.markedSpans&&((i=i||(n["spans_"+t.id]={}))[o]=e.markedSpans),++o})}function Li(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i=t.ch:s.to>t.ch))){if(i&&(ke(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(l.atomic){if(n){var h=l.find(r<0?1:-1),s=void 0;if((h=(r<0?u:c)?Bi(e,h,-r,h&&h.line==t.line?o:null):h)&&h.line==t.line&&(s=it(h,n))&&(r<0?s<0:0e.first?ut(e,rt(t.line-1)):null:0e.lastLine()||(t.from.linei?{from:t.from,to:rt(i,Xe(e,i).text.length),text:[t.text[0]],origin:t.origin}:t).removed=Ye(e,t.from,t.to),n=n||ui(e,t),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Je(Wt(Xe(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0}));-1i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiert.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&tr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ji(t.doc)),t&&an(t,"markerCleared",t,this,r,i),n&&Or(t),this.parent&&this.parent.clear()}},ao.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(i,o,a){i=ut(this,i),o=ut(this,o);var s=[],l=i.line;return this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var n=0;n=r.to||null==r.from&&l!=i.line||null!=r.from&&l==o.line&&r.from>=o.ch||a&&!a(r.marker)||s.push(r.marker.parent||r.marker)}++l}),s},getAllMarks:function(){var r=[];return this.iter(function(e){var t=e.markedSpans;if(t)for(var n=0;nt&&(t=e.from),null!=e.to&&e.toe.text.length?null:n}function No(e,t,n){e=Oo(e,t.ch,n);return null==e?null:new rt(t.line,e,n<0?"after":"before")}function zo(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=me(n,t.doc.direction);if(o){var a,s,l,e=i<0?V(o):o[0],o=i<0==(1==e.level)?"after":"before";return 0=n.text.length?(s.ch=n.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var r=ae(l,s.ch,s.sticky),i=l[r];if("ltr"==t.doc.direction&&i.level%2==0&&(0s.ch:i.from=i.from&&d>=u.begin))return new rt(s.line,d,h?"before":"after")}h=function(e,t,n){for(var r=function(e,t){return t?new rt(s.line,c(e,1),"before"):new rt(s.line,e,"after")};0<=e&&ea.doc.first&&((n=Xe(a.doc,e.line-1).text)&&(e=new rt(e.line,1),a.replaceRange(t.charAt(0)+a.doc.lineSeparator()+n.charAt(n.length-1),rt(e.line-1,n.length-1),e,"+transpose")))),i.push(new oi(e,e)));a.setSelections(i)})},newlineAndIndent:function(r){return Nr(r,function(){for(var e=(t=r.listSelections()).length-1;0<=e;e--)r.replaceRange(r.doc.lineSeparator(),t[e].anchor,t[e].head,"+input");for(var t=r.listSelections(),n=0;nu&&t.push(new oi(rt(s,u),rt(s,q(c,a,n))))}t.length||t.push(new oi(p,p)),Ni(g,ai(d,b.ranges.slice(0,v).concat(t),v),{origin:"*mouse",scroll:!1}),d.scrollIntoView(e)}else{var h,r=m,i=ea(d,e,f.unit),e=r.anchor,e=0=n.to||o.linel.bottom?20:0)&&setTimeout(zr(d,function(){c==i&&(a.scroller.scrollTop+=r,e(t))}),50))}:n)(e)}),i=zr(d,n);d.state.selectingText=i,be(a.wrapper.ownerDocument,"mousemove",r),be(a.wrapper.ownerDocument,"mouseup",i)})(e,r,t,o)}(a,t,i,e):Ee(e)==s.scroller&&Le(e):2==n?(t&&Ei(a.doc,t),setTimeout(function(){return s.input.focus()},20)):3==n&&(k?a.display.input.onContextMenu(e):dr(a)))))}function ea(e,t,n){if("char"==n)return new oi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oi(rt(t.line,0),ut(e.doc,rt(t.line+1,0)));t=n(e,t);return new oi(t.from,t.to)}function ta(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Le(t);var a=e.display,r=a.lineDiv.getBoundingClientRect();if(o>r.bottom||!Ce(e,n))return Me(t);o-=r.top-a.viewOffset;for(var s=0;s=i)return ke(e,n,e,et(e.doc,o),e.display.gutterSpecs[s].className,t),Me(t)}}function na(e,t){return ta(e,t,"gutterClick",!0)}function ra(e,t){var n,r;mn(e.display,t)||(r=t,Ce(n=e,"gutterContextMenu")&&ta(n,r,"gutterContextMenu",!1))||_e(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function ia(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Fn(e)}Qo.prototype.compare=function(e,t,n){return this.time+400>e&&0==it(t,this.pos)&&n==this.button};var oa={toString:function(){return"CodeMirror.Init"}},aa={},sa={};function la(e,t,n){!t!=!(n&&n!=oa)&&(n=e.display.dragFunctions,(t=t?be:we)(e.display.scroller,"dragstart",n.start),t(e.display.scroller,"dragenter",n.enter),t(e.display.scroller,"dragover",n.over),t(e.display.scroller,"dragleave",n.leave),t(e.display.scroller,"drop",n.drop))}function ca(e){e.options.lineWrapping?(E(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(x(e.display.wrapper,"CodeMirror-wrap"),$t(e)),Qn(e),tr(e),Fn(e),setTimeout(function(){return Mr(e)},100)}function ua(e,t){var n=this;if(!(this instanceof ua))return new ua(e,t);this.options=t=t?N(t):{},N(aa,t,!1);var r=t.value;"string"==typeof r?r=new po(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i,o=new ua.inputStyles[t.inputStyle](this),o=this.display=new Qr(e,r,o,t);for(i in ia(o.wrapper.CodeMirror=this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Dr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new H,keySeq:null,specialChars:null},t.autofocus&&!h&&o.input.focus(),w&&v<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(r){var i=r.display;be(i.scroller,"mousedown",zr(r,Jo)),be(i.scroller,"dblclick",w&&v<11?zr(r,function(e){var t;_e(r,e)||(!(t=Jn(r,e))||na(r,e)||mn(r.display,e)||(Le(e),t=r.findWordAt(t),Ei(r.doc,t.anchor,t.head)))}):function(e){return _e(r,e)||Le(e)});be(i.scroller,"contextmenu",function(e){return ra(r,e)}),be(i.input.getField(),"contextmenu",function(e){i.scroller.contains(e.target)||ra(r,e)});var n,o={end:0};function a(){i.activeTouch&&(n=setTimeout(function(){return i.activeTouch=null},1e3),(o=i.activeTouch).end=+new Date)}function s(e,t){if(null==t.left)return 1;var n=t.left-e.left,e=t.top-e.top;return 400o.first?z(Xe(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n);var u=Math.max(0,u),h="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)d+=a,h+="\t";if(da,l=Ne(t),c=null;if(s&&1a?"cut":"+input")};$i(e.doc,g),an(e,"inputRead",e,g)}t&&!s&&va(e,t),wr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ma(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");return n&&(e.preventDefault(),t.isReadOnly()||t.options.disableInput||Nr(t,function(){return ga(t,n,0,null,"paste")}),1)}function va(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;0<=r;r--){var i=n.ranges[r];if(!(100=r.first+r.size||(i=new rt(n,i.ch,i.sticky),!(l=Xe(r,n))))return;i=zo(s,r.cm,l,i.line,c)}else i=t;return 1}if("char"==a||"codepoint"==a)n();else if("column"==a)n(!0);else if("word"==a||"group"==a)for(var u=null,h="group"==a,d=r.cm&&r.cm.getHelper(i,"wordChars"),p=!0;!(o<0)||n(!p);p=!1){var f=l.text.charAt(i.ch)||"\n",f=J(f,d)?"w":h&&"\n"==f?"n":!h||/\s/.test(f)?null:"p";if(!h||p||f||(f="s"),u&&u!=f){o<0&&(o=1,n(),i.sticky="after");break}if(f&&(u=f),0=s.height){a.hitSide=!0;break}o+=5*n}return a}e=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function xa(e,t){var n=Sn(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),n=xn(n,r,t.line),r=me(r,e.doc.direction),e="left";r&&(e=ae(r,t.ch)%2?"right":"left");e=En(n.map,t.ch,e);return e.offset="right"==e.collapse?e.end:e.start,e}function Ca(e,t){return t&&(e.bad=!0),e}function Sa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ca(e.clipPos(rt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||i.line=t.display.viewFrom&&xa(t,r)||{node:n[0].measure.map[2],offset:0},i=i.linet.firstLine()&&(i=rt(i.line-1,Xe(t.doc,i.line-1).length)),r.ch==Xe(t.doc,r.line).text.length&&r.linen.viewTo-1)return!1;var o,a=i.line==n.viewFrom||0==(a=er(t,i.line))?(e=Je(n.view[0].line),n.view[0].node):(e=Je(n.view[a].line),n.view[a-1].node.nextSibling),r=er(t,r.line),r=r==n.view.length-1?(o=n.viewTo-1,n.lineDiv.lastChild):(o=Je(n.view[r+1].line)-1,n.view[r+1].node.previousSibling);if(!a)return!1;for(var s=t.doc.splitLines(function(a,e,t,s,l){var n="",c=!1,u=a.doc.lineSeparator(),h=!1;function d(){c&&(n+=u,h&&(n+=u),c=h=!1)}function p(e){e&&(d(),n+=e)}for(;!function e(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)p(n);else if(n=t.getAttribute("cm-marker"))(n=a.findMarks(rt(s,0),rt(l+1,0),(o=+n,function(e){return e.id==o}))).length&&(r=n[0].find(0))&&p(Ye(a.doc,r.from,r.to).join(u));else if("false"!=t.getAttribute("contenteditable")){var r=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(/^br$/i.test(t.nodeName)||0!=t.textContent.length){r&&d();for(var i=0;ii.ch&&f.charCodeAt(f.length-u-1)==g.charCodeAt(g.length-u-1);)c--,u++;s[s.length-1]=f.slice(0,f.length-u).replace(/^\u200b+/,""),s[0]=s[0].slice(c).replace(/\u200b+$/,"");a=rt(e,c),r=rt(o,l.length?V(l).length-u:0);return 1n&&(da(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&wr(this));else{for(var o=i.from(),a=i.to(),i=Math.max(n,o.line),n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1,s=i;s>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=o&&(l=e.bottom),c+t.offsetWidth>a&&(c=a-t.offsetWidth)),t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(c=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(n=this,t={left:c,top:l,right:c+t.offsetWidth,bottom:l+t.offsetHeight},null!=(t=br(n,t)).scrollTop&&Cr(n,t.scrollTop),null!=t.scrollLeft&&Lr(n,t.scrollLeft))},triggerOnKeyDown:Hr(Vo),triggerOnKeyPress:Hr(Xo),triggerOnKeyUp:Ko,triggerOnMouseDown:Hr(Jo),execCommand:function(e){if(jo.hasOwnProperty(e))return jo[e].call(null,this)},triggerElectric:Hr(function(e){va(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ut(this.doc,e),a=0;a` "'(~:]+/,w=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,k=/^\s*\[[^\]]+?\]:.*$/,_=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/;function x(e,t,n){return(t.f=t.inline=n)(e,t)}function C(e,t,n){return(t.f=t.block=n)(e,t)}function r(e){var t,n;return e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f!=S||(n=!(n=i)?"xml"==(t=P.innerMode(p,e.htmlState)).mode.name&&null===t.state.tagStart&&!t.state.context&&t.state.tokenize.isInText:n)&&(e.f=M,e.block=o,e.htmlState=null),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function o(e,t){var n=e.column()===t.indentation,r=!(u=t.prevLine.stream)||!/\S/.test(u.string),i=t.indentedCode,o=t.prevLine.hr,a=!1!==t.list,s=(t.listStack[t.listStack.length-1]||0)+3;t.indentedCode=!1;var l=t.indentation;if(null===t.indentationDiff&&(t.indentationDiff=t.indentation,a)){for(t.list=null;l"))return t.quote=n?1:t.quote+1,d.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),T(t);if(!u&&!t.setext&&n&&t.indentation<=s&&(o=e.match(m))){r=o[1]?"ol":"ul";return t.indentation=l+e.current().length,t.list=!0,t.quote=0,t.listStack.push(t.indentation),t.em=!1,t.strong=!1,t.code=!1,t.strikethrough=!1,d.taskLists&&e.match(v,!1)&&(t.taskList=!0),t.f=t.inline,d.highlightFormatting&&(t.formatting=["list","list-"+r]),T(t)}return n&&t.indentation<=s&&(o=e.match(w,!0))?(t.quote=0,t.fencedEndRE=new RegExp(o[1]+"+ *$"),t.localMode=d.fencedCodeBlockHighlighting&&(n=o[2]||d.fencedCodeBlockDefaultMode,!P.findModeByName||(s=P.findModeByName(n))&&(n=s.mime||s.mimes[0]),"null"==(n=P.getMode(h,n)).name?null:n),t.localMode&&(t.localState=P.startState(t.localMode)),t.f=t.block=L,d.highlightFormatting&&(t.formatting="code-block"),t.code=-1,T(t)):t.setext||!(c&&a||t.quote||!1!==t.list||t.code||u||k.test(e.string))&&(o=e.lookAhead(1))&&(o=o.match(y))?(t.setext?(t.header=t.setext,t.setext=0,e.skipToEnd(),d.highlightFormatting&&(t.formatting="header")):(t.header="="==o[0].charAt(0)?1:2,t.setext=t.header),t.thisLine.header=!0,t.f=t.inline,T(t)):u?(e.skipToEnd(),t.hr=!0,t.thisLine.hr=!0,f.hr):"["===e.peek()?x(e,t,D):x(e,t,t.inline)}function S(e,t){var n,r=p.token(e,t.htmlState);return i||("xml"==(n=P.innerMode(p,t.htmlState)).mode.name&&null===n.state.tagStart&&!n.state.context&&n.state.tokenize.isInText||t.md_inside&&-1"))&&(t.f=M,t.block=o,t.htmlState=null),r}function L(e,t){var n,r=t.listStack[t.listStack.length-1]||0,i=t.indentation=e.quote?n.push(f.formatting+"-"+e.formatting[r]+"-"+e.quote):n.push("error"))}return e.taskOpen?n.push("meta"):e.taskClosed?n.push("property"):(e.linkHref?n.push(f.linkHref,"url"):(e.strong&&n.push(f.strong),e.em&&n.push(f.em),e.strikethrough&&n.push(f.strikethrough),e.emoji&&n.push(f.emoji),e.linkText&&n.push(f.linkText),e.code&&n.push(f.code),e.image&&n.push(f.image),e.imageAltText&&n.push(f.imageAltText,"link"),e.imageMarker&&n.push(f.imageMarker)),e.header&&n.push(f.header,f.header+"-"+e.header),e.quote&&(n.push(f.quote),!d.maxBlockquoteDepth||d.maxBlockquoteDepth>=e.quote?n.push(f.quote+"-"+e.quote):n.push(f.quote+"-"+d.maxBlockquoteDepth)),!1!==e.list&&((t=(e.listStack.length-1)%3)?1==t?n.push(f.list2):n.push(f.list3):n.push(f.list1)),e.trailingSpaceNewLine?n.push("trailing-space-new-line"):e.trailingSpace&&n.push("trailing-space-"+(e.trailingSpace%2?"a":"b"))),n.length?n.join(" "):null}function t(e,t){if(e.match(n,!0))return T(t)}function M(e,t){var n=t.text(e,t);if(void 0!==n)return n;if(t.list)return t.list=null,T(t);if(t.taskList)return" "===e.match(v,!0)[1]?t.taskOpen=!0:t.taskClosed=!0,d.highlightFormatting&&(t.formatting="task"),t.taskList=!1,T(t);if(t.taskOpen=!1,t.taskClosed=!1,t.header&&e.match(/^#+$/,!0))return d.highlightFormatting&&(t.formatting="header"),T(t);var r=e.next();if(t.linkTitle){t.linkTitle=!1;n=((n="("===r?")":r)+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");if(e.match(new RegExp("^\\s*(?:[^"+n+"\\\\]+|\\\\\\\\|\\\\.)"+n),!0))return f.linkHref}if("`"===r){var i=t.formatting;d.highlightFormatting&&(t.formatting="code"),e.eatWhile("`");var o=e.current().length;if(0!=t.code||t.quote&&1!=o){if(o!=t.code)return t.formatting=i,T(t);var a=T(t);return t.code=0,a}return t.code=o,T(t)}if(t.code)return T(t);if("\\"===r&&(e.next(),d.highlightFormatting)){var s=T(t),l=f.formatting+"-escape";return s?s+" "+l:l}if("!"===r&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return t.imageMarker=!0,t.image=!0,d.highlightFormatting&&(t.formatting="image"),T(t);if("["===r&&t.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return t.imageMarker=!1,t.imageAltText=!0,d.highlightFormatting&&(t.formatting="image"),T(t);if("]"===r&&t.imageAltText){d.highlightFormatting&&(t.formatting="image");s=T(t);return t.imageAltText=!1,t.image=!1,t.inline=t.f=E,s}if("["===r&&!t.image)return t.linkText&&e.match(/^.*?\]/)||(t.linkText=!0,d.highlightFormatting&&(t.formatting="link")),T(t);if("]"===r&&t.linkText){d.highlightFormatting&&(t.formatting="link");s=T(t);return t.linkText=!1,t.inline=t.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?E:M,s}if("<"===r&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return t.f=t.inline=A,d.highlightFormatting&&(t.formatting="link"),(s=T(t))?s+=" ":s="",s+f.linkInline;if("<"===r&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return t.f=t.inline=A,d.highlightFormatting&&(t.formatting="link"),(s=T(t))?s+=" ":s="",s+f.linkEmail;if(d.xml&&"<"===r&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var c=e.string.indexOf(">",e.pos);return-1!=c&&(h=e.string.substring(e.start,c),/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(h)&&(t.md_inside=!0)),e.backUp(1),t.htmlState=P.startState(p),C(e,t,S)}if(d.xml&&"<"===r&&e.match(/^\/\w*?>/))return t.md_inside=!1,"tag";if("*"===r||"_"===r){for(var u=1,i=1==e.pos?" ":e.string.charAt(e.pos-2);u<3&&e.eat(r);)u++;var o=e.peek()||" ",l=!/\s/.test(o)&&(!_.test(o)||/\s/.test(i)||_.test(i)),s=!/\s/.test(i)&&(!_.test(i)||/\s/.test(o)||_.test(o)),c=null,h=null;if(u%2&&(t.em||!l||"*"!==r&&s&&!_.test(i)?t.em!=r||!s||"*"!==r&&l&&!_.test(o)||(c=!1):c=!0),1"!==e.next())return e.match(/^[^>]+/,!0),f.linkInline;t.f=t.inline=M,d.highlightFormatting&&(t.formatting="link");t=T(t);return t?t+=" ":t="",t+f.linkInline}function E(e,t){if(e.eatSpace())return null;var n,e=e.next();return"("===e||"["===e?(t.f=t.inline=(n="("===e?")":"]",function(e,t){if(e.next()!==n)return e.match(a[n]),t.linkHref=!0,T(t);t.f=t.inline=M,d.highlightFormatting&&(t.formatting="link-string");e=T(t);return t.linkHref=!1,e}),d.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,T(t)):"error"}var a={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function D(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=s,e.next(),d.highlightFormatting&&(t.formatting="link"),t.linkText=!0,T(t)):x(e,t,M)}function s(e,t){if(e.match("]:",!0)){t.f=t.inline=l,d.highlightFormatting&&(t.formatting="link");var n=T(t);return t.linkText=!1,n}return e.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function l(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=M,f.linkHref+" url")}var c={startState:function(){return{f:o,prevLine:{stream:null},thisLine:{stream:null},block:o,htmlState:null,indentation:0,inline:M,text:t,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(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&P.copyState(p,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?P.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return r(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=S)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,0l.clientHeight+1;setTimeout(function(){k=o.getScrollInfo()}),0<_.bottom-w&&(p=_.bottom-_.top,0t&&(l.style.width=t-5+"px",S-=_.right-_.left-t),l.style.left=(g=f.left-S-b)+"px"),x)for(var L=l.firstChild;L;L=L.nextSibling)L.style.paddingRight=o.display.nativeBarWidth+"px";o.addKeyMap(this.keyMap=function(e,r){var i={Up:function(){r.moveFocus(-1)},Down:function(){r.moveFocus(1)},PageUp:function(){r.moveFocus(1-r.menuSize(),!0)},PageDown:function(){r.moveFocus(r.menuSize()-1,!0)},Home:function(){r.setFocus(0)},End:function(){r.setFocus(r.length-1)},Enter:r.pick,Tab:r.pick,Esc:r.close};/Mac/.test(navigator.platform)&&(i["Ctrl-P"]=function(){r.moveFocus(-1)},i["Ctrl-N"]=function(){r.moveFocus(1)});var t=e.options.customKeys,o=t?{}:i;function n(e,t){var n="string"!=typeof t?function(e){return t(e,r)}:i.hasOwnProperty(t)?i[t]:t;o[e]=n}if(t)for(var a in t)t.hasOwnProperty(a)&&n(a,t[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&n(a,s[a]);return o}(i,{moveFocus:function(e,t){n.changeActive(n.selectedHint+e,t)},setFocus:function(e){n.changeActive(e)},menuSize:function(){return n.screenAmount()},length:r.length,close:function(){i.close()},pick:function(){n.pick()},data:e})),i.options.closeOnUnfocus&&(o.on("blur",this.onBlur=function(){C=setTimeout(function(){i.close()},100)}),o.on("focus",this.onFocus=function(){clearTimeout(C)})),o.on("scroll",this.onScroll=function(){var e=o.getScrollInfo(),t=o.getWrapperElement().getBoundingClientRect(),n=m+k.top-e.top,r=n-(s.pageYOffset||(a.documentElement||a.body).scrollTop);if(v||(r+=l.offsetHeight),r<=t.top||r>=t.bottom)return i.close();l.style.top=n+"px",l.style.left=g+k.left-e.left+"px"}),T.on(l,"dblclick",function(e){e=E(l,e.target||e.srcElement);e&&null!=e.hintId&&(n.changeActive(e.hintId),n.pick())}),T.on(l,"click",function(e){e=E(l,e.target||e.srcElement);e&&null!=e.hintId&&(n.changeActive(e.hintId),i.options.completeOnSingleClick&&n.pick())}),T.on(l,"mousedown",function(){setTimeout(function(){o.focus()},20)});x=this.getSelectedHintRange();return 0===x.from&&0===x.to||this.scrollToActive(),T.signal(e,"select",r[this.selectedHint],l.childNodes[this.selectedHint]),!0}function s(e,t,n,r){e.async?e(t,r,n):(n=e(t,n))&&n.then?n.then(r):r(n)}r.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&&T.signal(this.data,"close"),this.widget&&this.widget.close(),T.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,t){var n=e.list[t],r=this;this.cm.operation(function(){n.hint?n.hint(r.cm,e,n):r.cm.replaceRange(A(n),n.from||e.from,n.to||e.to,"complete"),T.signal(e,"pick",n),r.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t,n=this.cm.getCursor(),r=this.cm.getLine(n.line);n.line!=this.startPos.line||r.length-n.ch!=this.startLen-this.startPos.ch||n.ch=this.data.list.length?e=t?this.data.list.length-1:0:e<0&&(e=t?0:this.data.list.length-1),this.selectedHint!=e&&((t=this.hints.childNodes[this.selectedHint])&&(t.className=t.className.replace(" "+M,"")),(t=this.hints.childNodes[this.selectedHint=e]).className+=" "+M,this.scrollToActive(),T.signal(this.data,"select",this.data.list[this.selectedHint],t))},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],e=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+e.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},T.registerHelper("hint","auto",{resolve:function(e,t){var n,a=e.getHelpers(t,"hint");if(a.length){t=function(e,r,i){var o=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};T.defineOption("hintOptions",null)}),function(){function r(e){var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var b={},n={},h={},d=r(!0),p="vanilla",f={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:r(!0),allOn:function(){var e,t=r(!0),n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=!0);return n}()};function g(e,t){var n=t?"Error in "+t+" extension->":"Error in unnamed extension",r={valid:!0,error:""};b.helper.isArray(e)||(e=[e]);for(var i=0;i").replace(/&/g,"&")};function u(e,t,n,r){var i,o,a,s,l=-1<(r=r||"").indexOf("g"),c=new RegExp(t+"|"+n,"g"+r.replace(/g/g,"")),u=new RegExp(t,r.replace(/g/g,"")),h=[];do{for(i=0;a=c.exec(e);)if(u.test(a[0]))i++||(s=(o=c.lastIndex)-a[0].length);else if(i&&!--i){var d=a.index+a[0].length,d={left:{start:s,end:o},match:{start:o,end:a.index},right:{start:a.index,end:d},wholeMatch:{start:s,end:d}};if(h.push(d),!l)return h}}while(i&&(c.lastIndex=o));return h}b.helper.matchRecursiveRegExp=function(e,t,n,r){for(var i=u(e,t,n,r),o=[],a=0;a>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),b.helper.regexes={asteriskDashAndColon:/([*_:~])/g},b.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},b.Converter=function(n){var i={},o=[],a=[],s={},r=p,l={parsed:{},raw:"",format:""};function c(e,t){if(t=t||null,b.helper.isString(e)){if(e=b.helper.stdExtName(e),b.extensions[t=e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new b.Converter));b.helper.isArray(e)||(e=[e]);t=g(e,t);if(!t.valid)throw Error(t.error);for(var n=0;n[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}t=t.createElement("div");t.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),n=[],r=0;r'}else n.push(t[r].innerHTML),t[r].innerHTML="",t[r].setAttribute("prenum",r.toString());return n}(t)};!function e(t){for(var n=0;n? ?(['"].*['"])?\)$/m))r="";else if(!r){if(r="#"+(n=n||t.toLowerCase().replace(/ ?\n/g," ")),b.helper.isUndefined(l.gUrls[n]))return e;r=l.gUrls[n],b.helper.isUndefined(l.gTitles[n])||(a=l.gTitles[n])}return n='"}return e=(e=(e=(e=(e=l.converter._dispatch("anchors.before",e,s,l)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[([^\[\]]+)]()()()()()/g,t),s.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,t,n,r,i){if("\\"===n)return t+r;if(!b.helper.isString(s.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");n="";return t+'"+r+""})),e=l.converter._dispatch("anchors.after",e,s,l)});function o(u){return function(e,t,n,r,i,o,a){var s=n=n.replace(b.helper.regexes.asteriskDashAndColon,b.helper.escapeCharactersCallback),l="",c="",t=t||"",a=a||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),u.excludeTrailingPunctuationFromURLs&&o&&(l=o),t+'"+s+""+l+a}}function a(i,o){return function(e,t,n){var r="mailto:";return t=t||"",n=b.subParser("unescapeSpecialChars")(n,i,o),i.encodeEmails?(r=b.helper.encodeEmailAddress(r+n),n=b.helper.encodeEmailAddress(n)):r+=n,t+''+n+""}}var s=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,l=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,c=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,v=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi;b.subParser("autoLinks",function(e,t,n){return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(c,o(t))).replace(v,a(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n)}),b.subParser("simplifiedAutoLinks",function(e,t,n){return t.simplifiedAutoLink?(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(l,o(t)):e.replace(s,o(t))).replace(m,a(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e}),b.subParser("blockGamut",function(e,t,n){return e=n.converter._dispatch("blockGamut.before",e,t,n),e=b.subParser("blockQuotes")(e,t,n),e=b.subParser("headers")(e,t,n),e=b.subParser("horizontalRule")(e,t,n),e=b.subParser("lists")(e,t,n),e=b.subParser("codeBlocks")(e,t,n),e=b.subParser("tables")(e,t,n),e=b.subParser("hashHTMLBlocks")(e,t,n),e=b.subParser("paragraphs")(e,t,n),e=n.converter._dispatch("blockGamut.after",e,t,n)}),b.subParser("blockQuotes",function(e,t,n){e=n.converter._dispatch("blockQuotes.before",e,t,n);var r=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(r=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=(e+="\n\n").replace(r,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=b.subParser("githubCodeBlocks")(e,t,n),e=(e=(e=b.subParser("blockGamut")(e,t,n)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,function(e,t){return t=(t=t.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),b.subParser("hashBlock")("
\n"+e+"\n
",t,n)}),e=n.converter._dispatch("blockQuotes.after",e,t,n)}),b.subParser("codeBlocks",function(e,i,o){e=o.converter._dispatch("codeBlocks.before",e,i,o);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,t,n){var r=t,t=n,n="\n",r=b.subParser("outdent")(r,i,o);return r=b.subParser("encodeCode")(r,i,o),r="
"+(r=(r=(r=b.subParser("detab")(r,i,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+(n=i.omitExtraWLInCodeBlocks?"":n)+"
",b.subParser("hashBlock")(r,i,o)+t})).replace(/¨0/,""),e=o.converter._dispatch("codeBlocks.after",e,i,o)}),b.subParser("codeSpans",function(e,i,o){return e=(e=void 0===(e=o.converter._dispatch("codeSpans.before",e,i,o))?"":e).replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,t,n,r){return r=(r=r.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),r=t+""+(r=b.subParser("encodeCode")(r,i,o))+"",r=b.subParser("hashHTMLSpans")(r,i,o)}),e=o.converter._dispatch("codeSpans.after",e,i,o)}),b.subParser("completeHTMLDocument",function(e,t,n){if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r,i="html",o="\n",a="",s='\n',l="",c="";for(r in void 0!==n.metadata.parsed.doctype&&(o="\n","html"!==(i=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==i||(s='')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(r))switch(r.toLowerCase()){case"doctype":break;case"title":a=""+n.metadata.parsed.title+"\n";break;case"charset":s="html"===i||"html5"===i?'\n':'\n';break;case"language":case"lang":l=' lang="'+n.metadata.parsed[r]+'"',c+='\n';break;default:c+='\n'}return e=o+"\n\n"+a+s+c+"\n\n"+e.trim()+"\n\n",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n)}),b.subParser("detab",function(e,t,n){return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var n=t,r=4-n.length%4,i=0;i/g,">"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)}),b.subParser("encodeBackslashEscapes",function(e,t,n){return e=(e=(e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n)).replace(/\\(\\)/g,b.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,b.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeBackslashEscapes.after",e,t,n)}),b.subParser("encodeCode",function(e,t,n){return e=(e=n.converter._dispatch("encodeCode.before",e,t,n)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,b.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeCode.after",e,t,n)}),b.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,n){return e=(e=(e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,b.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,b.helper.escapeCharactersCallback)}),e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n)}),b.subParser("githubCodeBlocks",function(e,o,a){return o.ghCodeBlocks?(e=a.converter._dispatch("githubCodeBlocks.before",e,o,a),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,t,n,r){var i=o.omitExtraWLInCodeBlocks?"":"\n";return r=b.subParser("encodeCode")(r,o,a),r="
"+(r=(r=(r=b.subParser("detab")(r,o,a)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+i+"
",r=b.subParser("hashBlock")(r,o,a),"\n\n¨G"+(a.ghCodeBlocks.push({text:e,codeblock:r})-1)+"G\n\n"})).replace(/¨0/,""),a.converter._dispatch("githubCodeBlocks.after",e,o,a)):e}),b.subParser("hashBlock",function(e,t,n){return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n)}),b.subParser("hashCodeTags",function(e,i,o){e=o.converter._dispatch("hashCodeTags.before",e,i,o);return e=b.helper.replaceRecursiveRegExp(e,function(e,t,n,r){r=n+b.subParser("encodeCode")(t,i,o)+r;return"¨C"+(o.gHtmlSpans.push(r)-1)+"C"},"]*>","","gim"),e=o.converter._dispatch("hashCodeTags.after",e,i,o)}),b.subParser("hashElement",function(e,t,n){return function(e,t){return t=(t=(t=t.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),t="\n\n¨K"+(n.gHtmlBlocks.push(t)-1)+"K\n\n"}}),b.subParser("hashHTMLBlocks",function(e,t,i){e=i.converter._dispatch("hashHTMLBlocks.before",e,t,i);function n(e,t,n,r){return-1!==n.search(/\bmarkdown\b/)&&(e=n+i.converter.makeHtml(t)+r),"\n\n¨K"+(i.gHtmlBlocks.push(e)-1)+"K\n\n"}var r=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"];t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var o=0;o]*>)","im"),s="<"+r[o]+"\\b[^>]*>",l="";-1!==(u=b.helper.regexIndexOf(e,a));){var c=b.helper.splitAtIndex(e,u),u=b.helper.replaceRecursiveRegExp(c[1],n,s,l,"im");if(u===c[1])break;e=c[0].concat(u)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,b.subParser("hashElement")(e,t,i)),e=(e=b.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(i.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,b.subParser("hashElement")(e,t,i)),e=i.converter._dispatch("hashHTMLBlocks.after",e,t,i)}),b.subParser("hashHTMLSpans",function(e,t,n){function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,r)).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,r)).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,r)).replace(/<[^>]+?>/gi,r),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n)}),b.subParser("unhashHTMLSpans",function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;r]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=o.converter._dispatch("hashPreCodeTags.after",e,i,o)}),b.subParser("headers",function(e,i,o){e=o.converter._dispatch("headers.before",e,i,o);var a=isNaN(parseInt(i.headerLevelStart))?1:parseInt(i.headerLevelStart),t=i.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,n=i.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(t,function(e,t){var n=b.subParser("spanGamut")(t,i,o),t=i.noHeaderId?"":' id="'+s(t)+'"',n=""+n+"";return b.subParser("hashBlock")(n,i,o)})).replace(n,function(e,t){var n=b.subParser("spanGamut")(t,i,o),r=i.noHeaderId?"":' id="'+s(t)+'"',t=a+1,t=""+n+"";return b.subParser("hashBlock")(t,i,o)});n=i.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function s(e){var t;return!i.customizedHeaderId||(t=e.match(/\{([^{]+?)}\s*$/))&&t[1]&&(e=t[1]),t=e,e=b.helper.isString(i.prefixHeaderId)?i.prefixHeaderId:!0===i.prefixHeaderId?"section-":"",i.rawPrefixHeaderId||(t=e+t),t=(i.ghCompatibleHeaderId?t.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,""):i.rawHeaderId?t.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-"):t.replace(/[^\w]/g,"")).toLowerCase(),i.rawPrefixHeaderId&&(t=e+t),o.hashLinkCounts[t]?t=t+"-"+o.hashLinkCounts[t]++:o.hashLinkCounts[t]=1,t}return e=e.replace(n,function(e,t,n){var r=n;i.customizedHeaderId&&(r=n.replace(/\s?\{([^{]+?)}\s*$/,""));r=b.subParser("spanGamut")(r,i,o),n=i.noHeaderId?"":' id="'+s(n)+'"',t=a-1+t.length,t=""+r+"";return b.subParser("hashBlock")(t,i,o)}),e=o.converter._dispatch("headers.after",e,i,o)}),b.subParser("horizontalRule",function(e,t,n){e=n.converter._dispatch("horizontalRule.before",e,t,n);var r=b.subParser("hashBlock")("
",t,n);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,r)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,r),e=n.converter._dispatch("horizontalRule.after",e,t,n)}),b.subParser("images",function(e,t,h){function l(e,t,n,r,i,o,a,s){var l=h.gUrls,c=h.gTitles,u=h.gDimensions;if(n=n.toLowerCase(),s=s||"",-1? ?(['"].*['"])?\)$/m))r="";else if(""===r||null===r){if(r="#"+(n=""===n||null===n?t.toLowerCase().replace(/ ?\n/g," "):n),b.helper.isUndefined(l[n]))return e;r=l[n],b.helper.isUndefined(c[n])||(s=c[n]),b.helper.isUndefined(u[n])||(i=u[n].width,o=u[n].height)}t=t.replace(/"/g,""").replace(b.helper.regexes.asteriskDashAndColon,b.helper.escapeCharactersCallback);t=''+t+'"}return e=(e=(e=(e=(e=(e=h.converter._dispatch("images.before",e,t,h)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,l)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,n,r,i,o,a,s){return l(e,t,n,r=r.replace(/\s/g,""),i,o,0,s)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,l)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,l)).replace(/!\[([^\[\]]+)]()()()()()/g,l),e=h.converter._dispatch("images.after",e,t,h)}),b.subParser("italicsAndBold",function(e,t,n){return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return""+t+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return""+t+""})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return""+t+""}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?""+t+"":e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,n){return t+""+n+""})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,n){return t+""+n+""})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,n){return t+""+n+""}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?""+t+"":e}),e=n.converter._dispatch("italicsAndBold.after",e,t,n)}),b.subParser("lists",function(e,h,c){function d(e,t){c.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var n=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,l=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return h.disableForced4SpacesIndentedSublists&&(n=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(n,function(e,t,n,r,i,o,a){a=a&&""!==a.trim();var s=b.subParser("outdent")(i,h,c),i="";return o&&h.tasklists&&(i=' class="task-list-item" style="list-style-type: none;"',s=s.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='"+(s=(s=t||-1\n"})).replace(/¨0/g,""),c.gListLevel--,e=t?e.replace(/\s+$/,""):e}function p(e,t){if("ol"===t){e=e.match(/^ *(\d+)\./);if(e&&"1"!==e[1])return' start="'+e[1]+'"'}return""}function i(i,o,a){var e,s=h.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,l=h.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===o?s:l,u="";return-1!==i.search(c)?function e(t){var n=t.search(c),r=p(i,o);-1!==n?(u+="\n\n<"+o+r+">\n"+d(t.slice(0,n),!!a)+"\n",c="ul"===(o="ul"===o?"ol":"ul")?s:l,e(t.slice(n))):u+="\n\n<"+o+r+">\n"+d(t,!!a)+"\n"}(i):(e=p(i,o),u="\n\n<"+o+e+">\n"+d(i,!!a)+"\n"),u}return e=c.converter._dispatch("lists.before",e,h,c),e+="¨0",e=(e=c.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,n){return i(t,-1"),s+="

",i.push(s))}for(o=i.length,a=0;a]*>\s*]*>/.test(c)&&(u=!0)}i[a]=c}return e=(e=(e=i.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",e,t,n)}),b.subParser("runExtension",function(e,t,n,r){return e.filter?t=e.filter(t,r.converter,n):e.regex&&((n=e.regex)instanceof RegExp||(n=new RegExp(n,"g")),t=t.replace(n,e.replace)),t}),b.subParser("spanGamut",function(e,t,n){return e=n.converter._dispatch("spanGamut.before",e,t,n),e=b.subParser("codeSpans")(e,t,n),e=b.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n),e=b.subParser("encodeBackslashEscapes")(e,t,n),e=b.subParser("images")(e,t,n),e=b.subParser("anchors")(e,t,n),e=b.subParser("autoLinks")(e,t,n),e=b.subParser("simplifiedAutoLinks")(e,t,n),e=b.subParser("emoji")(e,t,n),e=b.subParser("underline")(e,t,n),e=b.subParser("italicsAndBold")(e,t,n),e=b.subParser("strikethrough")(e,t,n),e=b.subParser("ellipsis")(e,t,n),e=b.subParser("hashHTMLSpans")(e,t,n),e=b.subParser("encodeAmpsAndAngles")(e,t,n),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=n.converter._dispatch("spanGamut.after",e,t,n)}),b.subParser("strikethrough",function(e,n,r){return n.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,n,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,t){return t=t,""+(t=n.simplifiedAutoLink?b.subParser("simplifiedAutoLinks")(t,n,r):t)+""}),e=r.converter._dispatch("strikethrough.after",e,n,r)),e}),b.subParser("stripLinkDefinitions",function(e,s,l){function t(e,t,n,r,i,o,a){return t=t.toLowerCase(),n.match(/^data:.+?\/.+?;base64,/)?l.gUrls[t]=n.replace(/\s/g,""):l.gUrls[t]=b.subParser("encodeAmpsAndAngles")(n,s,l),o?o+a:(a&&(l.gTitles[t]=a.replace(/"|'/g,""")),s.parseImgDimensions&&r&&i&&(l.gDimensions[t]={width:r,height:i}),"")}return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,t)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,t)).replace(/¨0/,"")}),b.subParser("tables",function(e,m,v){if(!m.tables)return e;function t(e){for(var t=e.split("\n"),n=0;n"+(i=b.subParser("spanGamut")(i,m,v))+"\n"));for(n=0;n"+b.subParser("spanGamut")(s,m,v)+"\n"));p.push(f)}return function(e,t){for(var n="\n\n\n",r=e.length,i=0;i\n\n\n",i=0;i\n";for(var o=0;o\n"}return n+="\n
\n"}(h,p)}return e=(e=(e=(e=v.converter._dispatch("tables.before",e,m,v)).replace(/\\(\|)/g,b.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,t)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,t),e=v.converter._dispatch("tables.after",e,m,v)}),b.subParser("underline",function(e,t,n){return t.underline?(e=n.converter._dispatch("underline.before",e,t,n),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return""+t+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return""+t+""}):(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/(_)/g,b.helper.escapeCharactersCallback),e=n.converter._dispatch("underline.after",e,t,n)):e}),b.subParser("unescapeSpecialChars",function(e,t,n){return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,function(e,t){t=parseInt(t);return String.fromCharCode(t)}),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n)}),b.subParser("makeMarkdown.blockquote",function(e,t){var n="";if(e.hasChildNodes())for(var r=e.childNodes,i=r.length,o=0;o ")}),b.subParser("makeMarkdown.codeBlock",function(e,t){var n=e.getAttribute("language"),e=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[e]+"\n```"}),b.subParser("makeMarkdown.codeSpan",function(e){return"`"+e.innerHTML+"`"}),b.subParser("makeMarkdown.emphasis",function(e,t){var n="";if(e.hasChildNodes()){n+="*";for(var r=e.childNodes,i=r.length,o=0;o",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t}),b.subParser("makeMarkdown.links",function(e,t){var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){for(var r=e.childNodes,i=r.length,n="[",o=0;o",e.hasAttribute("title")&&(n+=' "'+e.getAttribute("title")+'"'),n+=")"}return n}),b.subParser("makeMarkdown.list",function(e,t,n){var r="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,o=i.length,a=e.getAttribute("start")||1,s=0;s"+t.preList[e]+""}),b.subParser("makeMarkdown.strikethrough",function(e,t){var n="";if(e.hasChildNodes()){n+="~~";for(var r=e.childNodes,i=r.length,o=0;otr>th"),o=e.querySelectorAll("tbody>tr"),a=0;a/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")});"function"==typeof define&&define.amd?define(function(){return b}):"undefined"!=typeof module&&module.exports?module.exports=b:this.showdown=b}.call(this),(Typo=function(e,i,o,a){a=a||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=a.flags||{},this.memoized={},this.loaded=!1;var t,s,l,c,u,h=this;function n(e,t){e=h._readFile(e,null,a.asyncLoad);a.asyncLoad?e.then(function(e){t(e)}):t(e)}function r(e){i=e,o&&p()}function d(e){o=e,i&&p()}function p(){for(h.rules=h._parseAFF(i),h.compoundRuleCodes={},s=0,c=h.compoundRules.length;s=this.flags.COMPOUNDMIN)for(t=0,n=this.compoundRules.length;tgetFileContents(this.fileInput.files,this.editor));let t=document.createElement("div");t.setAttribute("class","CDTextEditor_header"),t.setAttribute("id","CDTextEditor_header_"+this.id);let n=document.createElement("div");n.setAttribute("class","logo"),n.setAttribute("title","CDTextEditor v0.1");let r=document.createElement("label");r.setAttribute("for","CDTextEditor_inputfile_"+this.id),r.setAttribute("class","CDTextEditor_button"),r.innerHTML="Load";let i=document.createElement("div");i.setAttribute("class","CDTextEditor_button"),i.innerHTML="Save raw",i.onclick=function(){this.save_raw()}.bind(this);let o=document.createElement("div");o.setAttribute("class","CDTextEditor_button"),o.innerHTML="Save as HTML",o.onclick=function(){this.save_html()}.bind(this),this.buttonPreview=document.createElement("div"),this.buttonPreview.setAttribute("class","CDTextEditor_button"),this.buttonPreview.innerHTML="+ Preview",this.buttonPreview.onclick=function(){"block"!==this.viewer.style.display?(this.preview(),this.buttonPreview.innerHTML="- Preview"):(this.viewer.style.display="none",this.initSize(),this.buttonPreview.innerHTML="+ Preview")}.bind(this);let a=document.createElement("div");a.setAttribute("class","CDTextEditor_button"),a.innerHTML="▸ Spellcheck",a.onclick=function(){"block"!==this.spellcheckMenu.style.display?(this.spellcheckMenu.style.display="block",a.innerHTML="▾ Spellcheck"):(this.spellcheckMenu.style.display="none",a.innerHTML="▸ Spellcheck"),this.spellcheckMenu.style.top=a.offsetTop+30+"px",this.spellcheckMenu.style.left=a.offsetLeft+1+"px",this.spellcheckMenu.style.width=a.offsetWidth-2+"px"}.bind(this),this.spellcheckMenu=document.createElement("div"),this.spellcheckMenu.setAttribute("class","CDTextEditor_spellcheck_menu");let s=document.createElement("div");s.setAttribute("class","CDTextEditor_autopreview_block"),this.autopreviewCheckbox=document.createElement("input"),this.autopreviewCheckbox.setAttribute("type","checkbox"),this.autopreviewCheckbox.setAttribute("class","CDTextEditor_autopreview_checkbox"),this.autopreviewCheckbox.setAttribute("id","CDTextEditor_autopreview_checkbox_"+this.id);let l=document.createElement("label");l.setAttribute("for","CDTextEditor_autopreview_checkbox_"+this.id),l.innerHTML="Autopreview",s.appendChild(this.autopreviewCheckbox),s.appendChild(l),t.appendChild(n),t.appendChild(r),t.appendChild(i),t.appendChild(o),t.appendChild(this.buttonPreview),t.appendChild(a),t.appendChild(s);let c=document.createElement("div");c.setAttribute("class","CDTextEditor_footer"),this.spellcheckStatus=document.createElement("div"),this.spellcheckStatus.setAttribute("class","CDTextEditor_footer_spellcheck"),this.spellcheckStatus.innerHTML="Spell check not enabled.",c.appendChild(this.spellcheckStatus);let u=document.createElement("div");u.setAttribute("class","CDTextEditor_wrapper"),u.appendChild(e),u.appendChild(this.viewer),this.workbench.appendChild(this.fileInput),this.workbench.appendChild(t),this.workbench.appendChild(u),this.workbench.appendChild(c),this.workbench.appendChild(this.spellcheckMenu),this.editor=CodeMirror.fromTextArea(e),this.editor.setOption("lineNumbers",!0),this.editor.setSize(this.workbenchWidth+"px",this.workbenchHeight+"px"),this.editor.getWrapperElement().style.display="block",this.editor.getWrapperElement().style.float="left",this.autopreview=!1,this.isflex=!1,this.spellcheck=[],this.editor.on("change",function(){this.autopreview&&this.preview()}.bind(this)),this.autopreviewCheckbox.onclick=function(){this.autopreview||this.preview(),this.autopreview=!this.autopreview}.bind(this),CDTE_EDITORS[this.id]=this}}setup(e){return this.asyncSetup(e),this}async asyncSetup(e){for(var t in e)this.optionsSwitch(t,e[t]),await timeout(500)}optionsSwitch(e,t){switch(e){case"maxSize":return this.maxSize(t.w,t.h);case"fill":return this.fill(t);case"draggable":return!0===t?this.draggable():this;case"resizable":return!0===t?this.resizable():this;case"flex":return!0===t?this.flex():this;case"spellchecking":return this.spellCheck(t.url,t.loc);case"predictive":return this.predictive(t);case"readOnly":return!0===t?this.readOnly():this;case"autoPreview":return!0===t?this.autoPreview():this}return this}maxSize(e,t){return this.workbench.style.maxWidth=e+"px",this.workbench.style.maxHeight=t+"px",this}fill(e){return this.editor.setValue(e),this}showViewer(){"block"!==this.viewer.style.display&&(this.viewer.style.display="block",this.initSize(),this.buttonPreview.innerHTML="- Preview")}hideViewer(){"block"===this.viewer.style.display&&(this.viewer.style.display="none",this.initSize(),this.buttonPreview.innerHTML="+ Preview")}initSize(){let e=0;"block"===this.viewer.style.display&&(e=this.workbenchWidth/2-1,this.viewer.style.height=this.workbenchHeight+"px"),this.viewer.style.width=e+"px",this.editor.setSize(this.workbenchWidth-e-1+"px",this.workbenchHeight+"px")}flexResize(){this.viewer.offsetWidth<.05*this.workbenchWidth&&this.hideViewer();var e=this.viewer.offsetWidth;this.viewer.style.left="0",this.viewer.style.maxWidth=.75*this.workbenchWidth+"px",this.editor.setSize(this.workbenchWidth-e-1+"px",this.workbenchHeight+"px")}resize(){var e;this.workbenchWidth=this.workbench.offsetWidth-2,this.workbenchHeight=this.workbench.offsetHeight-48,this.isflex?(e=this.viewer.offsetWidth,this.viewer.style.height=this.workbenchHeight+"px",this.editor.setSize(this.workbenchWidth-e+"px",this.workbenchHeight+"px")):this.initSize()}val(){return this.editor.getValue()}htmlval(){return markdown2html(this.val())}preview(){this.showViewer(),this.viewer.innerHTML=this.htmlval(),this.isflex&&$(this.viewer).resizable({handles:"w",resize:function(){this.flexResize()}.bind(this)})}draggable(){return jqueryRun(function(){$(this.workbench).draggable({start:function(){$(this.workbench).css("z-index",9999)}.bind(this),cursor:"crosshair",handle:"#CDTextEditor_header_"+this.id})}.bind(this)),this}resizable(){return jqueryRun(function(){$(this.workbench).resizable({resize:function(){this.resize()}.bind(this)})}.bind(this)),this}flex(){return jqueryRun(function(){this.isflex=!0}.bind(this)),this}autoPreview(){return this.autopreview=!0,this.autopreviewCheckbox.setAttribute("checked","checked"),this.buttonPreview.innerHTML="- Preview",this.preview(),this}spellCheck(e,t){this.spellcheckStatus.innerHTML="Loading dictionaries for ["+t+"]...";let n=[],r=[],i=[];return t.forEach(function(t){if(t in CDTE_DICTIONARIES)return n.push(CDTE_DICTIONARIES[t]),void this.spellcheck.push({loc:t,enabled:!0});i.push(loadTypo(e,t).then(function(e){n.push(e),CDTE_DICTIONARIES[t]=e,this.spellcheck.push({loc:t,enabled:!0})}.bind(this)).catch(()=>r.push(t)))}.bind(this)),0===i.length?(this.spellCheckOverlay(n),0Failed to load dictionaries for ["+r+"].":0Failed to load dictionaries for ["+r+"].":this.spellcheckStatus.innerHTML="Dictionaries for ["+t+"] loaded!",this.updateSpellCheckMenu()):Promise.all(i).then(function(){this.spellCheckOverlay(n),0Failed to load dictionaries for ["+r+"].":0Failed to load dictionaries for ["+r+"].":this.spellcheckStatus.innerHTML="Dictionaries for ["+t+"] loaded!",this.updateSpellCheckMenu()}.bind(this)),this}updateSpellCheckMenu(){for(var r of this.spellcheck){const i=r.loc;r=r.enabled;let e=document.createElement("div");e.setAttribute("class","CDTextEditor_spellcheck_menu_option");let t=document.createElement("input");t.setAttribute("id","CDTextEditor_"+this.id+"_spellcheck_menu_option_"+i),t.setAttribute("type","checkbox"),r&&t.setAttribute("checked","checked"),t.onclick=function(){this.switchSpellCheckOption(i)}.bind(this);let n=document.createElement("label");n.setAttribute("for","CDTextEditor_"+this.id+"_spellcheck_menu_option_"+i),n.innerHTML=i,e.appendChild(t),e.appendChild(n),this.spellcheckMenu.appendChild(e)}}switchSpellCheckOption(t){for(let e=0;e?@[\\]^_`{|}~ ",this.editor.spellcheckOverlay={token:function(e){var t,n=e.peek(),r="";if(s.includes(n)||""===n||""===n)return e.next(),null;for(;(n=e.peek())&&!s.includes(n);)r+=n,e.next();if(!/[a-z]/i.test(r))return null;let i=!0,o=!1;for(t of a)this.getSpellCheckOption(t.dictionary)&&(o=!0,t.check(r)&&(i=!1));return o&&i?"spell-error":void 0}.bind(this)},this.editor.addOverlay(this.editor.spellcheckOverlay))}predictive(t){var e;return t in CDTE_PREDICTIVE_PHRASES?(e=CDTE_PREDICTIVE_PHRASES[t],this.bindPredictiveDictionary(e)):loadPredictiveDictionary(t).then(function(e){e=formPredictiveDictionary(e);CDTE_PREDICTIVE_PHRASES[t]=e,this.bindPredictiveDictionary(e)}.bind(this)),this}bindPredictiveDictionary(r){this.editor.on("change",function(){var e=this.editor.findWordAt(this.editor.getDoc().getCursor());let t="";t=this.editor.getDoc().getRange(e.anchor,e.head),t=t.toLowerCase().trim();t.length;let n;'"'+t+'"'in r?(n=r['"'+t+'"'],e={hint:function(){return{from:{line:this.editor.getDoc().getCursor().line,ch:this.editor.getDoc().getCursor().ch+1},to:this.editor.getDoc().getCursor(),list:n}}.bind(this),completeSingle:!1},this.editor.showHint(e)):this.editor.showHint(null)}.bind(this))}readOnly(){return this.editor.setOption("readOnly",!0),this}save_raw(){var e=this.val(),t=new Blob([e],{type:"text/plain"}),e=document.createElement("a");e.download="MarkdownFile.md",null!=window.webkitURL?e.href=window.webkitURL.createObjectURL(t):(e.href=window.URL.createObjectURL(t),e.onclick=destroyClickedElement,e.style.display="none",document.body.appendChild(e)),e.click()}save_html(){var e="FormattedMarkdownFile"+this.htmlval()+"",t=new Blob([e],{type:"text/plain"}),e=document.createElement("a");e.download="FormattedMarkdownFile.html",null!=window.webkitURL?e.href=window.webkitURL.createObjectURL(t):(e.href=window.URL.createObjectURL(t),e.onclick=destroyClickedElement,e.style.display="none",document.body.appendChild(e)),e.click()}static create(e){return CDTextEditor.asyncCreate(e),CDTE_EDITORS}static async asyncCreate(e){for(var t of e)new CDTextEditor(t.id).setup(t.options),await timeout(500)}}async function jqueryRun(e){await loadJQuery(),await loadJQueryUI(),e()}function loadJQuery(){return new Promise(t=>{if(window.jQuery)t();else{let e=document.createElement("script");e.onload=function(){console.warn("jQuery not found. \n Loaded from: https://code.jquery.com/jquery-3.6.0.js"),t()},e.src="https://code.jquery.com/jquery-3.6.0.js",document.head.insertBefore(e,document.head.getElementsByTagName("script")[0])}})}function loadJQueryUI(){return new Promise(t=>{if(window.jQuery.ui)t();else{let e=document.createElement("script");e.onload=function(){let e=document.createElement("link");e.onload=function(){console.warn("jQuery-UI not found. \n Loaded from: https://code.jquery.com/ui/1.12.0/jquery-ui.min.js \n Theme: https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css"),t()},e.rel="stylesheet",e.href="https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css",document.head.insertBefore(e,document.head.getElementsByTagName("link")[0])},e.src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js",document.head.insertBefore(e,document.head.getElementsByTagName("script")[1])}})}function markdown2html(t){{let e=new showdown.Converter;return e.makeHtml(t)}}function loadTypo(e,o){const t=e+o+".aff",a=e+o+".dic";return new Promise(function(n,r){let i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(e){if(4===i.readyState)if(200===i.status){let t=new XMLHttpRequest;t.open("GET",a,!0),t.onreadystatechange=function(e){4===t.readyState&&(200===t.status?n(new Typo(o,i.responseText,t.responseText,{platform:"any"})):r())},t.send(null)}else r()},i.send(null)})}function getFileContents(t,r){if(0!=t.length){t=t[0];let e=new FileReader;e.onload=e=>{const t=e.target.result,n=t.split(/\r\n|\n/);r.setValue(n.join("\n"))},e.onerror=e=>alert(e.target.error.name),e.readAsText(t)}}function loadPredictiveDictionary(e){return new Promise(function(t,n){let r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(e){4===r.readyState&&(200===r.status?t(r.responseText):n())},r.send(null)})}function formPredictiveDictionary(e){var t;let n=[];for(t of e.split(/\r?\n/))if(0!==t.length){let e=t.toLowerCase().trim().split(/\s+/);var r=e[0];e[0]="",'"'+r+'"'in n||(n['"'+r+'"']=[]),n['"'+r+'"'].push(e.join(" "))}return n}function getEditorId(){var e=Math.ceil(1e6),t=Math.floor(9999999);return Math.floor(Math.random()*(t-e))+e}function timeout(t){return new Promise(e=>setTimeout(e,t))}