@chocolatey-software/ccr 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,241 @@
1
+ (()=>{var gi=(vi=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(vi,{get:(Io,va)=>(typeof require!="undefined"?require:Io)[va]}):vi)(function(vi){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+vi+'" is not supported')});(()=>{var vi=Object.create,Io=Object.defineProperty,va=Object.getOwnPropertyDescriptor,ma=Object.getOwnPropertyNames,Dl=Object.getPrototypeOf,El=Object.prototype.hasOwnProperty,Al=(Q=>typeof gi!="undefined"?gi:typeof Proxy!="undefined"?new Proxy(Q,{get:(le,T)=>(typeof gi!="undefined"?gi:le)[T]}):Q)(function(Q){if(typeof gi!="undefined")return gi.apply(this,arguments);throw Error('Dynamic require of "'+Q+'" is not supported')}),os=(Q,le)=>function(){return Q&&(le=(0,Q[ma(Q)[0]])(Q=0)),le},Xt=(Q,le)=>function(){return le||(0,Q[ma(Q)[0]])((le={exports:{}}).exports,le),le.exports},Tl=(Q,le,T,w)=>{if(le&&typeof le=="object"||typeof le=="function")for(let b of ma(le))!El.call(Q,b)&&b!==T&&Io(Q,b,{get:()=>le[b],enumerable:!(w=va(le,b))||w.enumerable});return Q},hr=(Q,le,T)=>(T=Q!=null?vi(Dl(Q)):{},Tl(le||!Q||!Q.__esModule?Io(T,"default",{value:Q,enumerable:!0}):T,Q)),Ll=(Q,le,T)=>new Promise((w,b)=>{var A=k=>{try{D(T.next(k))}catch(B){b(B)}},C=k=>{try{D(T.throw(k))}catch(B){b(B)}},D=k=>k.done?w(k.value):Promise.resolve(k.value).then(A,C);D((T=T.apply(Q,le)).next())}),Fl=Xt({"src/scripts/lib/prism.js"(Q,le){var T=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{},w=(function(b){var A=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,C=0,D={},k={manual:b.Prism&&b.Prism.manual,disableWorkerMessageHandler:b.Prism&&b.Prism.disableWorkerMessageHandler,util:{encode:function z(Z){return Z instanceof B?new B(Z.type,z(Z.content),Z.alias):Array.isArray(Z)?Z.map(z):Z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(z){return Object.prototype.toString.call(z).slice(8,-1)},objId:function(z){return z.__id||Object.defineProperty(z,"__id",{value:++C}),z.__id},clone:function z(Z,G){G=G||{};var be,ee;switch(k.util.type(Z)){case"Object":if(ee=k.util.objId(Z),G[ee])return G[ee];be={},G[ee]=be;for(var l in Z)Z.hasOwnProperty(l)&&(be[l]=z(Z[l],G));return be;case"Array":return ee=k.util.objId(Z),G[ee]?G[ee]:(be=[],G[ee]=be,Z.forEach(function(ve,ye){be[ye]=z(ve,G)}),be);default:return Z}},getLanguage:function(z){for(;z;){var Z=A.exec(z.className);if(Z)return Z[1].toLowerCase();z=z.parentElement}return"none"},setLanguage:function(z,Z){z.className=z.className.replace(RegExp(A,"gi"),""),z.classList.add("language-"+Z)},currentScript:function(){if(typeof document=="undefined")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(be){var z=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(be.stack)||[])[1];if(z){var Z=document.getElementsByTagName("script");for(var G in Z)if(Z[G].src==z)return Z[G]}return null}},isActive:function(z,Z,G){for(var be="no-"+Z;z;){var ee=z.classList;if(ee.contains(Z))return!0;if(ee.contains(be))return!1;z=z.parentElement}return!!G}},languages:{plain:D,plaintext:D,text:D,txt:D,extend:function(z,Z){var G=k.util.clone(k.languages[z]);for(var be in Z)G[be]=Z[be];return G},insertBefore:function(z,Z,G,be){be=be||k.languages;var ee=be[z],l={};for(var ve in ee)if(ee.hasOwnProperty(ve)){if(ve==Z)for(var ye in G)G.hasOwnProperty(ye)&&(l[ye]=G[ye]);G.hasOwnProperty(ve)||(l[ve]=ee[ve])}var Me=be[z];return be[z]=l,k.languages.DFS(k.languages,function(we,Oe){Oe===Me&&we!=z&&(this[we]=l)}),l},DFS:function z(Z,G,be,ee){ee=ee||{};var l=k.util.objId;for(var ve in Z)if(Z.hasOwnProperty(ve)){G.call(Z,ve,Z[ve],be||ve);var ye=Z[ve],Me=k.util.type(ye);Me==="Object"&&!ee[l(ye)]?(ee[l(ye)]=!0,z(ye,G,null,ee)):Me==="Array"&&!ee[l(ye)]&&(ee[l(ye)]=!0,z(ye,G,ve,ee))}}},plugins:{},highlightAll:function(z,Z){k.highlightAllUnder(document,z,Z)},highlightAllUnder:function(z,Z,G){var be={callback:G,container:z,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};k.hooks.run("before-highlightall",be),be.elements=Array.prototype.slice.apply(be.container.querySelectorAll(be.selector)),k.hooks.run("before-all-elements-highlight",be);for(var ee=0,l;l=be.elements[ee++];)k.highlightElement(l,Z===!0,be.callback)},highlightElement:function(z,Z,G){var be=k.util.getLanguage(z),ee=k.languages[be];k.util.setLanguage(z,be);var l=z.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&k.util.setLanguage(l,be);var ve=z.textContent,ye={element:z,language:be,grammar:ee,code:ve};function Me(Oe){ye.highlightedCode=Oe,k.hooks.run("before-insert",ye),ye.element.innerHTML=ye.highlightedCode,k.hooks.run("after-highlight",ye),k.hooks.run("complete",ye),G&&G.call(ye.element)}if(k.hooks.run("before-sanity-check",ye),l=ye.element.parentElement,l&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!ye.code){k.hooks.run("complete",ye),G&&G.call(ye.element);return}if(k.hooks.run("before-highlight",ye),!ye.grammar){Me(k.util.encode(ye.code));return}if(Z&&b.Worker){var we=new Worker(k.filename);we.onmessage=function(Oe){Me(Oe.data)},we.postMessage(JSON.stringify({language:ye.language,code:ye.code,immediateClose:!0}))}else Me(k.highlight(ye.code,ye.grammar,ye.language))},highlight:function(z,Z,G){var be={code:z,grammar:Z,language:G};if(k.hooks.run("before-tokenize",be),!be.grammar)throw new Error('The language "'+be.language+'" has no grammar.');return be.tokens=k.tokenize(be.code,be.grammar),k.hooks.run("after-tokenize",be),B.stringify(k.util.encode(be.tokens),be.language)},tokenize:function(z,Z){var G=Z.rest;if(G){for(var be in G)Z[be]=G[be];delete Z.rest}var ee=new L;return pe(ee,ee.head,z),U(z,ee,Z,ee.head,0),ie(ee)},hooks:{all:{},add:function(z,Z){var G=k.hooks.all;G[z]=G[z]||[],G[z].push(Z)},run:function(z,Z){var G=k.hooks.all[z];if(!(!G||!G.length))for(var be=0,ee;ee=G[be++];)ee(Z)}},Token:B};b.Prism=k;function B(z,Z,G,be){this.type=z,this.content=Z,this.alias=G,this.length=(be||"").length|0}B.stringify=function z(Z,G){if(typeof Z=="string")return Z;if(Array.isArray(Z)){var be="";return Z.forEach(function(Me){be+=z(Me,G)}),be}var ee={type:Z.type,content:z(Z.content,G),tag:"span",classes:["token",Z.type],attributes:{},language:G},l=Z.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(ee.classes,l):ee.classes.push(l)),k.hooks.run("wrap",ee);var ve="";for(var ye in ee.attributes)ve+=" "+ye+'="'+(ee.attributes[ye]||"").replace(/"/g,"&quot;")+'"';return"<"+ee.tag+' class="'+ee.classes.join(" ")+'"'+ve+">"+ee.content+"</"+ee.tag+">"};function N(z,Z,G,be){z.lastIndex=Z;var ee=z.exec(G);if(ee&&be&&ee[1]){var l=ee[1].length;ee.index+=l,ee[0]=ee[0].slice(l)}return ee}function U(z,Z,G,be,ee,l){for(var ve in G)if(!(!G.hasOwnProperty(ve)||!G[ve])){var ye=G[ve];ye=Array.isArray(ye)?ye:[ye];for(var Me=0;Me<ye.length;++Me){if(l&&l.cause==ve+","+Me)return;var we=ye[Me],Oe=we.inside,Be=!!we.lookbehind,$=!!we.greedy,Le=we.alias;if($&&!we.pattern.global){var Ee=we.pattern.toString().match(/[imsuy]*$/)[0];we.pattern=RegExp(we.pattern.source,Ee+"g")}for(var q=we.pattern||we,ce=be.next,ke=ee;ce!==Z.tail&&!(l&&ke>=l.reach);ke+=ce.value.length,ce=ce.next){var _e=ce.value;if(Z.length>z.length)return;if(!(_e instanceof B)){var S=1,p;if($){if(p=N(q,ke,z,Be),!p||p.index>=z.length)break;var Pe=p.index,P=p.index+p[0].length,me=ke;for(me+=ce.value.length;Pe>=me;)ce=ce.next,me+=ce.value.length;if(me-=ce.value.length,ke=me,ce.value instanceof B)continue;for(var Ce=ce;Ce!==Z.tail&&(me<P||typeof Ce.value=="string");Ce=Ce.next)S++,me+=Ce.value.length;S--,_e=z.slice(ke,me),p.index-=ke}else if(p=N(q,0,_e,Be),!p)continue;var Pe=p.index,$e=p[0],Ke=_e.slice(0,Pe),ot=_e.slice(Pe+$e.length),Ze=ke+_e.length;l&&Ze>l.reach&&(l.reach=Ze);var pt=ce.prev;Ke&&(pt=pe(Z,pt,Ke),ke+=Ke.length),fe(Z,pt,S);var ht=new B(ve,Oe?k.tokenize($e,Oe):$e,Le,$e);if(ce=pe(Z,pt,ht),ot&&pe(Z,ce,ot),S>1){var Tt={cause:ve+","+Me,reach:Ze};U(z,Z,G,ce.prev,ke,Tt),l&&Tt.reach>l.reach&&(l.reach=Tt.reach)}}}}}}function L(){var z={value:null,prev:null,next:null},Z={value:null,prev:z,next:null};z.next=Z,this.head=z,this.tail=Z,this.length=0}function pe(z,Z,G){var be=Z.next,ee={value:G,prev:Z,next:be};return Z.next=ee,be.prev=ee,z.length++,ee}function fe(z,Z,G){for(var be=Z.next,ee=0;ee<G&&be!==z.tail;ee++)be=be.next;Z.next=be,be.prev=Z,z.length-=ee}function ie(z){for(var Z=[],G=z.head.next;G!==z.tail;)Z.push(G.value),G=G.next;return Z}if(!b.document)return b.addEventListener&&(k.disableWorkerMessageHandler||b.addEventListener("message",function(z){var Z=JSON.parse(z.data),G=Z.language,be=Z.code,ee=Z.immediateClose;b.postMessage(k.highlight(be,k.languages[G],G)),ee&&b.close()},!1)),k;var oe=k.util.currentScript();oe&&(k.filename=oe.src,oe.hasAttribute("data-manual")&&(k.manual=!0));function he(){k.manual||k.highlightAll()}if(!k.manual){var Y=document.readyState;Y==="loading"||Y==="interactive"&&oe&&oe.defer?document.addEventListener("DOMContentLoaded",he):window.requestAnimationFrame?window.requestAnimationFrame(he):window.setTimeout(he,16)}return k})(T);typeof le!="undefined"&&le.exports&&(le.exports=w),typeof global!="undefined"&&(global.Prism=w),w.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},w.languages.markup.tag.inside["attr-value"].inside.entity=w.languages.markup.entity,w.languages.markup.doctype.inside["internal-subset"].inside=w.languages.markup,w.hooks.add("wrap",function(b){b.type==="entity"&&(b.attributes.title=b.content.replace(/&amp;/,"&"))}),Object.defineProperty(w.languages.markup.tag,"addInlined",{value:function(A,C){var D={};D["language-"+C]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:w.languages[C]},D.cdata=/^<!\[CDATA\[|\]\]>$/i;var k={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:D}};k["language-"+C]={pattern:/[\s\S]+/,inside:w.languages[C]};var B={};B[A]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return A}),"i"),lookbehind:!0,greedy:!0,inside:k},w.languages.insertBefore("markup","cdata",B)}}),Object.defineProperty(w.languages.markup.tag,"addAttribute",{value:function(b,A){w.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+b+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[A,"language-"+A],inside:w.languages[A]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),w.languages.html=w.languages.markup,w.languages.mathml=w.languages.markup,w.languages.svg=w.languages.markup,w.languages.xml=w.languages.extend("markup",{}),w.languages.ssml=w.languages.xml,w.languages.atom=w.languages.xml,w.languages.rss=w.languages.xml,(function(b){var A=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;b.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+A.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+A.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+A.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+A.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:A,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},b.languages.css.atrule.inside.rest=b.languages.css;var C=b.languages.markup;C&&(C.tag.addInlined("style","css"),C.tag.addAttribute("style","css"))})(w),w.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},w.languages.javascript=w.languages.extend("clike",{"class-name":[w.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),w.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,w.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:w.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:w.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:w.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:w.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:w.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),w.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:w.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),w.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),w.languages.markup&&(w.languages.markup.tag.addInlined("script","javascript"),w.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),w.languages.js=w.languages.javascript,(function(b){var A="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",C={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},D={bash:C,environment:{pattern:RegExp("\\$"+A),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+A),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};b.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+A),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:D},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:C}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:D},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:D.entity}}],environment:{pattern:RegExp("\\$?"+A),alias:"constant"},variable:D.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},C.inside=b.languages.bash;for(var k=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],B=D.variable[1].inside,N=0;N<k.length;N++)B[k[N]]=b.languages.bash[k[N]];b.languages.sh=b.languages.bash,b.languages.shell=b.languages.bash})(w),(function(b){function A(p,P){return p.replace(/<<(\d+)>>/g,function(me,Ce){return"(?:"+P[+Ce]+")"})}function C(p,P,me){return RegExp(A(p,P),me||"")}function D(p,P){for(var me=0;me<P;me++)p=p.replace(/<<self>>/g,function(){return"(?:"+p+")"});return p.replace(/<<self>>/g,"[^\\s\\S]")}var k={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function B(p){return"\\b(?:"+p.trim().replace(/ /g,"|")+")\\b"}var N=B(k.typeDeclaration),U=RegExp(B(k.type+" "+k.typeDeclaration+" "+k.contextual+" "+k.other)),L=B(k.typeDeclaration+" "+k.contextual+" "+k.other),pe=B(k.type+" "+k.typeDeclaration+" "+k.other),fe=D(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),ie=D(/\((?:[^()]|<<self>>)*\)/.source,2),oe=/@?\b[A-Za-z_]\w*\b/.source,he=A(/<<0>>(?:\s*<<1>>)?/.source,[oe,fe]),Y=A(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[L,he]),z=/\[\s*(?:,\s*)*\]/.source,Z=A(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[Y,z]),G=A(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[fe,ie,z]),be=A(/\(<<0>>+(?:,<<0>>+)+\)/.source,[G]),ee=A(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[be,Y,z]),l={keyword:U,punctuation:/[<>()?,.:[\]]/},ve=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,ye=/"(?:\\.|[^\\"\r\n])*"/.source,Me=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;b.languages.csharp=b.languages.extend("clike",{string:[{pattern:C(/(^|[^$\\])<<0>>/.source,[Me]),lookbehind:!0,greedy:!0},{pattern:C(/(^|[^@$\\])<<0>>/.source,[ye]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:C(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[Y]),lookbehind:!0,inside:l},{pattern:C(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[oe,ee]),lookbehind:!0,inside:l},{pattern:C(/(\busing\s+)<<0>>(?=\s*=)/.source,[oe]),lookbehind:!0},{pattern:C(/(\b<<0>>\s+)<<1>>/.source,[N,he]),lookbehind:!0,inside:l},{pattern:C(/(\bcatch\s*\(\s*)<<0>>/.source,[Y]),lookbehind:!0,inside:l},{pattern:C(/(\bwhere\s+)<<0>>/.source,[oe]),lookbehind:!0},{pattern:C(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[Z]),lookbehind:!0,inside:l},{pattern:C(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[ee,pe,oe]),inside:l}],keyword:U,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),b.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),b.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:C(/([(,]\s*)<<0>>(?=\s*:)/.source,[oe]),lookbehind:!0,alias:"punctuation"}}),b.languages.insertBefore("csharp","class-name",{namespace:{pattern:C(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[oe]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:C(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[ie]),lookbehind:!0,alias:"class-name",inside:l},"return-type":{pattern:C(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[ee,Y]),inside:l,alias:"class-name"},"constructor-invocation":{pattern:C(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[ee]),lookbehind:!0,inside:l,alias:"class-name"},"generic-method":{pattern:C(/<<0>>\s*<<1>>(?=\s*\()/.source,[oe,fe]),inside:{function:C(/^<<0>>/.source,[oe]),generic:{pattern:RegExp(fe),alias:"class-name",inside:l}}},"type-list":{pattern:C(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[N,he,oe,ee,U.source,ie,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:C(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[he,ie]),lookbehind:!0,greedy:!0,inside:b.languages.csharp},keyword:U,"class-name":{pattern:RegExp(ee),greedy:!0,inside:l},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var we=ye+"|"+ve,Oe=A(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[we]),Be=D(A(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Oe]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Le=A(/<<0>>(?:\s*\(<<1>>*\))?/.source,[Y,Be]);b.languages.insertBefore("csharp","class-name",{attribute:{pattern:C(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,Le]),lookbehind:!0,greedy:!0,inside:{target:{pattern:C(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:C(/\(<<0>>*\)/.source,[Be]),inside:b.languages.csharp},"class-name":{pattern:RegExp(Y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Ee=/:[^}\r\n]+/.source,q=D(A(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Oe]),2),ce=A(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,Ee]),ke=D(A(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[we]),2),_e=A(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ke,Ee]);function S(p,P){return{interpolation:{pattern:C(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[p]),lookbehind:!0,inside:{"format-string":{pattern:C(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,Ee]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:b.languages.csharp}}},string:/[\s\S]+/}}b.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:C(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ce]),lookbehind:!0,greedy:!0,inside:S(ce,q)},{pattern:C(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[_e]),lookbehind:!0,greedy:!0,inside:S(_e,ke)}],char:{pattern:RegExp(ve),greedy:!0}}),b.languages.dotnet=b.languages.cs=b.languages.csharp})(w),(function(b){b.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var A={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(A).forEach(function(C){var D=A[C],k=[];/^\w+$/.test(C)||k.push(/\w+/.exec(C)[0]),C==="diff"&&k.push("bold"),b.languages.diff[C]={pattern:RegExp("^(?:["+D+`].*(?:\r
2
+ ?|
3
+ |(?![\\s\\S])))+`,"m"),alias:k,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(C)[0]}}}}),Object.defineProperty(b.languages.diff,"PREFIXES",{value:A})})(w),w.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},w.languages.webmanifest=w.languages.json,(function(b){var A=b.languages.powershell={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:{function:{pattern:/(^|[^`])\$\((?:\$\(.*?\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:{}},"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};A.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:A},boolean:A.boolean,variable:A.variable}})(w),(function(b){b.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var A=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:b.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];b.languages.puppet.heredoc[0].inside.interpolation=A,b.languages.puppet.string.inside["double-quoted"].inside.interpolation=A})(w),w.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},w.languages.python["string-interpolation"].inside.interpolation.inside.rest=w.languages.python,w.languages.py=w.languages.python,(function(b){b.languages.ruby=b.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),b.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var A={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:b.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete b.languages.ruby.function;var C="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",D=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;b.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+C+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:A,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:A,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+D),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+D+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),b.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+C),greedy:!0,inside:{interpolation:A,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:A,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:A,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+C),greedy:!0,inside:{interpolation:A,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:A,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete b.languages.ruby.string,b.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),b.languages.rb=b.languages.ruby})(w),w.languages.scss=w.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),w.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),w.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),w.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),w.languages.scss.atrule.inside.rest=w.languages.scss,(function(b){var A=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");b.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return A}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:b.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},b.languages["sh-session"]=b.languages.shellsession=b.languages["shell-session"]})(w),(function(b){function A(B,N){b.languages[B]&&b.languages.insertBefore(B,"comment",{"doc-comment":N})}var C=b.languages.markup.tag,D={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:C}},k={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:C}};A("csharp",D),A("fsharp",D),A("vbnet",k)})(w),(function(b){var A=/[*&][^\s[\]{},]+/,C=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,D="(?:"+C.source+"(?:[ ]+"+A.source+")?|"+A.source+"(?:[ ]+"+C.source+")?)",k=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),B=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function N(U,L){L=(L||"").replace(/m/g,"")+"m";var pe=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return D}).replace(/<<value>>/g,function(){return U});return RegExp(pe,L)}b.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return D})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return D}).replace(/<<key>>/g,function(){return"(?:"+k+"|"+B+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:N(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:N(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:N(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:N(B),lookbehind:!0,greedy:!0},number:{pattern:N(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:C,important:A,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},b.languages.yml=b.languages.yaml})(w),(function(b){var A={pattern:/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i,alias:"constant"};b.languages["log-file"]={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},verbose:[{pattern:/\b(Trace)\b:/i,greedy:!0},{pattern:/\[(verbose|verb|vrb|vb|v)\]/i,greedy:!0}],debug:[{pattern:/\b(DEBUG|Debug)\b|\b(debug)\:/i,greedy:!0},{pattern:/\[(debug|dbug|dbg|de|d)\]/i,greedy:!0}],info:[{pattern:/\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\b | \b(^[^\.\.]+$)\b | \b(info|information)\:/,greedy:!0},{pattern:/\[(information|info|inf|in|i)\]/i,greedy:!0}],warning:[{pattern:/\b(WARNING|WARN|Warn|WW)\b|\b(warning)\:/i,greedy:!0},{pattern:/\[(warning|warn|wrn|wn|w)\]/i,greedy:!0}],error:[{pattern:/\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\b|\b(error)\:/i,greedy:!0},{pattern:/\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\]/i,greedy:!0}],date:[{pattern:/\b\d{4}-\d{2}-\d{2}(T|\b)/i,greedy:!0},{pattern:/\b\d{2}[^\w\s]\d{2}[^\w\s]\d{4}\b/i,greedy:!0},{pattern:/\d{1,2}:\d{2}(:\d{2}([.,]\d{1,})?)?(Z| ?[+-]\d{1,2}:\d{2})?\b/i,greedy:!0}],guid:A,"text-string":[{pattern:/[a-zA-Z]'[a-zA-Z]/i,greedy:!0},{pattern:/[a-zA-Z]\('[a-zA-Z]/i,greedy:!0}],string:[{pattern:/"[^"]*"/i,greedy:!0,inside:{"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'[^']*'/i,greedy:!0}],exceptiontype:{pattern:/\b([a-zA-Z.]*Exception)\b/i,greedy:!0},"text-constant":{pattern:/(\\[\w-]+.\w+)/i,greedy:!0},constant:[{pattern:/\b([0-9]+|true|false|null)\b/i,greedy:!0},{pattern:/\b(http|https|ftp|file):\/\S+\b\/?/i,greedy:!0},{pattern:/([\w-]+\.)+([\w-])+(?![\w/\\])/i,greedy:!0}]},b.languages.log=b.languages["log-file"]})(w),(function(){if(typeof w=="undefined"||typeof document=="undefined")return;var b="line-numbers",A=/\n(?!$)/g,C=w.plugins.lineNumbers={getLine:function(N,U){if(!(N.tagName!=="PRE"||!N.classList.contains(b))){var L=N.querySelector(".line-numbers-rows");if(L){var pe=parseInt(N.getAttribute("data-start"),10)||1,fe=pe+(L.children.length-1);U<pe&&(U=pe),U>fe&&(U=fe);var ie=U-pe;return L.children[ie]}}},resize:function(N){D([N])},assumeViewportIndependence:!0};function D(N){if(N=N.filter(function(L){var pe=k(L),fe=pe["white-space"];return fe==="pre-wrap"||fe==="pre-line"}),N.length!=0){var U=N.map(function(L){var pe=L.querySelector("code"),fe=L.querySelector(".line-numbers-rows");if(!(!pe||!fe)){var ie=L.querySelector(".line-numbers-sizer"),oe=pe.textContent.split(A);ie||(ie=document.createElement("span"),ie.className="line-numbers-sizer",pe.appendChild(ie)),ie.innerHTML="0",ie.style.display="block";var he=ie.getBoundingClientRect().height;return ie.innerHTML="",{element:L,lines:oe,lineHeights:[],oneLinerHeight:he,sizer:ie}}}).filter(Boolean);U.forEach(function(L){var pe=L.sizer,fe=L.lines,ie=L.lineHeights,oe=L.oneLinerHeight;ie[fe.length-1]=void 0,fe.forEach(function(he,Y){if(he&&he.length>1){var z=pe.appendChild(document.createElement("span"));z.style.display="block",z.textContent=he}else ie[Y]=oe})}),U.forEach(function(L){for(var pe=L.sizer,fe=L.lineHeights,ie=0,oe=0;oe<fe.length;oe++)fe[oe]===void 0&&(fe[oe]=pe.children[ie++].getBoundingClientRect().height)}),U.forEach(function(L){var pe=L.sizer,fe=L.element.querySelector(".line-numbers-rows");pe.style.display="none",pe.innerHTML="",L.lineHeights.forEach(function(ie,oe){fe.children[oe].style.height=ie+"px"})})}}function k(N){return N?window.getComputedStyle?getComputedStyle(N):N.currentStyle||null:null}var B=void 0;window.addEventListener("resize",function(){C.assumeViewportIndependence&&B===window.innerWidth||(B=window.innerWidth,D(Array.prototype.slice.call(document.querySelectorAll("pre."+b))))}),w.hooks.add("complete",function(N){if(N.code){var U=N.element,L=U.parentNode;if(!(!L||!/pre/i.test(L.nodeName))&&!U.querySelector(".line-numbers-rows")&&w.util.isActive(U,b)){U.classList.remove(b),L.classList.add(b);var pe=N.code.match(A),fe=pe?pe.length+1:1,ie,oe=new Array(fe+1).join("<span></span>");ie=document.createElement("span"),ie.setAttribute("aria-hidden","true"),ie.className="line-numbers-rows",ie.innerHTML=oe,L.hasAttribute("data-start")&&(L.style.counterReset="linenumber "+(parseInt(L.getAttribute("data-start"),10)-1)),N.element.appendChild(ie),D([L]),w.hooks.run("line-numbers",N)}}}),w.hooks.add("line-numbers",function(N){N.plugins=N.plugins||{},N.plugins.lineNumbers=!0})})(),(function(){if(typeof w=="undefined"||typeof document=="undefined")return;var b=[],A={},C=function(){};w.plugins.toolbar={};var D=w.plugins.toolbar.registerButton=function(N,U){var L;if(typeof U=="function"?L=U:L=function(pe){var fe;return typeof U.onClick=="function"?(fe=document.createElement("button"),fe.type="button",fe.addEventListener("click",function(){U.onClick.call(this,pe)})):typeof U.url=="string"?(fe=document.createElement("a"),fe.href=U.url):fe=document.createElement("span"),U.className&&fe.classList.add(U.className),fe.textContent=U.text,fe},N in A){console.warn('There is a button with the key "'+N+'" registered already.');return}b.push(A[N]=L)};function k(N){for(;N;){var U=N.getAttribute("data-toolbar-order");if(U!=null)return U=U.trim(),U.length?U.split(/\s*,\s*/g):[];N=N.parentElement}}var B=w.plugins.toolbar.hook=function(N){var U=N.element.parentNode;if(!(!U||!/pre/i.test(U.nodeName))&&!U.parentNode.classList.contains("code-toolbar")){var L=document.createElement("div");L.classList.add("code-toolbar"),U.parentNode.insertBefore(L,U),L.appendChild(U);var pe=document.createElement("div");pe.classList.add("toolbar");var fe=b,ie=k(N.element);ie&&(fe=ie.map(function(oe){return A[oe]||C})),fe.forEach(function(oe){var he=oe(N);if(he){var Y=document.createElement("div");Y.classList.add("toolbar-item"),Y.appendChild(he),pe.appendChild(Y)}}),L.appendChild(pe)}};D("label",function(N){var U=N.element.parentNode;if(!(!U||!/pre/i.test(U.nodeName))&&U.hasAttribute("data-label")){var L,pe,fe=U.getAttribute("data-label");try{pe=document.querySelector("template#"+fe)}catch(ie){}return pe?L=pe.content:(U.hasAttribute("data-url")?(L=document.createElement("a"),L.href=U.getAttribute("data-url")):L=document.createElement("span"),L.textContent=fe),L}}),w.hooks.add("complete",B)})(),(function(){if(typeof w=="undefined"||typeof document=="undefined")return;if(!w.plugins.toolbar){console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.");return}function b(B,N){B.addEventListener("click",function(){C(N)})}function A(B){var N=document.createElement("textarea");N.value=B.getText(),N.style.top="0",N.style.left="0",N.style.position="fixed",document.body.appendChild(N),N.focus(),N.select();try{var U=document.execCommand("copy");setTimeout(function(){U?B.success():B.error()},1)}catch(L){setTimeout(function(){B.error(L)},1)}document.body.removeChild(N)}function C(B){navigator.clipboard?navigator.clipboard.writeText(B.getText()).then(B.success,function(){A(B)}):A(B)}function D(B){window.getSelection().selectAllChildren(B)}function k(B){var N={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3},U="data-prismjs-";for(var L in N){for(var pe=U+L,fe=B;fe&&!fe.hasAttribute(pe);)fe=fe.parentElement;fe&&(N[L]=fe.getAttribute(pe))}return N}w.plugins.toolbar.registerButton("copy-to-clipboard",function(B){var N=B.element,U=k(N),L=document.createElement("button");L.className="copy-to-clipboard-button",L.setAttribute("type","button");var pe=document.createElement("span");return L.appendChild(pe),ie("copy"),b(L,{getText:function(){return N.textContent},success:function(){ie("copy-success"),fe()},error:function(){ie("copy-error"),setTimeout(function(){D(N)},1),fe()}}),L;function fe(){setTimeout(function(){ie("copy")},U["copy-timeout"])}function ie(oe){pe.textContent=U[oe],L.setAttribute("data-copy-state",oe)}})})(),(function(){if(typeof w!="undefined"){var b=/^diff-([\w-]+)/i,A=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/g,C=RegExp(/(?:__|[^\r\n<])*(?:\r\n?|\n|(?:__|[^\r\n<])(?![^\r\n]))/.source.replace(/__/g,function(){return A.source}),"gi"),D=!1;w.hooks.add("before-sanity-check",function(k){var B=k.language;b.test(B)&&!k.grammar&&(k.grammar=w.languages[B]=w.languages.diff)}),w.hooks.add("before-tokenize",function(k){!D&&!w.languages.diff&&!w.plugins.autoloader&&(D=!0,console.warn("Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin."));var B=k.language;b.test(B)&&!w.languages[B]&&(w.languages[B]=w.languages.diff)}),w.hooks.add("wrap",function(k){var B,N;if(k.language!=="diff"){var U=b.exec(k.language);if(!U)return;B=U[1],N=w.languages[B]}var L=w.languages.diff&&w.languages.diff.PREFIXES;if(L&&k.type in L){var pe=k.content.replace(A,""),fe=pe.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),ie=fe.replace(/(^|[\r\n])./g,"$1"),oe;N?oe=w.highlight(ie,N,B):oe=w.util.encode(ie);var he=new w.Token("prefix",L[k.type],[/\w+/.exec(k.type)[0]]),Y=w.Token.stringify(he,k.language),z=[],Z;for(C.lastIndex=0;Z=C.exec(oe);)z.push(Y+Z[0]);/(?:^|[\r\n]).$/.test(fe)&&z.push(Y),k.content=z.join(""),N&&k.classes.push("language-"+B)}})}})()}}),Fr,Ui=os({"packages/core/src/scripts/util/set-cookie-expiration-never.js"(){Fr=()=>{let Q=new Date;return Q.setTime(Q.getTime()+100*365*24*60*60*1e3),`expires=${Q.toUTCString()};`}}}),Wt,Mr=os({"packages/core/src/scripts/util/get-cookie.js"(){Wt=Q=>{let le=RegExp(`${Q}=.[^;]*`),T=document.cookie.match(le);if(T){let w=T[0].split("=");return decodeURIComponent(w[1])}return!1}}}),_o=Xt({"node_modules/jquery/dist/jquery.js"(Q,le){(function(T,w){"use strict";typeof le=="object"&&typeof le.exports=="object"?le.exports=T.document?w(T,!0):function(b){if(!b.document)throw new Error("jQuery requires a window with a document");return w(b)}:w(T)})(typeof window!="undefined"?window:Q,function(T,w){"use strict";var b=[],A=Object.getPrototypeOf,C=b.slice,D=b.flat?function(o){return b.flat.call(o)}:function(o){return b.concat.apply([],o)},k=b.push,B=b.indexOf,N={},U=N.toString,L=N.hasOwnProperty,pe=L.toString,fe=pe.call(Object),ie={},oe=function(a){return typeof a=="function"&&typeof a.nodeType!="number"&&typeof a.item!="function"},he=function(a){return a!=null&&a===a.window},Y=T.document,z={type:!0,src:!0,nonce:!0,noModule:!0};function Z(o,a,u){u=u||Y;var f,v,m=u.createElement("script");if(m.text=o,a)for(f in z)v=a[f]||a.getAttribute&&a.getAttribute(f),v&&m.setAttribute(f,v);u.head.appendChild(m).parentNode.removeChild(m)}function G(o){return o==null?o+"":typeof o=="object"||typeof o=="function"?N[U.call(o)]||"object":typeof o}var be="3.7.1",ee=/HTML$/i,l=function(o,a){return new l.fn.init(o,a)};l.fn=l.prototype={jquery:be,constructor:l,length:0,toArray:function(){return C.call(this)},get:function(o){return o==null?C.call(this):o<0?this[o+this.length]:this[o]},pushStack:function(o){var a=l.merge(this.constructor(),o);return a.prevObject=this,a},each:function(o){return l.each(this,o)},map:function(o){return this.pushStack(l.map(this,function(a,u){return o.call(a,u,a)}))},slice:function(){return this.pushStack(C.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(l.grep(this,function(o,a){return(a+1)%2}))},odd:function(){return this.pushStack(l.grep(this,function(o,a){return a%2}))},eq:function(o){var a=this.length,u=+o+(o<0?a:0);return this.pushStack(u>=0&&u<a?[this[u]]:[])},end:function(){return this.prevObject||this.constructor()},push:k,sort:b.sort,splice:b.splice},l.extend=l.fn.extend=function(){var o,a,u,f,v,m,E=arguments[0]||{},V=1,X=arguments.length,de=!1;for(typeof E=="boolean"&&(de=E,E=arguments[V]||{},V++),typeof E!="object"&&!oe(E)&&(E={}),V===X&&(E=this,V--);V<X;V++)if((o=arguments[V])!=null)for(a in o)f=o[a],!(a==="__proto__"||E===f)&&(de&&f&&(l.isPlainObject(f)||(v=Array.isArray(f)))?(u=E[a],v&&!Array.isArray(u)?m=[]:!v&&!l.isPlainObject(u)?m={}:m=u,v=!1,E[a]=l.extend(de,m,f)):f!==void 0&&(E[a]=f));return E},l.extend({expando:"jQuery"+(be+Math.random()).replace(/\D/g,""),isReady:!0,error:function(o){throw new Error(o)},noop:function(){},isPlainObject:function(o){var a,u;return!o||U.call(o)!=="[object Object]"?!1:(a=A(o),a?(u=L.call(a,"constructor")&&a.constructor,typeof u=="function"&&pe.call(u)===fe):!0)},isEmptyObject:function(o){var a;for(a in o)return!1;return!0},globalEval:function(o,a,u){Z(o,{nonce:a&&a.nonce},u)},each:function(o,a){var u,f=0;if(ve(o))for(u=o.length;f<u&&a.call(o[f],f,o[f])!==!1;f++);else for(f in o)if(a.call(o[f],f,o[f])===!1)break;return o},text:function(o){var a,u="",f=0,v=o.nodeType;if(!v)for(;a=o[f++];)u+=l.text(a);return v===1||v===11?o.textContent:v===9?o.documentElement.textContent:v===3||v===4?o.nodeValue:u},makeArray:function(o,a){var u=a||[];return o!=null&&(ve(Object(o))?l.merge(u,typeof o=="string"?[o]:o):k.call(u,o)),u},inArray:function(o,a,u){return a==null?-1:B.call(a,o,u)},isXMLDoc:function(o){var a=o&&o.namespaceURI,u=o&&(o.ownerDocument||o).documentElement;return!ee.test(a||u&&u.nodeName||"HTML")},merge:function(o,a){for(var u=+a.length,f=0,v=o.length;f<u;f++)o[v++]=a[f];return o.length=v,o},grep:function(o,a,u){for(var f,v=[],m=0,E=o.length,V=!u;m<E;m++)f=!a(o[m],m),f!==V&&v.push(o[m]);return v},map:function(o,a,u){var f,v,m=0,E=[];if(ve(o))for(f=o.length;m<f;m++)v=a(o[m],m,u),v!=null&&E.push(v);else for(m in o)v=a(o[m],m,u),v!=null&&E.push(v);return D(E)},guid:1,support:ie}),typeof Symbol=="function"&&(l.fn[Symbol.iterator]=b[Symbol.iterator]),l.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(o,a){N["[object "+a+"]"]=a.toLowerCase()});function ve(o){var a=!!o&&"length"in o&&o.length,u=G(o);return oe(o)||he(o)?!1:u==="array"||a===0||typeof a=="number"&&a>0&&a-1 in o}function ye(o,a){return o.nodeName&&o.nodeName.toLowerCase()===a.toLowerCase()}var Me=b.pop,we=b.sort,Oe=b.splice,Be="[\\x20\\t\\r\\n\\f]",$=new RegExp("^"+Be+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Be+"+$","g");l.contains=function(o,a){var u=a&&a.parentNode;return o===u||!!(u&&u.nodeType===1&&(o.contains?o.contains(u):o.compareDocumentPosition&&o.compareDocumentPosition(u)&16))};var Le=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Ee(o,a){return a?o==="\0"?"\uFFFD":o.slice(0,-1)+"\\"+o.charCodeAt(o.length-1).toString(16)+" ":"\\"+o}l.escapeSelector=function(o){return(o+"").replace(Le,Ee)};var q=Y,ce=k;(function(){var o,a,u,f,v,m=ce,E,V,X,de,Ie,Re=l.expando,Te=0,Ue=0,wt=zr(),Nt=zr(),Ct=zr(),rn=zr(),$t=function(R,ae){return R===ae&&(v=!0),0},Zn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Qn="(?:\\\\[\\da-fA-F]{1,6}"+Be+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Mt="\\["+Be+"*("+Qn+")(?:"+Be+"*([*^$|!~]?=)"+Be+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Qn+"))|)"+Be+"*\\]",jn=":("+Qn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Mt+")*)|.*)\\)|)",mt=new RegExp(Be+"+","g"),Yt=new RegExp("^"+Be+"*,"+Be+"*"),Rr=new RegExp("^"+Be+"*([>+~]|"+Be+")"+Be+"*"),Cr=new RegExp(Be+"|>"),Vn=new RegExp(jn),qr=new RegExp("^"+Qn+"$"),Jn={ID:new RegExp("^#("+Qn+")"),CLASS:new RegExp("^\\.("+Qn+")"),TAG:new RegExp("^("+Qn+"|[*])"),ATTR:new RegExp("^"+Mt),PSEUDO:new RegExp("^"+jn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Be+"*(even|odd|(([+-]|)(\\d*)n|)"+Be+"*(?:([+-]|)"+Be+"*(\\d+)|))"+Be+"*\\)|)","i"),bool:new RegExp("^(?:"+Zn+")$","i"),needsContext:new RegExp("^"+Be+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Be+"*((?:-\\d)?\\d*)"+Be+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,ur=/^h\d$/i,In=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,lo=/[+~]/,tr=new RegExp("\\\\[\\da-fA-F]{1,6}"+Be+"?|\\\\([^\\r\\n\\f])","g"),nr=function(R,ae){var De="0x"+R.slice(1)-65536;return ae||(De<0?String.fromCharCode(De+65536):String.fromCharCode(De>>10|55296,De&1023|56320))},Aa=function(){fr()},oi=ai(function(R){return R.disabled===!0&&ye(R,"fieldset")},{dir:"parentNode",next:"legend"});function cr(){try{return E.activeElement}catch(R){}}try{m.apply(b=C.call(q.childNodes),q.childNodes),b[q.childNodes.length].nodeType}catch(R){m={apply:function(ae,De){ce.apply(ae,C.call(De))},call:function(ae){ce.apply(ae,C.call(arguments,1))}}}function Bt(R,ae,De,Fe){var He,Ge,tt,lt,et,At,yt,St=ae&&ae.ownerDocument,Ft=ae?ae.nodeType:9;if(De=De||[],typeof R!="string"||!R||Ft!==1&&Ft!==9&&Ft!==11)return De;if(!Fe&&(fr(ae),ae=ae||E,X)){if(Ft!==11&&(et=In.exec(R)))if(He=et[1]){if(Ft===9)if(tt=ae.getElementById(He)){if(tt.id===He)return m.call(De,tt),De}else return De;else if(St&&(tt=St.getElementById(He))&&Bt.contains(ae,tt)&&tt.id===He)return m.call(De,tt),De}else{if(et[2])return m.apply(De,ae.getElementsByTagName(R)),De;if((He=et[3])&&ae.getElementsByClassName)return m.apply(De,ae.getElementsByClassName(He)),De}if(!rn[R+" "]&&(!de||!de.test(R))){if(yt=R,St=ae,Ft===1&&(Cr.test(R)||Rr.test(R))){for(St=lo.test(R)&&co(ae.parentNode)||ae,(St!=ae||!ie.scope)&&((lt=ae.getAttribute("id"))?lt=l.escapeSelector(lt):ae.setAttribute("id",lt=Re)),At=rr(R),Ge=At.length;Ge--;)At[Ge]=(lt?"#"+lt:":scope")+" "+En(At[Ge]);yt=At.join(",")}try{return m.apply(De,St.querySelectorAll(yt)),De}catch(vt){rn(R,!0)}finally{lt===Re&&ae.removeAttribute("id")}}}return po(R.replace($,"$1"),ae,De,Fe)}function zr(){var R=[];function ae(De,Fe){return R.push(De+" ")>a.cacheLength&&delete ae[R.shift()],ae[De+" "]=Fe}return ae}function _n(R){return R[Re]=!0,R}function xn(R){var ae=E.createElement("fieldset");try{return!!R(ae)}catch(De){return!1}finally{ae.parentNode&&ae.parentNode.removeChild(ae),ae=null}}function Dr(R){return function(ae){return ye(ae,"input")&&ae.type===R}}function uo(R){return function(ae){return(ye(ae,"input")||ye(ae,"button"))&&ae.type===R}}function Ko(R){return function(ae){return"form"in ae?ae.parentNode&&ae.disabled===!1?"label"in ae?"label"in ae.parentNode?ae.parentNode.disabled===R:ae.disabled===R:ae.isDisabled===R||ae.isDisabled!==!R&&oi(ae)===R:ae.disabled===R:"label"in ae?ae.disabled===R:!1}}function xr(R){return _n(function(ae){return ae=+ae,_n(function(De,Fe){for(var He,Ge=R([],De.length,ae),tt=Ge.length;tt--;)De[He=Ge[tt]]&&(De[He]=!(Fe[He]=De[He]))})})}function co(R){return R&&typeof R.getElementsByTagName!="undefined"&&R}function fr(R){var ae,De=R?R.ownerDocument||R:q;return De==E||De.nodeType!==9||!De.documentElement||(E=De,V=E.documentElement,X=!l.isXMLDoc(E),Ie=V.matches||V.webkitMatchesSelector||V.msMatchesSelector,V.msMatchesSelector&&q!=E&&(ae=E.defaultView)&&ae.top!==ae&&ae.addEventListener("unload",Aa),ie.getById=xn(function(Fe){return V.appendChild(Fe).id=l.expando,!E.getElementsByName||!E.getElementsByName(l.expando).length}),ie.disconnectedMatch=xn(function(Fe){return Ie.call(Fe,"*")}),ie.scope=xn(function(){return E.querySelectorAll(":scope")}),ie.cssHas=xn(function(){try{return E.querySelector(":has(*,:jqfake)"),!1}catch(Fe){return!0}}),ie.getById?(a.filter.ID=function(Fe){var He=Fe.replace(tr,nr);return function(Ge){return Ge.getAttribute("id")===He}},a.find.ID=function(Fe,He){if(typeof He.getElementById!="undefined"&&X){var Ge=He.getElementById(Fe);return Ge?[Ge]:[]}}):(a.filter.ID=function(Fe){var He=Fe.replace(tr,nr);return function(Ge){var tt=typeof Ge.getAttributeNode!="undefined"&&Ge.getAttributeNode("id");return tt&&tt.value===He}},a.find.ID=function(Fe,He){if(typeof He.getElementById!="undefined"&&X){var Ge,tt,lt,et=He.getElementById(Fe);if(et){if(Ge=et.getAttributeNode("id"),Ge&&Ge.value===Fe)return[et];for(lt=He.getElementsByName(Fe),tt=0;et=lt[tt++];)if(Ge=et.getAttributeNode("id"),Ge&&Ge.value===Fe)return[et]}return[]}}),a.find.TAG=function(Fe,He){return typeof He.getElementsByTagName!="undefined"?He.getElementsByTagName(Fe):He.querySelectorAll(Fe)},a.find.CLASS=function(Fe,He){if(typeof He.getElementsByClassName!="undefined"&&X)return He.getElementsByClassName(Fe)},de=[],xn(function(Fe){var He;V.appendChild(Fe).innerHTML="<a id='"+Re+"' href='' disabled='disabled'></a><select id='"+Re+"-\r\\' disabled='disabled'><option selected=''></option></select>",Fe.querySelectorAll("[selected]").length||de.push("\\["+Be+"*(?:value|"+Zn+")"),Fe.querySelectorAll("[id~="+Re+"-]").length||de.push("~="),Fe.querySelectorAll("a#"+Re+"+*").length||de.push(".#.+[+~]"),Fe.querySelectorAll(":checked").length||de.push(":checked"),He=E.createElement("input"),He.setAttribute("type","hidden"),Fe.appendChild(He).setAttribute("name","D"),V.appendChild(Fe).disabled=!0,Fe.querySelectorAll(":disabled").length!==2&&de.push(":enabled",":disabled"),He=E.createElement("input"),He.setAttribute("name",""),Fe.appendChild(He),Fe.querySelectorAll("[name='']").length||de.push("\\["+Be+"*name"+Be+"*="+Be+`*(?:''|"")`)}),ie.cssHas||de.push(":has"),de=de.length&&new RegExp(de.join("|")),$t=function(Fe,He){if(Fe===He)return v=!0,0;var Ge=!Fe.compareDocumentPosition-!He.compareDocumentPosition;return Ge||(Ge=(Fe.ownerDocument||Fe)==(He.ownerDocument||He)?Fe.compareDocumentPosition(He):1,Ge&1||!ie.sortDetached&&He.compareDocumentPosition(Fe)===Ge?Fe===E||Fe.ownerDocument==q&&Bt.contains(q,Fe)?-1:He===E||He.ownerDocument==q&&Bt.contains(q,He)?1:f?B.call(f,Fe)-B.call(f,He):0:Ge&4?-1:1)}),E}Bt.matches=function(R,ae){return Bt(R,null,null,ae)},Bt.matchesSelector=function(R,ae){if(fr(R),X&&!rn[ae+" "]&&(!de||!de.test(ae)))try{var De=Ie.call(R,ae);if(De||ie.disconnectedMatch||R.document&&R.document.nodeType!==11)return De}catch(Fe){rn(ae,!0)}return Bt(ae,E,null,[R]).length>0},Bt.contains=function(R,ae){return(R.ownerDocument||R)!=E&&fr(R),l.contains(R,ae)},Bt.attr=function(R,ae){(R.ownerDocument||R)!=E&&fr(R);var De=a.attrHandle[ae.toLowerCase()],Fe=De&&L.call(a.attrHandle,ae.toLowerCase())?De(R,ae,!X):void 0;return Fe!==void 0?Fe:R.getAttribute(ae)},Bt.error=function(R){throw new Error("Syntax error, unrecognized expression: "+R)},l.uniqueSort=function(R){var ae,De=[],Fe=0,He=0;if(v=!ie.sortStable,f=!ie.sortStable&&C.call(R,0),we.call(R,$t),v){for(;ae=R[He++];)ae===R[He]&&(Fe=De.push(He));for(;Fe--;)Oe.call(R,De[Fe],1)}return f=null,R},l.fn.uniqueSort=function(){return this.pushStack(l.uniqueSort(C.apply(this)))},a=l.expr={cacheLength:50,createPseudo:_n,match:Jn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(R){return R[1]=R[1].replace(tr,nr),R[3]=(R[3]||R[4]||R[5]||"").replace(tr,nr),R[2]==="~="&&(R[3]=" "+R[3]+" "),R.slice(0,4)},CHILD:function(R){return R[1]=R[1].toLowerCase(),R[1].slice(0,3)==="nth"?(R[3]||Bt.error(R[0]),R[4]=+(R[4]?R[5]+(R[6]||1):2*(R[3]==="even"||R[3]==="odd")),R[5]=+(R[7]+R[8]||R[3]==="odd")):R[3]&&Bt.error(R[0]),R},PSEUDO:function(R){var ae,De=!R[6]&&R[2];return Jn.CHILD.test(R[0])?null:(R[3]?R[2]=R[4]||R[5]||"":De&&Vn.test(De)&&(ae=rr(De,!0))&&(ae=De.indexOf(")",De.length-ae)-De.length)&&(R[0]=R[0].slice(0,ae),R[2]=De.slice(0,ae)),R.slice(0,3))}},filter:{TAG:function(R){var ae=R.replace(tr,nr).toLowerCase();return R==="*"?function(){return!0}:function(De){return ye(De,ae)}},CLASS:function(R){var ae=wt[R+" "];return ae||(ae=new RegExp("(^|"+Be+")"+R+"("+Be+"|$)"))&&wt(R,function(De){return ae.test(typeof De.className=="string"&&De.className||typeof De.getAttribute!="undefined"&&De.getAttribute("class")||"")})},ATTR:function(R,ae,De){return function(Fe){var He=Bt.attr(Fe,R);return He==null?ae==="!=":ae?(He+="",ae==="="?He===De:ae==="!="?He!==De:ae==="^="?De&&He.indexOf(De)===0:ae==="*="?De&&He.indexOf(De)>-1:ae==="$="?De&&He.slice(-De.length)===De:ae==="~="?(" "+He.replace(mt," ")+" ").indexOf(De)>-1:ae==="|="?He===De||He.slice(0,De.length+1)===De+"-":!1):!0}},CHILD:function(R,ae,De,Fe,He){var Ge=R.slice(0,3)!=="nth",tt=R.slice(-4)!=="last",lt=ae==="of-type";return Fe===1&&He===0?(function(et){return!!et.parentNode}):function(et,At,yt){var St,Ft,vt,Pt,on,tn=Ge!==tt?"nextSibling":"previousSibling",dn=et.parentNode,Hn=lt&&et.nodeName.toLowerCase(),wr=!yt&&!lt,yn=!1;if(dn){if(Ge){for(;tn;){for(vt=et;vt=vt[tn];)if(lt?ye(vt,Hn):vt.nodeType===1)return!1;on=tn=R==="only"&&!on&&"nextSibling"}return!0}if(on=[tt?dn.firstChild:dn.lastChild],tt&&wr){for(Ft=dn[Re]||(dn[Re]={}),St=Ft[R]||[],Pt=St[0]===Te&&St[1],yn=Pt&&St[2],vt=Pt&&dn.childNodes[Pt];vt=++Pt&&vt&&vt[tn]||(yn=Pt=0)||on.pop();)if(vt.nodeType===1&&++yn&&vt===et){Ft[R]=[Te,Pt,yn];break}}else if(wr&&(Ft=et[Re]||(et[Re]={}),St=Ft[R]||[],Pt=St[0]===Te&&St[1],yn=Pt),yn===!1)for(;(vt=++Pt&&vt&&vt[tn]||(yn=Pt=0)||on.pop())&&!((lt?ye(vt,Hn):vt.nodeType===1)&&++yn&&(wr&&(Ft=vt[Re]||(vt[Re]={}),Ft[R]=[Te,yn]),vt===et)););return yn-=He,yn===Fe||yn%Fe===0&&yn/Fe>=0}}},PSEUDO:function(R,ae){var De,Fe=a.pseudos[R]||a.setFilters[R.toLowerCase()]||Bt.error("unsupported pseudo: "+R);return Fe[Re]?Fe(ae):Fe.length>1?(De=[R,R,"",ae],a.setFilters.hasOwnProperty(R.toLowerCase())?_n(function(He,Ge){for(var tt,lt=Fe(He,ae),et=lt.length;et--;)tt=B.call(He,lt[et]),He[tt]=!(Ge[tt]=lt[et])}):function(He){return Fe(He,0,De)}):Fe}},pseudos:{not:_n(function(R){var ae=[],De=[],Fe=Er(R.replace($,"$1"));return Fe[Re]?_n(function(He,Ge,tt,lt){for(var et,At=Fe(He,null,lt,[]),yt=He.length;yt--;)(et=At[yt])&&(He[yt]=!(Ge[yt]=et))}):function(He,Ge,tt){return ae[0]=He,Fe(ae,null,tt,De),ae[0]=null,!De.pop()}}),has:_n(function(R){return function(ae){return Bt(R,ae).length>0}}),contains:_n(function(R){return R=R.replace(tr,nr),function(ae){return(ae.textContent||l.text(ae)).indexOf(R)>-1}}),lang:_n(function(R){return qr.test(R||"")||Bt.error("unsupported lang: "+R),R=R.replace(tr,nr).toLowerCase(),function(ae){var De;do if(De=X?ae.lang:ae.getAttribute("xml:lang")||ae.getAttribute("lang"))return De=De.toLowerCase(),De===R||De.indexOf(R+"-")===0;while((ae=ae.parentNode)&&ae.nodeType===1);return!1}}),target:function(R){var ae=T.location&&T.location.hash;return ae&&ae.slice(1)===R.id},root:function(R){return R===V},focus:function(R){return R===cr()&&E.hasFocus()&&!!(R.type||R.href||~R.tabIndex)},enabled:Ko(!1),disabled:Ko(!0),checked:function(R){return ye(R,"input")&&!!R.checked||ye(R,"option")&&!!R.selected},selected:function(R){return R.parentNode&&R.parentNode.selectedIndex,R.selected===!0},empty:function(R){for(R=R.firstChild;R;R=R.nextSibling)if(R.nodeType<6)return!1;return!0},parent:function(R){return!a.pseudos.empty(R)},header:function(R){return ur.test(R.nodeName)},input:function(R){return er.test(R.nodeName)},button:function(R){return ye(R,"input")&&R.type==="button"||ye(R,"button")},text:function(R){var ae;return ye(R,"input")&&R.type==="text"&&((ae=R.getAttribute("type"))==null||ae.toLowerCase()==="text")},first:xr(function(){return[0]}),last:xr(function(R,ae){return[ae-1]}),eq:xr(function(R,ae,De){return[De<0?De+ae:De]}),even:xr(function(R,ae){for(var De=0;De<ae;De+=2)R.push(De);return R}),odd:xr(function(R,ae){for(var De=1;De<ae;De+=2)R.push(De);return R}),lt:xr(function(R,ae,De){var Fe;for(De<0?Fe=De+ae:De>ae?Fe=ae:Fe=De;--Fe>=0;)R.push(Fe);return R}),gt:xr(function(R,ae,De){for(var Fe=De<0?De+ae:De;++Fe<ae;)R.push(Fe);return R})}},a.pseudos.nth=a.pseudos.eq;for(o in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})a.pseudos[o]=Dr(o);for(o in{submit:!0,reset:!0})a.pseudos[o]=uo(o);function Ai(){}Ai.prototype=a.filters=a.pseudos,a.setFilters=new Ai;function rr(R,ae){var De,Fe,He,Ge,tt,lt,et,At=Nt[R+" "];if(At)return ae?0:At.slice(0);for(tt=R,lt=[],et=a.preFilter;tt;){(!De||(Fe=Yt.exec(tt)))&&(Fe&&(tt=tt.slice(Fe[0].length)||tt),lt.push(He=[])),De=!1,(Fe=Rr.exec(tt))&&(De=Fe.shift(),He.push({value:De,type:Fe[0].replace($," ")}),tt=tt.slice(De.length));for(Ge in a.filter)(Fe=Jn[Ge].exec(tt))&&(!et[Ge]||(Fe=et[Ge](Fe)))&&(De=Fe.shift(),He.push({value:De,type:Ge,matches:Fe}),tt=tt.slice(De.length));if(!De)break}return ae?tt.length:tt?Bt.error(R):Nt(R,lt).slice(0)}function En(R){for(var ae=0,De=R.length,Fe="";ae<De;ae++)Fe+=R[ae].value;return Fe}function ai(R,ae,De){var Fe=ae.dir,He=ae.next,Ge=He||Fe,tt=De&&Ge==="parentNode",lt=Ue++;return ae.first?(function(et,At,yt){for(;et=et[Fe];)if(et.nodeType===1||tt)return R(et,At,yt);return!1}):(function(et,At,yt){var St,Ft,vt=[Te,lt];if(yt){for(;et=et[Fe];)if((et.nodeType===1||tt)&&R(et,At,yt))return!0}else for(;et=et[Fe];)if(et.nodeType===1||tt)if(Ft=et[Re]||(et[Re]={}),He&&ye(et,He))et=et[Fe]||et;else{if((St=Ft[Ge])&&St[0]===Te&&St[1]===lt)return vt[2]=St[2];if(Ft[Ge]=vt,vt[2]=R(et,At,yt))return!0}return!1})}function Ti(R){return R.length>1?function(ae,De,Fe){for(var He=R.length;He--;)if(!R[He](ae,De,Fe))return!1;return!0}:R[0]}function Ta(R,ae,De){for(var Fe=0,He=ae.length;Fe<He;Fe++)Bt(R,ae[Fe],De);return De}function Li(R,ae,De,Fe,He){for(var Ge,tt=[],lt=0,et=R.length,At=ae!=null;lt<et;lt++)(Ge=R[lt])&&(!De||De(Ge,Fe,He))&&(tt.push(Ge),At&&ae.push(lt));return tt}function fo(R,ae,De,Fe,He,Ge){return Fe&&!Fe[Re]&&(Fe=fo(Fe)),He&&!He[Re]&&(He=fo(He,Ge)),_n(function(tt,lt,et,At){var yt,St,Ft,vt,Pt=[],on=[],tn=lt.length,dn=tt||Ta(ae||"*",et.nodeType?[et]:et,[]),Hn=R&&(tt||!ae)?Li(dn,Pt,R,et,At):dn;if(De?(vt=He||(tt?R:tn||Fe)?[]:lt,De(Hn,vt,et,At)):vt=Hn,Fe)for(yt=Li(vt,on),Fe(yt,[],et,At),St=yt.length;St--;)(Ft=yt[St])&&(vt[on[St]]=!(Hn[on[St]]=Ft));if(tt){if(He||R){if(He){for(yt=[],St=vt.length;St--;)(Ft=vt[St])&&yt.push(Hn[St]=Ft);He(null,vt=[],yt,At)}for(St=vt.length;St--;)(Ft=vt[St])&&(yt=He?B.call(tt,Ft):Pt[St])>-1&&(tt[yt]=!(lt[yt]=Ft))}}else vt=Li(vt===lt?vt.splice(tn,vt.length):vt),He?He(null,lt,vt,At):m.apply(lt,vt)})}function Fi(R){for(var ae,De,Fe,He=R.length,Ge=a.relative[R[0].type],tt=Ge||a.relative[" "],lt=Ge?1:0,et=ai(function(St){return St===ae},tt,!0),At=ai(function(St){return B.call(ae,St)>-1},tt,!0),yt=[function(St,Ft,vt){var Pt=!Ge&&(vt||Ft!=u)||((ae=Ft).nodeType?et(St,Ft,vt):At(St,Ft,vt));return ae=null,Pt}];lt<He;lt++)if(De=a.relative[R[lt].type])yt=[ai(Ti(yt),De)];else{if(De=a.filter[R[lt].type].apply(null,R[lt].matches),De[Re]){for(Fe=++lt;Fe<He&&!a.relative[R[Fe].type];Fe++);return fo(lt>1&&Ti(yt),lt>1&&En(R.slice(0,lt-1).concat({value:R[lt-2].type===" "?"*":""})).replace($,"$1"),De,lt<Fe&&Fi(R.slice(lt,Fe)),Fe<He&&Fi(R=R.slice(Fe)),Fe<He&&En(R))}yt.push(De)}return Ti(yt)}function Yo(R,ae){var De=ae.length>0,Fe=R.length>0,He=function(Ge,tt,lt,et,At){var yt,St,Ft,vt=0,Pt="0",on=Ge&&[],tn=[],dn=u,Hn=Ge||Fe&&a.find.TAG("*",At),wr=Te+=dn==null?1:Math.random()||.1,yn=Hn.length;for(At&&(u=tt==E||tt||At);Pt!==yn&&(yt=Hn[Pt])!=null;Pt++){if(Fe&&yt){for(St=0,!tt&&yt.ownerDocument!=E&&(fr(yt),lt=!X);Ft=R[St++];)if(Ft(yt,tt||E,lt)){m.call(et,yt);break}At&&(Te=wr)}De&&((yt=!Ft&&yt)&&vt--,Ge&&on.push(yt))}if(vt+=Pt,De&&Pt!==vt){for(St=0;Ft=ae[St++];)Ft(on,tn,tt,lt);if(Ge){if(vt>0)for(;Pt--;)on[Pt]||tn[Pt]||(tn[Pt]=Me.call(et));tn=Li(tn)}m.apply(et,tn),At&&!Ge&&tn.length>0&&vt+ae.length>1&&l.uniqueSort(et)}return At&&(Te=wr,u=dn),on};return De?_n(He):He}function Er(R,ae){var De,Fe=[],He=[],Ge=Ct[R+" "];if(!Ge){for(ae||(ae=rr(R)),De=ae.length;De--;)Ge=Fi(ae[De]),Ge[Re]?Fe.push(Ge):He.push(Ge);Ge=Ct(R,Yo(He,Fe)),Ge.selector=R}return Ge}function po(R,ae,De,Fe){var He,Ge,tt,lt,et,At=typeof R=="function"&&R,yt=!Fe&&rr(R=At.selector||R);if(De=De||[],yt.length===1){if(Ge=yt[0]=yt[0].slice(0),Ge.length>2&&(tt=Ge[0]).type==="ID"&&ae.nodeType===9&&X&&a.relative[Ge[1].type]){if(ae=(a.find.ID(tt.matches[0].replace(tr,nr),ae)||[])[0],ae)At&&(ae=ae.parentNode);else return De;R=R.slice(Ge.shift().value.length)}for(He=Jn.needsContext.test(R)?0:Ge.length;He--&&(tt=Ge[He],!a.relative[lt=tt.type]);)if((et=a.find[lt])&&(Fe=et(tt.matches[0].replace(tr,nr),lo.test(Ge[0].type)&&co(ae.parentNode)||ae))){if(Ge.splice(He,1),R=Fe.length&&En(Ge),!R)return m.apply(De,Fe),De;break}}return(At||Er(R,yt))(Fe,ae,!X,De,!ae||lo.test(R)&&co(ae.parentNode)||ae),De}ie.sortStable=Re.split("").sort($t).join("")===Re,fr(),ie.sortDetached=xn(function(R){return R.compareDocumentPosition(E.createElement("fieldset"))&1}),l.find=Bt,l.expr[":"]=l.expr.pseudos,l.unique=l.uniqueSort,Bt.compile=Er,Bt.select=po,Bt.setDocument=fr,Bt.tokenize=rr,Bt.escape=l.escapeSelector,Bt.getText=l.text,Bt.isXML=l.isXMLDoc,Bt.selectors=l.expr,Bt.support=l.support,Bt.uniqueSort=l.uniqueSort})();var ke=function(o,a,u){for(var f=[],v=u!==void 0;(o=o[a])&&o.nodeType!==9;)if(o.nodeType===1){if(v&&l(o).is(u))break;f.push(o)}return f},_e=function(o,a){for(var u=[];o;o=o.nextSibling)o.nodeType===1&&o!==a&&u.push(o);return u},S=l.expr.match.needsContext,p=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(o,a,u){return oe(a)?l.grep(o,function(f,v){return!!a.call(f,v,f)!==u}):a.nodeType?l.grep(o,function(f){return f===a!==u}):typeof a!="string"?l.grep(o,function(f){return B.call(a,f)>-1!==u}):l.filter(a,o,u)}l.filter=function(o,a,u){var f=a[0];return u&&(o=":not("+o+")"),a.length===1&&f.nodeType===1?l.find.matchesSelector(f,o)?[f]:[]:l.find.matches(o,l.grep(a,function(v){return v.nodeType===1}))},l.fn.extend({find:function(o){var a,u,f=this.length,v=this;if(typeof o!="string")return this.pushStack(l(o).filter(function(){for(a=0;a<f;a++)if(l.contains(v[a],this))return!0}));for(u=this.pushStack([]),a=0;a<f;a++)l.find(o,v[a],u);return f>1?l.uniqueSort(u):u},filter:function(o){return this.pushStack(P(this,o||[],!1))},not:function(o){return this.pushStack(P(this,o||[],!0))},is:function(o){return!!P(this,typeof o=="string"&&S.test(o)?l(o):o||[],!1).length}});var me,Ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Pe=l.fn.init=function(o,a,u){var f,v;if(!o)return this;if(u=u||me,typeof o=="string")if(o[0]==="<"&&o[o.length-1]===">"&&o.length>=3?f=[null,o,null]:f=Ce.exec(o),f&&(f[1]||!a))if(f[1]){if(a=a instanceof l?a[0]:a,l.merge(this,l.parseHTML(f[1],a&&a.nodeType?a.ownerDocument||a:Y,!0)),p.test(f[1])&&l.isPlainObject(a))for(f in a)oe(this[f])?this[f](a[f]):this.attr(f,a[f]);return this}else return v=Y.getElementById(f[2]),v&&(this[0]=v,this.length=1),this;else return!a||a.jquery?(a||u).find(o):this.constructor(a).find(o);else{if(o.nodeType)return this[0]=o,this.length=1,this;if(oe(o))return u.ready!==void 0?u.ready(o):o(l)}return l.makeArray(o,this)};Pe.prototype=l.fn,me=l(Y);var $e=/^(?:parents|prev(?:Until|All))/,Ke={children:!0,contents:!0,next:!0,prev:!0};l.fn.extend({has:function(o){var a=l(o,this),u=a.length;return this.filter(function(){for(var f=0;f<u;f++)if(l.contains(this,a[f]))return!0})},closest:function(o,a){var u,f=0,v=this.length,m=[],E=typeof o!="string"&&l(o);if(!S.test(o)){for(;f<v;f++)for(u=this[f];u&&u!==a;u=u.parentNode)if(u.nodeType<11&&(E?E.index(u)>-1:u.nodeType===1&&l.find.matchesSelector(u,o))){m.push(u);break}}return this.pushStack(m.length>1?l.uniqueSort(m):m)},index:function(o){return o?typeof o=="string"?B.call(l(o),this[0]):B.call(this,o.jquery?o[0]:o):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(o,a){return this.pushStack(l.uniqueSort(l.merge(this.get(),l(o,a))))},addBack:function(o){return this.add(o==null?this.prevObject:this.prevObject.filter(o))}});function ot(o,a){for(;(o=o[a])&&o.nodeType!==1;);return o}l.each({parent:function(o){var a=o.parentNode;return a&&a.nodeType!==11?a:null},parents:function(o){return ke(o,"parentNode")},parentsUntil:function(o,a,u){return ke(o,"parentNode",u)},next:function(o){return ot(o,"nextSibling")},prev:function(o){return ot(o,"previousSibling")},nextAll:function(o){return ke(o,"nextSibling")},prevAll:function(o){return ke(o,"previousSibling")},nextUntil:function(o,a,u){return ke(o,"nextSibling",u)},prevUntil:function(o,a,u){return ke(o,"previousSibling",u)},siblings:function(o){return _e((o.parentNode||{}).firstChild,o)},children:function(o){return _e(o.firstChild)},contents:function(o){return o.contentDocument!=null&&A(o.contentDocument)?o.contentDocument:(ye(o,"template")&&(o=o.content||o),l.merge([],o.childNodes))}},function(o,a){l.fn[o]=function(u,f){var v=l.map(this,a,u);return o.slice(-5)!=="Until"&&(f=u),f&&typeof f=="string"&&(v=l.filter(f,v)),this.length>1&&(Ke[o]||l.uniqueSort(v),$e.test(o)&&v.reverse()),this.pushStack(v)}});var Ze=/[^\x20\t\r\n\f]+/g;function pt(o){var a={};return l.each(o.match(Ze)||[],function(u,f){a[f]=!0}),a}l.Callbacks=function(o){o=typeof o=="string"?pt(o):l.extend({},o);var a,u,f,v,m=[],E=[],V=-1,X=function(){for(v=v||o.once,f=a=!0;E.length;V=-1)for(u=E.shift();++V<m.length;)m[V].apply(u[0],u[1])===!1&&o.stopOnFalse&&(V=m.length,u=!1);o.memory||(u=!1),a=!1,v&&(u?m=[]:m="")},de={add:function(){return m&&(u&&!a&&(V=m.length-1,E.push(u)),(function Ie(Re){l.each(Re,function(Te,Ue){oe(Ue)?(!o.unique||!de.has(Ue))&&m.push(Ue):Ue&&Ue.length&&G(Ue)!=="string"&&Ie(Ue)})})(arguments),u&&!a&&X()),this},remove:function(){return l.each(arguments,function(Ie,Re){for(var Te;(Te=l.inArray(Re,m,Te))>-1;)m.splice(Te,1),Te<=V&&V--}),this},has:function(Ie){return Ie?l.inArray(Ie,m)>-1:m.length>0},empty:function(){return m&&(m=[]),this},disable:function(){return v=E=[],m=u="",this},disabled:function(){return!m},lock:function(){return v=E=[],!u&&!a&&(m=u=""),this},locked:function(){return!!v},fireWith:function(Ie,Re){return v||(Re=Re||[],Re=[Ie,Re.slice?Re.slice():Re],E.push(Re),a||X()),this},fire:function(){return de.fireWith(this,arguments),this},fired:function(){return!!f}};return de};function ht(o){return o}function Tt(o){throw o}function rt(o,a,u,f){var v;try{o&&oe(v=o.promise)?v.call(o).done(a).fail(u):o&&oe(v=o.then)?v.call(o,a,u):a.apply(void 0,[o].slice(f))}catch(m){u.apply(void 0,[m])}}l.extend({Deferred:function(o){var a=[["notify","progress",l.Callbacks("memory"),l.Callbacks("memory"),2],["resolve","done",l.Callbacks("once memory"),l.Callbacks("once memory"),0,"resolved"],["reject","fail",l.Callbacks("once memory"),l.Callbacks("once memory"),1,"rejected"]],u="pending",f={state:function(){return u},always:function(){return v.done(arguments).fail(arguments),this},catch:function(m){return f.then(null,m)},pipe:function(){var m=arguments;return l.Deferred(function(E){l.each(a,function(V,X){var de=oe(m[X[4]])&&m[X[4]];v[X[1]](function(){var Ie=de&&de.apply(this,arguments);Ie&&oe(Ie.promise)?Ie.promise().progress(E.notify).done(E.resolve).fail(E.reject):E[X[0]+"With"](this,de?[Ie]:arguments)})}),m=null}).promise()},then:function(m,E,V){var X=0;function de(Ie,Re,Te,Ue){return function(){var wt=this,Nt=arguments,Ct=function(){var $t,Zn;if(!(Ie<X)){if($t=Te.apply(wt,Nt),$t===Re.promise())throw new TypeError("Thenable self-resolution");Zn=$t&&(typeof $t=="object"||typeof $t=="function")&&$t.then,oe(Zn)?Ue?Zn.call($t,de(X,Re,ht,Ue),de(X,Re,Tt,Ue)):(X++,Zn.call($t,de(X,Re,ht,Ue),de(X,Re,Tt,Ue),de(X,Re,ht,Re.notifyWith))):(Te!==ht&&(wt=void 0,Nt=[$t]),(Ue||Re.resolveWith)(wt,Nt))}},rn=Ue?Ct:function(){try{Ct()}catch($t){l.Deferred.exceptionHook&&l.Deferred.exceptionHook($t,rn.error),Ie+1>=X&&(Te!==Tt&&(wt=void 0,Nt=[$t]),Re.rejectWith(wt,Nt))}};Ie?rn():(l.Deferred.getErrorHook?rn.error=l.Deferred.getErrorHook():l.Deferred.getStackHook&&(rn.error=l.Deferred.getStackHook()),T.setTimeout(rn))}}return l.Deferred(function(Ie){a[0][3].add(de(0,Ie,oe(V)?V:ht,Ie.notifyWith)),a[1][3].add(de(0,Ie,oe(m)?m:ht)),a[2][3].add(de(0,Ie,oe(E)?E:Tt))}).promise()},promise:function(m){return m!=null?l.extend(m,f):f}},v={};return l.each(a,function(m,E){var V=E[2],X=E[5];f[E[1]]=V.add,X&&V.add(function(){u=X},a[3-m][2].disable,a[3-m][3].disable,a[0][2].lock,a[0][3].lock),V.add(E[3].fire),v[E[0]]=function(){return v[E[0]+"With"](this===v?void 0:this,arguments),this},v[E[0]+"With"]=V.fireWith}),f.promise(v),o&&o.call(v,v),v},when:function(o){var a=arguments.length,u=a,f=Array(u),v=C.call(arguments),m=l.Deferred(),E=function(V){return function(X){f[V]=this,v[V]=arguments.length>1?C.call(arguments):X,--a||m.resolveWith(f,v)}};if(a<=1&&(rt(o,m.done(E(u)).resolve,m.reject,!a),m.state()==="pending"||oe(v[u]&&v[u].then)))return m.then();for(;u--;)rt(v[u],E(u),m.reject);return m.promise()}});var Qt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;l.Deferred.exceptionHook=function(o,a){T.console&&T.console.warn&&o&&Qt.test(o.name)&&T.console.warn("jQuery.Deferred exception: "+o.message,o.stack,a)},l.readyException=function(o){T.setTimeout(function(){throw o})};var qt=l.Deferred();l.fn.ready=function(o){return qt.then(o).catch(function(a){l.readyException(a)}),this},l.extend({isReady:!1,readyWait:1,ready:function(o){(o===!0?--l.readyWait:l.isReady)||(l.isReady=!0,!(o!==!0&&--l.readyWait>0)&&qt.resolveWith(Y,[l]))}}),l.ready.then=qt.then;function Vt(){Y.removeEventListener("DOMContentLoaded",Vt),T.removeEventListener("load",Vt),l.ready()}Y.readyState==="complete"||Y.readyState!=="loading"&&!Y.documentElement.doScroll?T.setTimeout(l.ready):(Y.addEventListener("DOMContentLoaded",Vt),T.addEventListener("load",Vt));var Jt=function(o,a,u,f,v,m,E){var V=0,X=o.length,de=u==null;if(G(u)==="object"){v=!0;for(V in u)Jt(o,a,V,u[V],!0,m,E)}else if(f!==void 0&&(v=!0,oe(f)||(E=!0),de&&(E?(a.call(o,f),a=null):(de=a,a=function(Ie,Re,Te){return de.call(l(Ie),Te)})),a))for(;V<X;V++)a(o[V],u,E?f:f.call(o[V],V,a(o[V],u)));return v?o:de?a.call(o):X?a(o[0],u):m},bt=/^-ms-/,mn=/-([a-z])/g;function Lt(o,a){return a.toUpperCase()}function jt(o){return o.replace(bt,"ms-").replace(mn,Lt)}var xe=function(o){return o.nodeType===1||o.nodeType===9||!+o.nodeType};function Se(){this.expando=l.expando+Se.uid++}Se.uid=1,Se.prototype={cache:function(o){var a=o[this.expando];return a||(a={},xe(o)&&(o.nodeType?o[this.expando]=a:Object.defineProperty(o,this.expando,{value:a,configurable:!0}))),a},set:function(o,a,u){var f,v=this.cache(o);if(typeof a=="string")v[jt(a)]=u;else for(f in a)v[jt(f)]=a[f];return v},get:function(o,a){return a===void 0?this.cache(o):o[this.expando]&&o[this.expando][jt(a)]},access:function(o,a,u){return a===void 0||a&&typeof a=="string"&&u===void 0?this.get(o,a):(this.set(o,a,u),u!==void 0?u:a)},remove:function(o,a){var u,f=o[this.expando];if(f!==void 0){if(a!==void 0)for(Array.isArray(a)?a=a.map(jt):(a=jt(a),a=a in f?[a]:a.match(Ze)||[]),u=a.length;u--;)delete f[a[u]];(a===void 0||l.isEmptyObject(f))&&(o.nodeType?o[this.expando]=void 0:delete o[this.expando])}},hasData:function(o){var a=o[this.expando];return a!==void 0&&!l.isEmptyObject(a)}};var j=new Se,x=new Se,M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function O(o){return o==="true"?!0:o==="false"?!1:o==="null"?null:o===+o+""?+o:M.test(o)?JSON.parse(o):o}function ne(o,a,u){var f;if(u===void 0&&o.nodeType===1)if(f="data-"+a.replace(J,"-$&").toLowerCase(),u=o.getAttribute(f),typeof u=="string"){try{u=O(u)}catch(v){}x.set(o,a,u)}else u=void 0;return u}l.extend({hasData:function(o){return x.hasData(o)||j.hasData(o)},data:function(o,a,u){return x.access(o,a,u)},removeData:function(o,a){x.remove(o,a)},_data:function(o,a,u){return j.access(o,a,u)},_removeData:function(o,a){j.remove(o,a)}}),l.fn.extend({data:function(o,a){var u,f,v,m=this[0],E=m&&m.attributes;if(o===void 0){if(this.length&&(v=x.get(m),m.nodeType===1&&!j.get(m,"hasDataAttrs"))){for(u=E.length;u--;)E[u]&&(f=E[u].name,f.indexOf("data-")===0&&(f=jt(f.slice(5)),ne(m,f,v[f])));j.set(m,"hasDataAttrs",!0)}return v}return typeof o=="object"?this.each(function(){x.set(this,o)}):Jt(this,function(V){var X;if(m&&V===void 0)return X=x.get(m,o),X!==void 0||(X=ne(m,o),X!==void 0)?X:void 0;this.each(function(){x.set(this,o,V)})},null,a,arguments.length>1,null,!0)},removeData:function(o){return this.each(function(){x.remove(this,o)})}}),l.extend({queue:function(o,a,u){var f;if(o)return a=(a||"fx")+"queue",f=j.get(o,a),u&&(!f||Array.isArray(u)?f=j.access(o,a,l.makeArray(u)):f.push(u)),f||[]},dequeue:function(o,a){a=a||"fx";var u=l.queue(o,a),f=u.length,v=u.shift(),m=l._queueHooks(o,a),E=function(){l.dequeue(o,a)};v==="inprogress"&&(v=u.shift(),f--),v&&(a==="fx"&&u.unshift("inprogress"),delete m.stop,v.call(o,E,m)),!f&&m&&m.empty.fire()},_queueHooks:function(o,a){var u=a+"queueHooks";return j.get(o,u)||j.access(o,u,{empty:l.Callbacks("once memory").add(function(){j.remove(o,[a+"queue",u])})})}}),l.fn.extend({queue:function(o,a){var u=2;return typeof o!="string"&&(a=o,o="fx",u--),arguments.length<u?l.queue(this[0],o):a===void 0?this:this.each(function(){var f=l.queue(this,o,a);l._queueHooks(this,o),o==="fx"&&f[0]!=="inprogress"&&l.dequeue(this,o)})},dequeue:function(o){return this.each(function(){l.dequeue(this,o)})},clearQueue:function(o){return this.queue(o||"fx",[])},promise:function(o,a){var u,f=1,v=l.Deferred(),m=this,E=this.length,V=function(){--f||v.resolveWith(m,[m])};for(typeof o!="string"&&(a=o,o=void 0),o=o||"fx";E--;)u=j.get(m[E],o+"queueHooks"),u&&u.empty&&(f++,u.empty.add(V));return V(),v.promise(a)}});var g=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,F=new RegExp("^(?:([+-])=|)("+g+")([a-z%]*)$","i"),H=["Top","Right","Bottom","Left"],K=Y.documentElement,re=function(o){return l.contains(o.ownerDocument,o)},ue={composed:!0};K.getRootNode&&(re=function(o){return l.contains(o.ownerDocument,o)||o.getRootNode(ue)===o.ownerDocument});var te=function(o,a){return o=a||o,o.style.display==="none"||o.style.display===""&&re(o)&&l.css(o,"display")==="none"};function I(o,a,u,f){var v,m,E=20,V=f?function(){return f.cur()}:function(){return l.css(o,a,"")},X=V(),de=u&&u[3]||(l.cssNumber[a]?"":"px"),Ie=o.nodeType&&(l.cssNumber[a]||de!=="px"&&+X)&&F.exec(l.css(o,a));if(Ie&&Ie[3]!==de){for(X=X/2,de=de||Ie[3],Ie=+X||1;E--;)l.style(o,a,Ie+de),(1-m)*(1-(m=V()/X||.5))<=0&&(E=0),Ie=Ie/m;Ie=Ie*2,l.style(o,a,Ie+de),u=u||[]}return u&&(Ie=+Ie||+X||0,v=u[1]?Ie+(u[1]+1)*u[2]:+u[2],f&&(f.unit=de,f.start=Ie,f.end=v)),v}var Ae={};function Xe(o){var a,u=o.ownerDocument,f=o.nodeName,v=Ae[f];return v||(a=u.body.appendChild(u.createElement(f)),v=l.css(a,"display"),a.parentNode.removeChild(a),v==="none"&&(v="block"),Ae[f]=v,v)}function je(o,a){for(var u,f,v=[],m=0,E=o.length;m<E;m++)f=o[m],f.style&&(u=f.style.display,a?(u==="none"&&(v[m]=j.get(f,"display")||null,v[m]||(f.style.display="")),f.style.display===""&&te(f)&&(v[m]=Xe(f))):u!=="none"&&(v[m]="none",j.set(f,"display",u)));for(m=0;m<E;m++)v[m]!=null&&(o[m].style.display=v[m]);return o}l.fn.extend({show:function(){return je(this,!0)},hide:function(){return je(this)},toggle:function(o){return typeof o=="boolean"?o?this.show():this.hide():this.each(function(){te(this)?l(this).show():l(this).hide()})}});var Ye=/^(?:checkbox|radio)$/i,ut=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,it=/^$|^module$|\/(?:java|ecma)script/i;(function(){var o=Y.createDocumentFragment(),a=o.appendChild(Y.createElement("div")),u=Y.createElement("input");u.setAttribute("type","radio"),u.setAttribute("checked","checked"),u.setAttribute("name","t"),a.appendChild(u),ie.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="<textarea>x</textarea>",ie.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,a.innerHTML="<option></option>",ie.option=!!a.lastChild})();var gt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,ie.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);function at(o,a){var u;return typeof o.getElementsByTagName!="undefined"?u=o.getElementsByTagName(a||"*"):typeof o.querySelectorAll!="undefined"?u=o.querySelectorAll(a||"*"):u=[],a===void 0||a&&ye(o,a)?l.merge([o],u):u}function kt(o,a){for(var u=0,f=o.length;u<f;u++)j.set(o[u],"globalEval",!a||j.get(a[u],"globalEval"))}var Et=/<|&#?\w+;/;function Ot(o,a,u,f,v){for(var m,E,V,X,de,Ie,Re=a.createDocumentFragment(),Te=[],Ue=0,wt=o.length;Ue<wt;Ue++)if(m=o[Ue],m||m===0)if(G(m)==="object")l.merge(Te,m.nodeType?[m]:m);else if(!Et.test(m))Te.push(a.createTextNode(m));else{for(E=E||Re.appendChild(a.createElement("div")),V=(ut.exec(m)||["",""])[1].toLowerCase(),X=gt[V]||gt._default,E.innerHTML=X[1]+l.htmlPrefilter(m)+X[2],Ie=X[0];Ie--;)E=E.lastChild;l.merge(Te,E.childNodes),E=Re.firstChild,E.textContent=""}for(Re.textContent="",Ue=0;m=Te[Ue++];){if(f&&l.inArray(m,f)>-1){v&&v.push(m);continue}if(de=re(m),E=at(Re.appendChild(m),"script"),de&&kt(E),u)for(Ie=0;m=E[Ie++];)it.test(m.type||"")&&u.push(m)}return Re}var zt=/^([^.]*)(?:\.(.+)|)/;function Ut(){return!0}function fn(){return!1}function kn(o,a,u,f,v,m){var E,V;if(typeof a=="object"){typeof u!="string"&&(f=f||u,u=void 0);for(V in a)kn(o,V,u,f,a[V],m);return o}if(f==null&&v==null?(v=u,f=u=void 0):v==null&&(typeof u=="string"?(v=f,f=void 0):(v=f,f=u,u=void 0)),v===!1)v=fn;else if(!v)return o;return m===1&&(E=v,v=function(X){return l().off(X),E.apply(this,arguments)},v.guid=E.guid||(E.guid=l.guid++)),o.each(function(){l.event.add(this,a,v,f,u)})}l.event={global:{},add:function(o,a,u,f,v){var m,E,V,X,de,Ie,Re,Te,Ue,wt,Nt,Ct=j.get(o);if(xe(o))for(u.handler&&(m=u,u=m.handler,v=m.selector),v&&l.find.matchesSelector(K,v),u.guid||(u.guid=l.guid++),(X=Ct.events)||(X=Ct.events=Object.create(null)),(E=Ct.handle)||(E=Ct.handle=function(rn){return typeof l!="undefined"&&l.event.triggered!==rn.type?l.event.dispatch.apply(o,arguments):void 0}),a=(a||"").match(Ze)||[""],de=a.length;de--;)V=zt.exec(a[de])||[],Ue=Nt=V[1],wt=(V[2]||"").split(".").sort(),Ue&&(Re=l.event.special[Ue]||{},Ue=(v?Re.delegateType:Re.bindType)||Ue,Re=l.event.special[Ue]||{},Ie=l.extend({type:Ue,origType:Nt,data:f,handler:u,guid:u.guid,selector:v,needsContext:v&&l.expr.match.needsContext.test(v),namespace:wt.join(".")},m),(Te=X[Ue])||(Te=X[Ue]=[],Te.delegateCount=0,(!Re.setup||Re.setup.call(o,f,wt,E)===!1)&&o.addEventListener&&o.addEventListener(Ue,E)),Re.add&&(Re.add.call(o,Ie),Ie.handler.guid||(Ie.handler.guid=u.guid)),v?Te.splice(Te.delegateCount++,0,Ie):Te.push(Ie),l.event.global[Ue]=!0)},remove:function(o,a,u,f,v){var m,E,V,X,de,Ie,Re,Te,Ue,wt,Nt,Ct=j.hasData(o)&&j.get(o);if(!(!Ct||!(X=Ct.events))){for(a=(a||"").match(Ze)||[""],de=a.length;de--;){if(V=zt.exec(a[de])||[],Ue=Nt=V[1],wt=(V[2]||"").split(".").sort(),!Ue){for(Ue in X)l.event.remove(o,Ue+a[de],u,f,!0);continue}for(Re=l.event.special[Ue]||{},Ue=(f?Re.delegateType:Re.bindType)||Ue,Te=X[Ue]||[],V=V[2]&&new RegExp("(^|\\.)"+wt.join("\\.(?:.*\\.|)")+"(\\.|$)"),E=m=Te.length;m--;)Ie=Te[m],(v||Nt===Ie.origType)&&(!u||u.guid===Ie.guid)&&(!V||V.test(Ie.namespace))&&(!f||f===Ie.selector||f==="**"&&Ie.selector)&&(Te.splice(m,1),Ie.selector&&Te.delegateCount--,Re.remove&&Re.remove.call(o,Ie));E&&!Te.length&&((!Re.teardown||Re.teardown.call(o,wt,Ct.handle)===!1)&&l.removeEvent(o,Ue,Ct.handle),delete X[Ue])}l.isEmptyObject(X)&&j.remove(o,"handle events")}},dispatch:function(o){var a,u,f,v,m,E,V=new Array(arguments.length),X=l.event.fix(o),de=(j.get(this,"events")||Object.create(null))[X.type]||[],Ie=l.event.special[X.type]||{};for(V[0]=X,a=1;a<arguments.length;a++)V[a]=arguments[a];if(X.delegateTarget=this,!(Ie.preDispatch&&Ie.preDispatch.call(this,X)===!1)){for(E=l.event.handlers.call(this,X,de),a=0;(v=E[a++])&&!X.isPropagationStopped();)for(X.currentTarget=v.elem,u=0;(m=v.handlers[u++])&&!X.isImmediatePropagationStopped();)(!X.rnamespace||m.namespace===!1||X.rnamespace.test(m.namespace))&&(X.handleObj=m,X.data=m.data,f=((l.event.special[m.origType]||{}).handle||m.handler).apply(v.elem,V),f!==void 0&&(X.result=f)===!1&&(X.preventDefault(),X.stopPropagation()));return Ie.postDispatch&&Ie.postDispatch.call(this,X),X.result}},handlers:function(o,a){var u,f,v,m,E,V=[],X=a.delegateCount,de=o.target;if(X&&de.nodeType&&!(o.type==="click"&&o.button>=1)){for(;de!==this;de=de.parentNode||this)if(de.nodeType===1&&!(o.type==="click"&&de.disabled===!0)){for(m=[],E={},u=0;u<X;u++)f=a[u],v=f.selector+" ",E[v]===void 0&&(E[v]=f.needsContext?l(v,this).index(de)>-1:l.find(v,this,null,[de]).length),E[v]&&m.push(f);m.length&&V.push({elem:de,handlers:m})}}return de=this,X<a.length&&V.push({elem:de,handlers:a.slice(X)}),V},addProp:function(o,a){Object.defineProperty(l.Event.prototype,o,{enumerable:!0,configurable:!0,get:oe(a)?function(){if(this.originalEvent)return a(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[o]},set:function(u){Object.defineProperty(this,o,{enumerable:!0,configurable:!0,writable:!0,value:u})}})},fix:function(o){return o[l.expando]?o:new l.Event(o)},special:{load:{noBubble:!0},click:{setup:function(o){var a=this||o;return Ye.test(a.type)&&a.click&&ye(a,"input")&&ir(a,"click",!0),!1},trigger:function(o){var a=this||o;return Ye.test(a.type)&&a.click&&ye(a,"input")&&ir(a,"click"),!0},_default:function(o){var a=o.target;return Ye.test(a.type)&&a.click&&ye(a,"input")&&j.get(a,"click")||ye(a,"a")}},beforeunload:{postDispatch:function(o){o.result!==void 0&&o.originalEvent&&(o.originalEvent.returnValue=o.result)}}}};function ir(o,a,u){if(!u){j.get(o,a)===void 0&&l.event.add(o,a,Ut);return}j.set(o,a,!1),l.event.add(o,a,{namespace:!1,handler:function(f){var v,m=j.get(this,a);if(f.isTrigger&1&&this[a]){if(m)(l.event.special[a]||{}).delegateType&&f.stopPropagation();else if(m=C.call(arguments),j.set(this,a,m),this[a](),v=j.get(this,a),j.set(this,a,!1),m!==v)return f.stopImmediatePropagation(),f.preventDefault(),v}else m&&(j.set(this,a,l.event.trigger(m[0],m.slice(1),this)),f.stopPropagation(),f.isImmediatePropagationStopped=Ut)}})}l.removeEvent=function(o,a,u){o.removeEventListener&&o.removeEventListener(a,u)},l.Event=function(o,a){if(!(this instanceof l.Event))return new l.Event(o,a);o&&o.type?(this.originalEvent=o,this.type=o.type,this.isDefaultPrevented=o.defaultPrevented||o.defaultPrevented===void 0&&o.returnValue===!1?Ut:fn,this.target=o.target&&o.target.nodeType===3?o.target.parentNode:o.target,this.currentTarget=o.currentTarget,this.relatedTarget=o.relatedTarget):this.type=o,a&&l.extend(this,a),this.timeStamp=o&&o.timeStamp||Date.now(),this[l.expando]=!0},l.Event.prototype={constructor:l.Event,isDefaultPrevented:fn,isPropagationStopped:fn,isImmediatePropagationStopped:fn,isSimulated:!1,preventDefault:function(){var o=this.originalEvent;this.isDefaultPrevented=Ut,o&&!this.isSimulated&&o.preventDefault()},stopPropagation:function(){var o=this.originalEvent;this.isPropagationStopped=Ut,o&&!this.isSimulated&&o.stopPropagation()},stopImmediatePropagation:function(){var o=this.originalEvent;this.isImmediatePropagationStopped=Ut,o&&!this.isSimulated&&o.stopImmediatePropagation(),this.stopPropagation()}},l.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},l.event.addProp),l.each({focus:"focusin",blur:"focusout"},function(o,a){function u(f){if(Y.documentMode){var v=j.get(this,"handle"),m=l.event.fix(f);m.type=f.type==="focusin"?"focus":"blur",m.isSimulated=!0,v(f),m.target===m.currentTarget&&v(m)}else l.event.simulate(a,f.target,l.event.fix(f))}l.event.special[o]={setup:function(){var f;if(ir(this,o,!0),Y.documentMode)f=j.get(this,a),f||this.addEventListener(a,u),j.set(this,a,(f||0)+1);else return!1},trigger:function(){return ir(this,o),!0},teardown:function(){var f;if(Y.documentMode)f=j.get(this,a)-1,f?j.set(this,a,f):(this.removeEventListener(a,u),j.remove(this,a));else return!1},_default:function(f){return j.get(f.target,o)},delegateType:a},l.event.special[a]={setup:function(){var f=this.ownerDocument||this.document||this,v=Y.documentMode?this:f,m=j.get(v,a);m||(Y.documentMode?this.addEventListener(a,u):f.addEventListener(o,u,!0)),j.set(v,a,(m||0)+1)},teardown:function(){var f=this.ownerDocument||this.document||this,v=Y.documentMode?this:f,m=j.get(v,a)-1;m?j.set(v,a,m):(Y.documentMode?this.removeEventListener(a,u):f.removeEventListener(o,u,!0),j.remove(v,a))}}}),l.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(o,a){l.event.special[o]={delegateType:a,bindType:a,handle:function(u){var f,v=this,m=u.relatedTarget,E=u.handleObj;return(!m||m!==v&&!l.contains(v,m))&&(u.type=E.origType,f=E.handler.apply(this,arguments),u.type=a),f}}}),l.fn.extend({on:function(o,a,u,f){return kn(this,o,a,u,f)},one:function(o,a,u,f){return kn(this,o,a,u,f,1)},off:function(o,a,u){var f,v;if(o&&o.preventDefault&&o.handleObj)return f=o.handleObj,l(o.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if(typeof o=="object"){for(v in o)this.off(v,a,o[v]);return this}return(a===!1||typeof a=="function")&&(u=a,a=void 0),u===!1&&(u=fn),this.each(function(){l.event.remove(this,o,u,a)})}});var Nr=/<script|<style|<link/i,mi=/checked\s*(?:[^=]|=\s*.checked.)/i,Zr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Or(o,a){return ye(o,"table")&&ye(a.nodeType!==11?a:a.firstChild,"tr")&&l(o).children("tbody")[0]||o}function Yi(o){return o.type=(o.getAttribute("type")!==null)+"/"+o.type,o}function Qr(o){return(o.type||"").slice(0,5)==="true/"?o.type=o.type.slice(5):o.removeAttribute("type"),o}function sn(o,a){var u,f,v,m,E,V,X;if(a.nodeType===1){if(j.hasData(o)&&(m=j.get(o),X=m.events,X)){j.remove(a,"handle events");for(v in X)for(u=0,f=X[v].length;u<f;u++)l.event.add(a,v,X[v][u])}x.hasData(o)&&(E=x.access(o),V=l.extend({},E),x.set(a,V))}}function Gn(o,a){var u=a.nodeName.toLowerCase();u==="input"&&Ye.test(o.type)?a.checked=o.checked:(u==="input"||u==="textarea")&&(a.defaultValue=o.defaultValue)}function en(o,a,u,f){a=D(a);var v,m,E,V,X,de,Ie=0,Re=o.length,Te=Re-1,Ue=a[0],wt=oe(Ue);if(wt||Re>1&&typeof Ue=="string"&&!ie.checkClone&&mi.test(Ue))return o.each(function(Nt){var Ct=o.eq(Nt);wt&&(a[0]=Ue.call(this,Nt,Ct.html())),en(Ct,a,u,f)});if(Re&&(v=Ot(a,o[0].ownerDocument,!1,o,f),m=v.firstChild,v.childNodes.length===1&&(v=m),m||f)){for(E=l.map(at(v,"script"),Yi),V=E.length;Ie<Re;Ie++)X=v,Ie!==Te&&(X=l.clone(X,!0,!0),V&&l.merge(E,at(X,"script"))),u.call(o[Ie],X,Ie);if(V)for(de=E[E.length-1].ownerDocument,l.map(E,Qr),Ie=0;Ie<V;Ie++)X=E[Ie],it.test(X.type||"")&&!j.access(X,"globalEval")&&l.contains(de,X)&&(X.src&&(X.type||"").toLowerCase()!=="module"?l._evalUrl&&!X.noModule&&l._evalUrl(X.src,{nonce:X.nonce||X.getAttribute("nonce")},de):Z(X.textContent.replace(Zr,""),X,de))}return o}function Nn(o,a,u){for(var f,v=a?l.filter(a,o):o,m=0;(f=v[m])!=null;m++)!u&&f.nodeType===1&&l.cleanData(at(f)),f.parentNode&&(u&&re(f)&&kt(at(f,"script")),f.parentNode.removeChild(f));return o}l.extend({htmlPrefilter:function(o){return o},clone:function(o,a,u){var f,v,m,E,V=o.cloneNode(!0),X=re(o);if(!ie.noCloneChecked&&(o.nodeType===1||o.nodeType===11)&&!l.isXMLDoc(o))for(E=at(V),m=at(o),f=0,v=m.length;f<v;f++)Gn(m[f],E[f]);if(a)if(u)for(m=m||at(o),E=E||at(V),f=0,v=m.length;f<v;f++)sn(m[f],E[f]);else sn(o,V);return E=at(V,"script"),E.length>0&&kt(E,!X&&at(o,"script")),V},cleanData:function(o){for(var a,u,f,v=l.event.special,m=0;(u=o[m])!==void 0;m++)if(xe(u)){if(a=u[j.expando]){if(a.events)for(f in a.events)v[f]?l.event.remove(u,f):l.removeEvent(u,f,a.handle);u[j.expando]=void 0}u[x.expando]&&(u[x.expando]=void 0)}}}),l.fn.extend({detach:function(o){return Nn(this,o,!0)},remove:function(o){return Nn(this,o)},text:function(o){return Jt(this,function(a){return a===void 0?l.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=a)})},null,o,arguments.length)},append:function(){return en(this,arguments,function(o){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var a=Or(this,o);a.appendChild(o)}})},prepend:function(){return en(this,arguments,function(o){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var a=Or(this,o);a.insertBefore(o,a.firstChild)}})},before:function(){return en(this,arguments,function(o){this.parentNode&&this.parentNode.insertBefore(o,this)})},after:function(){return en(this,arguments,function(o){this.parentNode&&this.parentNode.insertBefore(o,this.nextSibling)})},empty:function(){for(var o,a=0;(o=this[a])!=null;a++)o.nodeType===1&&(l.cleanData(at(o,!1)),o.textContent="");return this},clone:function(o,a){return o=o==null?!1:o,a=a==null?o:a,this.map(function(){return l.clone(this,o,a)})},html:function(o){return Jt(this,function(a){var u=this[0]||{},f=0,v=this.length;if(a===void 0&&u.nodeType===1)return u.innerHTML;if(typeof a=="string"&&!Nr.test(a)&&!gt[(ut.exec(a)||["",""])[1].toLowerCase()]){a=l.htmlPrefilter(a);try{for(;f<v;f++)u=this[f]||{},u.nodeType===1&&(l.cleanData(at(u,!1)),u.innerHTML=a);u=0}catch(m){}}u&&this.empty().append(a)},null,o,arguments.length)},replaceWith:function(){var o=[];return en(this,arguments,function(a){var u=this.parentNode;l.inArray(this,o)<0&&(l.cleanData(at(this)),u&&u.replaceChild(a,this))},o)}}),l.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(o,a){l.fn[o]=function(u){for(var f,v=[],m=l(u),E=m.length-1,V=0;V<=E;V++)f=V===E?this:this.clone(!0),l(m[V])[a](f),k.apply(v,f.get());return this.pushStack(v)}});var zn=new RegExp("^("+g+")(?!px)[a-z%]+$","i"),On=/^--/,or=function(o){var a=o.ownerDocument.defaultView;return(!a||!a.opener)&&(a=T),a.getComputedStyle(o)},ar=function(o,a,u){var f,v,m={};for(v in a)m[v]=o.style[v],o.style[v]=a[v];f=u.call(o);for(v in a)o.style[v]=m[v];return f},yi=new RegExp(H.join("|"),"i");(function(){function o(){if(de){X.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",de.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",K.appendChild(X).appendChild(de);var Ie=T.getComputedStyle(de);u=Ie.top!=="1%",V=a(Ie.marginLeft)===12,de.style.right="60%",m=a(Ie.right)===36,f=a(Ie.width)===36,de.style.position="absolute",v=a(de.offsetWidth/3)===12,K.removeChild(X),de=null}}function a(Ie){return Math.round(parseFloat(Ie))}var u,f,v,m,E,V,X=Y.createElement("div"),de=Y.createElement("div");de.style&&(de.style.backgroundClip="content-box",de.cloneNode(!0).style.backgroundClip="",ie.clearCloneStyle=de.style.backgroundClip==="content-box",l.extend(ie,{boxSizingReliable:function(){return o(),f},pixelBoxStyles:function(){return o(),m},pixelPosition:function(){return o(),u},reliableMarginLeft:function(){return o(),V},scrollboxSize:function(){return o(),v},reliableTrDimensions:function(){var Ie,Re,Te,Ue;return E==null&&(Ie=Y.createElement("table"),Re=Y.createElement("tr"),Te=Y.createElement("div"),Ie.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Re.style.cssText="box-sizing:content-box;border:1px solid",Re.style.height="1px",Te.style.height="9px",Te.style.display="block",K.appendChild(Ie).appendChild(Re).appendChild(Te),Ue=T.getComputedStyle(Re),E=parseInt(Ue.height,10)+parseInt(Ue.borderTopWidth,10)+parseInt(Ue.borderBottomWidth,10)===Re.offsetHeight,K.removeChild(Ie)),E}}))})();function $n(o,a,u){var f,v,m,E,V=On.test(a),X=o.style;return u=u||or(o),u&&(E=u.getPropertyValue(a)||u[a],V&&E&&(E=E.replace($,"$1")||void 0),E===""&&!re(o)&&(E=l.style(o,a)),!ie.pixelBoxStyles()&&zn.test(E)&&yi.test(a)&&(f=X.width,v=X.minWidth,m=X.maxWidth,X.minWidth=X.maxWidth=X.width=E,E=u.width,X.width=f,X.minWidth=v,X.maxWidth=m)),E!==void 0?E+"":E}function bi(o,a){return{get:function(){if(o()){delete this.get;return}return(this.get=a).apply(this,arguments)}}}var Zi=["Webkit","Moz","ms"],Kt=Y.createElement("div").style,st={};function kr(o){for(var a=o[0].toUpperCase()+o.slice(1),u=Zi.length;u--;)if(o=Zi[u]+a,o in Kt)return o}function Vr(o){var a=l.cssProps[o]||st[o];return a||(o in Kt?o:st[o]=kr(o)||o)}var Xn=/^(none|table(?!-c[ea]).+)/,It={position:"absolute",visibility:"hidden",display:"block"},vr={letterSpacing:"0",fontWeight:"400"};function Br(o,a,u){var f=F.exec(a);return f?Math.max(0,f[2]-(u||0))+(f[3]||"px"):a}function Jr(o,a,u,f,v,m){var E=a==="width"?1:0,V=0,X=0,de=0;if(u===(f?"border":"content"))return 0;for(;E<4;E+=2)u==="margin"&&(de+=l.css(o,u+H[E],!0,v)),f?(u==="content"&&(X-=l.css(o,"padding"+H[E],!0,v)),u!=="margin"&&(X-=l.css(o,"border"+H[E]+"Width",!0,v))):(X+=l.css(o,"padding"+H[E],!0,v),u!=="padding"?X+=l.css(o,"border"+H[E]+"Width",!0,v):V+=l.css(o,"border"+H[E]+"Width",!0,v));return!f&&m>=0&&(X+=Math.max(0,Math.ceil(o["offset"+a[0].toUpperCase()+a.slice(1)]-m-X-V-.5))||0),X+de}function ze(o,a,u){var f=or(o),v=!ie.boxSizingReliable()||u,m=v&&l.css(o,"boxSizing",!1,f)==="border-box",E=m,V=$n(o,a,f),X="offset"+a[0].toUpperCase()+a.slice(1);if(zn.test(V)){if(!u)return V;V="auto"}return(!ie.boxSizingReliable()&&m||!ie.reliableTrDimensions()&&ye(o,"tr")||V==="auto"||!parseFloat(V)&&l.css(o,"display",!1,f)==="inline")&&o.getClientRects().length&&(m=l.css(o,"boxSizing",!1,f)==="border-box",E=X in o,E&&(V=o[X])),V=parseFloat(V)||0,V+Jr(o,a,u||(m?"border":"content"),E,f,V)+"px"}l.extend({cssHooks:{opacity:{get:function(o,a){if(a){var u=$n(o,"opacity");return u===""?"1":u}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(o,a,u,f){if(!(!o||o.nodeType===3||o.nodeType===8||!o.style)){var v,m,E,V=jt(a),X=On.test(a),de=o.style;if(X||(a=Vr(V)),E=l.cssHooks[a]||l.cssHooks[V],u!==void 0){if(m=typeof u,m==="string"&&(v=F.exec(u))&&v[1]&&(u=I(o,a,v),m="number"),u==null||u!==u)return;m==="number"&&!X&&(u+=v&&v[3]||(l.cssNumber[V]?"":"px")),!ie.clearCloneStyle&&u===""&&a.indexOf("background")===0&&(de[a]="inherit"),(!E||!("set"in E)||(u=E.set(o,u,f))!==void 0)&&(X?de.setProperty(a,u):de[a]=u)}else return E&&"get"in E&&(v=E.get(o,!1,f))!==void 0?v:de[a]}},css:function(o,a,u,f){var v,m,E,V=jt(a),X=On.test(a);return X||(a=Vr(V)),E=l.cssHooks[a]||l.cssHooks[V],E&&"get"in E&&(v=E.get(o,!0,u)),v===void 0&&(v=$n(o,a,f)),v==="normal"&&a in vr&&(v=vr[a]),u===""||u?(m=parseFloat(v),u===!0||isFinite(m)?m||0:v):v}}),l.each(["height","width"],function(o,a){l.cssHooks[a]={get:function(u,f,v){if(f)return Xn.test(l.css(u,"display"))&&(!u.getClientRects().length||!u.getBoundingClientRect().width)?ar(u,It,function(){return ze(u,a,v)}):ze(u,a,v)},set:function(u,f,v){var m,E=or(u),V=!ie.scrollboxSize()&&E.position==="absolute",X=V||v,de=X&&l.css(u,"boxSizing",!1,E)==="border-box",Ie=v?Jr(u,a,v,de,E):0;return de&&V&&(Ie-=Math.ceil(u["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(E[a])-Jr(u,a,"border",!1,E)-.5)),Ie&&(m=F.exec(f))&&(m[3]||"px")!=="px"&&(u.style[a]=f,f=l.css(u,a)),Br(u,f,Ie)}}}),l.cssHooks.marginLeft=bi(ie.reliableMarginLeft,function(o,a){if(a)return(parseFloat($n(o,"marginLeft"))||o.getBoundingClientRect().left-ar(o,{marginLeft:0},function(){return o.getBoundingClientRect().left}))+"px"}),l.each({margin:"",padding:"",border:"Width"},function(o,a){l.cssHooks[o+a]={expand:function(u){for(var f=0,v={},m=typeof u=="string"?u.split(" "):[u];f<4;f++)v[o+H[f]+a]=m[f]||m[f-2]||m[0];return v}},o!=="margin"&&(l.cssHooks[o+a].set=Br)}),l.fn.extend({css:function(o,a){return Jt(this,function(u,f,v){var m,E,V={},X=0;if(Array.isArray(f)){for(m=or(u),E=f.length;X<E;X++)V[f[X]]=l.css(u,f[X],!1,m);return V}return v!==void 0?l.style(u,f,v):l.css(u,f)},o,a,arguments.length>1)}});function ct(o,a,u,f,v){return new ct.prototype.init(o,a,u,f,v)}l.Tween=ct,ct.prototype={constructor:ct,init:function(o,a,u,f,v,m){this.elem=o,this.prop=u,this.easing=v||l.easing._default,this.options=a,this.start=this.now=this.cur(),this.end=f,this.unit=m||(l.cssNumber[u]?"":"px")},cur:function(){var o=ct.propHooks[this.prop];return o&&o.get?o.get(this):ct.propHooks._default.get(this)},run:function(o){var a,u=ct.propHooks[this.prop];return this.options.duration?this.pos=a=l.easing[this.easing](o,this.options.duration*o,0,1,this.options.duration):this.pos=a=o,this.now=(this.end-this.start)*a+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),u&&u.set?u.set(this):ct.propHooks._default.set(this),this}},ct.prototype.init.prototype=ct.prototype,ct.propHooks={_default:{get:function(o){var a;return o.elem.nodeType!==1||o.elem[o.prop]!=null&&o.elem.style[o.prop]==null?o.elem[o.prop]:(a=l.css(o.elem,o.prop,""),!a||a==="auto"?0:a)},set:function(o){l.fx.step[o.prop]?l.fx.step[o.prop](o):o.elem.nodeType===1&&(l.cssHooks[o.prop]||o.elem.style[Vr(o.prop)]!=null)?l.style(o.elem,o.prop,o.now+o.unit):o.elem[o.prop]=o.now}}},ct.propHooks.scrollTop=ct.propHooks.scrollLeft={set:function(o){o.elem.nodeType&&o.elem.parentNode&&(o.elem[o.prop]=o.now)}},l.easing={linear:function(o){return o},swing:function(o){return .5-Math.cos(o*Math.PI)/2},_default:"swing"},l.fx=ct.prototype.init,l.fx.step={};var mr,Ir,xi=/^(?:toggle|show|hide)$/,wi=/queueHooks$/;function Si(){Ir&&(Y.hidden===!1&&T.requestAnimationFrame?T.requestAnimationFrame(Si):T.setTimeout(Si,l.fx.interval),l.fx.tick())}function xt(){return T.setTimeout(function(){mr=void 0}),mr=Date.now()}function ki(o,a){var u,f=0,v={height:o};for(a=a?1:0;f<4;f+=2-a)u=H[f],v["margin"+u]=v["padding"+u]=o;return a&&(v.opacity=v.width=o),v}function Qi(o,a,u){for(var f,v=(Bn.tweeners[a]||[]).concat(Bn.tweeners["*"]),m=0,E=v.length;m<E;m++)if(f=v[m].call(u,a,o))return f}function Ci(o,a,u){var f,v,m,E,V,X,de,Ie,Re="width"in a||"height"in a,Te=this,Ue={},wt=o.style,Nt=o.nodeType&&te(o),Ct=j.get(o,"fxshow");u.queue||(E=l._queueHooks(o,"fx"),E.unqueued==null&&(E.unqueued=0,V=E.empty.fire,E.empty.fire=function(){E.unqueued||V()}),E.unqueued++,Te.always(function(){Te.always(function(){E.unqueued--,l.queue(o,"fx").length||E.empty.fire()})}));for(f in a)if(v=a[f],xi.test(v)){if(delete a[f],m=m||v==="toggle",v===(Nt?"hide":"show"))if(v==="show"&&Ct&&Ct[f]!==void 0)Nt=!0;else continue;Ue[f]=Ct&&Ct[f]||l.style(o,f)}if(X=!l.isEmptyObject(a),!(!X&&l.isEmptyObject(Ue))){Re&&o.nodeType===1&&(u.overflow=[wt.overflow,wt.overflowX,wt.overflowY],de=Ct&&Ct.display,de==null&&(de=j.get(o,"display")),Ie=l.css(o,"display"),Ie==="none"&&(de?Ie=de:(je([o],!0),de=o.style.display||de,Ie=l.css(o,"display"),je([o]))),(Ie==="inline"||Ie==="inline-block"&&de!=null)&&l.css(o,"float")==="none"&&(X||(Te.done(function(){wt.display=de}),de==null&&(Ie=wt.display,de=Ie==="none"?"":Ie)),wt.display="inline-block")),u.overflow&&(wt.overflow="hidden",Te.always(function(){wt.overflow=u.overflow[0],wt.overflowX=u.overflow[1],wt.overflowY=u.overflow[2]})),X=!1;for(f in Ue)X||(Ct?"hidden"in Ct&&(Nt=Ct.hidden):Ct=j.access(o,"fxshow",{display:de}),m&&(Ct.hidden=!Nt),Nt&&je([o],!0),Te.done(function(){Nt||je([o]),j.remove(o,"fxshow");for(f in Ue)l.style(o,f,Ue[f])})),X=Qi(Nt?Ct[f]:0,f,Te),f in Ct||(Ct[f]=X.start,Nt&&(X.end=X.start,X.start=0))}}function Kn(o,a){var u,f,v,m,E;for(u in o)if(f=jt(u),v=a[f],m=o[u],Array.isArray(m)&&(v=m[1],m=o[u]=m[0]),u!==f&&(o[f]=m,delete o[u]),E=l.cssHooks[f],E&&"expand"in E){m=E.expand(m),delete o[f];for(u in m)u in o||(o[u]=m[u],a[u]=v)}else a[f]=v}function Bn(o,a,u){var f,v,m=0,E=Bn.prefilters.length,V=l.Deferred().always(function(){delete X.elem}),X=function(){if(v)return!1;for(var Re=mr||xt(),Te=Math.max(0,de.startTime+de.duration-Re),Ue=Te/de.duration||0,wt=1-Ue,Nt=0,Ct=de.tweens.length;Nt<Ct;Nt++)de.tweens[Nt].run(wt);return V.notifyWith(o,[de,wt,Te]),wt<1&&Ct?Te:(Ct||V.notifyWith(o,[de,1,0]),V.resolveWith(o,[de]),!1)},de=V.promise({elem:o,props:l.extend({},a),opts:l.extend(!0,{specialEasing:{},easing:l.easing._default},u),originalProperties:a,originalOptions:u,startTime:mr||xt(),duration:u.duration,tweens:[],createTween:function(Re,Te){var Ue=l.Tween(o,de.opts,Re,Te,de.opts.specialEasing[Re]||de.opts.easing);return de.tweens.push(Ue),Ue},stop:function(Re){var Te=0,Ue=Re?de.tweens.length:0;if(v)return this;for(v=!0;Te<Ue;Te++)de.tweens[Te].run(1);return Re?(V.notifyWith(o,[de,1,0]),V.resolveWith(o,[de,Re])):V.rejectWith(o,[de,Re]),this}}),Ie=de.props;for(Kn(Ie,de.opts.specialEasing);m<E;m++)if(f=Bn.prefilters[m].call(de,o,Ie,de.opts),f)return oe(f.stop)&&(l._queueHooks(de.elem,de.opts.queue).stop=f.stop.bind(f)),f;return l.map(Ie,Qi,de),oe(de.opts.start)&&de.opts.start.call(o,de),de.progress(de.opts.progress).done(de.opts.done,de.opts.complete).fail(de.opts.fail).always(de.opts.always),l.fx.timer(l.extend(X,{elem:o,anim:de,queue:de.opts.queue})),de}l.Animation=l.extend(Bn,{tweeners:{"*":[function(o,a){var u=this.createTween(o,a);return I(u.elem,o,F.exec(a),u),u}]},tweener:function(o,a){oe(o)?(a=o,o=["*"]):o=o.match(Ze);for(var u,f=0,v=o.length;f<v;f++)u=o[f],Bn.tweeners[u]=Bn.tweeners[u]||[],Bn.tweeners[u].unshift(a)},prefilters:[Ci],prefilter:function(o,a){a?Bn.prefilters.unshift(o):Bn.prefilters.push(o)}}),l.speed=function(o,a,u){var f=o&&typeof o=="object"?l.extend({},o):{complete:u||!u&&a||oe(o)&&o,duration:o,easing:u&&a||a&&!oe(a)&&a};return l.fx.off?f.duration=0:typeof f.duration!="number"&&(f.duration in l.fx.speeds?f.duration=l.fx.speeds[f.duration]:f.duration=l.fx.speeds._default),(f.queue==null||f.queue===!0)&&(f.queue="fx"),f.old=f.complete,f.complete=function(){oe(f.old)&&f.old.call(this),f.queue&&l.dequeue(this,f.queue)},f},l.fn.extend({fadeTo:function(o,a,u,f){return this.filter(te).css("opacity",0).show().end().animate({opacity:a},o,u,f)},animate:function(o,a,u,f){var v=l.isEmptyObject(o),m=l.speed(a,u,f),E=function(){var V=Bn(this,l.extend({},o),m);(v||j.get(this,"finish"))&&V.stop(!0)};return E.finish=E,v||m.queue===!1?this.each(E):this.queue(m.queue,E)},stop:function(o,a,u){var f=function(v){var m=v.stop;delete v.stop,m(u)};return typeof o!="string"&&(u=a,a=o,o=void 0),a&&this.queue(o||"fx",[]),this.each(function(){var v=!0,m=o!=null&&o+"queueHooks",E=l.timers,V=j.get(this);if(m)V[m]&&V[m].stop&&f(V[m]);else for(m in V)V[m]&&V[m].stop&&wi.test(m)&&f(V[m]);for(m=E.length;m--;)E[m].elem===this&&(o==null||E[m].queue===o)&&(E[m].anim.stop(u),v=!1,E.splice(m,1));(v||!u)&&l.dequeue(this,o)})},finish:function(o){return o!==!1&&(o=o||"fx"),this.each(function(){var a,u=j.get(this),f=u[o+"queue"],v=u[o+"queueHooks"],m=l.timers,E=f?f.length:0;for(u.finish=!0,l.queue(this,o,[]),v&&v.stop&&v.stop.call(this,!0),a=m.length;a--;)m[a].elem===this&&m[a].queue===o&&(m[a].anim.stop(!0),m.splice(a,1));for(a=0;a<E;a++)f[a]&&f[a].finish&&f[a].finish.call(this);delete u.finish})}}),l.each(["toggle","show","hide"],function(o,a){var u=l.fn[a];l.fn[a]=function(f,v,m){return f==null||typeof f=="boolean"?u.apply(this,arguments):this.animate(ki(a,!0),f,v,m)}}),l.each({slideDown:ki("show"),slideUp:ki("hide"),slideToggle:ki("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(o,a){l.fn[o]=function(u,f,v){return this.animate(a,u,f,v)}}),l.timers=[],l.fx.tick=function(){var o,a=0,u=l.timers;for(mr=Date.now();a<u.length;a++)o=u[a],!o()&&u[a]===o&&u.splice(a--,1);u.length||l.fx.stop(),mr=void 0},l.fx.timer=function(o){l.timers.push(o),l.fx.start()},l.fx.interval=13,l.fx.start=function(){Ir||(Ir=!0,Si())},l.fx.stop=function(){Ir=null},l.fx.speeds={slow:600,fast:200,_default:400},l.fn.delay=function(o,a){return o=l.fx&&l.fx.speeds[o]||o,a=a||"fx",this.queue(a,function(u,f){var v=T.setTimeout(u,o);f.stop=function(){T.clearTimeout(v)}})},(function(){var o=Y.createElement("input"),a=Y.createElement("select"),u=a.appendChild(Y.createElement("option"));o.type="checkbox",ie.checkOn=o.value!=="",ie.optSelected=u.selected,o=Y.createElement("input"),o.value="t",o.type="radio",ie.radioValue=o.value==="t"})();var Vi,sr=l.expr.attrHandle;l.fn.extend({attr:function(o,a){return Jt(this,l.attr,o,a,arguments.length>1)},removeAttr:function(o){return this.each(function(){l.removeAttr(this,o)})}}),l.extend({attr:function(o,a,u){var f,v,m=o.nodeType;if(!(m===3||m===8||m===2)){if(typeof o.getAttribute=="undefined")return l.prop(o,a,u);if((m!==1||!l.isXMLDoc(o))&&(v=l.attrHooks[a.toLowerCase()]||(l.expr.match.bool.test(a)?Vi:void 0)),u!==void 0){if(u===null){l.removeAttr(o,a);return}return v&&"set"in v&&(f=v.set(o,u,a))!==void 0?f:(o.setAttribute(a,u+""),u)}return v&&"get"in v&&(f=v.get(o,a))!==null?f:(f=l.find.attr(o,a),f==null?void 0:f)}},attrHooks:{type:{set:function(o,a){if(!ie.radioValue&&a==="radio"&&ye(o,"input")){var u=o.value;return o.setAttribute("type",a),u&&(o.value=u),a}}}},removeAttr:function(o,a){var u,f=0,v=a&&a.match(Ze);if(v&&o.nodeType===1)for(;u=v[f++];)o.removeAttribute(u)}}),Vi={set:function(o,a,u){return a===!1?l.removeAttr(o,u):o.setAttribute(u,u),u}},l.each(l.expr.match.bool.source.match(/\w+/g),function(o,a){var u=sr[a]||l.find.attr;sr[a]=function(f,v,m){var E,V,X=v.toLowerCase();return m||(V=sr[X],sr[X]=E,E=u(f,v,m)!=null?X:null,sr[X]=V),E}});var Ji=/^(?:input|select|textarea|button)$/i,Ro=/^(?:a|area)$/i;l.fn.extend({prop:function(o,a){return Jt(this,l.prop,o,a,arguments.length>1)},removeProp:function(o){return this.each(function(){delete this[l.propFix[o]||o]})}}),l.extend({prop:function(o,a,u){var f,v,m=o.nodeType;if(!(m===3||m===8||m===2))return(m!==1||!l.isXMLDoc(o))&&(a=l.propFix[a]||a,v=l.propHooks[a]),u!==void 0?v&&"set"in v&&(f=v.set(o,u,a))!==void 0?f:o[a]=u:v&&"get"in v&&(f=v.get(o,a))!==null?f:o[a]},propHooks:{tabIndex:{get:function(o){var a=l.find.attr(o,"tabindex");return a?parseInt(a,10):Ji.test(o.nodeName)||Ro.test(o.nodeName)&&o.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ie.optSelected||(l.propHooks.selected={get:function(o){var a=o.parentNode;return a&&a.parentNode&&a.parentNode.selectedIndex,null},set:function(o){var a=o.parentNode;a&&(a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex)}}),l.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){l.propFix[this.toLowerCase()]=this});function lr(o){var a=o.match(Ze)||[];return a.join(" ")}function yr(o){return o.getAttribute&&o.getAttribute("class")||""}function Di(o){return Array.isArray(o)?o:typeof o=="string"?o.match(Ze)||[]:[]}l.fn.extend({addClass:function(o){var a,u,f,v,m,E;return oe(o)?this.each(function(V){l(this).addClass(o.call(this,V,yr(this)))}):(a=Di(o),a.length?this.each(function(){if(f=yr(this),u=this.nodeType===1&&" "+lr(f)+" ",u){for(m=0;m<a.length;m++)v=a[m],u.indexOf(" "+v+" ")<0&&(u+=v+" ");E=lr(u),f!==E&&this.setAttribute("class",E)}}):this)},removeClass:function(o){var a,u,f,v,m,E;return oe(o)?this.each(function(V){l(this).removeClass(o.call(this,V,yr(this)))}):arguments.length?(a=Di(o),a.length?this.each(function(){if(f=yr(this),u=this.nodeType===1&&" "+lr(f)+" ",u){for(m=0;m<a.length;m++)for(v=a[m];u.indexOf(" "+v+" ")>-1;)u=u.replace(" "+v+" "," ");E=lr(u),f!==E&&this.setAttribute("class",E)}}):this):this.attr("class","")},toggleClass:function(o,a){var u,f,v,m,E=typeof o,V=E==="string"||Array.isArray(o);return oe(o)?this.each(function(X){l(this).toggleClass(o.call(this,X,yr(this),a),a)}):typeof a=="boolean"&&V?a?this.addClass(o):this.removeClass(o):(u=Di(o),this.each(function(){if(V)for(m=l(this),v=0;v<u.length;v++)f=u[v],m.hasClass(f)?m.removeClass(f):m.addClass(f);else(o===void 0||E==="boolean")&&(f=yr(this),f&&j.set(this,"__className__",f),this.setAttribute&&this.setAttribute("class",f||o===!1?"":j.get(this,"__className__")||""))}))},hasClass:function(o){var a,u,f=0;for(a=" "+o+" ";u=this[f++];)if(u.nodeType===1&&(" "+lr(yr(u))+" ").indexOf(a)>-1)return!0;return!1}});var qo=/\r/g;l.fn.extend({val:function(o){var a,u,f,v=this[0];return arguments.length?(f=oe(o),this.each(function(m){var E;this.nodeType===1&&(f?E=o.call(this,m,l(this).val()):E=o,E==null?E="":typeof E=="number"?E+="":Array.isArray(E)&&(E=l.map(E,function(V){return V==null?"":V+""})),a=l.valHooks[this.type]||l.valHooks[this.nodeName.toLowerCase()],(!a||!("set"in a)||a.set(this,E,"value")===void 0)&&(this.value=E))})):v?(a=l.valHooks[v.type]||l.valHooks[v.nodeName.toLowerCase()],a&&"get"in a&&(u=a.get(v,"value"))!==void 0?u:(u=v.value,typeof u=="string"?u.replace(qo,""):u==null?"":u)):void 0}}),l.extend({valHooks:{option:{get:function(o){var a=l.find.attr(o,"value");return a!=null?a:lr(l.text(o))}},select:{get:function(o){var a,u,f,v=o.options,m=o.selectedIndex,E=o.type==="select-one",V=E?null:[],X=E?m+1:v.length;for(m<0?f=X:f=E?m:0;f<X;f++)if(u=v[f],(u.selected||f===m)&&!u.disabled&&(!u.parentNode.disabled||!ye(u.parentNode,"optgroup"))){if(a=l(u).val(),E)return a;V.push(a)}return V},set:function(o,a){for(var u,f,v=o.options,m=l.makeArray(a),E=v.length;E--;)f=v[E],(f.selected=l.inArray(l.valHooks.option.get(f),m)>-1)&&(u=!0);return u||(o.selectedIndex=-1),m}}}}),l.each(["radio","checkbox"],function(){l.valHooks[this]={set:function(o,a){if(Array.isArray(a))return o.checked=l.inArray(l(o).val(),a)>-1}},ie.checkOn||(l.valHooks[this].get=function(o){return o.getAttribute("value")===null?"on":o.value})});var _r=T.location,zo={guid:Date.now()},eo=/\?/;l.parseXML=function(o){var a,u;if(!o||typeof o!="string")return null;try{a=new T.DOMParser().parseFromString(o,"text/xml")}catch(f){}return u=a&&a.getElementsByTagName("parsererror")[0],(!a||u)&&l.error("Invalid XML: "+(u?l.map(u.childNodes,function(f){return f.textContent}).join(`
4
+ `):o)),a};var to=/^(?:focusinfocus|focusoutblur)$/,Yn=function(o){o.stopPropagation()};l.extend(l.event,{trigger:function(o,a,u,f){var v,m,E,V,X,de,Ie,Re,Te=[u||Y],Ue=L.call(o,"type")?o.type:o,wt=L.call(o,"namespace")?o.namespace.split("."):[];if(m=Re=E=u=u||Y,!(u.nodeType===3||u.nodeType===8)&&!to.test(Ue+l.event.triggered)&&(Ue.indexOf(".")>-1&&(wt=Ue.split("."),Ue=wt.shift(),wt.sort()),X=Ue.indexOf(":")<0&&"on"+Ue,o=o[l.expando]?o:new l.Event(Ue,typeof o=="object"&&o),o.isTrigger=f?2:3,o.namespace=wt.join("."),o.rnamespace=o.namespace?new RegExp("(^|\\.)"+wt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,o.result=void 0,o.target||(o.target=u),a=a==null?[o]:l.makeArray(a,[o]),Ie=l.event.special[Ue]||{},!(!f&&Ie.trigger&&Ie.trigger.apply(u,a)===!1))){if(!f&&!Ie.noBubble&&!he(u)){for(V=Ie.delegateType||Ue,to.test(V+Ue)||(m=m.parentNode);m;m=m.parentNode)Te.push(m),E=m;E===(u.ownerDocument||Y)&&Te.push(E.defaultView||E.parentWindow||T)}for(v=0;(m=Te[v++])&&!o.isPropagationStopped();)Re=m,o.type=v>1?V:Ie.bindType||Ue,de=(j.get(m,"events")||Object.create(null))[o.type]&&j.get(m,"handle"),de&&de.apply(m,a),de=X&&m[X],de&&de.apply&&xe(m)&&(o.result=de.apply(m,a),o.result===!1&&o.preventDefault());return o.type=Ue,!f&&!o.isDefaultPrevented()&&(!Ie._default||Ie._default.apply(Te.pop(),a)===!1)&&xe(u)&&X&&oe(u[Ue])&&!he(u)&&(E=u[X],E&&(u[X]=null),l.event.triggered=Ue,o.isPropagationStopped()&&Re.addEventListener(Ue,Yn),u[Ue](),o.isPropagationStopped()&&Re.removeEventListener(Ue,Yn),l.event.triggered=void 0,E&&(u[X]=E)),o.result}},simulate:function(o,a,u){var f=l.extend(new l.Event,u,{type:o,isSimulated:!0});l.event.trigger(f,null,a)}}),l.fn.extend({trigger:function(o,a){return this.each(function(){l.event.trigger(o,a,this)})},triggerHandler:function(o,a){var u=this[0];if(u)return l.event.trigger(o,a,u,!0)}});var wa=/\[\]$/,$o=/\r?\n/g,Ei=/^(?:submit|button|image|reset|file)$/i,ei=/^(?:input|select|textarea|keygen)/i;function no(o,a,u,f){var v;if(Array.isArray(a))l.each(a,function(m,E){u||wa.test(o)?f(o,E):no(o+"["+(typeof E=="object"&&E!=null?m:"")+"]",E,u,f)});else if(!u&&G(a)==="object")for(v in a)no(o+"["+v+"]",a[v],u,f);else f(o,a)}l.param=function(o,a){var u,f=[],v=function(m,E){var V=oe(E)?E():E;f[f.length]=encodeURIComponent(m)+"="+encodeURIComponent(V==null?"":V)};if(o==null)return"";if(Array.isArray(o)||o.jquery&&!l.isPlainObject(o))l.each(o,function(){v(this.name,this.value)});else for(u in o)no(u,o[u],a,v);return f.join("&")},l.fn.extend({serialize:function(){return l.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var o=l.prop(this,"elements");return o?l.makeArray(o):this}).filter(function(){var o=this.type;return this.name&&!l(this).is(":disabled")&&ei.test(this.nodeName)&&!Ei.test(o)&&(this.checked||!Ye.test(o))}).map(function(o,a){var u=l(this).val();return u==null?null:Array.isArray(u)?l.map(u,function(f){return{name:a.name,value:f.replace($o,`\r
5
+ `)}}):{name:a.name,value:u.replace($o,`\r
6
+ `)}}).get()}});var Sa=/%20/g,ka=/#.*$/,Ca=/([?&])_=[^&]*/,ro=/^(.*?):[ \t]*([^\r\n]*)$/mg,Wo=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Da=/^(?:GET|HEAD)$/,jo=/^\/\//,io={},Hr={},ti="*/".concat("*"),ni=Y.createElement("a");ni.href=_r.href;function oo(o){return function(a,u){typeof a!="string"&&(u=a,a="*");var f,v=0,m=a.toLowerCase().match(Ze)||[];if(oe(u))for(;f=m[v++];)f[0]==="+"?(f=f.slice(1)||"*",(o[f]=o[f]||[]).unshift(u)):(o[f]=o[f]||[]).push(u)}}function ao(o,a,u,f){var v={},m=o===Hr;function E(V){var X;return v[V]=!0,l.each(o[V]||[],function(de,Ie){var Re=Ie(a,u,f);if(typeof Re=="string"&&!m&&!v[Re])return a.dataTypes.unshift(Re),E(Re),!1;if(m)return!(X=Re)}),X}return E(a.dataTypes[0])||!v["*"]&&E("*")}function Pr(o,a){var u,f,v=l.ajaxSettings.flatOptions||{};for(u in a)a[u]!==void 0&&((v[u]?o:f||(f={}))[u]=a[u]);return f&&l.extend(!0,o,f),o}function Ea(o,a,u){for(var f,v,m,E,V=o.contents,X=o.dataTypes;X[0]==="*";)X.shift(),f===void 0&&(f=o.mimeType||a.getResponseHeader("Content-Type"));if(f){for(v in V)if(V[v]&&V[v].test(f)){X.unshift(v);break}}if(X[0]in u)m=X[0];else{for(v in u){if(!X[0]||o.converters[v+" "+X[0]]){m=v;break}E||(E=v)}m=m||E}if(m)return m!==X[0]&&X.unshift(m),u[m]}function Uo(o,a,u,f){var v,m,E,V,X,de={},Ie=o.dataTypes.slice();if(Ie[1])for(E in o.converters)de[E.toLowerCase()]=o.converters[E];for(m=Ie.shift();m;)if(o.responseFields[m]&&(u[o.responseFields[m]]=a),!X&&f&&o.dataFilter&&(a=o.dataFilter(a,o.dataType)),X=m,m=Ie.shift(),m){if(m==="*")m=X;else if(X!=="*"&&X!==m){if(E=de[X+" "+m]||de["* "+m],!E){for(v in de)if(V=v.split(" "),V[1]===m&&(E=de[X+" "+V[0]]||de["* "+V[0]],E)){E===!0?E=de[v]:de[v]!==!0&&(m=V[0],Ie.unshift(V[1]));break}}if(E!==!0)if(E&&o.throws)a=E(a);else try{a=E(a)}catch(Re){return{state:"parsererror",error:E?Re:"No conversion from "+X+" to "+m}}}}return{state:"success",data:a}}l.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_r.href,type:"GET",isLocal:Wo.test(_r.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ti,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":l.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(o,a){return a?Pr(Pr(o,l.ajaxSettings),a):Pr(l.ajaxSettings,o)},ajaxPrefilter:oo(io),ajaxTransport:oo(Hr),ajax:function(o,a){typeof o=="object"&&(a=o,o=void 0),a=a||{};var u,f,v,m,E,V,X,de,Ie,Re,Te=l.ajaxSetup({},a),Ue=Te.context||Te,wt=Te.context&&(Ue.nodeType||Ue.jquery)?l(Ue):l.event,Nt=l.Deferred(),Ct=l.Callbacks("once memory"),rn=Te.statusCode||{},$t={},Zn={},Qn="canceled",Mt={readyState:0,getResponseHeader:function(mt){var Yt;if(X){if(!m)for(m={};Yt=ro.exec(v);)m[Yt[1].toLowerCase()+" "]=(m[Yt[1].toLowerCase()+" "]||[]).concat(Yt[2]);Yt=m[mt.toLowerCase()+" "]}return Yt==null?null:Yt.join(", ")},getAllResponseHeaders:function(){return X?v:null},setRequestHeader:function(mt,Yt){return X==null&&(mt=Zn[mt.toLowerCase()]=Zn[mt.toLowerCase()]||mt,$t[mt]=Yt),this},overrideMimeType:function(mt){return X==null&&(Te.mimeType=mt),this},statusCode:function(mt){var Yt;if(mt)if(X)Mt.always(mt[Mt.status]);else for(Yt in mt)rn[Yt]=[rn[Yt],mt[Yt]];return this},abort:function(mt){var Yt=mt||Qn;return u&&u.abort(Yt),jn(0,Yt),this}};if(Nt.promise(Mt),Te.url=((o||Te.url||_r.href)+"").replace(jo,_r.protocol+"//"),Te.type=a.method||a.type||Te.method||Te.type,Te.dataTypes=(Te.dataType||"*").toLowerCase().match(Ze)||[""],Te.crossDomain==null){V=Y.createElement("a");try{V.href=Te.url,V.href=V.href,Te.crossDomain=ni.protocol+"//"+ni.host!=V.protocol+"//"+V.host}catch(mt){Te.crossDomain=!0}}if(Te.data&&Te.processData&&typeof Te.data!="string"&&(Te.data=l.param(Te.data,Te.traditional)),ao(io,Te,a,Mt),X)return Mt;de=l.event&&Te.global,de&&l.active++===0&&l.event.trigger("ajaxStart"),Te.type=Te.type.toUpperCase(),Te.hasContent=!Da.test(Te.type),f=Te.url.replace(ka,""),Te.hasContent?Te.data&&Te.processData&&(Te.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Te.data=Te.data.replace(Sa,"+")):(Re=Te.url.slice(f.length),Te.data&&(Te.processData||typeof Te.data=="string")&&(f+=(eo.test(f)?"&":"?")+Te.data,delete Te.data),Te.cache===!1&&(f=f.replace(Ca,"$1"),Re=(eo.test(f)?"&":"?")+"_="+zo.guid+++Re),Te.url=f+Re),Te.ifModified&&(l.lastModified[f]&&Mt.setRequestHeader("If-Modified-Since",l.lastModified[f]),l.etag[f]&&Mt.setRequestHeader("If-None-Match",l.etag[f])),(Te.data&&Te.hasContent&&Te.contentType!==!1||a.contentType)&&Mt.setRequestHeader("Content-Type",Te.contentType),Mt.setRequestHeader("Accept",Te.dataTypes[0]&&Te.accepts[Te.dataTypes[0]]?Te.accepts[Te.dataTypes[0]]+(Te.dataTypes[0]!=="*"?", "+ti+"; q=0.01":""):Te.accepts["*"]);for(Ie in Te.headers)Mt.setRequestHeader(Ie,Te.headers[Ie]);if(Te.beforeSend&&(Te.beforeSend.call(Ue,Mt,Te)===!1||X))return Mt.abort();if(Qn="abort",Ct.add(Te.complete),Mt.done(Te.success),Mt.fail(Te.error),u=ao(Hr,Te,a,Mt),!u)jn(-1,"No Transport");else{if(Mt.readyState=1,de&&wt.trigger("ajaxSend",[Mt,Te]),X)return Mt;Te.async&&Te.timeout>0&&(E=T.setTimeout(function(){Mt.abort("timeout")},Te.timeout));try{X=!1,u.send($t,jn)}catch(mt){if(X)throw mt;jn(-1,mt)}}function jn(mt,Yt,Rr,Cr){var Vn,qr,Jn,er,ur,In=Yt;X||(X=!0,E&&T.clearTimeout(E),u=void 0,v=Cr||"",Mt.readyState=mt>0?4:0,Vn=mt>=200&&mt<300||mt===304,Rr&&(er=Ea(Te,Mt,Rr)),!Vn&&l.inArray("script",Te.dataTypes)>-1&&l.inArray("json",Te.dataTypes)<0&&(Te.converters["text script"]=function(){}),er=Uo(Te,er,Mt,Vn),Vn?(Te.ifModified&&(ur=Mt.getResponseHeader("Last-Modified"),ur&&(l.lastModified[f]=ur),ur=Mt.getResponseHeader("etag"),ur&&(l.etag[f]=ur)),mt===204||Te.type==="HEAD"?In="nocontent":mt===304?In="notmodified":(In=er.state,qr=er.data,Jn=er.error,Vn=!Jn)):(Jn=In,(mt||!In)&&(In="error",mt<0&&(mt=0))),Mt.status=mt,Mt.statusText=(Yt||In)+"",Vn?Nt.resolveWith(Ue,[qr,In,Mt]):Nt.rejectWith(Ue,[Mt,In,Jn]),Mt.statusCode(rn),rn=void 0,de&&wt.trigger(Vn?"ajaxSuccess":"ajaxError",[Mt,Te,Vn?qr:Jn]),Ct.fireWith(Ue,[Mt,In]),de&&(wt.trigger("ajaxComplete",[Mt,Te]),--l.active||l.event.trigger("ajaxStop")))}return Mt},getJSON:function(o,a,u){return l.get(o,a,u,"json")},getScript:function(o,a){return l.get(o,void 0,a,"script")}}),l.each(["get","post"],function(o,a){l[a]=function(u,f,v,m){return oe(f)&&(m=m||v,v=f,f=void 0),l.ajax(l.extend({url:u,type:a,dataType:m,data:f,success:v},l.isPlainObject(u)&&u))}}),l.ajaxPrefilter(function(o){var a;for(a in o.headers)a.toLowerCase()==="content-type"&&(o.contentType=o.headers[a]||"")}),l._evalUrl=function(o,a,u){return l.ajax({url:o,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(f){l.globalEval(f,a,u)}})},l.fn.extend({wrapAll:function(o){var a;return this[0]&&(oe(o)&&(o=o.call(this[0])),a=l(o,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&a.insertBefore(this[0]),a.map(function(){for(var u=this;u.firstElementChild;)u=u.firstElementChild;return u}).append(this)),this},wrapInner:function(o){return oe(o)?this.each(function(a){l(this).wrapInner(o.call(this,a))}):this.each(function(){var a=l(this),u=a.contents();u.length?u.wrapAll(o):a.append(o)})},wrap:function(o){var a=oe(o);return this.each(function(u){l(this).wrapAll(a?o.call(this,u):o)})},unwrap:function(o){return this.parent(o).not("body").each(function(){l(this).replaceWith(this.childNodes)}),this}}),l.expr.pseudos.hidden=function(o){return!l.expr.pseudos.visible(o)},l.expr.pseudos.visible=function(o){return!!(o.offsetWidth||o.offsetHeight||o.getClientRects().length)},l.ajaxSettings.xhr=function(){try{return new T.XMLHttpRequest}catch(o){}};var Wn={0:200,1223:204},ri=l.ajaxSettings.xhr();ie.cors=!!ri&&"withCredentials"in ri,ie.ajax=ri=!!ri,l.ajaxTransport(function(o){var a,u;if(ie.cors||ri&&!o.crossDomain)return{send:function(f,v){var m,E=o.xhr();if(E.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(m in o.xhrFields)E[m]=o.xhrFields[m];o.mimeType&&E.overrideMimeType&&E.overrideMimeType(o.mimeType),!o.crossDomain&&!f["X-Requested-With"]&&(f["X-Requested-With"]="XMLHttpRequest");for(m in f)E.setRequestHeader(m,f[m]);a=function(V){return function(){a&&(a=u=E.onload=E.onerror=E.onabort=E.ontimeout=E.onreadystatechange=null,V==="abort"?E.abort():V==="error"?typeof E.status!="number"?v(0,"error"):v(E.status,E.statusText):v(Wn[E.status]||E.status,E.statusText,(E.responseType||"text")!=="text"||typeof E.responseText!="string"?{binary:E.response}:{text:E.responseText},E.getAllResponseHeaders()))}},E.onload=a(),u=E.onerror=E.ontimeout=a("error"),E.onabort!==void 0?E.onabort=u:E.onreadystatechange=function(){E.readyState===4&&T.setTimeout(function(){a&&u()})},a=a("abort");try{E.send(o.hasContent&&o.data||null)}catch(V){if(a)throw V}},abort:function(){a&&a()}}}),l.ajaxPrefilter(function(o){o.crossDomain&&(o.contents.script=!1)}),l.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(o){return l.globalEval(o),o}}}),l.ajaxPrefilter("script",function(o){o.cache===void 0&&(o.cache=!1),o.crossDomain&&(o.type="GET")}),l.ajaxTransport("script",function(o){if(o.crossDomain||o.scriptAttrs){var a,u;return{send:function(f,v){a=l("<script>").attr(o.scriptAttrs||{}).prop({charset:o.scriptCharset,src:o.url}).on("load error",u=function(m){a.remove(),u=null,m&&v(m.type==="error"?404:200,m.type)}),Y.head.appendChild(a[0])},abort:function(){u&&u()}}}});var Go=[],ii=/(=)\?(?=&|$)|\?\?/;l.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var o=Go.pop()||l.expando+"_"+zo.guid++;return this[o]=!0,o}}),l.ajaxPrefilter("json jsonp",function(o,a,u){var f,v,m,E=o.jsonp!==!1&&(ii.test(o.url)?"url":typeof o.data=="string"&&(o.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ii.test(o.data)&&"data");if(E||o.dataTypes[0]==="jsonp")return f=o.jsonpCallback=oe(o.jsonpCallback)?o.jsonpCallback():o.jsonpCallback,E?o[E]=o[E].replace(ii,"$1"+f):o.jsonp!==!1&&(o.url+=(eo.test(o.url)?"&":"?")+o.jsonp+"="+f),o.converters["script json"]=function(){return m||l.error(f+" was not called"),m[0]},o.dataTypes[0]="json",v=T[f],T[f]=function(){m=arguments},u.always(function(){v===void 0?l(T).removeProp(f):T[f]=v,o[f]&&(o.jsonpCallback=a.jsonpCallback,Go.push(f)),m&&oe(v)&&v(m[0]),m=v=void 0}),"script"}),ie.createHTMLDocument=(function(){var o=Y.implementation.createHTMLDocument("").body;return o.innerHTML="<form></form><form></form>",o.childNodes.length===2})(),l.parseHTML=function(o,a,u){if(typeof o!="string")return[];typeof a=="boolean"&&(u=a,a=!1);var f,v,m;return a||(ie.createHTMLDocument?(a=Y.implementation.createHTMLDocument(""),f=a.createElement("base"),f.href=Y.location.href,a.head.appendChild(f)):a=Y),v=p.exec(o),m=!u&&[],v?[a.createElement(v[1])]:(v=Ot([o],a,m),m&&m.length&&l(m).remove(),l.merge([],v.childNodes))},l.fn.load=function(o,a,u){var f,v,m,E=this,V=o.indexOf(" ");return V>-1&&(f=lr(o.slice(V)),o=o.slice(0,V)),oe(a)?(u=a,a=void 0):a&&typeof a=="object"&&(v="POST"),E.length>0&&l.ajax({url:o,type:v||"GET",dataType:"html",data:a}).done(function(X){m=arguments,E.html(f?l("<div>").append(l.parseHTML(X)).find(f):X)}).always(u&&function(X,de){E.each(function(){u.apply(this,m||[X.responseText,de,X])})}),this},l.expr.pseudos.animated=function(o){return l.grep(l.timers,function(a){return o===a.elem}).length},l.offset={setOffset:function(o,a,u){var f,v,m,E,V,X,de,Ie=l.css(o,"position"),Re=l(o),Te={};Ie==="static"&&(o.style.position="relative"),V=Re.offset(),m=l.css(o,"top"),X=l.css(o,"left"),de=(Ie==="absolute"||Ie==="fixed")&&(m+X).indexOf("auto")>-1,de?(f=Re.position(),E=f.top,v=f.left):(E=parseFloat(m)||0,v=parseFloat(X)||0),oe(a)&&(a=a.call(o,u,l.extend({},V))),a.top!=null&&(Te.top=a.top-V.top+E),a.left!=null&&(Te.left=a.left-V.left+v),"using"in a?a.using.call(o,Te):Re.css(Te)}},l.fn.extend({offset:function(o){if(arguments.length)return o===void 0?this:this.each(function(v){l.offset.setOffset(this,o,v)});var a,u,f=this[0];if(f)return f.getClientRects().length?(a=f.getBoundingClientRect(),u=f.ownerDocument.defaultView,{top:a.top+u.pageYOffset,left:a.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var o,a,u,f=this[0],v={top:0,left:0};if(l.css(f,"position")==="fixed")a=f.getBoundingClientRect();else{for(a=this.offset(),u=f.ownerDocument,o=f.offsetParent||u.documentElement;o&&(o===u.body||o===u.documentElement)&&l.css(o,"position")==="static";)o=o.parentNode;o&&o!==f&&o.nodeType===1&&(v=l(o).offset(),v.top+=l.css(o,"borderTopWidth",!0),v.left+=l.css(o,"borderLeftWidth",!0))}return{top:a.top-v.top-l.css(f,"marginTop",!0),left:a.left-v.left-l.css(f,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var o=this.offsetParent;o&&l.css(o,"position")==="static";)o=o.offsetParent;return o||K})}}),l.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(o,a){var u=a==="pageYOffset";l.fn[o]=function(f){return Jt(this,function(v,m,E){var V;if(he(v)?V=v:v.nodeType===9&&(V=v.defaultView),E===void 0)return V?V[a]:v[m];V?V.scrollTo(u?V.pageXOffset:E,u?E:V.pageYOffset):v[m]=E},o,f,arguments.length)}}),l.each(["top","left"],function(o,a){l.cssHooks[a]=bi(ie.pixelPosition,function(u,f){if(f)return f=$n(u,a),zn.test(f)?l(u).position()[a]+"px":f})}),l.each({Height:"height",Width:"width"},function(o,a){l.each({padding:"inner"+o,content:a,"":"outer"+o},function(u,f){l.fn[f]=function(v,m){var E=arguments.length&&(u||typeof v!="boolean"),V=u||(v===!0||m===!0?"margin":"border");return Jt(this,function(X,de,Ie){var Re;return he(X)?f.indexOf("outer")===0?X["inner"+o]:X.document.documentElement["client"+o]:X.nodeType===9?(Re=X.documentElement,Math.max(X.body["scroll"+o],Re["scroll"+o],X.body["offset"+o],Re["offset"+o],Re["client"+o])):Ie===void 0?l.css(X,de,V):l.style(X,de,Ie,V)},a,E?v:void 0,E)}})}),l.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(o,a){l.fn[a]=function(u){return this.on(a,u)}}),l.fn.extend({bind:function(o,a,u){return this.on(o,null,a,u)},unbind:function(o,a){return this.off(o,null,a)},delegate:function(o,a,u,f){return this.on(a,o,u,f)},undelegate:function(o,a,u){return arguments.length===1?this.off(o,"**"):this.off(a,o||"**",u)},hover:function(o,a){return this.on("mouseenter",o).on("mouseleave",a||o)}}),l.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(o,a){l.fn[a]=function(u,f){return arguments.length>0?this.on(a,null,u,f):this.trigger(a)}});var Xo=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;l.proxy=function(o,a){var u,f,v;if(typeof a=="string"&&(u=o[a],a=o,o=u),!!oe(o))return f=C.call(arguments,2),v=function(){return o.apply(a||this,f.concat(C.call(arguments)))},v.guid=o.guid=o.guid||l.guid++,v},l.holdReady=function(o){o?l.readyWait++:l.ready(!0)},l.isArray=Array.isArray,l.parseJSON=JSON.parse,l.nodeName=ye,l.isFunction=oe,l.isWindow=he,l.camelCase=jt,l.type=G,l.now=Date.now,l.isNumeric=function(o){var a=l.type(o);return(a==="number"||a==="string")&&!isNaN(o-parseFloat(o))},l.trim=function(o){return o==null?"":(o+"").replace(Xo,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return l});var br=T.jQuery,so=T.$;return l.noConflict=function(o){return T.$===l&&(T.$=so),o&&T.jQuery===l&&(T.jQuery=br),l},typeof w=="undefined"&&(T.jQuery=T.$=l),l})}}),Ml=Xt({"node_modules/clipboard/dist/clipboard.js"(Q,le){(function(w,b){typeof Q=="object"&&typeof le=="object"?le.exports=b():typeof define=="function"&&define.amd?define([],b):typeof Q=="object"?Q.ClipboardJS=b():w.ClipboardJS=b()})(Q,function(){return(function(){var T={686:(function(A,C,D){"use strict";D.d(C,{default:function(){return _e}});var k=D(279),B=D.n(k),N=D(370),U=D.n(N),L=D(817),pe=D.n(L);function fe(S){try{return document.execCommand(S)}catch(p){return!1}}var ie=function(p){var P=pe()(p);return fe("cut"),P},oe=ie;function he(S){var p=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[p?"right":"left"]="-9999px";var me=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(me,"px"),P.setAttribute("readonly",""),P.value=S,P}var Y=function(p,P){var me=he(p);P.container.appendChild(me);var Ce=pe()(me);return fe("copy"),me.remove(),Ce},z=function(p){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},me="";return typeof p=="string"?me=Y(p,P):p instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(p==null?void 0:p.type)?me=Y(p.value,P):(me=pe()(p),fe("copy")),me},Z=z;function G(S){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?G=function(P){return typeof P}:G=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},G(S)}var be=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=p.action,me=P===void 0?"copy":P,Ce=p.container,Pe=p.target,$e=p.text;if(me!=="copy"&&me!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Pe!==void 0)if(Pe&&G(Pe)==="object"&&Pe.nodeType===1){if(me==="copy"&&Pe.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(me==="cut"&&(Pe.hasAttribute("readonly")||Pe.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if($e)return Z($e,{container:Ce});if(Pe)return me==="cut"?oe(Pe):Z(Pe,{container:Ce})},ee=be;function l(S){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(P){return typeof P}:l=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},l(S)}function ve(S,p){if(!(S instanceof p))throw new TypeError("Cannot call a class as a function")}function ye(S,p){for(var P=0;P<p.length;P++){var me=p[P];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(S,me.key,me)}}function Me(S,p,P){return p&&ye(S.prototype,p),P&&ye(S,P),S}function we(S,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(p&&p.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),p&&Oe(S,p)}function Oe(S,p){return Oe=Object.setPrototypeOf||function(me,Ce){return me.__proto__=Ce,me},Oe(S,p)}function Be(S){var p=Ee();return function(){var me=q(S),Ce;if(p){var Pe=q(this).constructor;Ce=Reflect.construct(me,arguments,Pe)}else Ce=me.apply(this,arguments);return $(this,Ce)}}function $(S,p){return p&&(l(p)==="object"||typeof p=="function")?p:Le(S)}function Le(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function Ee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}function q(S){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},q(S)}function ce(S,p){var P="data-clipboard-".concat(S);if(p.hasAttribute(P))return p.getAttribute(P)}var ke=(function(S){we(P,S);var p=Be(P);function P(me,Ce){var Pe;return ve(this,P),Pe=p.call(this),Pe.resolveOptions(Ce),Pe.listenClick(me),Pe}return Me(P,[{key:"resolveOptions",value:function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Ce.action=="function"?Ce.action:this.defaultAction,this.target=typeof Ce.target=="function"?Ce.target:this.defaultTarget,this.text=typeof Ce.text=="function"?Ce.text:this.defaultText,this.container=l(Ce.container)==="object"?Ce.container:document.body}},{key:"listenClick",value:function(Ce){var Pe=this;this.listener=U()(Ce,"click",function($e){return Pe.onClick($e)})}},{key:"onClick",value:function(Ce){var Pe=Ce.delegateTarget||Ce.currentTarget,$e=this.action(Pe)||"copy",Ke=ee({action:$e,container:this.container,target:this.target(Pe),text:this.text(Pe)});this.emit(Ke?"success":"error",{action:$e,text:Ke,trigger:Pe,clearSelection:function(){Pe&&Pe.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Ce){return ce("action",Ce)}},{key:"defaultTarget",value:function(Ce){var Pe=ce("target",Ce);if(Pe)return document.querySelector(Pe)}},{key:"defaultText",value:function(Ce){return ce("text",Ce)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Ce){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return Z(Ce,Pe)}},{key:"cut",value:function(Ce){return oe(Ce)}},{key:"isSupported",value:function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Pe=typeof Ce=="string"?[Ce]:Ce,$e=!!document.queryCommandSupported;return Pe.forEach(function(Ke){$e=$e&&!!document.queryCommandSupported(Ke)}),$e}}]),P})(B()),_e=ke}),828:(function(A){var C=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var D=Element.prototype;D.matches=D.matchesSelector||D.mozMatchesSelector||D.msMatchesSelector||D.oMatchesSelector||D.webkitMatchesSelector}function k(B,N){for(;B&&B.nodeType!==C;){if(typeof B.matches=="function"&&B.matches(N))return B;B=B.parentNode}}A.exports=k}),438:(function(A,C,D){var k=D(828);function B(L,pe,fe,ie,oe){var he=U.apply(this,arguments);return L.addEventListener(fe,he,oe),{destroy:function(){L.removeEventListener(fe,he,oe)}}}function N(L,pe,fe,ie,oe){return typeof L.addEventListener=="function"?B.apply(null,arguments):typeof fe=="function"?B.bind(null,document).apply(null,arguments):(typeof L=="string"&&(L=document.querySelectorAll(L)),Array.prototype.map.call(L,function(he){return B(he,pe,fe,ie,oe)}))}function U(L,pe,fe,ie){return function(oe){oe.delegateTarget=k(oe.target,pe),oe.delegateTarget&&ie.call(L,oe)}}A.exports=N}),879:(function(A,C){C.node=function(D){return D!==void 0&&D instanceof HTMLElement&&D.nodeType===1},C.nodeList=function(D){var k=Object.prototype.toString.call(D);return D!==void 0&&(k==="[object NodeList]"||k==="[object HTMLCollection]")&&"length"in D&&(D.length===0||C.node(D[0]))},C.string=function(D){return typeof D=="string"||D instanceof String},C.fn=function(D){var k=Object.prototype.toString.call(D);return k==="[object Function]"}}),370:(function(A,C,D){var k=D(879),B=D(438);function N(fe,ie,oe){if(!fe&&!ie&&!oe)throw new Error("Missing required arguments");if(!k.string(ie))throw new TypeError("Second argument must be a String");if(!k.fn(oe))throw new TypeError("Third argument must be a Function");if(k.node(fe))return U(fe,ie,oe);if(k.nodeList(fe))return L(fe,ie,oe);if(k.string(fe))return pe(fe,ie,oe);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function U(fe,ie,oe){return fe.addEventListener(ie,oe),{destroy:function(){fe.removeEventListener(ie,oe)}}}function L(fe,ie,oe){return Array.prototype.forEach.call(fe,function(he){he.addEventListener(ie,oe)}),{destroy:function(){Array.prototype.forEach.call(fe,function(he){he.removeEventListener(ie,oe)})}}}function pe(fe,ie,oe){return B(document.body,fe,ie,oe)}A.exports=N}),817:(function(A){function C(D){var k;if(D.nodeName==="SELECT")D.focus(),k=D.value;else if(D.nodeName==="INPUT"||D.nodeName==="TEXTAREA"){var B=D.hasAttribute("readonly");B||D.setAttribute("readonly",""),D.select(),D.setSelectionRange(0,D.value.length),B||D.removeAttribute("readonly"),k=D.value}else{D.hasAttribute("contenteditable")&&D.focus();var N=window.getSelection(),U=document.createRange();U.selectNodeContents(D),N.removeAllRanges(),N.addRange(U),k=N.toString()}return k}A.exports=C}),279:(function(A){function C(){}C.prototype={on:function(D,k,B){var N=this.e||(this.e={});return(N[D]||(N[D]=[])).push({fn:k,ctx:B}),this},once:function(D,k,B){var N=this;function U(){N.off(D,U),k.apply(B,arguments)}return U._=k,this.on(D,U,B)},emit:function(D){var k=[].slice.call(arguments,1),B=((this.e||(this.e={}))[D]||[]).slice(),N=0,U=B.length;for(N;N<U;N++)B[N].fn.apply(B[N].ctx,k);return this},off:function(D,k){var B=this.e||(this.e={}),N=B[D],U=[];if(N&&k)for(var L=0,pe=N.length;L<pe;L++)N[L].fn!==k&&N[L].fn._!==k&&U.push(N[L]);return U.length?B[D]=U:delete B[D],this}},A.exports=C,A.exports.TinyEmitter=C})},w={};function b(A){if(w[A])return w[A].exports;var C=w[A]={exports:{}};return T[A](C,C.exports,b),C.exports}return(function(){b.n=function(A){var C=A&&A.__esModule?(function(){return A.default}):(function(){return A});return b.d(C,{a:C}),C}})(),(function(){b.d=function(A,C){for(var D in C)b.o(C,D)&&!b.o(A,D)&&Object.defineProperty(A,D,{enumerable:!0,get:C[D]})}})(),(function(){b.o=function(A,C){return Object.prototype.hasOwnProperty.call(A,C)}})(),b(686)})().default})}}),Nl=Xt({"node_modules/@tarekraafat/autocomplete.js/dist/autoComplete.min.js"(Q,le){var T,w;T=Q,w=function(){"use strict";function b(q,ce){(ce==null||ce>q.length)&&(ce=q.length);for(var ke=0,_e=Array(ce);ke<ce;ke++)_e[ke]=q[ke];return _e}function A(q,ce,ke){return(ce=(function(_e){var S=(function(p,P){if(typeof p!="object"||!p)return p;var me=p[Symbol.toPrimitive];if(me!==void 0){var Ce=me.call(p,P||"default");if(typeof Ce!="object")return Ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(p)})(_e,"string");return typeof S=="symbol"?S:S+""})(ce))in q?Object.defineProperty(q,ce,{value:ke,enumerable:!0,configurable:!0,writable:!0}):q[ce]=ke,q}function C(q,ce){var ke=Object.keys(q);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(q);ce&&(_e=_e.filter((function(S){return Object.getOwnPropertyDescriptor(q,S).enumerable}))),ke.push.apply(ke,_e)}return ke}function D(q){for(var ce=1;ce<arguments.length;ce++){var ke=arguments[ce]!=null?arguments[ce]:{};ce%2?C(Object(ke),!0).forEach((function(_e){A(q,_e,ke[_e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(ke)):C(Object(ke)).forEach((function(_e){Object.defineProperty(q,_e,Object.getOwnPropertyDescriptor(ke,_e))}))}return q}function k(q){return(function(ce){if(Array.isArray(ce))return b(ce)})(q)||(function(ce){if(typeof Symbol!="undefined"&&ce[Symbol.iterator]!=null||ce["@@iterator"]!=null)return Array.from(ce)})(q)||N(q)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function B(q){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},B(q)}function N(q,ce){if(q){if(typeof q=="string")return b(q,ce);var ke={}.toString.call(q).slice(8,-1);return ke==="Object"&&q.constructor&&(ke=q.constructor.name),ke==="Map"||ke==="Set"?Array.from(q):ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke)?b(q,ce):void 0}}var U=function(q){return typeof q=="string"?document.querySelector(q):q()},L=function(q,ce){var ke=typeof q=="string"?document.createElement(q):q;for(var _e in ce){var S=ce[_e];if(_e==="inside")S.append(ke);else if(_e==="dest")U(S[0]).insertAdjacentElement(S[1],ke);else if(_e==="around"){var p=S;p.parentNode.insertBefore(ke,p),ke.append(p),p.getAttribute("autofocus")!=null&&p.focus()}else _e in ke?ke[_e]=S:ke.setAttribute(_e,S)}return ke},pe=function(q,ce){return q=String(q).toLowerCase(),ce?q.normalize("NFD").replace(/[\u0300-\u036f]/g,"").normalize("NFC"):q},fe=function(q,ce){return L("mark",D({innerHTML:q},typeof ce=="string"&&{class:ce})).outerHTML},ie=function(q,ce){ce.input.dispatchEvent(new CustomEvent(q,{bubbles:!0,detail:ce.feedback,cancelable:!0}))},oe=function(q,ce,ke){var _e=ke||{},S=_e.mode,p=_e.diacritics,P=_e.highlight,me=pe(ce,p);if(ce=String(ce),q=pe(q,p),S==="loose"){var Ce=(q=q.replace(/ /g,"")).length,Pe=0,$e=Array.from(ce).map((function(ot,Ze){return Pe<Ce&&me[Ze]===q[Pe]&&(ot=P?fe(ot,P):ot,Pe++),ot})).join("");if(Pe===Ce)return $e}else{var Ke=me.indexOf(q);if(~Ke)return q=ce.substring(Ke,Ke+q.length),Ke=P?ce.replace(q,fe(q,P)):ce}},he=function(q,ce){return new Promise((function(ke,_e){var S;return(S=q.data).cache&&S.store?ke():new Promise((function(p,P){return typeof S.src=="function"?new Promise((function(me,Ce){return S.src.constructor.name==="AsyncFunction"?S.src(ce).then(me,Ce):me(S.src(ce))})).then(p,P):p(S.src)})).then((function(p){try{return q.feedback=S.store=p,ie("response",q),ke()}catch(P){return _e(P)}}),_e)}))},Y=function(q,ce){var ke=ce.data,_e=ce.searchEngine,S=[];ke.store.forEach((function(P,me){var Ce=function(Ke){var ot=Ke?P[Ke]:P,Ze=typeof _e=="function"?_e(q,ot):oe(q,ot,{mode:_e,diacritics:ce.diacritics,highlight:ce.resultItem.highlight});if(Ze){var pt={match:Ze,value:P};Ke&&(pt.key=Ke),S.push(pt)}};if(ke.keys){var Pe,$e=(function(Ke,ot){var Ze=typeof Symbol!="undefined"&&Ke[Symbol.iterator]||Ke["@@iterator"];if(!Ze){if(Array.isArray(Ke)||(Ze=N(Ke))||ot){Ze&&(Ke=Ze);var pt=0,ht=function(){};return{s:ht,n:function(){return pt>=Ke.length?{done:!0}:{done:!1,value:Ke[pt++]}},e:function(qt){throw qt},f:ht}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Tt,rt=!0,Qt=!1;return{s:function(){Ze=Ze.call(Ke)},n:function(){var qt=Ze.next();return rt=qt.done,qt},e:function(qt){Qt=!0,Tt=qt},f:function(){try{rt||Ze.return==null||Ze.return()}finally{if(Qt)throw Tt}}}})(ke.keys);try{for($e.s();!(Pe=$e.n()).done;)Ce(Pe.value)}catch(Ke){$e.e(Ke)}finally{$e.f()}}else Ce()})),ke.filter&&(S=ke.filter(S));var p=S.slice(0,ce.resultsList.maxResults);ce.feedback={query:q,matches:S,results:p},ie("results",ce)},z="aria-expanded",Z="aria-activedescendant",G="aria-selected",be=function(q,ce){q.feedback.selection=D({index:ce},q.feedback.results[ce])},ee=function(q){q.isOpen||((q.wrapper||q.input).setAttribute(z,!0),q.list.removeAttribute("hidden"),q.isOpen=!0,ie("open",q))},l=function(q){q.isOpen&&((q.wrapper||q.input).setAttribute(z,!1),q.input.setAttribute(Z,""),q.list.setAttribute("hidden",""),q.isOpen=!1,ie("close",q))},ve=function(q,ce){var ke=ce.resultItem,_e=ce.list.getElementsByTagName(ke.tag),S=!!ke.selected&&ke.selected.split(" ");if(ce.isOpen&&_e.length){var p,P,me=ce.cursor;q>=_e.length&&(q=0),q<0&&(q=_e.length-1),ce.cursor=q,me>-1&&(_e[me].removeAttribute(G),S&&(P=_e[me].classList).remove.apply(P,k(S))),_e[q].setAttribute(G,!0),S&&(p=_e[q].classList).add.apply(p,k(S)),ce.input.setAttribute(Z,_e[ce.cursor].id),ce.list.scrollTop=_e[q].offsetTop-ce.list.clientHeight+_e[q].clientHeight+5,ce.feedback.cursor=ce.cursor,be(ce,q),ie("navigate",ce)}},ye=function(q){ve(q.cursor+1,q)},Me=function(q){ve(q.cursor-1,q)},we=function(q,ce,ke){(ke=ke>=0?ke:q.cursor)<0||(q.feedback.event=ce,be(q,ke),ie("selection",q),l(q))};function Oe(q,ce){var ke=this;return new Promise((function(_e,S){var p,P;return p=ce||((P=q.input)instanceof HTMLInputElement||P instanceof HTMLTextAreaElement?P.value:P.innerHTML),(function(Ce,Pe,$e){return Pe?Pe(Ce):Ce.length>=$e})(p=q.query?q.query(p):p,q.trigger,q.threshold)?he(q,p).then((function(Ce){try{return q.feedback instanceof Error?_e():(Y(p,q),q.resultsList&&(function(Pe){var $e=Pe.resultsList,Ke=Pe.list,ot=Pe.resultItem,Ze=Pe.feedback,pt=Ze.matches,ht=Ze.results;if(Pe.cursor=-1,Ke.innerHTML="",pt.length||$e.noResults){var Tt=new DocumentFragment;ht.forEach((function(rt,Qt){var qt=L(ot.tag,D({id:"".concat(ot.id,"_").concat(Qt),role:"option",innerHTML:rt.match,inside:Tt},ot.class&&{class:ot.class}));ot.element&&ot.element(qt,rt)})),Ke.append(Tt),$e.element&&$e.element(Ke,Ze),ee(Pe)}else l(Pe)})(q),me.call(ke))}catch(Pe){return S(Pe)}}),S):(l(q),me.call(ke));function me(){return _e()}}))}var Be=function(q,ce){for(var ke in q)for(var _e in q[ke])ce(ke,_e)},$=function(q){var ce,ke,_e,S=q.events,p=(ce=function(){return Oe(q)},ke=q.debounce,function(){clearTimeout(_e),_e=setTimeout((function(){return ce()}),ke)}),P=q.events=D({input:D({},S&&S.input)},q.resultsList&&{list:S?D({},S.list):{}}),me={input:{input:function(){p()},keydown:function(Ce){(function(Pe,$e){switch(Pe.keyCode){case 40:case 38:Pe.preventDefault(),Pe.keyCode===40?ye($e):Me($e);break;case 13:$e.submit||Pe.preventDefault(),$e.cursor>=0&&we($e,Pe);break;case 9:$e.resultsList.tabSelect&&$e.cursor>=0&&we($e,Pe);break;case 27:$e.input.value="",ie("clear",$e),l($e)}})(Ce,q)},blur:function(){l(q)}},list:{mousedown:function(Ce){Ce.preventDefault()},click:function(Ce){(function(Pe,$e){var Ke=$e.resultItem.tag.toUpperCase(),ot=Array.from($e.list.querySelectorAll(Ke)),Ze=Pe.target.closest(Ke);Ze&&Ze.nodeName===Ke&&we($e,Pe,ot.indexOf(Ze))})(Ce,q)}}};Be(me,(function(Ce,Pe){(q.resultsList||Pe==="input")&&(P[Ce][Pe]||(P[Ce][Pe]=me[Ce][Pe]))})),Be(P,(function(Ce,Pe){q[Ce].addEventListener(Pe,P[Ce][Pe])}))};function Le(q){var ce=this;return new Promise((function(ke,_e){var S,p,P;if(S=q.placeHolder,P={role:"combobox","aria-owns":(p=q.resultsList).id,"aria-haspopup":!0,"aria-expanded":!1},L(q.input,D(D({"aria-controls":p.id,"aria-autocomplete":"both"},S&&{placeholder:S}),!q.wrapper&&D({},P))),q.wrapper&&(q.wrapper=L("div",D({around:q.input,class:q.name+"_wrapper"},P))),p&&(q.list=L(p.tag,D({dest:[p.destination,p.position],id:p.id,role:"listbox",hidden:"hidden"},p.class&&{class:p.class}))),$(q),q.data.cache)return he(q).then((function(Ce){try{return me.call(ce)}catch(Pe){return _e(Pe)}}),_e);function me(){return ie("init",q),ke()}return me.call(ce)}))}function Ee(q){var ce=q.prototype;ce.init=function(){Le(this)},ce.start=function(ke){Oe(this,ke)},ce.unInit=function(){if(this.wrapper){var ke=this.wrapper.parentNode;ke.insertBefore(this.input,this.wrapper),ke.removeChild(this.wrapper)}var _e;Be((_e=this).events,(function(S,p){_e[S].removeEventListener(p,_e.events[S][p])}))},ce.open=function(){ee(this)},ce.close=function(){l(this)},ce.goTo=function(ke){ve(ke,this)},ce.next=function(){ye(this)},ce.previous=function(){Me(this)},ce.select=function(ke){we(this,null,ke)},ce.search=function(ke,_e,S){return oe(ke,_e,S)}}return function q(ce){this.options=ce,this.id=q.instances=(q.instances||0)+1,this.name="autoComplete",this.wrapper=1,this.threshold=1,this.debounce=0,this.resultsList={position:"afterend",tag:"ul",maxResults:5},this.resultItem={tag:"li"},(function(ke){var _e=ke.name,S=ke.options,p=ke.resultsList,P=ke.resultItem;for(var me in S)if(B(S[me])==="object")for(var Ce in ke[me]||(ke[me]={}),S[me])ke[me][Ce]=S[me][Ce];else ke[me]=S[me];ke.selector=ke.selector||"#"+_e,p.destination=p.destination||ke.selector,p.id=p.id||_e+"_list_"+ke.id,P.id=P.id||_e+"_result",ke.input=U(ke.selector)})(this),Ee.call(this,q),Le(this)}},typeof Q=="object"&&typeof le!="undefined"?le.exports=w():typeof define=="function"&&define.amd?define(w):(T=typeof globalThis!="undefined"?globalThis:T||self).autoComplete=w()}}),Ol=Xt({"node_modules/mousetrap/mousetrap.js"(Q,le){(function(T,w,b){if(!T)return;for(var A={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},C={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},D={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},k={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},B,N=1;N<20;++N)A[111+N]="f"+N;for(N=0;N<=9;++N)A[N+96]=N.toString();function U(l,ve,ye){if(l.addEventListener){l.addEventListener(ve,ye,!1);return}l.attachEvent("on"+ve,ye)}function L(l){if(l.type=="keypress"){var ve=String.fromCharCode(l.which);return l.shiftKey||(ve=ve.toLowerCase()),ve}return A[l.which]?A[l.which]:C[l.which]?C[l.which]:String.fromCharCode(l.which).toLowerCase()}function pe(l,ve){return l.sort().join(",")===ve.sort().join(",")}function fe(l){var ve=[];return l.shiftKey&&ve.push("shift"),l.altKey&&ve.push("alt"),l.ctrlKey&&ve.push("ctrl"),l.metaKey&&ve.push("meta"),ve}function ie(l){if(l.preventDefault){l.preventDefault();return}l.returnValue=!1}function oe(l){if(l.stopPropagation){l.stopPropagation();return}l.cancelBubble=!0}function he(l){return l=="shift"||l=="ctrl"||l=="alt"||l=="meta"}function Y(){if(!B){B={};for(var l in A)l>95&&l<112||A.hasOwnProperty(l)&&(B[A[l]]=l)}return B}function z(l,ve,ye){return ye||(ye=Y()[l]?"keydown":"keypress"),ye=="keypress"&&ve.length&&(ye="keydown"),ye}function Z(l){return l==="+"?["+"]:(l=l.replace(/\+{2}/g,"+plus"),l.split("+"))}function G(l,ve){var ye,Me,we,Oe=[];for(ye=Z(l),we=0;we<ye.length;++we)Me=ye[we],k[Me]&&(Me=k[Me]),ve&&ve!="keypress"&&D[Me]&&(Me=D[Me],Oe.push("shift")),he(Me)&&Oe.push(Me);return ve=z(Me,Oe,ve),{key:Me,modifiers:Oe,action:ve}}function be(l,ve){return l===null||l===w?!1:l===ve?!0:be(l.parentNode,ve)}function ee(l){var ve=this;if(l=l||w,!(ve instanceof ee))return new ee(l);ve.target=l,ve._callbacks={},ve._directMap={};var ye={},Me,we=!1,Oe=!1,Be=!1;function $(S){S=S||{};var p=!1,P;for(P in ye){if(S[P]){p=!0;continue}ye[P]=0}p||(Be=!1)}function Le(S,p,P,me,Ce,Pe){var $e,Ke,ot=[],Ze=P.type;if(!ve._callbacks[S])return[];for(Ze=="keyup"&&he(S)&&(p=[S]),$e=0;$e<ve._callbacks[S].length;++$e)if(Ke=ve._callbacks[S][$e],!(!me&&Ke.seq&&ye[Ke.seq]!=Ke.level)&&Ze==Ke.action&&(Ze=="keypress"&&!P.metaKey&&!P.ctrlKey||pe(p,Ke.modifiers))){var pt=!me&&Ke.combo==Ce,ht=me&&Ke.seq==me&&Ke.level==Pe;(pt||ht)&&ve._callbacks[S].splice($e,1),ot.push(Ke)}return ot}function Ee(S,p,P,me){ve.stopCallback(p,p.target||p.srcElement,P,me)||S(p,P)===!1&&(ie(p),oe(p))}ve._handleKey=function(S,p,P){var me=Le(S,p,P),Ce,Pe={},$e=0,Ke=!1;for(Ce=0;Ce<me.length;++Ce)me[Ce].seq&&($e=Math.max($e,me[Ce].level));for(Ce=0;Ce<me.length;++Ce){if(me[Ce].seq){if(me[Ce].level!=$e)continue;Ke=!0,Pe[me[Ce].seq]=1,Ee(me[Ce].callback,P,me[Ce].combo,me[Ce].seq);continue}Ke||Ee(me[Ce].callback,P,me[Ce].combo)}var ot=P.type=="keypress"&&Oe;P.type==Be&&!he(S)&&!ot&&$(Pe),Oe=Ke&&P.type=="keydown"};function q(S){typeof S.which!="number"&&(S.which=S.keyCode);var p=L(S);if(p){if(S.type=="keyup"&&we===p){we=!1;return}ve.handleKey(p,fe(S),S)}}function ce(){clearTimeout(Me),Me=setTimeout($,1e3)}function ke(S,p,P,me){ye[S]=0;function Ce(Ze){return function(){Be=Ze,++ye[S],ce()}}function Pe(Ze){Ee(P,Ze,S),me!=="keyup"&&(we=L(Ze)),setTimeout($,10)}for(var $e=0;$e<p.length;++$e){var Ke=$e+1===p.length,ot=Ke?Pe:Ce(me||G(p[$e+1]).action);_e(p[$e],ot,me,S,$e)}}function _e(S,p,P,me,Ce){ve._directMap[S+":"+P]=p,S=S.replace(/\s+/g," ");var Pe=S.split(" "),$e;if(Pe.length>1){ke(S,Pe,p,P);return}$e=G(S,P),ve._callbacks[$e.key]=ve._callbacks[$e.key]||[],Le($e.key,$e.modifiers,{type:$e.action},me,S,Ce),ve._callbacks[$e.key][me?"unshift":"push"]({callback:p,modifiers:$e.modifiers,action:$e.action,seq:me,level:Ce,combo:S})}ve._bindMultiple=function(S,p,P){for(var me=0;me<S.length;++me)_e(S[me],p,P)},U(l,"keypress",q),U(l,"keydown",q),U(l,"keyup",q)}ee.prototype.bind=function(l,ve,ye){var Me=this;return l=l instanceof Array?l:[l],Me._bindMultiple.call(Me,l,ve,ye),Me},ee.prototype.unbind=function(l,ve){var ye=this;return ye.bind.call(ye,l,function(){},ve)},ee.prototype.trigger=function(l,ve){var ye=this;return ye._directMap[l+":"+ve]&&ye._directMap[l+":"+ve]({},l),ye},ee.prototype.reset=function(){var l=this;return l._callbacks={},l._directMap={},l},ee.prototype.stopCallback=function(l,ve){var ye=this;if((" "+ve.className+" ").indexOf(" mousetrap ")>-1||be(ve,ye.target))return!1;if("composedPath"in l&&typeof l.composedPath=="function"){var Me=l.composedPath()[0];Me!==l.target&&(ve=Me)}return ve.tagName=="INPUT"||ve.tagName=="SELECT"||ve.tagName=="TEXTAREA"||ve.isContentEditable},ee.prototype.handleKey=function(){var l=this;return l._handleKey.apply(l,arguments)},ee.addKeycodes=function(l){for(var ve in l)l.hasOwnProperty(ve)&&(A[ve]=l[ve]);B=null},ee.init=function(){var l=ee(w);for(var ve in l)ve.charAt(0)!=="_"&&(ee[ve]=(function(ye){return function(){return l[ye].apply(l,arguments)}})(ve))},ee.init(),T.Mousetrap=ee,typeof le!="undefined"&&le.exports&&(le.exports=ee),typeof define=="function"&&define.amd&&define(function(){return ee})})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)}}),Bl=Xt({"src/scripts/search.js"(Q){var le=hr(Nl());Ui(),Mr();var T=hr(Ol());(()=>{let w=document.querySelector("#autoComplete");if(w){w.addEventListener("init",()=>{document.querySelector(".search-box").style.opacity=1});let ie=new le.default({name:"autoComplete",placeHolder:"Search packages or get suggestions...",submit:!1,debounce:300,data:{src:oe=>Ll(null,null,function*(){try{return yield(yield fetch(`${window.location.protocol}//${window.location.host}/json/JsonApi?invoke&action=GetSuggestions&SearchTerm=${oe}`)).json()}catch(he){return he}}),keys:["PackageId"]},resultsList:{element:(oe,he)=>{let Y=document.createElement("div"),z=document.createElement("li"),Z="",G=["tag:","author:","id:"];Y.classList.add("autocomplete-header"),z.classList.add("autocomplete-no-suggestions","mt-4");let be="chocolatey_show_search_help",ee,l,ve,ye;Wt(be)?(ee="",l="show",ve=!0,ye="hide"):(ee="collapsed",l="",ve=!1,ye="view"),G.some(Be=>he.query.includes(Be))?z.innerHTML='<p class="mb-0">Searching with a prefix of <strong>id:</strong>, <strong>tag:</strong>, or <strong>author:</strong> will not display suggestions. Press <kbd>Enter</kbd> to do a full search.</p>':he.results.length===0&&(z.innerHTML=`<p class="mb-0">No suggestions for package id "<strong>${he.query}</strong>". Press <kbd>Enter</kbd> to do a full search.</p>`),he.results.length!==0&&(Z=`
9
+ <div class="d-flex align-items-center justify-content-sm-center text-bg-body-secondary px-3 py-2 small border-bottom">
10
+ <p class="mb-0">Press <kbd>Enter</kbd> to do a full search or select a suggestion below.</p>
11
+ </div>
12
+ <p class="text-primary ps-4 pe-3 mt-4 mb-2"><strong>Suggestions</strong></p>`),Y.innerHTML=`
13
+ <div class="d-flex justify-content-between align-items-center text-center text-bg-body-tertiary p-3 small border-bottom">
14
+ <p class="mb-0"><strong>id:searchValue</strong><br />search by id</p>
15
+ <p class="mb-0 mx-3"><strong>tag:searchValue</strong><br />search by tag</p>
16
+ <p class="mb-0"><strong>author:searchValue</strong><br />search by author</p>
17
+ </div>
18
+ <div class="p-3 border-bottom">
19
+ <a class="d-hash-none text-sm-center d-block small ${ee}" data-bs-toggle="collapse" href="#collapseTemplateHelp" role="button" aria-expanded="${ve}" aria-controls="collapseTemplateHelp">
20
+ <i class="fa-solid fa-circle-question text-primary me-1"></i>Click to <span id="collapseTemplateHelpTextContainer">${ye}</span> search help and examples.
21
+ </a>
22
+ <div class="collapse ${l}" id="collapseTemplateHelp">
23
+ <div class="card card-body text-bg-body mt-2 rounded">
24
+ <p class="mb-0">&bull; <strong>Search for multiple tags:</strong> tag:searchValue tag:searchValue</p>
25
+ <p>&bull; <strong>Combine prefixes:</strong> tag:searchValue author:searchValue</p>
26
+ <p class="mb-1"><strong>Example:</strong></p>
27
+ <pre><code class="search-help-example-1 language-markup">author:Chocolatey tag:admin tag:foss</code></pre>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ ${Z}`,he.results.length===0&&oe.insertBefore(z,Y.nextSibling),oe.prepend(Y),Prism.highlightElement(document.querySelector(".search-help-example-1"));let we=document.getElementById("collapseTemplateHelp"),Oe=document.getElementById("collapseTemplateHelpTextContainer");we.addEventListener("show.bs.collapse",()=>{document.cookie=`${be}=true; ${Fr()}path=/;`,Oe.innerText="hide"}),we.addEventListener("hide.bs.collapse",()=>{document.cookie=`${be}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`,Oe.innerText="view"})},noResults:!0,maxResults:5,tabSelect:!0},resultItem:{element:(oe,he)=>{oe.innerHTML=`
32
+ <p class="mb-0">${he.match}</p>
33
+ <p class="mb-0 text-end autocomplete-downloads"><small>${he.value.DownloadCount} downloads</small></p>`},highlight:!0},events:{input:{selection:oe=>{let he=oe.detail.selection.value.PackageId;window.location.href=`${window.location.protocol}//${window.location.host}/packages/${he}`},focus:oe=>{if(oe.target.value){ie.start(oe.target.value);let he=w.value.length;w.setSelectionRange(he,he)}}}}})}let b=navigator.userAgent.indexOf("Mac OS X")!=-1,A=document.querySelector(".search-box .search-input"),C=document.querySelector("#topNav"),D=document.querySelector(".search-key"),k=()=>{C.style.height=`${C.offsetHeight}px`,C.classList.add("active-search"),A.focus()},B=()=>{C.style.height="",C.classList.remove("active-search")};if(C){let ie=C.querySelector(".btn-search"),oe=C.querySelector(".btn-search-close");ie&&(ie.addEventListener("click",k),oe.addEventListener("click",B))}let N=()=>{C&&(C.querySelector(".btn-search")?C.classList.contains("active-search")?A.focus():k():A.focus())};b&&D?(D.innerHTML="&#8984;",T.default.bind("command+k",()=>(N(),!1))):!b&&D&&(D.innerHTML="ctrl",T.default.bind("ctrl+k",()=>(N(),!1))),document.querySelectorAll(".package-tag").forEach(ie=>{let oe=ie.getAttribute("data-package-tag"),he;if(window.location.search){let Y=new URLSearchParams(window.location.search);Y.get("moderatorQueue")==="true"&&Y.set("moderatorQueue","false"),Y.has("page")&&Y.delete("page"),he=`?${Y.toString()}`}else he="?";he.includes(`tags=${oe}&`)?ie.href=`/packages${he}`:he.endsWith(`tags=${oe}`)?ie.href=`/packages${he}`:ie.href=`/packages${he}&tags=${oe}`});let L={relevance:"relevance",popularity:"package-download-count",alphabetical:"package-title",recent:"package-created"};document.querySelectorAll(".trigger-search").forEach(ie=>{ie.addEventListener("change",oe=>{let he=oe.target.closest("form"),Y=he.querySelector('[name="sortOrder"]'),z=he.querySelector('[name="page"]');oe.target.classList.contains("selected-search-term-query")&&Y.value===L.relevance&&Y.setAttribute("name",""),z&&z.value!==1&&z.setAttribute("name",""),he.submit()})}),document.querySelector(".search-box").addEventListener("keydown",ie=>{if(ie.key!=="Enter")return;let oe=window.location.search||"",he=new URLSearchParams(oe),Y=he.get("q")||"",z=he.get("sortOrder")||"",Z=ie.target.value.trim();Y!==Z&&(he.set("q",Z),Z===""&&z===L.relevance&&he.delete("sortOrder")),he.delete("page");let G=`q=${he.get("q")}`;he.delete("q"),he.toString()!==""&&(G+=`&${he.toString()}`);let be=`${window.location.protocol}//${window.location.host}/packages?${G}`;window.location.href=be})})()}}),qn=Xt({"node_modules/codemirror/lib/codemirror.js"(Q,le){(function(T,w){typeof Q=="object"&&typeof le!="undefined"?le.exports=w():typeof define=="function"&&define.amd?define(w):(T=T||self,T.CodeMirror=w())})(Q,(function(){"use strict";var T=navigator.userAgent,w=navigator.platform,b=/gecko\/\d/i.test(T),A=/MSIE \d/.test(T),C=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(T),D=/Edge\/(\d+)/.exec(T),k=A||C||D,B=k&&(A?document.documentMode||6:+(D||C)[1]),N=!D&&/WebKit\//.test(T),U=N&&/Qt\/\d+\.\d+/.test(T),L=!D&&/Chrome\/(\d+)/.exec(T),pe=L&&+L[1],fe=/Opera\//.test(T),ie=/Apple Computer/.test(navigator.vendor),oe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(T),he=/PhantomJS/.test(T),Y=ie&&(/Mobile\/\w+/.test(T)||navigator.maxTouchPoints>2),z=/Android/.test(T),Z=Y||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(T),G=Y||/Mac/.test(w),be=/\bCrOS\b/.test(T),ee=/win/i.test(w),l=fe&&T.match(/Version\/(\d*\.\d*)/);l&&(l=Number(l[1])),l&&l>=15&&(fe=!1,N=!0);var ve=G&&(U||fe&&(l==null||l<12.11)),ye=b||k&&B>=9;function Me(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var we=function(e,t){var r=e.className,n=Me(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function Oe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Be(e,t){return Oe(e).appendChild(t)}function $(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var s=0;s<t.length;++s)i.appendChild(t[s]);return i}function Le(e,t,r,n){var i=$(e,t,r,n);return i.setAttribute("role","presentation"),i}var Ee;document.createRange?Ee=function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:Ee=function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(i){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};function q(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ce(e){var t=e.ownerDocument||e,r;try{r=e.activeElement}catch(n){r=t.body||null}for(;r&&r.shadowRoot&&r.shadowRoot.activeElement;)r=r.shadowRoot.activeElement;return r}function ke(e,t){var r=e.className;Me(t).test(r)||(e.className+=(r?" ":"")+t)}function _e(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!Me(r[n]).test(t)&&(t+=" "+r[n]);return t}var S=function(e){e.select()};Y?S=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:k&&(S=function(e){try{e.select()}catch(t){}});function p(e){return e.display.wrapper.ownerDocument}function P(e){return me(e.display.wrapper)}function me(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Ce(e){return p(e).defaultView}function Pe(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function $e(e,t,r){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(r!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function Ke(e,t,r,n,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var s=n||0,c=i||0;;){var d=e.indexOf(" ",s);if(d<0||d>=t)return c+(t-s);c+=d-s,c+=r-c%r,s=d+1}}var ot=function(){this.id=null,this.f=null,this.time=0,this.handler=Pe(this.onTimeout,this)};ot.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ot.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};function Ze(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}var pt=50,ht={toString:function(){return"CodeMirror.Pass"}},Tt={scroll:!1},rt={origin:"*mouse"},Qt={origin:"+move"};function qt(e,t,r){for(var n=0,i=0;;){var s=e.indexOf(" ",n);s==-1&&(s=e.length);var c=s-n;if(s==e.length||i+c>=t)return n+Math.min(c,t-i);if(i+=s-n,i+=r-i%r,n=s+1,i>=t)return n}}var Vt=[""];function Jt(e){for(;Vt.length<=e;)Vt.push(bt(Vt)+" ");return Vt[e]}function bt(e){return e[e.length-1]}function mn(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function Lt(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function jt(){}function xe(e,t){var r;return Object.create?r=Object.create(e):(jt.prototype=e,r=new jt),t&&$e(t,r),r}var Se=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function j(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Se.test(e))}function x(e,t){return t?t.source.indexOf("\\w")>-1&&j(e)?!0:t.test(e):j(e)}function M(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var J=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function O(e){return e.charCodeAt(0)>=768&&J.test(e)}function ne(e,t,r){for(;(r<0?t>0:t<e.length)&&O(e.charAt(t));)t+=r;return t}function g(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,s=n<0?Math.ceil(i):Math.floor(i);if(s==t)return e(s)?t:r;e(s)?r=s:t=s+n}}function F(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,s=0;s<e.length;++s){var c=e[s];(c.from<r&&c.to>t||t==r&&c.to==t)&&(n(Math.max(c.from,t),Math.min(c.to,r),c.level==1?"rtl":"ltr",s),i=!0)}i||n(t,r,"ltr")}var H=null;function K(e,t,r){var n;H=null;for(var i=0;i<e.length;++i){var s=e[i];if(s.from<t&&s.to>t)return i;s.to==t&&(s.from!=s.to&&r=="before"?n=i:H=i),s.from==t&&(s.from!=s.to&&r!="before"?n=i:H=i)}return n!=null?n:H}var re=(function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(y){return y<=247?e.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?t.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,s=/[LRr]/,c=/[Lb1n]/,d=/[1n]/;function h(y,_,W){this.level=y,this.from=_,this.to=W}return function(y,_){var W=_=="ltr"?"L":"R";if(y.length==0||_=="ltr"&&!n.test(y))return!1;for(var ge=y.length,se=[],Ne=0;Ne<ge;++Ne)se.push(r(y.charCodeAt(Ne)));for(var qe=0,We=W;qe<ge;++qe){var Qe=se[qe];Qe=="m"?se[qe]=We:We=Qe}for(var Je=0,Ve=W;Je<ge;++Je){var nt=se[Je];nt=="1"&&Ve=="r"?se[Je]="n":s.test(nt)&&(Ve=nt,nt=="r"&&(se[Je]="R"))}for(var dt=1,ft=se[0];dt<ge-1;++dt){var Dt=se[dt];Dt=="+"&&ft=="1"&&se[dt+1]=="1"?se[dt]="1":Dt==","&&ft==se[dt+1]&&(ft=="1"||ft=="n")&&(se[dt]=ft),ft=Dt}for(var Rt=0;Rt<ge;++Rt){var gn=se[Rt];if(gn==",")se[Rt]="N";else if(gn=="%"){var Zt=void 0;for(Zt=Rt+1;Zt<ge&&se[Zt]=="%";++Zt);for(var Rn=Rt&&se[Rt-1]=="!"||Zt<ge&&se[Zt]=="1"?"1":"N",Ln=Rt;Ln<Zt;++Ln)se[Ln]=Rn;Rt=Zt-1}}for(var ln=0,Fn=W;ln<ge;++ln){var bn=se[ln];Fn=="L"&&bn=="1"?se[ln]="L":s.test(bn)&&(Fn=bn)}for(var cn=0;cn<ge;++cn)if(i.test(se[cn])){var un=void 0;for(un=cn+1;un<ge&&i.test(se[un]);++un);for(var nn=(cn?se[cn-1]:W)=="L",Mn=(un<ge?se[un]:W)=="L",Wi=nn==Mn?nn?"L":"R":W,Yr=cn;Yr<un;++Yr)se[Yr]=Wi;cn=un-1}for(var Sn=[],Sr,vn=0;vn<ge;)if(c.test(se[vn])){var rs=vn;for(++vn;vn<ge&&c.test(se[vn]);++vn);Sn.push(new h(0,rs,vn))}else{var Lr=vn,pi=Sn.length,hi=_=="rtl"?1:0;for(++vn;vn<ge&&se[vn]!="L";++vn);for(var Dn=Lr;Dn<vn;)if(d.test(se[Dn])){Lr<Dn&&(Sn.splice(pi,0,new h(1,Lr,Dn)),pi+=hi);var ji=Dn;for(++Dn;Dn<vn&&d.test(se[Dn]);++Dn);Sn.splice(pi,0,new h(2,ji,Dn)),pi+=hi,Lr=Dn}else++Dn;Lr<vn&&Sn.splice(pi,0,new h(1,Lr,vn))}return _=="ltr"&&(Sn[0].level==1&&(Sr=y.match(/^\s+/))&&(Sn[0].from=Sr[0].length,Sn.unshift(new h(0,0,Sr[0].length))),bt(Sn).level==1&&(Sr=y.match(/\s+$/))&&(bt(Sn).to-=Sr[0].length,Sn.push(new h(0,ge-Sr[0].length,ge)))),_=="rtl"?Sn.reverse():Sn}})();function ue(e,t){var r=e.order;return r==null&&(r=e.order=re(e.text,t)),r}var te=[],I=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||te).concat(r)}};function Ae(e,t){return e._handlers&&e._handlers[t]||te}function Xe(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var s=Ze(i,r);s>-1&&(n[t]=i.slice(0,s).concat(i.slice(s+1)))}}}function je(e,t){var r=Ae(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function Ye(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),je(e,r||t.type,e,t),Et(t)||t.codemirrorIgnore}function ut(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)Ze(r,t[n])==-1&&r.push(t[n])}function it(e,t){return Ae(e,t).length>0}function gt(e){e.prototype.on=function(t,r){I(this,t,r)},e.prototype.off=function(t,r){Xe(this,t,r)}}function at(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function kt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Et(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ot(e){at(e),kt(e)}function zt(e){return e.target||e.srcElement}function Ut(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),G&&e.ctrlKey&&t==1&&(t=3),t}var fn=(function(){if(k&&B<9)return!1;var e=$("div");return"draggable"in e||"dragDrop"in e})(),kn;function ir(e){if(kn==null){var t=$("span","\u200B");Be(e,$("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(kn=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&B<8))}var r=kn?$("span","\u200B"):$("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var Nr;function mi(e){if(Nr!=null)return Nr;var t=Be(e,document.createTextNode("A\u062EA")),r=Ee(t,0,1).getBoundingClientRect(),n=Ee(t,1,2).getBoundingClientRect();return Oe(e),!r||r.left==r.right?!1:Nr=n.right-r.right<3}var Zr=`
34
+
35
+ b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(`
36
+ `,t);i==-1&&(i=e.length);var s=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),c=s.indexOf("\r");c!=-1?(r.push(s.slice(0,c)),t+=c+1):(r.push(s),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Or=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Yi=(function(){var e=$("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")})(),Qr=null;function sn(e){if(Qr!=null)return Qr;var t=Be(e,$("span","x")),r=t.getBoundingClientRect(),n=Ee(t,0,1).getBoundingClientRect();return Qr=Math.abs(r.left-n.left)>1}var Gn={},en={};function Nn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Gn[e]=t}function zn(e,t){en[e]=t}function On(e){if(typeof e=="string"&&en.hasOwnProperty(e))e=en[e];else if(e&&typeof e.name=="string"&&en.hasOwnProperty(e.name)){var t=en[e.name];typeof t=="string"&&(t={name:t}),e=xe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return On("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return On("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function or(e,t){t=On(t);var r=Gn[t.name];if(!r)return or(e,"text/plain");var n=r(e,t);if(ar.hasOwnProperty(t.name)){var i=ar[t.name];for(var s in i)i.hasOwnProperty(s)&&(n.hasOwnProperty(s)&&(n["_"+s]=n[s]),n[s]=i[s])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var c in t.modeProps)n[c]=t.modeProps[c];return n}var ar={};function yi(e,t){var r=ar.hasOwnProperty(e)?ar[e]:ar[e]={};$e(t,r)}function $n(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function bi(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Zi(e,t,r){return e.startState?e.startState(t,r):!0}var Kt=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};Kt.prototype.eol=function(){return this.pos>=this.string.length},Kt.prototype.sol=function(){return this.pos==this.lineStart},Kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Kt.prototype.eat=function(e){var t=this.string.charAt(this.pos),r;if(typeof e=="string"?r=t==e:r=t&&(e.test?e.test(t):e(t)),r)return++this.pos,t},Kt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Kt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Kt.prototype.skipToEnd=function(){this.pos=this.string.length},Kt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Kt.prototype.backUp=function(e){this.pos-=e},Kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ke(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.indentation=function(){return Ke(this.string,null,this.tabSize)-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.match=function(e,t,r){if(typeof e=="string"){var n=function(c){return r?c.toLowerCase():c},i=this.string.substr(this.pos,e.length);if(n(i)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}},Kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Kt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Kt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function st(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],s=i.chunkSize();if(t<s){r=i;break}t-=s}return r.lines[t]}function kr(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(s){var c=s.text;i==r.line&&(c=c.slice(0,r.ch)),i==t.line&&(c=c.slice(t.ch)),n.push(c),++i}),n}function Vr(e,t,r){var n=[];return e.iter(t,r,function(i){n.push(i.text)}),n}function Xn(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function It(e){if(e.parent==null)return null;for(var t=e.parent,r=Ze(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function vr(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],s=i.height;if(t<s){e=i;continue e}t-=s,r+=i.chunkSize()}return r}while(!e.lines);for(var c=0;c<e.lines.length;++c){var d=e.lines[c],h=d.height;if(t<h)break;t-=h}return r+c}function Br(e,t){return t>=e.first&&t<e.first+e.size}function Jr(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ze(e,t,r){if(r===void 0&&(r=null),!(this instanceof ze))return new ze(e,t,r);this.line=e,this.ch=t,this.sticky=r}function ct(e,t){return e.line-t.line||e.ch-t.ch}function mr(e,t){return e.sticky==t.sticky&&ct(e,t)==0}function Ir(e){return ze(e.line,e.ch)}function xi(e,t){return ct(e,t)<0?t:e}function wi(e,t){return ct(e,t)<0?e:t}function Si(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function xt(e,t){if(t.line<e.first)return ze(e.first,0);var r=e.first+e.size-1;return t.line>r?ze(r,st(e,r).text.length):ki(t,st(e,t.line).text.length)}function ki(e,t){var r=e.ch;return r==null||r>t?ze(e.line,t):r<0?ze(e.line,0):e}function Qi(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=xt(e,t[n]);return r}var Ci=function(e,t){this.state=e,this.lookAhead=t},Kn=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};Kn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Kn.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}},Kn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Kn.fromSaved=function(e,t,r){return t instanceof Ci?new Kn(e,$n(e.mode,t.state),r,t.lookAhead):new Kn(e,$n(e.mode,t),r)},Kn.prototype.save=function(e){var t=e!==!1?$n(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ci(t,this.maxLookAhead):t};function Bn(e,t,r,n){var i=[e.state.modeGen],s={};_r(e,t.text,e.doc.mode,r,function(y,_){return i.push(y,_)},s,n);for(var c=r.state,d=function(y){r.baseTokens=i;var _=e.state.overlays[y],W=1,ge=0;r.state=!0,_r(e,t.text,_.mode,r,function(se,Ne){for(var qe=W;ge<se;){var We=i[W];We>se&&i.splice(W,1,se,i[W+1],We),W+=2,ge=Math.min(se,We)}if(Ne)if(_.opaque)i.splice(qe,W-qe,se,"overlay "+Ne),W=qe+2;else for(;qe<W;qe+=2){var Qe=i[qe+1];i[qe+1]=(Qe?Qe+" ":"")+"overlay "+Ne}},s),r.state=c,r.baseTokens=null,r.baseTokenPos=1},h=0;h<e.state.overlays.length;++h)d(h);return{styles:i,classes:s.bgClass||s.textClass?s:null}}function Vi(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=sr(e,It(t)),i=t.text.length>e.options.maxHighlightLength&&$n(e.doc.mode,n.state),s=Bn(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=s.styles,s.classes?t.styleClasses=s.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function sr(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Kn(n,!0,t);var s=zo(e,t,r),c=s>n.first&&st(n,s-1).stateAfter,d=c?Kn.fromSaved(n,c,s):new Kn(n,Zi(n.mode),s);return n.iter(s,t,function(h){Ji(e,h.text,d);var y=d.line;h.stateAfter=y==t-1||y%5==0||y>=i.viewFrom&&y<i.viewTo?d.save():null,d.nextLine()}),r&&(n.modeFrontier=d.line),d}function Ji(e,t,r,n){var i=e.doc.mode,s=new Kt(t,e.options.tabSize,r);for(s.start=s.pos=n||0,t==""&&Ro(i,r.state);!s.eol();)lr(i,s,r.state),s.start=s.pos}function Ro(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=bi(e,t);if(r.mode.blankLine)return r.mode.blankLine(r.state)}}function lr(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=bi(e,r).mode);var s=e.token(t,r);if(t.pos>t.start)return s}throw new Error("Mode "+e.name+" failed to advance stream.")}var yr=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Di(e,t,r,n){var i=e.doc,s=i.mode,c;t=xt(i,t);var d=st(i,t.line),h=sr(e,t.line,r),y=new Kt(d.text,e.options.tabSize,h),_;for(n&&(_=[]);(n||y.pos<t.ch)&&!y.eol();)y.start=y.pos,c=lr(s,y,h.state),n&&_.push(new yr(y,c,$n(i.mode,h.state)));return n?_:new yr(y,c,h.state)}function qo(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";t[n]==null?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function _r(e,t,r,n,i,s,c){var d=r.flattenSpans;d==null&&(d=e.options.flattenSpans);var h=0,y=null,_=new Kt(t,e.options.tabSize,n),W,ge=e.options.addModeClass&&[null];for(t==""&&qo(Ro(r,n.state),s);!_.eol();){if(_.pos>e.options.maxHighlightLength?(d=!1,c&&Ji(e,t,n,_.pos),_.pos=t.length,W=null):W=qo(lr(r,_,n.state,ge),s),ge){var se=ge[0].name;se&&(W="m-"+(W?se+" "+W:se))}if(!d||y!=W){for(;h<_.start;)h=Math.min(_.start,h+5e3),i(h,y);y=W}_.start=_.pos}for(;h<_.pos;){var Ne=Math.min(_.pos,h+5e3);i(Ne,y),h=Ne}}function zo(e,t,r){for(var n,i,s=e.doc,c=r?-1:t-(e.doc.mode.innerMode?1e3:100),d=t;d>c;--d){if(d<=s.first)return s.first;var h=st(s,d-1),y=h.stateAfter;if(y&&(!r||d+(y instanceof Ci?y.lookAhead:0)<=s.modeFrontier))return d;var _=Ke(h.text,null,e.options.tabSize);(i==null||n>_)&&(i=d-1,n=_)}return i}function eo(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=st(e,n).stateAfter;if(i&&(!(i instanceof Ci)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var to=!1,Yn=!1;function wa(){to=!0}function $o(){Yn=!0}function Ei(e,t,r){this.marker=e,this.from=t,this.to=r}function ei(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function no(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Sa(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&e.markedSpans&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function ka(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var s=e[i],c=s.marker,d=s.from==null||(c.inclusiveLeft?s.from<=t:s.from<t);if(d||s.from==t&&c.type=="bookmark"&&(!r||!s.marker.insertLeft)){var h=s.to==null||(c.inclusiveRight?s.to>=t:s.to>t);(n||(n=[])).push(new Ei(c,s.from,h?null:s.to))}}return n}function Ca(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var s=e[i],c=s.marker,d=s.to==null||(c.inclusiveRight?s.to>=t:s.to>t);if(d||s.from==t&&c.type=="bookmark"&&(!r||s.marker.insertLeft)){var h=s.from==null||(c.inclusiveLeft?s.from<=t:s.from<t);(n||(n=[])).push(new Ei(c,h?null:s.from-t,s.to==null?null:s.to-t))}}return n}function ro(e,t){if(t.full)return null;var r=Br(e,t.from.line)&&st(e,t.from.line).markedSpans,n=Br(e,t.to.line)&&st(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,s=t.to.ch,c=ct(t.from,t.to)==0,d=ka(r,i,c),h=Ca(n,s,c),y=t.text.length==1,_=bt(t.text).length+(y?i:0);if(d)for(var W=0;W<d.length;++W){var ge=d[W];if(ge.to==null){var se=ei(h,ge.marker);se?y&&(ge.to=se.to==null?null:se.to+_):ge.to=i}}if(h)for(var Ne=0;Ne<h.length;++Ne){var qe=h[Ne];if(qe.to!=null&&(qe.to+=_),qe.from==null){var We=ei(d,qe.marker);We||(qe.from=_,y&&(d||(d=[])).push(qe))}else qe.from+=_,y&&(d||(d=[])).push(qe)}d&&(d=Wo(d)),h&&h!=d&&(h=Wo(h));var Qe=[d];if(!y){var Je=t.text.length-2,Ve;if(Je>0&&d)for(var nt=0;nt<d.length;++nt)d[nt].to==null&&(Ve||(Ve=[])).push(new Ei(d[nt].marker,null,null));for(var dt=0;dt<Je;++dt)Qe.push(Ve);Qe.push(h)}return Qe}function Wo(e){for(var t=0;t<e.length;++t){var r=e[t];r.from!=null&&r.from==r.to&&r.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Da(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(se){if(se.markedSpans)for(var Ne=0;Ne<se.markedSpans.length;++Ne){var qe=se.markedSpans[Ne].marker;qe.readOnly&&(!n||Ze(n,qe)==-1)&&(n||(n=[])).push(qe)}}),!n)return null;for(var i=[{from:t,to:r}],s=0;s<n.length;++s)for(var c=n[s],d=c.find(0),h=0;h<i.length;++h){var y=i[h];if(!(ct(y.to,d.from)<0||ct(y.from,d.to)>0)){var _=[h,1],W=ct(y.from,d.from),ge=ct(y.to,d.to);(W<0||!c.inclusiveLeft&&!W)&&_.push({from:y.from,to:d.from}),(ge>0||!c.inclusiveRight&&!ge)&&_.push({from:d.to,to:y.to}),i.splice.apply(i,_),h+=_.length-3}}return i}function jo(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function io(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Hr(e){return e.inclusiveLeft?-1:0}function ti(e){return e.inclusiveRight?1:0}function ni(e,t){var r=e.lines.length-t.lines.length;if(r!=0)return r;var n=e.find(),i=t.find(),s=ct(n.from,i.from)||Hr(e)-Hr(t);if(s)return-s;var c=ct(n.to,i.to)||ti(e)-ti(t);return c||t.id-e.id}function oo(e,t){var r=Yn&&e.markedSpans,n;if(r)for(var i=void 0,s=0;s<r.length;++s)i=r[s],i.marker.collapsed&&(t?i.from:i.to)==null&&(!n||ni(n,i.marker)<0)&&(n=i.marker);return n}function ao(e){return oo(e,!0)}function Pr(e){return oo(e,!1)}function Ea(e,t){var r=Yn&&e.markedSpans,n;if(r)for(var i=0;i<r.length;++i){var s=r[i];s.marker.collapsed&&(s.from==null||s.from<t)&&(s.to==null||s.to>t)&&(!n||ni(n,s.marker)<0)&&(n=s.marker)}return n}function Uo(e,t,r,n,i){var s=st(e,t),c=Yn&&s.markedSpans;if(c)for(var d=0;d<c.length;++d){var h=c[d];if(h.marker.collapsed){var y=h.marker.find(0),_=ct(y.from,r)||Hr(h.marker)-Hr(i),W=ct(y.to,n)||ti(h.marker)-ti(i);if(!(_>=0&&W<=0||_<=0&&W>=0)&&(_<=0&&(h.marker.inclusiveRight&&i.inclusiveLeft?ct(y.to,r)>=0:ct(y.to,r)>0)||_>=0&&(h.marker.inclusiveRight&&i.inclusiveLeft?ct(y.from,n)<=0:ct(y.from,n)<0)))return!0}}}function Wn(e){for(var t;t=ao(e);)e=t.find(-1,!0).line;return e}function ri(e){for(var t;t=Pr(e);)e=t.find(1,!0).line;return e}function Go(e){for(var t,r;t=Pr(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function ii(e,t){var r=st(e,t),n=Wn(r);return r==n?t:It(n)}function Xo(e,t){if(t>e.lastLine())return t;var r=st(e,t),n;if(!br(e,r))return t;for(;n=Pr(r);)r=n.find(1,!0).line;return It(r)+1}function br(e,t){var r=Yn&&t.markedSpans;if(r){for(var n=void 0,i=0;i<r.length;++i)if(n=r[i],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&so(e,t,n))return!0}}}function so(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return so(e,n.line,ei(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,s=0;s<t.markedSpans.length;++s)if(i=t.markedSpans[s],i.marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(i.to==null||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&so(e,t,i))return!0}function o(e){e=Wn(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var s=r.parent;s;r=s,s=r.parent)for(var c=0;c<s.children.length;++c){var d=s.children[c];if(d==r)break;t+=d.height}return t}function a(e){if(e.height==0)return 0;for(var t=e.text.length,r,n=e;r=ao(n);){var i=r.find(0,!0);n=i.from.line,t+=i.from.ch-i.to.ch}for(n=e;r=Pr(n);){var s=r.find(0,!0);t-=n.text.length-s.from.ch,n=s.to.line,t+=n.text.length-s.to.ch}return t}function u(e){var t=e.display,r=e.doc;t.maxLine=st(r,r.first),t.maxLineLength=a(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var i=a(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var f=function(e,t,r){this.text=e,io(this,t),this.height=r?r(this):1};f.prototype.lineNo=function(){return It(this)},gt(f);function v(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),jo(e),io(e,r);var i=n?n(e):1;i!=e.height&&Xn(e,i)}function m(e){e.parent=null,jo(e)}var E={},V={};function X(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?V:E;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function de(e,t){var r=Le("span",null,null,N?"padding-right: .1px":null),n={pre:Le("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var s=i?t.rest[i-1]:t.line,c=void 0;n.pos=0,n.addToken=Re,mi(e.display.measure)&&(c=ue(s,e.doc.direction))&&(n.addToken=Ue(n.addToken,c)),n.map=[];var d=t!=e.display.externalMeasured&&It(s);Nt(s,n,Vi(e,s,d)),s.styleClasses&&(s.styleClasses.bgClass&&(n.bgClass=_e(s.styleClasses.bgClass,n.bgClass||"")),s.styleClasses.textClass&&(n.textClass=_e(s.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(ir(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(N){var h=n.content.lastChild;(/\bcm-tab\b/.test(h.className)||h.querySelector&&h.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return je(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=_e(n.pre.className,n.textClass||"")),n}function Ie(e){var t=$("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Re(e,t,r,n,i,s,c){if(t){var d=e.splitSpaces?Te(t,e.trailingSpace):t,h=e.cm.state.specialChars,y=!1,_;if(!h.test(t))e.col+=t.length,_=document.createTextNode(d),e.map.push(e.pos,e.pos+t.length,_),k&&B<9&&(y=!0),e.pos+=t.length;else{_=document.createDocumentFragment();for(var W=0;;){h.lastIndex=W;var ge=h.exec(t),se=ge?ge.index-W:t.length-W;if(se){var Ne=document.createTextNode(d.slice(W,W+se));k&&B<9?_.appendChild($("span",[Ne])):_.appendChild(Ne),e.map.push(e.pos,e.pos+se,Ne),e.col+=se,e.pos+=se}if(!ge)break;W+=se+1;var qe=void 0;if(ge[0]==" "){var We=e.cm.options.tabSize,Qe=We-e.col%We;qe=_.appendChild($("span",Jt(Qe),"cm-tab")),qe.setAttribute("role","presentation"),qe.setAttribute("cm-text"," "),e.col+=Qe}else ge[0]=="\r"||ge[0]==`
37
+ `?(qe=_.appendChild($("span",ge[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),qe.setAttribute("cm-text",ge[0]),e.col+=1):(qe=e.cm.options.specialCharPlaceholder(ge[0]),qe.setAttribute("cm-text",ge[0]),k&&B<9?_.appendChild($("span",[qe])):_.appendChild(qe),e.col+=1);e.map.push(e.pos,e.pos+1,qe),e.pos++}}if(e.trailingSpace=d.charCodeAt(t.length-1)==32,r||n||i||y||s||c){var Je=r||"";n&&(Je+=n),i&&(Je+=i);var Ve=$("span",[_],Je,s);if(c)for(var nt in c)c.hasOwnProperty(nt)&&nt!="style"&&nt!="class"&&Ve.setAttribute(nt,c[nt]);return e.content.appendChild(Ve)}e.content.appendChild(_)}}function Te(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var s=e.charAt(i);s==" "&&r&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(s="\xA0"),n+=s,r=s==" "}return n}function Ue(e,t){return function(r,n,i,s,c,d,h){i=i?i+" cm-force-border":"cm-force-border";for(var y=r.pos,_=y+n.length;;){for(var W=void 0,ge=0;ge<t.length&&(W=t[ge],!(W.to>y&&W.from<=y));ge++);if(W.to>=_)return e(r,n,i,s,c,d,h);e(r,n.slice(0,W.to-y),i,s,null,d,h),s=null,n=n.slice(W.to-y),y=W.to}}}function wt(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Nt(e,t,r){var n=e.markedSpans,i=e.text,s=0;if(!n){for(var c=1;c<r.length;c+=2)t.addToken(t,i.slice(s,s=r[c]),X(r[c+1],t.cm.options));return}for(var d=i.length,h=0,y=1,_="",W,ge,se=0,Ne,qe,We,Qe,Je;;){if(se==h){Ne=qe=We=ge="",Je=null,Qe=null,se=1/0;for(var Ve=[],nt=void 0,dt=0;dt<n.length;++dt){var ft=n[dt],Dt=ft.marker;if(Dt.type=="bookmark"&&ft.from==h&&Dt.widgetNode)Ve.push(Dt);else if(ft.from<=h&&(ft.to==null||ft.to>h||Dt.collapsed&&ft.to==h&&ft.from==h)){if(ft.to!=null&&ft.to!=h&&se>ft.to&&(se=ft.to,qe=""),Dt.className&&(Ne+=" "+Dt.className),Dt.css&&(ge=(ge?ge+";":"")+Dt.css),Dt.startStyle&&ft.from==h&&(We+=" "+Dt.startStyle),Dt.endStyle&&ft.to==se&&(nt||(nt=[])).push(Dt.endStyle,ft.to),Dt.title&&((Je||(Je={})).title=Dt.title),Dt.attributes)for(var Rt in Dt.attributes)(Je||(Je={}))[Rt]=Dt.attributes[Rt];Dt.collapsed&&(!Qe||ni(Qe.marker,Dt)<0)&&(Qe=ft)}else ft.from>h&&se>ft.from&&(se=ft.from)}if(nt)for(var gn=0;gn<nt.length;gn+=2)nt[gn+1]==se&&(qe+=" "+nt[gn]);if(!Qe||Qe.from==h)for(var Zt=0;Zt<Ve.length;++Zt)wt(t,0,Ve[Zt]);if(Qe&&(Qe.from||0)==h){if(wt(t,(Qe.to==null?d+1:Qe.to)-h,Qe.marker,Qe.from==null),Qe.to==null)return;Qe.to==h&&(Qe=!1)}}if(h>=d)break;for(var Rn=Math.min(d,se);;){if(_){var Ln=h+_.length;if(!Qe){var ln=Ln>Rn?_.slice(0,Rn-h):_;t.addToken(t,ln,W?W+Ne:Ne,We,h+ln.length==se?qe:"",ge,Je)}if(Ln>=Rn){_=_.slice(Rn-h),h=Rn;break}h=Ln,We=""}_=i.slice(s,s=r[y++]),W=X(r[y++],t.cm.options)}}}function Ct(e,t,r){this.line=t,this.rest=Go(t),this.size=this.rest?It(bt(this.rest))-r+1:1,this.node=this.text=null,this.hidden=br(e,t)}function rn(e,t,r){for(var n=[],i,s=t;s<r;s=i){var c=new Ct(e.doc,st(e.doc,s),s);i=s+c.size,n.push(c)}return n}var $t=null;function Zn(e){$t?$t.ops.push(e):e.ownsGroup=$t={ops:[e],delayedCallbacks:[]}}function Qn(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Mt(e,t){var r=e.ownsGroup;if(r)try{Qn(r)}finally{$t=null,t(r)}}var jn=null;function mt(e,t){var r=Ae(e,t);if(r.length){var n=Array.prototype.slice.call(arguments,2),i;$t?i=$t.delayedCallbacks:jn?i=jn:(i=jn=[],setTimeout(Yt,0));for(var s=function(d){i.push(function(){return r[d].apply(null,n)})},c=0;c<r.length;++c)s(c)}}function Yt(){var e=jn;jn=null;for(var t=0;t<e.length;++t)e[t]()}function Rr(e,t,r,n){for(var i=0;i<t.changes.length;i++){var s=t.changes[i];s=="text"?Jn(e,t):s=="gutter"?ur(e,t,r,n):s=="class"?er(e,t):s=="widget"&&In(e,t,n)}t.changes=null}function Cr(e){return e.node==e.text&&(e.node=$("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),k&&B<8&&(e.node.style.zIndex=2)),e.node}function Vn(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=Cr(t);t.background=n.insertBefore($("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function qr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):de(e,t)}function Jn(e,t){var r=t.text.className,n=qr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,er(e,t)):r&&(t.text.className=r)}function er(e,t){Vn(e,t),t.line.wrapClass?Cr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function ur(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Cr(t);t.gutterBackground=$("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var s=t.line.gutterMarkers;if(e.options.lineNumbers||s){var c=Cr(t),d=t.gutter=$("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(d.setAttribute("aria-hidden","true"),e.display.input.setUneditable(d),c.insertBefore(d,t.text),t.line.gutterClass&&(d.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!s||!s["CodeMirror-linenumbers"])&&(t.lineNumber=d.appendChild($("div",Jr(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),s)for(var h=0;h<e.display.gutterSpecs.length;++h){var y=e.display.gutterSpecs[h].className,_=s.hasOwnProperty(y)&&s[y];_&&d.appendChild($("div",[_],"CodeMirror-gutter-elt","left: "+n.gutterLeft[y]+"px; width: "+n.gutterWidth[y]+"px"))}}}function In(e,t,r){t.alignable&&(t.alignable=null);for(var n=Me("CodeMirror-linewidget"),i=t.node.firstChild,s=void 0;i;i=s)s=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);tr(e,t,r)}function lo(e,t,r,n){var i=qr(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),er(e,t),ur(e,t,r,n),tr(e,t,n),t.node}function tr(e,t,r){if(nr(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)nr(e,t.rest[n],t,r,!1)}function nr(e,t,r,n,i){if(t.widgets)for(var s=Cr(r),c=0,d=t.widgets;c<d.length;++c){var h=d[c],y=$("div",[h.node],"CodeMirror-linewidget"+(h.className?" "+h.className:""));h.handleMouseEvents||y.setAttribute("cm-ignore-events","true"),Aa(h,y,r,n),e.display.input.setUneditable(y),i&&h.above?s.insertBefore(y,r.gutter||r.text):s.appendChild(y),mt(h,"redraw")}}function Aa(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function oi(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!q(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),Be(t.display.measure,$("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function cr(e,t){for(var r=zt(t);r!=e.wrapper;r=r.parentNode)if(!r||r.nodeType==1&&r.getAttribute("cm-ignore-events")=="true"||r.parentNode==e.sizer&&r!=e.mover)return!0}function Bt(e){return e.lineSpace.offsetTop}function zr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function _n(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=Be(e.measure,$("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function xn(e){return pt-e.display.nativeBarWidth}function Dr(e){return e.display.scroller.clientWidth-xn(e)-e.display.barWidth}function uo(e){return e.display.scroller.clientHeight-xn(e)-e.display.barHeight}function Ko(e,t,r){var n=e.options.lineWrapping,i=n&&Dr(e);if(!t.measure.heights||n&&t.measure.width!=i){var s=t.measure.heights=[];if(n){t.measure.width=i;for(var c=t.text.firstChild.getClientRects(),d=0;d<c.length-1;d++){var h=c[d],y=c[d+1];Math.abs(h.bottom-y.bottom)>2&&s.push((h.bottom+y.top)/2-r.top)}}s.push(r.bottom-r.top)}}function xr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(It(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function co(e,t){t=Wn(t);var r=It(t),n=e.display.externalMeasured=new Ct(e.doc,t,r);n.lineN=r;var i=n.built=de(e,n);return n.text=i.pre,Be(e.display.lineMeasure,i.pre),n}function fr(e,t,r,n){return En(e,rr(e,t),r,n)}function Ai(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[li(e,t)];var r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size)return r}function rr(e,t){var r=It(t),n=Ai(e,r);n&&!n.text?n=null:n&&n.changes&&(Rr(e,n,r,Hn(e)),e.curOp.forceUpdate=!0),n||(n=co(e,t));var i=xr(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function En(e,t,r,n,i){t.before&&(r=-1);var s=r+(n||""),c;return t.cache.hasOwnProperty(s)?c=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Ko(e,t.view,t.rect),t.hasHeights=!0),c=Li(e,t,r,n),c.bogus||(t.cache[s]=c)),{left:c.left,right:c.right,top:i?c.rtop:c.top,bottom:i?c.rbottom:c.bottom}}var ai={left:0,right:0,top:0,bottom:0};function Ti(e,t,r){for(var n,i,s,c,d,h,y=0;y<e.length;y+=3)if(d=e[y],h=e[y+1],t<d?(i=0,s=1,c="left"):t<h?(i=t-d,s=i+1):(y==e.length-3||t==h&&e[y+3]>t)&&(s=h-d,i=s-1,t>=h&&(c="right")),i!=null){if(n=e[y+2],d==h&&r==(n.insertLeft?"left":"right")&&(c=r),r=="left"&&i==0)for(;y&&e[y-2]==e[y-3]&&e[y-1].insertLeft;)n=e[(y-=3)+2],c="left";if(r=="right"&&i==h-d)for(;y<e.length-3&&e[y+3]==e[y+4]&&!e[y+5].insertLeft;)n=e[(y+=3)+2],c="right";break}return{node:n,start:i,end:s,collapse:c,coverStart:d,coverEnd:h}}function Ta(e,t){var r=ai;if(t=="left")for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function Li(e,t,r,n){var i=Ti(t.map,r,n),s=i.node,c=i.start,d=i.end,h=i.collapse,y;if(s.nodeType==3){for(var _=0;_<4;_++){for(;c&&O(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+d<i.coverEnd&&O(t.line.text.charAt(i.coverStart+d));)++d;if(k&&B<9&&c==0&&d==i.coverEnd-i.coverStart?y=s.parentNode.getBoundingClientRect():y=Ta(Ee(s,c,d).getClientRects(),n),y.left||y.right||c==0)break;d=c,c=c-1,h="right"}k&&B<11&&(y=fo(e.display.measure,y))}else{c>0&&(h=n="right");var W;e.options.lineWrapping&&(W=s.getClientRects()).length>1?y=W[n=="right"?W.length-1:0]:y=s.getBoundingClientRect()}if(k&&B<9&&!c&&(!y||!y.left&&!y.right)){var ge=s.parentNode.getClientRects()[0];ge?y={left:ge.left,right:ge.left+dn(e.display),top:ge.top,bottom:ge.bottom}:y=ai}for(var se=y.top-t.rect.top,Ne=y.bottom-t.rect.top,qe=(se+Ne)/2,We=t.view.measure.heights,Qe=0;Qe<We.length-1&&!(qe<We[Qe]);Qe++);var Je=Qe?We[Qe-1]:0,Ve=We[Qe],nt={left:(h=="right"?y.right:y.left)-t.rect.left,right:(h=="left"?y.left:y.right)-t.rect.left,top:Je,bottom:Ve};return!y.left&&!y.right&&(nt.bogus=!0),e.options.singleCursorHeightPerLine||(nt.rtop=se,nt.rbottom=Ne),nt}function fo(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!sn(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function Fi(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Yo(e){e.display.externalMeasure=null,Oe(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Fi(e.display.view[t])}function Er(e){Yo(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function po(e){return L&&z?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function R(e){return L&&z?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function ae(e){var t=Wn(e),r=t.widgets,n=0;if(r)for(var i=0;i<r.length;++i)r[i].above&&(n+=oi(r[i]));return n}function De(e,t,r,n,i){if(!i){var s=ae(t);r.top+=s,r.bottom+=s}if(n=="line")return r;n||(n="local");var c=o(t);if(n=="local"?c+=Bt(e.display):c-=e.display.viewOffset,n=="page"||n=="window"){var d=e.display.lineSpace.getBoundingClientRect();c+=d.top+(n=="window"?0:R(p(e)));var h=d.left+(n=="window"?0:po(p(e)));r.left+=h,r.right+=h}return r.top+=c,r.bottom+=c,r}function Fe(e,t,r){if(r=="div")return t;var n=t.left,i=t.top;if(r=="page")n-=po(p(e)),i-=R(p(e));else if(r=="local"||!r){var s=e.display.sizer.getBoundingClientRect();n+=s.left,i+=s.top}var c=e.display.lineSpace.getBoundingClientRect();return{left:n-c.left,top:i-c.top}}function He(e,t,r,n,i){return n||(n=st(e.doc,t.line)),De(e,n,fr(e,n,t.ch,i),r)}function Ge(e,t,r,n,i,s){n=n||st(e.doc,t.line),i||(i=rr(e,n));function c(Ne,qe){var We=En(e,i,Ne,qe?"right":"left",s);return qe?We.left=We.right:We.right=We.left,De(e,n,We,r)}var d=ue(n,e.doc.direction),h=t.ch,y=t.sticky;if(h>=n.text.length?(h=n.text.length,y="before"):h<=0&&(h=0,y="after"),!d)return c(y=="before"?h-1:h,y=="before");function _(Ne,qe,We){var Qe=d[qe],Je=Qe.level==1;return c(We?Ne-1:Ne,Je!=We)}var W=K(d,h,y),ge=H,se=_(h,W,y=="before");return ge!=null&&(se.other=_(h,ge,y!="before")),se}function tt(e,t){var r=0;t=xt(e.doc,t),e.options.lineWrapping||(r=dn(e.display)*t.ch);var n=st(e.doc,t.line),i=o(n)+Bt(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function lt(e,t,r,n,i){var s=ze(e,t,r);return s.xRel=i,n&&(s.outside=n),s}function et(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return lt(n.first,0,null,-1,-1);var i=vr(n,r),s=n.first+n.size-1;if(i>s)return lt(n.first+n.size-1,st(n,s).text.length,null,1,1);t<0&&(t=0);for(var c=st(n,i);;){var d=Ft(e,c,i,t,r),h=Ea(c,d.ch+(d.xRel>0||d.outside>0?1:0));if(!h)return d;var y=h.find(1);if(y.line==i)return y;c=st(n,i=y.line)}}function At(e,t,r,n){n-=ae(t);var i=t.text.length,s=g(function(c){return En(e,r,c-1).bottom<=n},i,0);return i=g(function(c){return En(e,r,c).top>n},s,i),{begin:s,end:i}}function yt(e,t,r,n){r||(r=rr(e,t));var i=De(e,t,En(e,r,n),"line").top;return At(e,t,r,i)}function St(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Ft(e,t,r,n,i){i-=o(t);var s=rr(e,t),c=ae(t),d=0,h=t.text.length,y=!0,_=ue(t,e.doc.direction);if(_){var W=(e.options.lineWrapping?Pt:vt)(e,t,r,s,_,n,i);y=W.level!=1,d=y?W.from:W.to-1,h=y?W.to:W.from-1}var ge=null,se=null,Ne=g(function(dt){var ft=En(e,s,dt);return ft.top+=c,ft.bottom+=c,St(ft,n,i,!1)?(ft.top<=i&&ft.left<=n&&(ge=dt,se=ft),!0):!1},d,h),qe,We,Qe=!1;if(se){var Je=n-se.left<se.right-n,Ve=Je==y;Ne=ge+(Ve?0:1),We=Ve?"after":"before",qe=Je?se.left:se.right}else{!y&&(Ne==h||Ne==d)&&Ne++,We=Ne==0?"after":Ne==t.text.length?"before":En(e,s,Ne-(y?1:0)).bottom+c<=i==y?"after":"before";var nt=Ge(e,ze(r,Ne,We),"line",t,s);qe=nt.left,Qe=i<nt.top?-1:i>=nt.bottom?1:0}return Ne=ne(t.text,Ne,1),lt(r,Ne,We,Qe,n-qe)}function vt(e,t,r,n,i,s,c){var d=g(function(W){var ge=i[W],se=ge.level!=1;return St(Ge(e,ze(r,se?ge.to:ge.from,se?"before":"after"),"line",t,n),s,c,!0)},0,i.length-1),h=i[d];if(d>0){var y=h.level!=1,_=Ge(e,ze(r,y?h.from:h.to,y?"after":"before"),"line",t,n);St(_,s,c,!0)&&_.top>c&&(h=i[d-1])}return h}function Pt(e,t,r,n,i,s,c){var d=At(e,t,n,c),h=d.begin,y=d.end;/\s/.test(t.text.charAt(y-1))&&y--;for(var _=null,W=null,ge=0;ge<i.length;ge++){var se=i[ge];if(!(se.from>=y||se.to<=h)){var Ne=se.level!=1,qe=En(e,n,Ne?Math.min(y,se.to)-1:Math.max(h,se.from)).right,We=qe<s?s-qe+1e9:qe-s;(!_||W>We)&&(_=se,W=We)}}return _||(_=i[i.length-1]),_.from<h&&(_={from:h,to:_.to,level:_.level}),_.to>y&&(_={from:_.from,to:y,level:_.level}),_}var on;function tn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(on==null){on=$("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)on.appendChild(document.createTextNode("x")),on.appendChild($("br"));on.appendChild(document.createTextNode("x"))}Be(e.measure,on);var r=on.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),Oe(e.measure),r||1}function dn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=$("span","xxxxxxxxxx"),r=$("pre",[t],"CodeMirror-line-like");Be(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Hn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,s=t.gutters.firstChild,c=0;s;s=s.nextSibling,++c){var d=e.display.gutterSpecs[c].className;r[d]=s.offsetLeft+s.clientLeft+i,n[d]=s.clientWidth}return{fixedPos:wr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function wr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function yn(e){var t=tn(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/dn(e.display)-3);return function(i){if(br(e.doc,i))return 0;var s=0;if(i.widgets)for(var c=0;c<i.widgets.length;c++)i.widgets[c].height&&(s+=i.widgets[c].height);return r?s+(Math.ceil(i.text.length/n)||1)*t:s+t}}function La(e){var t=e.doc,r=yn(e);t.iter(function(n){var i=r(n);i!=n.height&&Xn(n,i)})}function si(e,t,r,n){var i=e.display;if(!r&&zt(t).getAttribute("cm-not-content")=="true")return null;var s,c,d=i.lineSpace.getBoundingClientRect();try{s=t.clientX-d.left,c=t.clientY-d.top}catch(W){return null}var h=et(e,s,c),y;if(n&&h.xRel>0&&(y=st(e.doc,h.line).text).length==h.ch){var _=Ke(y,y.length,e.options.tabSize)-y.length;h=ze(h.line,Math.max(0,Math.round((s-_n(e.display).left)/dn(e.display))-_))}return h}function li(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;n<r.length;n++)if(t-=r[n].size,t<0)return n}function An(e,t,r,n){t==null&&(t=e.doc.first),r==null&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Yn&&ii(e.doc,t)<i.viewTo&&Wr(e);else if(r<=i.viewFrom)Yn&&Xo(e.doc,r+n)>i.viewFrom?Wr(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Wr(e);else if(t<=i.viewFrom){var s=Zo(e,r,r+n,1);s?(i.view=i.view.slice(s.index),i.viewFrom=s.lineN,i.viewTo+=n):Wr(e)}else if(r>=i.viewTo){var c=Zo(e,t,t,-1);c?(i.view=i.view.slice(0,c.index),i.viewTo=c.lineN):Wr(e)}else{var d=Zo(e,t,t,-1),h=Zo(e,r,r+n,1);d&&h?(i.view=i.view.slice(0,d.index).concat(rn(e,d.lineN,h.lineN)).concat(i.view.slice(h.index)),i.viewTo+=n):Wr(e)}var y=i.externalMeasured;y&&(r<y.lineN?y.lineN+=n:t<y.lineN+y.size&&(i.externalMeasured=null))}function $r(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var s=n.view[li(e,t)];if(s.node!=null){var c=s.changes||(s.changes=[]);Ze(c,r)==-1&&c.push(r)}}}function Wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zo(e,t,r,n){var i=li(e,t),s,c=e.display.view;if(!Yn||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var d=e.display.viewFrom,h=0;h<i;h++)d+=c[h].size;if(d!=t){if(n>0){if(i==c.length-1)return null;s=d+c[i].size-t,i++}else s=d-t;t+=s,r+=s}for(;ii(e.doc,r)!=r;){if(i==(n<0?0:c.length-1))return null;r+=n*c[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function eu(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=rn(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=rn(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(li(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(rn(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,li(e,r)))),n.viewTo=r}function ds(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];!i.hidden&&(!i.node||i.changes)&&++r}return r}function ho(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ps(e,t){t===void 0&&(t=!0);var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),s=n.selection=document.createDocumentFragment(),c=e.options.$customCursor;c&&(t=!0);for(var d=0;d<r.sel.ranges.length;d++)if(!(!t&&d==r.sel.primIndex)){var h=r.sel.ranges[d];if(!(h.from().line>=e.display.viewTo||h.to().line<e.display.viewFrom)){var y=h.empty();if(c){var _=c(e,h);_&&Fa(e,_,i)}else(y||e.options.showCursorWhenSelecting)&&Fa(e,h.head,i);y||tu(e,h,s)}}return n}function Fa(e,t,r){var n=Ge(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild($("div","\xA0","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var s=He(e,t,"div",null,null),c=s.right-s.left;i.style.width=(c>0?c:e.defaultCharWidth())+"px"}if(n.other){var d=r.appendChild($("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));d.style.display="",d.style.left=n.other.left+"px",d.style.top=n.other.top+"px",d.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function Qo(e,t){return e.top-t.top||e.left-t.left}function tu(e,t,r){var n=e.display,i=e.doc,s=document.createDocumentFragment(),c=_n(e.display),d=c.left,h=Math.max(n.sizerWidth,Dr(e)-n.sizer.offsetLeft)-c.right,y=i.direction=="ltr";function _(Ve,nt,dt,ft){nt<0&&(nt=0),nt=Math.round(nt),ft=Math.round(ft),s.appendChild($("div",null,"CodeMirror-selected","position: absolute; left: "+Ve+`px;
38
+ top: `+nt+"px; width: "+(dt==null?h-Ve:dt)+`px;
39
+ height: `+(ft-nt)+"px"))}function W(Ve,nt,dt){var ft=st(i,Ve),Dt=ft.text.length,Rt,gn;function Zt(ln,Fn){return He(e,ze(Ve,ln),"div",ft,Fn)}function Rn(ln,Fn,bn){var cn=yt(e,ft,null,ln),un=Fn=="ltr"==(bn=="after")?"left":"right",nn=bn=="after"?cn.begin:cn.end-(/\s/.test(ft.text.charAt(cn.end-1))?2:1);return Zt(nn,un)[un]}var Ln=ue(ft,i.direction);return F(Ln,nt||0,dt==null?Dt:dt,function(ln,Fn,bn,cn){var un=bn=="ltr",nn=Zt(ln,un?"left":"right"),Mn=Zt(Fn-1,un?"right":"left"),Wi=nt==null&&ln==0,Yr=dt==null&&Fn==Dt,Sn=cn==0,Sr=!Ln||cn==Ln.length-1;if(Mn.top-nn.top<=3){var vn=(y?Wi:Yr)&&Sn,rs=(y?Yr:Wi)&&Sr,Lr=vn?d:(un?nn:Mn).left,pi=rs?h:(un?Mn:nn).right;_(Lr,nn.top,pi-Lr,nn.bottom)}else{var hi,Dn,ji,is;un?(hi=y&&Wi&&Sn?d:nn.left,Dn=y?h:Rn(ln,bn,"before"),ji=y?d:Rn(Fn,bn,"after"),is=y&&Yr&&Sr?h:Mn.right):(hi=y?Rn(ln,bn,"before"):d,Dn=!y&&Wi&&Sn?h:nn.right,ji=!y&&Yr&&Sr?d:Mn.left,is=y?Rn(Fn,bn,"after"):h),_(hi,nn.top,Dn-hi,nn.bottom),nn.bottom<Mn.top&&_(d,nn.bottom,null,Mn.top),_(ji,Mn.top,is-ji,Mn.bottom)}(!Rt||Qo(nn,Rt)<0)&&(Rt=nn),Qo(Mn,Rt)<0&&(Rt=Mn),(!gn||Qo(nn,gn)<0)&&(gn=nn),Qo(Mn,gn)<0&&(gn=Mn)}),{start:Rt,end:gn}}var ge=t.from(),se=t.to();if(ge.line==se.line)W(ge.line,ge.ch,se.ch);else{var Ne=st(i,ge.line),qe=st(i,se.line),We=Wn(Ne)==Wn(qe),Qe=W(ge.line,ge.ch,We?Ne.text.length+1:null).end,Je=W(se.line,We?0:null,se.ch).start;We&&(Qe.top<Je.top-2?(_(Qe.right,Qe.top,null,Qe.bottom),_(d,Je.top,Je.left,Je.bottom)):_(Qe.right,Qe.top,Je.left-Qe.right,Qe.bottom)),Qe.bottom<Je.top&&_(d,Qe.bottom,null,Je.top)}r.appendChild(s)}function Ma(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Mi(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function hs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Oa(e))}function Na(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Mi(e))},100)}function Oa(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(je(e,"focus",e,t),e.state.focused=!0,ke(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),N&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ma(e))}function Mi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(je(e,"blur",e,t),e.state.focused=!1,we(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Vo(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,s=0,c=0;c<t.view.length;c++){var d=t.view[c],h=e.options.lineWrapping,y=void 0,_=0;if(!d.hidden){if(i+=d.line.height,k&&B<8){var W=d.node.offsetTop+d.node.offsetHeight;y=W-r,r=W}else{var ge=d.node.getBoundingClientRect();y=ge.bottom-ge.top,!h&&d.text.firstChild&&(_=d.text.firstChild.getBoundingClientRect().right-ge.left-1)}var se=d.line.height-y;if((se>.005||se<-.005)&&(i<n&&(s-=se),Xn(d.line,y),gs(d.line),d.rest))for(var Ne=0;Ne<d.rest.length;Ne++)gs(d.rest[Ne]);if(_>e.display.sizerWidth){var qe=Math.ceil(_/dn(e.display));qe>e.display.maxLineLength&&(e.display.maxLineLength=qe,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}Math.abs(s)>2&&(t.scroller.scrollTop+=s)}function gs(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Jo(e,t,r){var n=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Bt(e));var i=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,s=vr(t,n),c=vr(t,i);if(r&&r.ensure){var d=r.ensure.from.line,h=r.ensure.to.line;d<s?(s=d,c=vr(t,o(st(t,d))+e.wrapper.clientHeight)):Math.min(h,t.lastLine())>=c&&(s=vr(t,o(st(t,h))-e.wrapper.clientHeight),c=h)}return{from:s,to:Math.max(c,s+1)}}function nu(e,t){if(!Ye(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,s=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(s.defaultView.innerHeight||s.documentElement.clientHeight)&&(i=!1),i!=null&&!he){var c=$("div","\u200B",null,`position: absolute;
40
+ top: `+(t.top-r.viewOffset-Bt(e.display))+`px;
41
+ height: `+(t.bottom-t.top+xn(e)+r.barHeight)+`px;
42
+ left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(c),c.scrollIntoView(i),e.display.lineSpace.removeChild(c)}}}function ru(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(r=t.sticky=="before"?ze(t.line,t.ch+1,"before"):t,t=t.ch?ze(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var s=0;s<5;s++){var c=!1,d=Ge(e,t),h=!r||r==t?d:Ge(e,r);i={left:Math.min(d.left,h.left),top:Math.min(d.top,h.top)-n,right:Math.max(d.left,h.left),bottom:Math.max(d.bottom,h.bottom)+n};var y=Ba(e,i),_=e.doc.scrollTop,W=e.doc.scrollLeft;if(y.scrollTop!=null&&(vo(e,y.scrollTop),Math.abs(e.doc.scrollTop-_)>1&&(c=!0)),y.scrollLeft!=null&&(ui(e,y.scrollLeft),Math.abs(e.doc.scrollLeft-W)>1&&(c=!0)),!c)break}return i}function iu(e,t){var r=Ba(e,t);r.scrollTop!=null&&vo(e,r.scrollTop),r.scrollLeft!=null&&ui(e,r.scrollLeft)}function Ba(e,t){var r=e.display,n=tn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,s=uo(e),c={};t.bottom-t.top>s&&(t.bottom=t.top+s);var d=e.doc.height+zr(r),h=t.top<n,y=t.bottom>d-n;if(t.top<i)c.scrollTop=h?0:t.top;else if(t.bottom>i+s){var _=Math.min(t.top,(y?d:t.bottom)-s);_!=i&&(c.scrollTop=_)}var W=e.options.fixedGutter?0:r.gutters.offsetWidth,ge=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-W,se=Dr(e)-r.gutters.offsetWidth,Ne=t.right-t.left>se;return Ne&&(t.right=t.left+se),t.left<10?c.scrollLeft=0:t.left<ge?c.scrollLeft=Math.max(0,t.left+W-(Ne?0:10)):t.right>se+ge-3&&(c.scrollLeft=t.right+(Ne?0:10)-se),c}function Ia(e,t){t!=null&&(ea(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ni(e){ea(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function go(e,t,r){(t!=null||r!=null)&&ea(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function ou(e,t){ea(e),e.curOp.scrollToPos=t}function ea(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=tt(e,t.from),n=tt(e,t.to);vs(e,r,n,t.margin)}}function vs(e,t,r,n){var i=Ba(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});go(e,i.scrollLeft,i.scrollTop)}function vo(e,t){Math.abs(e.doc.scrollTop-t)<2||(b||Ha(e,{top:t}),ms(e,t,!0),b&&Ha(e),bo(e,100))}function ms(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function ui(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function mo(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+zr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+xn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var ci=function(e,t,r){this.cm=r;var n=this.vert=$("div",[$("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=$("div",[$("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),I(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),I(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,k&&B<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ci.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var s=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+s)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},ci.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ci.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ci.prototype.zeroWidthHack=function(){var e=G&&!oe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ot,this.disableVert=new ot},ci.prototype.enableZeroWidthBar=function(e,t,r){e.style.visibility="";function n(){var i=e.getBoundingClientRect(),s=r=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);s!=e?e.style.visibility="hidden":t.set(1e3,n)}t.set(1e3,n)},ci.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var yo=function(){};yo.prototype.update=function(){return{bottom:0,right:0}},yo.prototype.setScrollLeft=function(){},yo.prototype.setScrollTop=function(){},yo.prototype.clear=function(){};function Oi(e,t){t||(t=mo(e));var r=e.display.barWidth,n=e.display.barHeight;ys(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Vo(e),ys(e,mo(e)),r=e.display.barWidth,n=e.display.barHeight}function ys(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var bs={native:ci,null:yo};function xs(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&we(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),I(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?ui(e,t):vo(e,t)},e),e.display.scrollbars.addClass&&ke(e.display.wrapper,e.display.scrollbars.addClass)}var au=0;function fi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++au,markArrays:null},Zn(e.curOp)}function di(e){var t=e.curOp;t&&Mt(t,function(r){for(var n=0;n<r.ops.length;n++)r.ops[n].cm.curOp=null;su(r)})}function su(e){for(var t=e.ops,r=0;r<t.length;r++)lu(t[r]);for(var n=0;n<t.length;n++)uu(t[n]);for(var i=0;i<t.length;i++)cu(t[i]);for(var s=0;s<t.length;s++)fu(t[s]);for(var c=0;c<t.length;c++)du(t[c])}function lu(e){var t=e.cm,r=t.display;hu(t),e.updateMaxLine&&u(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ta(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function uu(e){e.updatedDisplay=e.mustUpdate&&_a(e.cm,e.update)}function cu(e){var t=e.cm,r=t.display;e.updatedDisplay&&Vo(t),e.barMeasure=mo(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=fr(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+xn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Dr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function fu(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&ui(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==ce(P(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Oi(t,e.barMeasure),e.updatedDisplay&&Ra(t,e.barMeasure),e.selectionChanged&&Ma(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&hs(e.cm)}function du(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&ws(t,e.update),r.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(r.wheelStartX=r.wheelStartY=null),e.scrollTop!=null&&ms(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&ui(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=ru(t,xt(n,e.scrollToPos.from),xt(n,e.scrollToPos.to),e.scrollToPos.margin);nu(t,i)}var s=e.maybeHiddenMarkers,c=e.maybeUnhiddenMarkers;if(s)for(var d=0;d<s.length;++d)s[d].lines.length||je(s[d],"hide");if(c)for(var h=0;h<c.length;++h)c[h].lines.length&&je(c[h],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&je(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Pn(e,t){if(e.curOp)return t();fi(e);try{return t()}finally{di(e)}}function pn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);fi(e);try{return t.apply(e,arguments)}finally{di(e)}}}function Cn(e){return function(){if(this.curOp)return e.apply(this,arguments);fi(this);try{return e.apply(this,arguments)}finally{di(this)}}}function hn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);fi(t);try{return e.apply(this,arguments)}finally{di(t)}}}function bo(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Pe(pu,e))}function pu(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=sr(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(s){if(n.line>=e.display.viewFrom){var c=s.styles,d=s.text.length>e.options.maxHighlightLength?$n(t.mode,n.state):null,h=Bn(e,s,n,!0);d&&(n.state=d),s.styles=h.styles;var y=s.styleClasses,_=h.classes;_?s.styleClasses=_:y&&(s.styleClasses=null);for(var W=!c||c.length!=s.styles.length||y!=_&&(!y||!_||y.bgClass!=_.bgClass||y.textClass!=_.textClass),ge=0;!W&&ge<c.length;++ge)W=c[ge]!=s.styles[ge];W&&i.push(n.line),s.stateAfter=n.save(),n.nextLine()}else s.text.length<=e.options.maxHighlightLength&&Ji(e,s.text,n),s.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return bo(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Pn(e,function(){for(var s=0;s<i.length;s++)$r(e,i[s],"text")})}}var ta=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Jo(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Dr(e),this.force=r,this.dims=Hn(e),this.events=[]};ta.prototype.signal=function(e,t){it(e,t)&&this.events.push(arguments)},ta.prototype.finish=function(){for(var e=0;e<this.events.length;e++)je.apply(null,this.events[e])};function hu(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=xn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=xn(e)+"px",t.scrollbarsClipped=!0)}function gu(e){if(e.hasFocus())return null;var t=ce(P(e));if(!t||!q(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=Ce(e).getSelection();n.anchorNode&&n.extend&&q(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function vu(e){if(!(!e||!e.activeElt||e.activeElt==ce(me(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&q(document.body,e.anchorNode)&&q(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,r=t.defaultView.getSelection(),n=t.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),r.removeAllRanges(),r.addRange(n),r.extend(e.focusNode,e.focusOffset)}}function _a(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return Wr(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&ds(e)==0)return!1;ks(e)&&(Wr(e),t.dims=Hn(e));var i=n.first+n.size,s=Math.max(t.visible.from-e.options.viewportMargin,n.first),c=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<s&&s-r.viewFrom<20&&(s=Math.max(n.first,r.viewFrom)),r.viewTo>c&&r.viewTo-c<20&&(c=Math.min(i,r.viewTo)),Yn&&(s=ii(e.doc,s),c=Xo(e.doc,c));var d=s!=r.viewFrom||c!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;eu(e,s,c),r.viewOffset=o(st(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var h=ds(e);if(!d&&h==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var y=gu(e);return h>4&&(r.lineDiv.style.display="none"),mu(e,r.updateLineNumbers,t.dims),h>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,vu(y),Oe(r.cursorDiv),Oe(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,d&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,bo(e,400)),r.updateLineNumbers=null,!0}function ws(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Dr(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+zr(e.display)-uo(e),r.top)}),t.visible=Jo(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Jo(e.display,e.doc,r));if(!_a(e,t))break;Vo(e);var i=mo(e);ho(e),Oi(e,i),Ra(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 Ha(e,t){var r=new ta(e,t);if(_a(e,r)){Vo(e),ws(e,r);var n=mo(e);ho(e),Oi(e,n),Ra(e,n),r.finish()}}function mu(e,t,r){var n=e.display,i=e.options.lineNumbers,s=n.lineDiv,c=s.firstChild;function d(Ne){var qe=Ne.nextSibling;return N&&G&&e.display.currentWheelTarget==Ne?Ne.style.display="none":Ne.parentNode.removeChild(Ne),qe}for(var h=n.view,y=n.viewFrom,_=0;_<h.length;_++){var W=h[_];if(!W.hidden)if(!W.node||W.node.parentNode!=s){var ge=lo(e,W,y,r);s.insertBefore(ge,c)}else{for(;c!=W.node;)c=d(c);var se=i&&t!=null&&t<=y&&W.lineNumber;W.changes&&(Ze(W.changes,"gutter")>-1&&(se=!1),Rr(e,W,y,r)),se&&(Oe(W.lineNumber),W.lineNumber.appendChild(document.createTextNode(Jr(e.options,y)))),c=W.node.nextSibling}y+=W.size}for(;c;)c=d(c)}function Pa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",mt(e,"gutterChanged",e)}function Ra(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+xn(e)+"px"}function Ss(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=wr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,s=n+"px",c=0;c<r.length;c++)if(!r[c].hidden){e.options.fixedGutter&&(r[c].gutter&&(r[c].gutter.style.left=s),r[c].gutterBackground&&(r[c].gutterBackground.style.left=s));var d=r[c].alignable;if(d)for(var h=0;h<d.length;h++)d[h].style.left=s}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function ks(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=Jr(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild($("div",[$("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),s=i.firstChild.offsetWidth,c=i.offsetWidth-s;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(s,n.lineGutter.offsetWidth-c)+1,n.lineNumWidth=n.lineNumInnerWidth+c,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Pa(e.display),!0}return!1}function qa(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var s=e[i],c=null;if(typeof s!="string"&&(c=s.style,s=s.className),s=="CodeMirror-linenumbers")if(t)n=!0;else continue;r.push({className:s,style:c})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function Cs(e){var t=e.gutters,r=e.gutterSpecs;Oe(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],s=i.className,c=i.style,d=t.appendChild($("div",null,"CodeMirror-gutter "+s));c&&(d.style.cssText=c),s=="CodeMirror-linenumbers"&&(e.lineGutter=d,d.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",Pa(e)}function xo(e){Cs(e.display),An(e),Ss(e)}function yu(e,t,r,n){var i=this;this.input=r,i.scrollbarFiller=$("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=$("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=Le("div",null,"CodeMirror-code"),i.selectionDiv=$("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=$("div",null,"CodeMirror-cursors"),i.measure=$("div",null,"CodeMirror-measure"),i.lineMeasure=$("div",null,"CodeMirror-measure"),i.lineSpace=Le("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var s=Le("div",[i.lineSpace],"CodeMirror-lines");i.mover=$("div",[s],null,"position: relative"),i.sizer=$("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=$("div",null,null,"position: absolute; height: "+pt+"px; width: 1px;"),i.gutters=$("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=$("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=$("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),L&&pe===105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),k&&B<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!N&&!(b&&Z)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=qa(n.gutters,n.lineNumbers),Cs(i),r.init(i)}var na=0,Ar=null;k?Ar=-.53:b?Ar=15:L?Ar=-.7:ie&&(Ar=-1/3);function Ds(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function bu(e){var t=Ds(e);return t.x*=Ar,t.y*=Ar,t}function Es(e,t){L&&pe==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=Ds(t),n=r.x,i=r.y,s=Ar;t.deltaMode===0&&(n=t.deltaX,i=t.deltaY,s=1);var c=e.display,d=c.scroller,h=d.scrollWidth>d.clientWidth,y=d.scrollHeight>d.clientHeight;if(n&&h||i&&y){if(i&&G&&N){e:for(var _=t.target,W=c.view;_!=d;_=_.parentNode)for(var ge=0;ge<W.length;ge++)if(W[ge].node==_){e.display.currentWheelTarget=_;break e}}if(n&&!b&&!fe&&s!=null){i&&y&&vo(e,Math.max(0,d.scrollTop+i*s)),ui(e,Math.max(0,d.scrollLeft+n*s)),(!i||i&&y)&&at(t),c.wheelStartX=null;return}if(i&&s!=null){var se=i*s,Ne=e.doc.scrollTop,qe=Ne+c.wrapper.clientHeight;se<0?Ne=Math.max(0,Ne+se-50):qe=Math.min(e.doc.height,qe+se+50),Ha(e,{top:Ne,bottom:qe})}na<20&&t.deltaMode!==0&&(c.wheelStartX==null?(c.wheelStartX=d.scrollLeft,c.wheelStartY=d.scrollTop,c.wheelDX=n,c.wheelDY=i,setTimeout(function(){if(c.wheelStartX!=null){var We=d.scrollLeft-c.wheelStartX,Qe=d.scrollTop-c.wheelStartY,Je=Qe&&c.wheelDY&&Qe/c.wheelDY||We&&c.wheelDX&&We/c.wheelDX;c.wheelStartX=c.wheelStartY=null,Je&&(Ar=(Ar*na+Je)/(na+1),++na)}},200)):(c.wheelDX+=n,c.wheelDY+=i))}}var Un=function(e,t){this.ranges=e,this.primIndex=t};Un.prototype.primary=function(){return this.ranges[this.primIndex]},Un.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!mr(r.anchor,n.anchor)||!mr(r.head,n.head))return!1}return!0},Un.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new _t(Ir(this.ranges[t].anchor),Ir(this.ranges[t].head));return new Un(e,this.primIndex)},Un.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Un.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(ct(t,n.from())>=0&&ct(e,n.to())<=0)return r}return-1};var _t=function(e,t){this.anchor=e,this.head=t};_t.prototype.from=function(){return wi(this.anchor,this.head)},_t.prototype.to=function(){return xi(this.anchor,this.head)},_t.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function dr(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(ge,se){return ct(ge.from(),se.from())}),r=Ze(t,i);for(var s=1;s<t.length;s++){var c=t[s],d=t[s-1],h=ct(d.to(),c.from());if(n&&!c.empty()?h>0:h>=0){var y=wi(d.from(),c.from()),_=xi(d.to(),c.to()),W=d.empty()?c.from()==c.head:d.from()==d.head;s<=r&&--r,t.splice(--s,2,new _t(W?_:y,W?y:_))}}return new Un(t,r)}function jr(e,t){return new Un([new _t(e,t||e)],0)}function Ur(e){return e.text?ze(e.from.line+e.text.length-1,bt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function As(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return Ur(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Ur(t).ch-t.to.ch),ze(r,n)}function za(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new _t(As(i.anchor,t),As(i.head,t)))}return dr(e.cm,r,e.sel.primIndex)}function Ts(e,t,r){return e.line==t.line?ze(r.line,e.ch-t.ch+r.ch):ze(r.line+(e.line-t.line),e.ch)}function xu(e,t,r){for(var n=[],i=ze(e.first,0),s=i,c=0;c<t.length;c++){var d=t[c],h=Ts(d.from,i,s),y=Ts(Ur(d),i,s);if(i=d.to,s=y,r=="around"){var _=e.sel.ranges[c],W=ct(_.head,_.anchor)<0;n[c]=new _t(W?y:h,W?h:y)}else n[c]=new _t(h,h)}return new Un(n,e.sel.primIndex)}function $a(e){e.doc.mode=or(e.options,e.doc.modeOption),wo(e)}function wo(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,bo(e,100),e.state.modeGen++,e.curOp&&An(e)}function Ls(e,t){return t.from.ch==0&&t.to.ch==0&&bt(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Wa(e,t,r,n){function i(Je){return r?r[Je]:null}function s(Je,Ve,nt){v(Je,Ve,nt,n),mt(Je,"change",Je,t)}function c(Je,Ve){for(var nt=[],dt=Je;dt<Ve;++dt)nt.push(new f(y[dt],i(dt),n));return nt}var d=t.from,h=t.to,y=t.text,_=st(e,d.line),W=st(e,h.line),ge=bt(y),se=i(y.length-1),Ne=h.line-d.line;if(t.full)e.insert(0,c(0,y.length)),e.remove(y.length,e.size-y.length);else if(Ls(e,t)){var qe=c(0,y.length-1);s(W,W.text,se),Ne&&e.remove(d.line,Ne),qe.length&&e.insert(d.line,qe)}else if(_==W)if(y.length==1)s(_,_.text.slice(0,d.ch)+ge+_.text.slice(h.ch),se);else{var We=c(1,y.length-1);We.push(new f(ge+_.text.slice(h.ch),se,n)),s(_,_.text.slice(0,d.ch)+y[0],i(0)),e.insert(d.line+1,We)}else if(y.length==1)s(_,_.text.slice(0,d.ch)+y[0]+W.text.slice(h.ch),i(0)),e.remove(d.line+1,Ne);else{s(_,_.text.slice(0,d.ch)+y[0],i(0)),s(W,ge+W.text.slice(h.ch),se);var Qe=c(1,y.length-1);Ne>1&&e.remove(d.line+1,Ne-1),e.insert(d.line+1,Qe)}mt(e,"change",e,t)}function Gr(e,t,r){function n(i,s,c){if(i.linked)for(var d=0;d<i.linked.length;++d){var h=i.linked[d];if(h.doc!=s){var y=c&&h.sharedHist;r&&!y||(t(h.doc,y),n(h.doc,i,y))}}}n(e,null,!0)}function Fs(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,La(e),$a(e),Ms(e),e.options.direction=t.direction,e.options.lineWrapping||u(e),e.options.mode=t.modeOption,An(e)}function Ms(e){(e.doc.direction=="rtl"?ke:we)(e.display.lineDiv,"CodeMirror-rtl")}function wu(e){Pn(e,function(){Ms(e),An(e)})}function ra(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ja(e,t){var r={from:Ir(t.from),to:Ur(t),text:kr(e,t.from,t.to)};return Bs(e,r,t.from.line,t.to.line+1),Gr(e,function(n){return Bs(n,r,t.from.line,t.to.line+1)},!0),r}function Ns(e){for(;e.length;){var t=bt(e);if(t.ranges)e.pop();else break}}function Su(e,t){if(t)return Ns(e.done),bt(e.done);if(e.done.length&&!bt(e.done).ranges)return bt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),bt(e.done)}function Os(e,t,r,n){var i=e.history;i.undone.length=0;var s=+new Date,c,d;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(c=Su(i,i.lastOp==n)))d=bt(c.changes),ct(t.from,t.to)==0&&ct(t.from,d.to)==0?d.to=Ur(t):c.changes.push(ja(e,t));else{var h=bt(i.done);for((!h||!h.ranges)&&ia(e.sel,i.done),c={changes:[ja(e,t)],generation:i.generation},i.done.push(c);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,d||je(e,"historyAdded")}function ku(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Cu(e,t,r,n){var i=e.history,s=n&&n.origin;r==i.lastSelOp||s&&i.lastSelOrigin==s&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==s||ku(e,s,bt(i.done),t))?i.done[i.done.length-1]=t:ia(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=s,i.lastSelOp=r,n&&n.clearRedo!==!1&&Ns(i.undone)}function ia(e,t){var r=bt(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Bs(e,t,r,n){var i=t["spans_"+e.id],s=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(c){c.markedSpans&&((i||(i=t["spans_"+e.id]={}))[s]=c.markedSpans),++s})}function Du(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Eu(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Du(r[i]));return n}function Is(e,t){var r=Eu(e,t),n=ro(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var s=r[i],c=n[i];if(s&&c)e:for(var d=0;d<c.length;++d){for(var h=c[d],y=0;y<s.length;++y)if(s[y].marker==h.marker)continue e;s.push(h)}else c&&(r[i]=c)}return r}function Bi(e,t,r){for(var n=[],i=0;i<e.length;++i){var s=e[i];if(s.ranges){n.push(r?Un.prototype.deepCopy.call(s):s);continue}var c=s.changes,d=[];n.push({changes:d});for(var h=0;h<c.length;++h){var y=c[h],_=void 0;if(d.push({from:y.from,to:y.to,text:y.text}),t)for(var W in y)(_=W.match(/^spans_(\d+)$/))&&Ze(t,Number(_[1]))>-1&&(bt(d)[W]=y[W],delete y[W])}}return n}function Ua(e,t,r,n){if(n){var i=e.anchor;if(r){var s=ct(t,i)<0;s!=ct(r,i)<0?(i=t,t=r):s!=ct(t,r)<0&&(t=r)}return new _t(i,t)}else return new _t(r||t,t)}function oa(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),wn(e,new Un([Ua(e.sel.primary(),t,r,i)],0),n)}function _s(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),s=0;s<e.sel.ranges.length;s++)n[s]=Ua(e.sel.ranges[s],t[s],null,i);var c=dr(e.cm,n,e.sel.primIndex);wn(e,c,r)}function Ga(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,wn(e,dr(e.cm,i,e.sel.primIndex),n)}function Hs(e,t,r,n){wn(e,jr(t,r),n)}function Au(e,t,r){var n={ranges:t.ranges,update:function(i){this.ranges=[];for(var s=0;s<i.length;s++)this.ranges[s]=new _t(xt(e,i[s].anchor),xt(e,i[s].head))},origin:r&&r.origin};return je(e,"beforeSelectionChange",e,n),e.cm&&je(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?dr(e.cm,n.ranges,n.ranges.length-1):t}function Ps(e,t,r){var n=e.history.done,i=bt(n);i&&i.ranges?(n[n.length-1]=t,aa(e,t,r)):wn(e,t,r)}function wn(e,t,r){aa(e,t,r),Cu(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function aa(e,t,r){(it(e,"beforeSelectionChange")||e.cm&&it(e.cm,"beforeSelectionChange"))&&(t=Au(e,t,r));var n=r&&r.bias||(ct(t.primary().head,e.sel.primary().head)<0?-1:1);Rs(e,zs(e,t,n,!0)),!(r&&r.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Ni(e.cm)}function Rs(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ut(e.cm)),mt(e,"cursorActivity",e))}function qs(e){Rs(e,zs(e,e.sel,null,!1))}function zs(e,t,r,n){for(var i,s=0;s<t.ranges.length;s++){var c=t.ranges[s],d=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[s],h=sa(e,c.anchor,d&&d.anchor,r,n),y=c.head==c.anchor?h:sa(e,c.head,d&&d.head,r,n);(i||h!=c.anchor||y!=c.head)&&(i||(i=t.ranges.slice(0,s)),i[s]=new _t(h,y))}return i?dr(e.cm,i,t.primIndex):t}function Ii(e,t,r,n,i){var s=st(e,t.line);if(s.markedSpans)for(var c=0;c<s.markedSpans.length;++c){var d=s.markedSpans[c],h=d.marker,y="selectLeft"in h?!h.selectLeft:h.inclusiveLeft,_="selectRight"in h?!h.selectRight:h.inclusiveRight;if((d.from==null||(y?d.from<=t.ch:d.from<t.ch))&&(d.to==null||(_?d.to>=t.ch:d.to>t.ch))){if(i&&(je(h,"beforeCursorEnter"),h.explicitlyCleared))if(s.markedSpans){--c;continue}else break;if(!h.atomic)continue;if(r){var W=h.find(n<0?1:-1),ge=void 0;if((n<0?_:y)&&(W=$s(e,W,-n,W&&W.line==t.line?s:null)),W&&W.line==t.line&&(ge=ct(W,r))&&(n<0?ge<0:ge>0))return Ii(e,W,t,n,i)}var se=h.find(n<0?-1:1);return(n<0?y:_)&&(se=$s(e,se,n,se.line==t.line?s:null)),se?Ii(e,se,t,n,i):null}}return t}function sa(e,t,r,n,i){var s=n||1,c=Ii(e,t,r,s,i)||!i&&Ii(e,t,r,s,!0)||Ii(e,t,r,-s,i)||!i&&Ii(e,t,r,-s,!0);return c||(e.cantEdit=!0,ze(e.first,0))}function $s(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?xt(e,ze(t.line-1)):null:r>0&&t.ch==(n||st(e,t.line)).text.length?t.line<e.first+e.size-1?ze(t.line+1,0):null:new ze(t.line,t.ch+r)}function Ws(e){e.setSelection(ze(e.firstLine(),0),ze(e.lastLine()),Tt)}function js(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(i,s,c,d){i&&(n.from=xt(e,i)),s&&(n.to=xt(e,s)),c&&(n.text=c),d!==void 0&&(n.origin=d)}),je(e,"beforeChange",e,n),e.cm&&je(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function _i(e,t,r){if(e.cm){if(!e.cm.curOp)return pn(e.cm,_i)(e,t,r);if(e.cm.state.suppressEdits)return}if(!((it(e,"beforeChange")||e.cm&&it(e.cm,"beforeChange"))&&(t=js(e,t,!0),!t))){var n=to&&!r&&Da(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)Us(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else Us(e,t)}}function Us(e,t){if(!(t.text.length==1&&t.text[0]==""&&ct(t.from,t.to)==0)){var r=za(e,t);Os(e,t,r,e.cm?e.cm.curOp.id:NaN),So(e,t,r,ro(e,t));var n=[];Gr(e,function(i,s){!s&&Ze(n,i.history)==-1&&(Ys(i.history,t),n.push(i.history)),So(i,t,null,ro(i,t))})}}function la(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,s,c=e.sel,d=t=="undo"?i.done:i.undone,h=t=="undo"?i.undone:i.done,y=0;y<d.length&&(s=d[y],!(r?s.ranges&&!s.equals(e.sel):!s.ranges));y++);if(y!=d.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(s=d.pop(),s.ranges){if(ia(s,h),r&&!s.equals(e.sel)){wn(e,s,{clearRedo:!1});return}c=s}else if(n){d.push(s);return}else break;var _=[];ia(c,h),h.push({changes:_,generation:i.generation}),i.generation=s.generation||++i.maxGeneration;for(var W=it(e,"beforeChange")||e.cm&&it(e.cm,"beforeChange"),ge=function(qe){var We=s.changes[qe];if(We.origin=t,W&&!js(e,We,!1))return d.length=0,{};_.push(ja(e,We));var Qe=qe?za(e,We):bt(d);So(e,We,Qe,Is(e,We)),!qe&&e.cm&&e.cm.scrollIntoView({from:We.from,to:Ur(We)});var Je=[];Gr(e,function(Ve,nt){!nt&&Ze(Je,Ve.history)==-1&&(Ys(Ve.history,We),Je.push(Ve.history)),So(Ve,We,null,Is(Ve,We))})},se=s.changes.length-1;se>=0;--se){var Ne=ge(se);if(Ne)return Ne.v}}}}function Gs(e,t){if(t!=0&&(e.first+=t,e.sel=new Un(mn(e.sel.ranges,function(i){return new _t(ze(i.anchor.line+t,i.anchor.ch),ze(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){An(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)$r(e.cm,n,"gutter")}}function So(e,t,r,n){if(e.cm&&!e.cm.curOp)return pn(e.cm,So)(e,t,r,n);if(t.to.line<e.first){Gs(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Gs(e,i),t={from:ze(e.first,0),to:ze(t.to.line+i,t.to.ch),text:[bt(t.text)],origin:t.origin}}var s=e.lastLine();t.to.line>s&&(t={from:t.from,to:ze(s,st(e,s).text.length),text:[t.text[0]],origin:t.origin}),t.removed=kr(e,t.from,t.to),r||(r=za(e,t)),e.cm?Tu(e.cm,t,n):Wa(e,t,n),aa(e,r,Tt),e.cantEdit&&sa(e,ze(e.firstLine(),0))&&(e.cantEdit=!1)}}function Tu(e,t,r){var n=e.doc,i=e.display,s=t.from,c=t.to,d=!1,h=s.line;e.options.lineWrapping||(h=It(Wn(st(n,s.line))),n.iter(h,c.line+1,function(se){if(se==i.maxLine)return d=!0,!0})),n.sel.contains(t.from,t.to)>-1&&ut(e),Wa(n,t,r,yn(e)),e.options.lineWrapping||(n.iter(h,s.line+t.text.length,function(se){var Ne=a(se);Ne>i.maxLineLength&&(i.maxLine=se,i.maxLineLength=Ne,i.maxLineChanged=!0,d=!1)}),d&&(e.curOp.updateMaxLine=!0)),eo(n,s.line),bo(e,400);var y=t.text.length-(c.line-s.line)-1;t.full?An(e):s.line==c.line&&t.text.length==1&&!Ls(e.doc,t)?$r(e,s.line,"text"):An(e,s.line,c.line+1,y);var _=it(e,"changes"),W=it(e,"change");if(W||_){var ge={from:s,to:c,text:t.text,removed:t.removed,origin:t.origin};W&&mt(e,"change",e,ge),_&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ge)}e.display.selForContextMenu=null}function Hi(e,t,r,n,i){var s;n||(n=r),ct(n,r)<0&&(s=[n,r],r=s[0],n=s[1]),typeof t=="string"&&(t=e.splitLines(t)),_i(e,{from:r,to:n,text:t,origin:i})}function Xs(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Ks(e,t,r,n){for(var i=0;i<e.length;++i){var s=e[i],c=!0;if(s.ranges){s.copied||(s=e[i]=s.deepCopy(),s.copied=!0);for(var d=0;d<s.ranges.length;d++)Xs(s.ranges[d].anchor,t,r,n),Xs(s.ranges[d].head,t,r,n);continue}for(var h=0;h<s.changes.length;++h){var y=s.changes[h];if(r<y.from.line)y.from=ze(y.from.line+n,y.from.ch),y.to=ze(y.to.line+n,y.to.ch);else if(t<=y.to.line){c=!1;break}}c||(e.splice(0,i+1),i=0)}}function Ys(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;Ks(e.done,r,n,i),Ks(e.undone,r,n,i)}function ko(e,t,r,n){var i=t,s=t;return typeof t=="number"?s=st(e,Si(e,t)):i=It(t),i==null?null:(n(s,i)&&e.cm&&$r(e.cm,i,r),s)}function Co(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}Co.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,m(i),mt(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}};function Do(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}Do.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var s=Math.min(t,i-e),c=n.height;if(n.removeInner(e,s),this.height-=c-n.height,i==s&&(this.children.splice(r--,1),n.parent=null),(t-=s)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Co))){var d=[];this.collapse(d),this.children=[new Co(d)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],s=i.chunkSize();if(e<=s){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var c=i.lines.length%25+25,d=c;d<i.lines.length;){var h=new Co(i.lines.slice(d,d+=25));i.height-=h.height,this.children.splice(++n,0,h),h.parent=this}i.lines=i.lines.slice(0,c),this.maybeSpill()}break}e-=s}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),r=new Do(t);if(e.parent){e.size-=r.size,e.height-=r.height;var i=Ze(e.parent.children,e);e.parent.children.splice(i+1,0,r)}else{var n=new Do(e.children);n.parent=e,e.children=[n,r],e=n}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],s=i.chunkSize();if(e<s){var c=Math.min(t,s-e);if(i.iterN(e,c,r))return!0;if((t-=c)==0)break;e=0}else e-=s}}};var Eo=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};Eo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=It(r);if(!(n==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var s=oi(this);Xn(r,Math.max(0,r.height-s)),e&&(Pn(e,function(){Zs(e,r,-s),$r(e,n,"widget")}),mt(e,"lineWidgetCleared",e,this,n))}},Eo.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=oi(this)-t;i&&(br(this.doc,n)||Xn(n,n.height+i),r&&Pn(r,function(){r.curOp.forceUpdate=!0,Zs(r,n,i),mt(r,"lineWidgetChanged",r,e,It(n))}))},gt(Eo);function Zs(e,t,r){o(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ia(e,r)}function Lu(e,t,r,n){var i=new Eo(e,r,n),s=e.cm;return s&&i.noHScroll&&(s.display.alignWidgets=!0),ko(e,t,"widget",function(c){var d=c.widgets||(c.widgets=[]);if(i.insertAt==null?d.push(i):d.splice(Math.min(d.length,Math.max(0,i.insertAt)),0,i),i.line=c,s&&!br(e,c)){var h=o(c)<e.scrollTop;Xn(c,c.height+oi(i)),h&&Ia(s,i.height),s.curOp.forceUpdate=!0}return!0}),s&&mt(s,"lineWidgetAdded",s,i,typeof t=="number"?t:It(t)),i}var Qs=0,Xr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Qs};Xr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&fi(e),it(this,"clear")){var r=this.find();r&&mt(this,"clear",r.from,r.to)}for(var n=null,i=null,s=0;s<this.lines.length;++s){var c=this.lines[s],d=ei(c.markedSpans,this);e&&!this.collapsed?$r(e,It(c),"text"):e&&(d.to!=null&&(i=It(c)),d.from!=null&&(n=It(c))),c.markedSpans=no(c.markedSpans,d),d.from==null&&this.collapsed&&!br(this.doc,c)&&e&&Xn(c,tn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var h=0;h<this.lines.length;++h){var y=Wn(this.lines[h]),_=a(y);_>e.display.maxLineLength&&(e.display.maxLine=y,e.display.maxLineLength=_,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&An(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&qs(e.doc)),e&&mt(e,"markerCleared",e,this,n,i),t&&di(e),this.parent&&this.parent.clear()}},Xr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i<this.lines.length;++i){var s=this.lines[i],c=ei(s.markedSpans,this);if(c.from!=null&&(r=ze(t?s:It(s),c.from),e==-1))return r;if(c.to!=null&&(n=ze(t?s:It(s),c.to),e==1))return n}return r&&{from:r,to:n}},Xr.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;!t||!n||Pn(n,function(){var i=t.line,s=It(t.line),c=Ai(n,s);if(c&&(Fi(c),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!br(r.doc,i)&&r.height!=null){var d=r.height;r.height=null;var h=oi(r)-d;h&&Xn(i,i.height+h)}mt(n,"markerChanged",n,e)})},Xr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Ze(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Xr.prototype.detachLine=function(e){if(this.lines.splice(Ze(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},gt(Xr);function Pi(e,t,r,n,i){if(n&&n.shared)return Fu(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return pn(e.cm,Pi)(e,t,r,n,i);var s=new Xr(e,i),c=ct(t,r);if(n&&$e(n,s,!1),c>0||c==0&&s.clearWhenEmpty!==!1)return s;if(s.replacedWith&&(s.collapsed=!0,s.widgetNode=Le("span",[s.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||s.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(s.widgetNode.insertLeft=!0)),s.collapsed){if(Uo(e,t.line,t,r,s)||t.line!=r.line&&Uo(e,r.line,t,r,s))throw new Error("Inserting collapsed marker partially overlapping an existing one");$o()}s.addToHistory&&Os(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var d=t.line,h=e.cm,y;if(e.iter(d,r.line+1,function(W){h&&s.collapsed&&!h.options.lineWrapping&&Wn(W)==h.display.maxLine&&(y=!0),s.collapsed&&d!=t.line&&Xn(W,0),Sa(W,new Ei(s,d==t.line?t.ch:null,d==r.line?r.ch:null),e.cm&&e.cm.curOp),++d}),s.collapsed&&e.iter(t.line,r.line+1,function(W){br(e,W)&&Xn(W,0)}),s.clearOnEnter&&I(s,"beforeCursorEnter",function(){return s.clear()}),s.readOnly&&(wa(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),s.collapsed&&(s.id=++Qs,s.atomic=!0),h){if(y&&(h.curOp.updateMaxLine=!0),s.collapsed)An(h,t.line,r.line+1);else if(s.className||s.startStyle||s.endStyle||s.css||s.attributes||s.title)for(var _=t.line;_<=r.line;_++)$r(h,_,"text");s.atomic&&qs(h.doc),mt(h,"markerAdded",h,s)}return s}var Ao=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};Ao.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();mt(this,"clear")}},Ao.prototype.find=function(e,t){return this.primary.find(e,t)},gt(Ao);function Fu(e,t,r,n,i){n=$e(n),n.shared=!1;var s=[Pi(e,t,r,n,i)],c=s[0],d=n.widgetNode;return Gr(e,function(h){d&&(n.widgetNode=d.cloneNode(!0)),s.push(Pi(h,xt(h,t),xt(h,r),n,i));for(var y=0;y<h.linked.length;++y)if(h.linked[y].isParent)return;c=bt(s)}),new Ao(s,c)}function Vs(e){return e.findMarks(ze(e.first,0),e.clipPos(ze(e.lastLine())),function(t){return t.parent})}function Mu(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),s=e.clipPos(i.from),c=e.clipPos(i.to);if(ct(s,c)){var d=Pi(e,s,c,n.primary,n.primary.type);n.markers.push(d),d.parent=n}}}function Nu(e){for(var t=function(n){var i=e[n],s=[i.primary.doc];Gr(i.primary.doc,function(h){return s.push(h)});for(var c=0;c<i.markers.length;c++){var d=i.markers[c];Ze(s,d.doc)==-1&&(d.parent=null,i.markers.splice(c--,1))}},r=0;r<e.length;r++)t(r)}var Ou=0,Tn=function(e,t,r,n,i){if(!(this instanceof Tn))return new Tn(e,t,r,n,i);r==null&&(r=0),Do.call(this,[new Co([new f("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var s=ze(r,0);this.sel=jr(s),this.history=new ra(null),this.id=++Ou,this.modeOption=t,this.lineSep=n,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Wa(this,{from:s,to:s,text:e}),wn(this,jr(s),Tt)};Tn.prototype=xe(Do.prototype,{constructor:Tn,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Vr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:hn(function(e){var t=ze(this.first,0),r=this.first+this.size-1;_i(this,{from:t,to:ze(r,st(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&go(this.cm,0,0),wn(this,jr(t),Tt)}),replaceRange:function(e,t,r,n){t=xt(this,t),r=r?xt(this,r):t,Hi(this,e,t,r,n)},getRange:function(e,t,r){var n=kr(this,xt(this,e),xt(this,t));return r===!1?n:r===""?n.join(""):n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Br(this,e))return st(this,e)},getLineNumber:function(e){return It(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=st(this,e)),Wn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return xt(this,e)},getCursor:function(e){var t=this.sel.primary(),r;return e==null||e=="head"?r=t.head:e=="anchor"?r=t.anchor:e=="end"||e=="to"||e===!1?r=t.to():r=t.from(),r},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:hn(function(e,t,r){Hs(this,xt(this,typeof e=="number"?ze(e,t||0):e),null,r)}),setSelection:hn(function(e,t,r){Hs(this,xt(this,e),xt(this,t||e),r)}),extendSelection:hn(function(e,t,r){oa(this,xt(this,e),t&&xt(this,t),r)}),extendSelections:hn(function(e,t){_s(this,Qi(this,e),t)}),extendSelectionsBy:hn(function(e,t){var r=mn(this.sel.ranges,e);_s(this,Qi(this,r),t)}),setSelections:hn(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new _t(xt(this,e[i].anchor),xt(this,e[i].head||e[i].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),wn(this,dr(this.cm,n,t),r)}}),addSelection:hn(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new _t(xt(this,e),xt(this,t||e))),wn(this,dr(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t=this.sel.ranges,r,n=0;n<t.length;n++){var i=kr(this,t[n].from(),t[n].to());r=r?r.concat(i):i}return e===!1?r:r.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=kr(this,r[n].from(),r[n].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:hn(function(e,t,r){for(var n=[],i=this.sel,s=0;s<i.ranges.length;s++){var c=i.ranges[s];n[s]={from:c.from(),to:c.to(),text:this.splitLines(e[s]),origin:r}}for(var d=t&&t!="end"&&xu(this,n,t),h=n.length-1;h>=0;h--)_i(this,n[h]);d?Ps(this,d):this.cm&&Ni(this.cm)}),undo:hn(function(){la(this,"undo")}),redo:hn(function(){la(this,"redo")}),undoSelection:hn(function(){la(this,"undo",!0)}),redoSelection:hn(function(){la(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new ra(this.history),Gr(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Bi(this.history.done),undone:Bi(this.history.undone)}},setHistory:function(e){var t=this.history=new ra(this.history);t.done=Bi(e.done.slice(0),null,!0),t.undone=Bi(e.undone.slice(0),null,!0)},setGutterMarker:hn(function(e,t,r){return ko(this,e,"gutter",function(n){var i=n.gutterMarkers||(n.gutterMarkers={});return i[t]=r,!r&&M(i)&&(n.gutterMarkers=null),!0})}),clearGutter:hn(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&ko(t,r,"gutter",function(){return r.gutterMarkers[e]=null,M(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Br(this,e)||(t=e,e=st(this,e),!e))return null}else if(t=It(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:hn(function(e,t,r){return ko(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[i])n[i]=r;else{if(Me(r).test(n[i]))return!1;n[i]+=" "+r}return!0})}),removeLineClass:hn(function(e,t,r){return ko(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",s=n[i];if(s)if(r==null)n[i]=null;else{var c=s.match(Me(r));if(!c)return!1;var d=c.index+c[0].length;n[i]=s.slice(0,c.index)+(!c.index||d==s.length?"":" ")+s.slice(d)||null}else return!1;return!0})}),addLineWidget:hn(function(e,t,r){return Lu(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Pi(this,xt(this,e),xt(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=xt(this,e),Pi(this,e,e,r,"bookmark")},findMarksAt:function(e){e=xt(this,e);var t=[],r=st(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=xt(this,e),t=xt(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(s){var c=s.markedSpans;if(c)for(var d=0;d<c.length;d++){var h=c[d];!(h.to!=null&&i==e.line&&e.ch>=h.to||h.from==null&&i!=e.line||h.from!=null&&i==t.line&&h.from>=t.ch)&&(!r||r(h.marker))&&n.push(h.marker.parent||h.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)r[n].from!=null&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var s=i.text.length+n;if(s>e)return t=e,!0;e-=s,++r}),xt(this,ze(r,t))},indexFromPos:function(e){e=xt(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+r}),t},copy:function(e){var t=new Tn(Vr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<r&&(r=e.to);var n=new Tn(Vr(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Mu(n,Vs(this)),n},unlinkDoc:function(e){if(e instanceof Gt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var r=this.linked[t];if(r.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Nu(Vs(this));break}}if(e.history==this.history){var n=[e.id];Gr(e,function(i){return n.push(i.id)},!0),e.history=new ra(null),e.history.done=Bi(this.history.done,n),e.history.undone=Bi(this.history.undone,n)}},iterLinkedDocs:function(e){Gr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Zr(e)},lineSeparator:function(){return this.lineSep||`
43
+ `},setDirection:hn(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&wu(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var Js=0;function Bu(e){var t=this;if(el(t),!(Ye(t,e)||cr(t.display,e))){at(e),k&&(Js=+new Date);var r=si(t,e,!0),n=e.dataTransfer.files;if(!(!r||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,s=Array(i),c=0,d=function(){++c==i&&pn(t,function(){r=xt(t.doc,r);var se={from:r,to:r,text:t.doc.splitLines(s.filter(function(Ne){return Ne!=null}).join(t.doc.lineSeparator())),origin:"paste"};_i(t.doc,se),Ps(t.doc,jr(xt(t.doc,r),xt(t.doc,Ur(se))))})()},h=function(se,Ne){if(t.options.allowDropFileTypes&&Ze(t.options.allowDropFileTypes,se.type)==-1){d();return}var qe=new FileReader;qe.onerror=function(){return d()},qe.onload=function(){var We=qe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(We)){d();return}s[Ne]=We,d()},qe.readAsText(se)},y=0;y<n.length;y++)h(n[y],y);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var _=e.dataTransfer.getData("Text");if(_){var W;if(t.state.draggingText&&!t.state.draggingText.copy&&(W=t.listSelections()),aa(t.doc,jr(r,r)),W)for(var ge=0;ge<W.length;++ge)Hi(t.doc,"",W[ge].anchor,W[ge].head,"drag");t.replaceSelection(_,"around","paste"),t.display.input.focus()}}catch(se){}}}}function Iu(e,t){if(k&&(!e.state.draggingText||+new Date-Js<100)){Ot(t);return}if(!(Ye(e,t)||cr(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ie)){var r=$("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",fe&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),fe&&r.parentNode.removeChild(r)}}function _u(e,t){var r=si(e,t);if(r){var n=document.createDocumentFragment();Fa(e,r,n),e.display.dragCursor||(e.display.dragCursor=$("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),Be(e.display.dragCursor,n)}}function el(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function tl(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var s=0;s<r.length;s++)e(r[s])})}}var nl=!1;function Hu(){nl||(Pu(),nl=!0)}function Pu(){var e;I(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,tl(Ru)},100))}),I(window,"blur",function(){return tl(Mi)})}function Ru(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Kr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},To=0;To<10;To++)Kr[To+48]=Kr[To+96]=String(To);for(var ua=65;ua<=90;ua++)Kr[ua]=String.fromCharCode(ua);for(var Lo=1;Lo<=12;Lo++)Kr[Lo+111]=Kr[Lo+63235]="F"+Lo;var Tr={};Tr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Tr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Tr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Tr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Tr.default=G?Tr.macDefault:Tr.pcDefault;function qu(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,s,c=0;c<t.length-1;c++){var d=t[c];if(/^(cmd|meta|m)$/i.test(d))s=!0;else if(/^a(lt)?$/i.test(d))r=!0;else if(/^(c|ctrl|control)$/i.test(d))n=!0;else if(/^s(hift)?$/i.test(d))i=!0;else throw new Error("Unrecognized modifier name: "+d)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),s&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function zu(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if(n=="..."){delete e[r];continue}for(var i=mn(r.split(" "),qu),s=0;s<i.length;s++){var c=void 0,d=void 0;s==i.length-1?(d=i.join(" "),c=n):(d=i.slice(0,s+1).join(" "),c="...");var h=t[d];if(!h)t[d]=c;else if(h!=c)throw new Error("Inconsistent bindings for "+d)}delete e[r]}for(var y in t)e[y]=t[y];return e}function Ri(e,t,r,n){t=ca(t);var i=t.call?t.call(e,n):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&r(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Ri(e,t.fallthrough,r,n);for(var s=0;s<t.fallthrough.length;s++){var c=Ri(e,t.fallthrough[s],r,n);if(c)return c}}}function rl(e){var t=typeof e=="string"?e:Kr[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function il(e,t,r){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(ve?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(ve?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!r&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function ol(e,t){if(fe&&e.keyCode==34&&e.char)return!1;var r=Kr[e.keyCode];return r==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(r=e.code),il(r,e,t))}function ca(e){return typeof e=="string"?Tr[e]:e}function qi(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var s=t(r[i]);n.length&&ct(s.from,bt(n).to)<=0;){var c=n.pop();if(ct(c.from,s.from)<0){s.from=c.from;break}}n.push(s)}Pn(e,function(){for(var d=n.length-1;d>=0;d--)Hi(e.doc,"",n[d].from,n[d].to,"+delete");Ni(e)})}function Xa(e,t,r){var n=ne(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Ka(e,t,r){var n=Xa(e,t.ch,r);return n==null?null:new ze(t.line,n,r<0?"after":"before")}function Ya(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var s=ue(r,t.doc.direction);if(s){var c=i<0?bt(s):s[0],d=i<0==(c.level==1),h=d?"after":"before",y;if(c.level>0||t.doc.direction=="rtl"){var _=rr(t,r);y=i<0?r.text.length-1:0;var W=En(t,_,y).top;y=g(function(ge){return En(t,_,ge).top==W},i<0==(c.level==1)?c.from:c.to-1,y),h=="before"&&(y=Xa(r,y,1))}else y=i<0?c.to:c.from;return new ze(n,y,h)}}return new ze(n,i<0?r.text.length:0,i<0?"before":"after")}function $u(e,t,r,n){var i=ue(t,e.doc.direction);if(!i)return Ka(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var s=K(i,r.ch,r.sticky),c=i[s];if(e.doc.direction=="ltr"&&c.level%2==0&&(n>0?c.to>r.ch:c.from<r.ch))return Ka(t,r,n);var d=function(Qe,Je){return Xa(t,Qe instanceof ze?Qe.ch:Qe,Je)},h,y=function(Qe){return e.options.lineWrapping?(h=h||rr(e,t),yt(e,t,h,Qe)):{begin:0,end:t.text.length}},_=y(r.sticky=="before"?d(r,-1):r.ch);if(e.doc.direction=="rtl"||c.level==1){var W=c.level==1==n<0,ge=d(r,W?1:-1);if(ge!=null&&(W?ge<=c.to&&ge<=_.end:ge>=c.from&&ge>=_.begin)){var se=W?"before":"after";return new ze(r.line,ge,se)}}var Ne=function(Qe,Je,Ve){for(var nt=function(Rt,gn){return gn?new ze(r.line,d(Rt,1),"before"):new ze(r.line,Rt,"after")};Qe>=0&&Qe<i.length;Qe+=Je){var dt=i[Qe],ft=Je>0==(dt.level!=1),Dt=ft?Ve.begin:d(Ve.end,-1);if(dt.from<=Dt&&Dt<dt.to||(Dt=ft?dt.from:d(dt.to,-1),Ve.begin<=Dt&&Dt<Ve.end))return nt(Dt,ft)}},qe=Ne(s+n,n,_);if(qe)return qe;var We=n>0?_.end:d(_.begin,-1);return We!=null&&!(n>0&&We==t.text.length)&&(qe=Ne(n>0?0:i.length-1,n,y(We)),qe)?qe:null}var Fo={selectAll:Ws,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Tt)},killLine:function(e){return qi(e,function(t){if(t.empty()){var r=st(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:ze(t.head.line+1,0)}:{from:t.head,to:ze(t.head.line,r)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return qi(e,function(t){return{from:ze(t.from().line,0),to:xt(e.doc,ze(t.to().line+1,0))}})},delLineLeft:function(e){return qi(e,function(t){return{from:ze(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return qi(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return qi(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ze(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ze(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return al(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return sl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Wu(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},Qt)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},Qt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?sl(e,t.head):n},Qt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var s=r[i].from(),c=Ke(e.getLine(s.line),s.ch,n);t.push(Jt(n-c%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Pn(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,s=st(e.doc,i.line).text;if(s){if(i.ch==s.length&&(i=new ze(i.line,i.ch-1)),i.ch>0)i=new ze(i.line,i.ch+1),e.replaceRange(s.charAt(i.ch-1)+s.charAt(i.ch-2),ze(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var c=st(e.doc,i.line-1).text;c&&(i=new ze(i.line,1),e.replaceRange(s.charAt(0)+e.doc.lineSeparator()+c.charAt(c.length-1),ze(i.line-1,c.length-1),i,"+transpose"))}}r.push(new _t(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Pn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Ni(e)})},openLine:function(e){return e.replaceSelection(`
44
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function al(e,t){var r=st(e.doc,t),n=Wn(r);return n!=r&&(t=It(n)),Ya(!0,e,n,t,1)}function Wu(e,t){var r=st(e.doc,t),n=ri(r);return n!=r&&(t=It(n)),Ya(!0,e,r,t,-1)}function sl(e,t){var r=al(e,t.line),n=st(e.doc,r.line),i=ue(n,e.doc.direction);if(!i||i[0].level==0){var s=Math.max(r.ch,n.text.search(/\S/)),c=t.line==r.line&&t.ch<=s&&t.ch;return ze(r.line,c?0:s,r.sticky)}return r}function fa(e,t,r){if(typeof t=="string"&&(t=Fo[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=ht}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function ju(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=Ri(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&Ri(t,e.options.extraKeys,r,e)||Ri(t,e.options.keyMap,r,e)}var Uu=new ot;function Mo(e,t,r,n){var i=e.state.keySeq;if(i){if(rl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Uu.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ll(e,i+" "+t,r,n))return!0}return ll(e,t,r,n)}function ll(e,t,r,n){var i=ju(e,t,n);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&mt(e,"keyHandled",e,t,r),(i=="handled"||i=="multi")&&(at(r),Ma(e)),!!i}function ul(e,t){var r=ol(t,!0);return r?t.shiftKey&&!e.state.keySeq?Mo(e,"Shift-"+r,t,function(n){return fa(e,n,!0)})||Mo(e,r,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return fa(e,n)}):Mo(e,r,t,function(n){return fa(e,n)}):!1}function Gu(e,t,r){return Mo(e,"'"+r+"'",t,function(n){return fa(e,n,!0)})}var Za=null;function cl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ce(P(t)),!Ye(t,e))){k&&B<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var n=ul(t,e);fe&&(Za=n?r:null,!n&&r==88&&!Yi&&(G?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),b&&!G&&!n&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Xu(t)}}function Xu(e){var t=e.display.lineDiv;ke(t,"CodeMirror-crosshair");function r(n){(n.keyCode==18||!n.altKey)&&(we(t,"CodeMirror-crosshair"),Xe(document,"keyup",r),Xe(document,"mouseover",r))}I(document,"keyup",r),I(document,"mouseover",r)}function fl(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ye(this,e)}function dl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(cr(t.display,e)||Ye(t,e)||e.ctrlKey&&!e.altKey||G&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(fe&&r==Za){Za=null,at(e);return}if(!(fe&&(!e.which||e.which<10)&&ul(t,e))){var i=String.fromCharCode(n==null?r:n);i!="\b"&&(Gu(t,e,i)||t.display.input.onKeyPress(e))}}}var Ku=400,Qa=function(e,t,r){this.time=e,this.pos=t,this.button=r};Qa.prototype.compare=function(e,t,r){return this.time+Ku>e&&ct(t,this.pos)==0&&r==this.button};var No,Oo;function Yu(e,t){var r=+new Date;return Oo&&Oo.compare(r,e,t)?(No=Oo=null,"triple"):No&&No.compare(r,e,t)?(Oo=new Qa(r,e,t),No=null,"double"):(No=new Qa(r,e,t),Oo=null,"single")}function pl(e){var t=this,r=t.display;if(!(Ye(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,cr(r,e)){N||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!Va(t,e)){var n=si(t,e),i=Ut(e),s=n?Yu(n,i):"single";Ce(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&Zu(t,i,n,s,e))&&(i==1?n?Vu(t,n,s,e):zt(e)==r.scroller&&at(e):i==2?(n&&oa(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(ye?t.display.input.onContextMenu(e):Na(t)))}}}function Zu(e,t,r,n,i){var s="Click";return n=="double"?s="Double"+s:n=="triple"&&(s="Triple"+s),s=(t==1?"Left":t==2?"Middle":"Right")+s,Mo(e,il(s,i),i,function(c){if(typeof c=="string"&&(c=Fo[c]),!c)return!1;var d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),d=c(e,r)!=ht}finally{e.state.suppressEdits=!1}return d})}function Qu(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var s=be?r.shiftKey&&r.metaKey:r.altKey;i.unit=s?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=G?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(G?r.altKey:r.ctrlKey)),i}function Vu(e,t,r,n){k?setTimeout(Pe(hs,e),0):e.curOp.focus=ce(P(e));var i=Qu(e,r,n),s=e.doc.sel,c;e.options.dragDrop&&fn&&!e.isReadOnly()&&r=="single"&&(c=s.contains(t))>-1&&(ct((c=s.ranges[c]).from(),t)<0||t.xRel>0)&&(ct(c.to(),t)>0||t.xRel<0)?Ju(e,n,t,i):ec(e,n,t,i)}function Ju(e,t,r,n){var i=e.display,s=!1,c=pn(e,function(y){N&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Na(e)),Xe(i.wrapper.ownerDocument,"mouseup",c),Xe(i.wrapper.ownerDocument,"mousemove",d),Xe(i.scroller,"dragstart",h),Xe(i.scroller,"drop",c),s||(at(y),n.addNew||oa(e.doc,r,null,null,n.extend),N&&!ie||k&&B==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),d=function(y){s=s||Math.abs(t.clientX-y.clientX)+Math.abs(t.clientY-y.clientY)>=10},h=function(){return s=!0};N&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!n.moveOnDrag,I(i.wrapper.ownerDocument,"mouseup",c),I(i.wrapper.ownerDocument,"mousemove",d),I(i.scroller,"dragstart",h),I(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function hl(e,t,r){if(r=="char")return new _t(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new _t(ze(t.line,0),xt(e.doc,ze(t.line+1,0)));var n=r(e,t);return new _t(n.from,n.to)}function ec(e,t,r,n){k&&Na(e);var i=e.display,s=e.doc;at(t);var c,d,h=s.sel,y=h.ranges;if(n.addNew&&!n.extend?(d=s.sel.contains(r),d>-1?c=y[d]:c=new _t(r,r)):(c=s.sel.primary(),d=s.sel.primIndex),n.unit=="rectangle")n.addNew||(c=new _t(r,r)),r=si(e,t,!0,!0),d=-1;else{var _=hl(e,r,n.unit);n.extend?c=Ua(c,_.anchor,_.head,n.extend):c=_}n.addNew?d==-1?(d=y.length,wn(s,dr(e,y.concat([c]),d),{scroll:!1,origin:"*mouse"})):y.length>1&&y[d].empty()&&n.unit=="char"&&!n.extend?(wn(s,dr(e,y.slice(0,d).concat(y.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),h=s.sel):Ga(s,d,c,rt):(d=0,wn(s,new Un([c],0),rt),h=s.sel);var W=r;function ge(Ve){if(ct(W,Ve)!=0)if(W=Ve,n.unit=="rectangle"){for(var nt=[],dt=e.options.tabSize,ft=Ke(st(s,r.line).text,r.ch,dt),Dt=Ke(st(s,Ve.line).text,Ve.ch,dt),Rt=Math.min(ft,Dt),gn=Math.max(ft,Dt),Zt=Math.min(r.line,Ve.line),Rn=Math.min(e.lastLine(),Math.max(r.line,Ve.line));Zt<=Rn;Zt++){var Ln=st(s,Zt).text,ln=qt(Ln,Rt,dt);Rt==gn?nt.push(new _t(ze(Zt,ln),ze(Zt,ln))):Ln.length>ln&&nt.push(new _t(ze(Zt,ln),ze(Zt,qt(Ln,gn,dt))))}nt.length||nt.push(new _t(r,r)),wn(s,dr(e,h.ranges.slice(0,d).concat(nt),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Ve)}else{var Fn=c,bn=hl(e,Ve,n.unit),cn=Fn.anchor,un;ct(bn.anchor,cn)>0?(un=bn.head,cn=wi(Fn.from(),bn.anchor)):(un=bn.anchor,cn=xi(Fn.to(),bn.head));var nn=h.ranges.slice(0);nn[d]=tc(e,new _t(xt(s,cn),un)),wn(s,dr(e,nn,d),rt)}}var se=i.wrapper.getBoundingClientRect(),Ne=0;function qe(Ve){var nt=++Ne,dt=si(e,Ve,!0,n.unit=="rectangle");if(dt)if(ct(dt,W)!=0){e.curOp.focus=ce(P(e)),ge(dt);var ft=Jo(i,s);(dt.line>=ft.to||dt.line<ft.from)&&setTimeout(pn(e,function(){Ne==nt&&qe(Ve)}),150)}else{var Dt=Ve.clientY<se.top?-20:Ve.clientY>se.bottom?20:0;Dt&&setTimeout(pn(e,function(){Ne==nt&&(i.scroller.scrollTop+=Dt,qe(Ve))}),50)}}function We(Ve){e.state.selectingText=!1,Ne=1/0,Ve&&(at(Ve),i.input.focus()),Xe(i.wrapper.ownerDocument,"mousemove",Qe),Xe(i.wrapper.ownerDocument,"mouseup",Je),s.history.lastSelOrigin=null}var Qe=pn(e,function(Ve){Ve.buttons===0||!Ut(Ve)?We(Ve):qe(Ve)}),Je=pn(e,We);e.state.selectingText=Je,I(i.wrapper.ownerDocument,"mousemove",Qe),I(i.wrapper.ownerDocument,"mouseup",Je)}function tc(e,t){var r=t.anchor,n=t.head,i=st(e.doc,r.line);if(ct(r,n)==0&&r.sticky==n.sticky)return t;var s=ue(i);if(!s)return t;var c=K(s,r.ch,r.sticky),d=s[c];if(d.from!=r.ch&&d.to!=r.ch)return t;var h=c+(d.from==r.ch==(d.level!=1)?0:1);if(h==0||h==s.length)return t;var y;if(n.line!=r.line)y=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var _=K(s,n.ch,n.sticky),W=_-c||(n.ch-r.ch)*(d.level==1?-1:1);_==h-1||_==h?y=W<0:y=W>0}var ge=s[h+(y?-1:0)],se=y==(ge.level==1),Ne=se?ge.from:ge.to,qe=se?"after":"before";return r.ch==Ne&&r.sticky==qe?t:new _t(new ze(r.line,Ne,qe),n)}function gl(e,t,r,n){var i,s;if(t.touches)i=t.touches[0].clientX,s=t.touches[0].clientY;else try{i=t.clientX,s=t.clientY}catch(ge){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&at(t);var c=e.display,d=c.lineDiv.getBoundingClientRect();if(s>d.bottom||!it(e,r))return Et(t);s-=d.top-c.viewOffset;for(var h=0;h<e.display.gutterSpecs.length;++h){var y=c.gutters.childNodes[h];if(y&&y.getBoundingClientRect().right>=i){var _=vr(e.doc,s),W=e.display.gutterSpecs[h];return je(e,r,e,_,W.className,t),Et(t)}}}function Va(e,t){return gl(e,t,"gutterClick",!0)}function vl(e,t){cr(e.display,t)||nc(e,t)||Ye(e,t,"contextmenu")||ye||e.display.input.onContextMenu(t)}function nc(e,t){return it(e,"gutterContextMenu")?gl(e,t,"gutterContextMenu",!1):!1}function ml(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Er(e)}var zi={toString:function(){return"CodeMirror.Init"}},yl={},da={};function rc(e){var t=e.optionHandlers;function r(n,i,s,c){e.defaults[n]=i,s&&(t[n]=c?function(d,h,y){y!=zi&&s(d,h,y)}:s)}e.defineOption=r,e.Init=zi,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,$a(n)},!0),r("indentUnit",2,$a,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){wo(n),Er(n),An(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var s=[],c=n.doc.first;n.doc.iter(function(h){for(var y=0;;){var _=h.text.indexOf(i,y);if(_==-1)break;y=_+i.length,s.push(ze(c,_))}c++});for(var d=s.length-1;d>=0;d--)Hi(n.doc,i,s[d],ze(s[d].line,s[d].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(n,i,s){n.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),s!=zi&&n.refresh()}),r("specialCharPlaceholder",Ie,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",Z?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!ee),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){ml(n),xo(n)},!0),r("keyMap","default",function(n,i,s){var c=ca(i),d=s!=zi&&ca(s);d&&d.detach&&d.detach(n,c),c.attach&&c.attach(n,d||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,oc,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=qa(i,n.options.lineNumbers),xo(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?wr(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return Oi(n)},!0),r("scrollbarStyle","native",function(n){xs(n),Oi(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=qa(n.options.gutters,i),xo(n)},!0),r("firstLineNumber",1,xo,!0),r("lineNumberFormatter",function(n){return n},xo,!0),r("showCursorWhenSelecting",!1,ho,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(Mi(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,ic),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,ho,!0),r("singleCursorHeightPerLine",!0,ho,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,wo,!0),r("addModeClass",!1,wo,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,wo,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function ic(e,t,r){var n=r&&r!=zi;if(!t!=!n){var i=e.display.dragFunctions,s=t?I:Xe;s(e.display.scroller,"dragstart",i.start),s(e.display.scroller,"dragenter",i.enter),s(e.display.scroller,"dragover",i.over),s(e.display.scroller,"dragleave",i.leave),s(e.display.scroller,"drop",i.drop)}}function oc(e){e.options.lineWrapping?(ke(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(we(e.display.wrapper,"CodeMirror-wrap"),u(e)),La(e),An(e),Er(e),setTimeout(function(){return Oi(e)},100)}function Gt(e,t){var r=this;if(!(this instanceof Gt))return new Gt(e,t);this.options=t=t?$e(t):{},$e(yl,t,!1);var n=t.value;typeof n=="string"?n=new Tn(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Gt.inputStyles[t.inputStyle](this),s=this.display=new yu(e,n,i,t);s.wrapper.CodeMirror=this,ml(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xs(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 ot,keySeq:null,specialChars:null},t.autofocus&&!Z&&s.input.focus(),k&&B<11&&setTimeout(function(){return r.display.input.reset(!0)},20),ac(this),Hu(),fi(this),this.curOp.forceUpdate=!0,Fs(this,n),t.autofocus&&!Z||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Oa(r)},20):Mi(this);for(var c in da)da.hasOwnProperty(c)&&da[c](this,t[c],zi);ks(this),t.finishInit&&t.finishInit(this);for(var d=0;d<Ja.length;++d)Ja[d](this);di(this),N&&t.lineWrapping&&getComputedStyle(s.lineDiv).textRendering=="optimizelegibility"&&(s.lineDiv.style.textRendering="auto")}Gt.defaults=yl,Gt.optionHandlers=da;function ac(e){var t=e.display;I(t.scroller,"mousedown",pn(e,pl)),k&&B<11?I(t.scroller,"dblclick",pn(e,function(h){if(!Ye(e,h)){var y=si(e,h);if(!(!y||Va(e,h)||cr(e.display,h))){at(h);var _=e.findWordAt(y);oa(e.doc,_.anchor,_.head)}}})):I(t.scroller,"dblclick",function(h){return Ye(e,h)||at(h)}),I(t.scroller,"contextmenu",function(h){return vl(e,h)}),I(t.input.getField(),"contextmenu",function(h){t.scroller.contains(h.target)||vl(e,h)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function s(h){if(h.touches.length!=1)return!1;var y=h.touches[0];return y.radiusX<=1&&y.radiusY<=1}function c(h,y){if(y.left==null)return!0;var _=y.left-h.left,W=y.top-h.top;return _*_+W*W>400}I(t.scroller,"touchstart",function(h){if(!Ye(e,h)&&!s(h)&&!Va(e,h)){t.input.ensurePolled(),clearTimeout(r);var y=+new Date;t.activeTouch={start:y,moved:!1,prev:y-n.end<=300?n:null},h.touches.length==1&&(t.activeTouch.left=h.touches[0].pageX,t.activeTouch.top=h.touches[0].pageY)}}),I(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),I(t.scroller,"touchend",function(h){var y=t.activeTouch;if(y&&!cr(t,h)&&y.left!=null&&!y.moved&&new Date-y.start<300){var _=e.coordsChar(t.activeTouch,"page"),W;!y.prev||c(y,y.prev)?W=new _t(_,_):!y.prev.prev||c(y,y.prev.prev)?W=e.findWordAt(_):W=new _t(ze(_.line,0),xt(e.doc,ze(_.line+1,0))),e.setSelection(W.anchor,W.head),e.focus(),at(h)}i()}),I(t.scroller,"touchcancel",i),I(t.scroller,"scroll",function(){t.scroller.clientHeight&&(vo(e,t.scroller.scrollTop),ui(e,t.scroller.scrollLeft,!0),je(e,"scroll",e))}),I(t.scroller,"mousewheel",function(h){return Es(e,h)}),I(t.scroller,"DOMMouseScroll",function(h){return Es(e,h)}),I(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(h){Ye(e,h)||Ot(h)},over:function(h){Ye(e,h)||(_u(e,h),Ot(h))},start:function(h){return Iu(e,h)},drop:pn(e,Bu),leave:function(h){Ye(e,h)||el(e)}};var d=t.input.getField();I(d,"keyup",function(h){return fl.call(e,h)}),I(d,"keydown",pn(e,cl)),I(d,"keypress",pn(e,dl)),I(d,"focus",function(h){return Oa(e,h)}),I(d,"blur",function(h){return Mi(e,h)})}var Ja=[];Gt.defineInitHook=function(e){return Ja.push(e)};function Bo(e,t,r,n){var i=e.doc,s;r==null&&(r="add"),r=="smart"&&(i.mode.indent?s=sr(e,t).state:r="prev");var c=e.options.tabSize,d=st(i,t),h=Ke(d.text,null,c);d.stateAfter&&(d.stateAfter=null);var y=d.text.match(/^\s*/)[0],_;if(!n&&!/\S/.test(d.text))_=0,r="not";else if(r=="smart"&&(_=i.mode.indent(s,d.text.slice(y.length),d.text),_==ht||_>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?_=Ke(st(i,t-1).text,null,c):_=0:r=="add"?_=h+e.options.indentUnit:r=="subtract"?_=h-e.options.indentUnit:typeof r=="number"&&(_=h+r),_=Math.max(0,_);var W="",ge=0;if(e.options.indentWithTabs)for(var se=Math.floor(_/c);se;--se)ge+=c,W+=" ";if(ge<_&&(W+=Jt(_-ge)),W!=y)return Hi(i,W,ze(t,0),ze(t,y.length),"+input"),d.stateAfter=null,!0;for(var Ne=0;Ne<i.sel.ranges.length;Ne++){var qe=i.sel.ranges[Ne];if(qe.head.line==t&&qe.head.ch<y.length){var We=ze(t,y.length);Ga(i,Ne,new _t(We,We));break}}}var pr=null;function pa(e){pr=e}function es(e,t,r,n,i){var s=e.doc;e.display.shift=!1,n||(n=s.sel);var c=+new Date-200,d=i=="paste"||e.state.pasteIncoming>c,h=Zr(t),y=null;if(d&&n.ranges.length>1)if(pr&&pr.text.join(`
45
+ `)==t){if(n.ranges.length%pr.text.length==0){y=[];for(var _=0;_<pr.text.length;_++)y.push(s.splitLines(pr.text[_]))}}else h.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(y=mn(h,function(Qe){return[Qe]}));for(var W=e.curOp.updateInput,ge=n.ranges.length-1;ge>=0;ge--){var se=n.ranges[ge],Ne=se.from(),qe=se.to();se.empty()&&(r&&r>0?Ne=ze(Ne.line,Ne.ch-r):e.state.overwrite&&!d?qe=ze(qe.line,Math.min(st(s,qe.line).text.length,qe.ch+bt(h).length)):d&&pr&&pr.lineWise&&pr.text.join(`
46
+ `)==h.join(`
47
+ `)&&(Ne=qe=ze(Ne.line,0)));var We={from:Ne,to:qe,text:y?y[ge%y.length]:h,origin:i||(d?"paste":e.state.cutIncoming>c?"cut":"+input")};_i(e.doc,We),mt(e,"inputRead",e,We)}t&&!d&&xl(e,t),Ni(e),e.curOp.updateInput<2&&(e.curOp.updateInput=W),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function bl(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Pn(t,function(){return es(t,r,0,null,"paste")}),!0}function xl(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var s=e.getModeAt(i.head),c=!1;if(s.electricChars){for(var d=0;d<s.electricChars.length;d++)if(t.indexOf(s.electricChars.charAt(d))>-1){c=Bo(e,i.head.line,"smart");break}}else s.electricInput&&s.electricInput.test(st(e.doc,i.head.line).text.slice(0,i.head.ch))&&(c=Bo(e,i.head.line,"smart"));c&&mt(e,"electricInput",e,i.head.line)}}}function wl(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,s={anchor:ze(i,0),head:ze(i+1,0)};r.push(s),t.push(e.getRange(s.anchor,s.head))}return{text:t,ranges:r}}function ts(e,t,r,n){e.setAttribute("autocorrect",r?"on":"off"),e.setAttribute("autocapitalize",n?"on":"off"),e.setAttribute("spellcheck",!!t)}function Sl(){var e=$("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=$("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return N?e.style.width="1000px":e.setAttribute("wrap","off"),Y&&(e.style.border="1px solid black"),t}function sc(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){Ce(this).focus(),this.display.input.focus()},setOption:function(n,i){var s=this.options,c=s[n];s[n]==i&&n!="mode"||(s[n]=i,t.hasOwnProperty(n)&&pn(this,t[n])(this,i,c),je(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,i){this.state.keyMaps[i?"push":"unshift"](ca(n))},removeKeyMap:function(n){for(var i=this.state.keyMaps,s=0;s<i.length;++s)if(i[s]==n||i[s].name==n)return i.splice(s,1),!0},addOverlay:Cn(function(n,i){var s=n.token?n:e.getMode(this.options,n);if(s.startState)throw new Error("Overlays may not be stateful.");Lt(this.state.overlays,{mode:s,modeSpec:n,opaque:i&&i.opaque,priority:i&&i.priority||0},function(c){return c.priority}),this.state.modeGen++,An(this)}),removeOverlay:Cn(function(n){for(var i=this.state.overlays,s=0;s<i.length;++s){var c=i[s].modeSpec;if(c==n||typeof n=="string"&&c.name==n){i.splice(s,1),this.state.modeGen++,An(this);return}}}),indentLine:Cn(function(n,i,s){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),Br(this.doc,n)&&Bo(this,n,i,s)}),indentSelection:Cn(function(n){for(var i=this.doc.sel.ranges,s=-1,c=0;c<i.length;c++){var d=i[c];if(d.empty())d.head.line>s&&(Bo(this,d.head.line,n,!0),s=d.head.line,c==this.doc.sel.primIndex&&Ni(this));else{var h=d.from(),y=d.to(),_=Math.max(s,h.line);s=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var W=_;W<s;++W)Bo(this,W,n);var ge=this.doc.sel.ranges;h.ch==0&&i.length==ge.length&&ge[c].from().ch>0&&Ga(this.doc,c,new _t(h,ge[c].to()),Tt)}}}),getTokenAt:function(n,i){return Di(this,n,i)},getLineTokens:function(n,i){return Di(this,ze(n),i,!0)},getTokenTypeAt:function(n){n=xt(this.doc,n);var i=Vi(this,st(this.doc,n.line)),s=0,c=(i.length-1)/2,d=n.ch,h;if(d==0)h=i[2];else for(;;){var y=s+c>>1;if((y?i[y*2-1]:0)>=d)c=y;else if(i[y*2+1]<d)s=y+1;else{h=i[y*2+2];break}}var _=h?h.indexOf("overlay "):-1;return _<0?h:_==0?null:h.slice(0,_-1)},getModeAt:function(n){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(n).state).mode:i},getHelper:function(n,i){return this.getHelpers(n,i)[0]},getHelpers:function(n,i){var s=[];if(!r.hasOwnProperty(i))return s;var c=r[i],d=this.getModeAt(n);if(typeof d[i]=="string")c[d[i]]&&s.push(c[d[i]]);else if(d[i])for(var h=0;h<d[i].length;h++){var y=c[d[i][h]];y&&s.push(y)}else d.helperType&&c[d.helperType]?s.push(c[d.helperType]):c[d.name]&&s.push(c[d.name]);for(var _=0;_<c._global.length;_++){var W=c._global[_];W.pred(d,this)&&Ze(s,W.val)==-1&&s.push(W.val)}return s},getStateAfter:function(n,i){var s=this.doc;return n=Si(s,n==null?s.first+s.size-1:n),sr(this,n+1,i).state},cursorCoords:function(n,i){var s,c=this.doc.sel.primary();return n==null?s=c.head:typeof n=="object"?s=xt(this.doc,n):s=n?c.from():c.to(),Ge(this,s,i||"page")},charCoords:function(n,i){return He(this,xt(this.doc,n),i||"page")},coordsChar:function(n,i){return n=Fe(this,n,i||"page"),et(this,n.left,n.top)},lineAtHeight:function(n,i){return n=Fe(this,{top:n,left:0},i||"page").top,vr(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,i,s){var c=!1,d;if(typeof n=="number"){var h=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>h&&(n=h,c=!0),d=st(this.doc,n)}else d=n;return De(this,d,{top:0,left:0},i||"page",s||c).top+(c?this.doc.height-o(d):0)},defaultTextHeight:function(){return tn(this.display)},defaultCharWidth:function(){return dn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,s,c,d){var h=this.display;n=Ge(this,xt(this.doc,n));var y=n.bottom,_=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),h.sizer.appendChild(i),c=="over")y=n.top;else if(c=="above"||c=="near"){var W=Math.max(h.wrapper.clientHeight,this.doc.height),ge=Math.max(h.sizer.clientWidth,h.lineSpace.clientWidth);(c=="above"||n.bottom+i.offsetHeight>W)&&n.top>i.offsetHeight?y=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=W&&(y=n.bottom),_+i.offsetWidth>ge&&(_=ge-i.offsetWidth)}i.style.top=y+"px",i.style.left=i.style.right="",d=="right"?(_=h.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(d=="left"?_=0:d=="middle"&&(_=(h.sizer.clientWidth-i.offsetWidth)/2),i.style.left=_+"px"),s&&iu(this,{left:_,top:y,right:_+i.offsetWidth,bottom:y+i.offsetHeight})},triggerOnKeyDown:Cn(cl),triggerOnKeyPress:Cn(dl),triggerOnKeyUp:fl,triggerOnMouseDown:Cn(pl),execCommand:function(n){if(Fo.hasOwnProperty(n))return Fo[n].call(null,this)},triggerElectric:Cn(function(n){xl(this,n)}),findPosH:function(n,i,s,c){var d=1;i<0&&(d=-1,i=-i);for(var h=xt(this.doc,n),y=0;y<i&&(h=ns(this.doc,h,d,s,c),!h.hitSide);++y);return h},moveH:Cn(function(n,i){var s=this;this.extendSelectionsBy(function(c){return s.display.shift||s.doc.extend||c.empty()?ns(s.doc,c.head,n,i,s.options.rtlMoveVisually):n<0?c.from():c.to()},Qt)}),deleteH:Cn(function(n,i){var s=this.doc.sel,c=this.doc;s.somethingSelected()?c.replaceSelection("",null,"+delete"):qi(this,function(d){var h=ns(c,d.head,n,i,!1);return n<0?{from:h,to:d.head}:{from:d.head,to:h}})}),findPosV:function(n,i,s,c){var d=1,h=c;i<0&&(d=-1,i=-i);for(var y=xt(this.doc,n),_=0;_<i;++_){var W=Ge(this,y,"div");if(h==null?h=W.left:W.left=h,y=kl(this,W,d,s),y.hitSide)break}return y},moveV:Cn(function(n,i){var s=this,c=this.doc,d=[],h=!this.display.shift&&!c.extend&&c.sel.somethingSelected();if(c.extendSelectionsBy(function(_){if(h)return n<0?_.from():_.to();var W=Ge(s,_.head,"div");_.goalColumn!=null&&(W.left=_.goalColumn),d.push(W.left);var ge=kl(s,W,n,i);return i=="page"&&_==c.sel.primary()&&Ia(s,He(s,ge,"div").top-W.top),ge},Qt),d.length)for(var y=0;y<c.sel.ranges.length;y++)c.sel.ranges[y].goalColumn=d[y]}),findWordAt:function(n){var i=this.doc,s=st(i,n.line).text,c=n.ch,d=n.ch;if(s){var h=this.getHelper(n,"wordChars");(n.sticky=="before"||d==s.length)&&c?--c:++d;for(var y=s.charAt(c),_=x(y,h)?function(W){return x(W,h)}:/\s/.test(y)?function(W){return/\s/.test(W)}:function(W){return!/\s/.test(W)&&!x(W)};c>0&&_(s.charAt(c-1));)--c;for(;d<s.length&&_(s.charAt(d));)++d}return new _t(ze(n.line,c),ze(n.line,d))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ke(this.display.cursorDiv,"CodeMirror-overwrite"):we(this.display.cursorDiv,"CodeMirror-overwrite"),je(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ce(P(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cn(function(n,i){go(this,n,i)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-xn(this)-this.display.barHeight,width:n.scrollWidth-xn(this)-this.display.barWidth,clientHeight:uo(this),clientWidth:Dr(this)}},scrollIntoView:Cn(function(n,i){n==null?(n={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof n=="number"?n={from:ze(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=i||0,n.from.line!=null?ou(this,n):vs(this,n.from,n.to,n.margin)}),setSize:Cn(function(n,i){var s=this,c=function(h){return typeof h=="number"||/^\d+$/.test(String(h))?h+"px":h};n!=null&&(this.display.wrapper.style.width=c(n)),i!=null&&(this.display.wrapper.style.height=c(i)),this.options.lineWrapping&&Yo(this);var d=this.display.viewFrom;this.doc.iter(d,this.display.viewTo,function(h){if(h.widgets){for(var y=0;y<h.widgets.length;y++)if(h.widgets[y].noHScroll){$r(s,d,"widget");break}}++d}),this.curOp.forceUpdate=!0,je(this,"refresh",this)}),operation:function(n){return Pn(this,n)},startOperation:function(){return fi(this)},endOperation:function(){return di(this)},refresh:Cn(function(){var n=this.display.cachedTextHeight;An(this),this.curOp.forceUpdate=!0,Er(this),go(this,this.doc.scrollLeft,this.doc.scrollTop),Pa(this.display),(n==null||Math.abs(n-tn(this.display))>.5||this.options.lineWrapping)&&La(this),je(this,"refresh",this)}),swapDoc:Cn(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Fs(this,n),Er(this),this.display.input.reset(),go(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,mt(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},gt(e),e.registerHelper=function(n,i,s){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=s},e.registerGlobalHelper=function(n,i,s,c){e.registerHelper(n,i,c),r[n]._global.push({pred:s,val:c})}}function ns(e,t,r,n,i){var s=t,c=r,d=st(e,t.line),h=i&&e.direction=="rtl"?-r:r;function y(){var Je=t.line+h;return Je<e.first||Je>=e.first+e.size?!1:(t=new ze(Je,t.ch,t.sticky),d=st(e,Je))}function _(Je){var Ve;if(n=="codepoint"){var nt=d.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(nt))Ve=null;else{var dt=r>0?nt>=55296&&nt<56320:nt>=56320&&nt<57343;Ve=new ze(t.line,Math.max(0,Math.min(d.text.length,t.ch+r*(dt?2:1))),-r)}}else i?Ve=$u(e.cm,d,t,r):Ve=Ka(d,t,r);if(Ve==null)if(!Je&&y())t=Ya(i,e.cm,d,t.line,h);else return!1;else t=Ve;return!0}if(n=="char"||n=="codepoint")_();else if(n=="column")_(!0);else if(n=="word"||n=="group")for(var W=null,ge=n=="group",se=e.cm&&e.cm.getHelper(t,"wordChars"),Ne=!0;!(r<0&&!_(!Ne));Ne=!1){var qe=d.text.charAt(t.ch)||`
48
+ `,We=x(qe,se)?"w":ge&&qe==`
49
+ `?"n":!ge||/\s/.test(qe)?null:"p";if(ge&&!Ne&&!We&&(We="s"),W&&W!=We){r<0&&(r=1,_(),t.sticky="after");break}if(We&&(W=We),r>0&&!_(!Ne))break}var Qe=sa(e,t,s,c,!0);return mr(s,Qe)&&(Qe.hitSide=!0),Qe}function kl(e,t,r,n){var i=e.doc,s=t.left,c;if(n=="page"){var d=Math.min(e.display.wrapper.clientHeight,Ce(e).innerHeight||i(e).documentElement.clientHeight),h=Math.max(d-.5*tn(e.display),3);c=(r>0?t.bottom:t.top)+r*h}else n=="line"&&(c=r>0?t.bottom+3:t.top-3);for(var y;y=et(e,s,c),!!y.outside;){if(r<0?c<=0:c>=i.height){y.hitSide=!0;break}c+=r*5}return y}var Ht=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ot,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ht.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;i.contentEditable=!0,ts(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function s(d){for(var h=d.target;h;h=h.parentNode){if(h==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(h.className))break}return!1}I(i,"paste",function(d){!s(d)||Ye(n,d)||bl(d,n)||B<=11&&setTimeout(pn(n,function(){return t.updateFromDOM()}),20)}),I(i,"compositionstart",function(d){t.composing={data:d.data,done:!1}}),I(i,"compositionupdate",function(d){t.composing||(t.composing={data:d.data,done:!1})}),I(i,"compositionend",function(d){t.composing&&(d.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),I(i,"touchstart",function(){return r.forceCompositionEnd()}),I(i,"input",function(){t.composing||t.readFromDOMSoon()});function c(d){if(!(!s(d)||Ye(n,d))){if(n.somethingSelected())pa({lineWise:!1,text:n.getSelections()}),d.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var h=wl(n);pa({lineWise:!0,text:h.text}),d.type=="cut"&&n.operation(function(){n.setSelections(h.ranges,0,Tt),n.replaceSelection("",null,"cut")})}else return;if(d.clipboardData){d.clipboardData.clearData();var y=pr.text.join(`
50
+ `);if(d.clipboardData.setData("Text",y),d.clipboardData.getData("Text")==y){d.preventDefault();return}}var _=Sl(),W=_.firstChild;ts(W),n.display.lineSpace.insertBefore(_,n.display.lineSpace.firstChild),W.value=pr.text.join(`
51
+ `);var ge=ce(me(i));S(W),setTimeout(function(){n.display.lineSpace.removeChild(_),ge.focus(),ge==i&&r.showPrimarySelection()},50)}}I(i,"copy",c),I(i,"cut",c)},Ht.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ht.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=ce(me(this.div))==this.div,e},Ht.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ht.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ht.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var s=ha(t,e.anchorNode,e.anchorOffset),c=ha(t,e.focusNode,e.focusOffset);if(!(s&&!s.bad&&c&&!c.bad&&ct(wi(s,c),n)==0&&ct(xi(s,c),i)==0)){var d=t.display.view,h=n.line>=t.display.viewFrom&&Cl(t,n)||{node:d[0].measure.map[2],offset:0},y=i.line<t.display.viewTo&&Cl(t,i);if(!y){var _=d[d.length-1].measure,W=_.maps?_.maps[_.maps.length-1]:_.map;y={node:W[W.length-1],offset:W[W.length-2]-W[W.length-3]}}if(!h||!y){e.removeAllRanges();return}var ge=e.rangeCount&&e.getRangeAt(0),se;try{se=Ee(h.node,h.offset,y.offset,y.node)}catch(Ne){}se&&(!b&&t.state.focused?(e.collapse(h.node,h.offset),se.collapsed||(e.removeAllRanges(),e.addRange(se))):(e.removeAllRanges(),e.addRange(se)),ge&&e.anchorNode==null?e.addRange(ge):b&&this.startGracePeriod()),this.rememberSelection()}},Ht.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ht.prototype.showMultipleSelections=function(e){Be(this.cm.display.cursorDiv,e.cursors),Be(this.cm.display.selectionDiv,e.selection)},Ht.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ht.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return q(this.div,t)},Ht.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ce(me(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ht.prototype.blur=function(){this.div.blur()},Ht.prototype.getField=function(){return this.div},Ht.prototype.supportsTouch=function(){return!0},Ht.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Pn(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Ht.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ht.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(z&&L&&this.cm.display.gutterSpecs.length&&lc(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var r=ha(t,e.anchorNode,e.anchorOffset),n=ha(t,e.focusNode,e.focusOffset);r&&n&&Pn(t,function(){wn(t.doc,jr(r,n),Tt),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Ht.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),i=r.to();if(n.ch==0&&n.line>e.firstLine()&&(n=ze(n.line-1,st(e.doc,n.line-1).length)),i.ch==st(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=ze(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var s,c,d;n.line==t.viewFrom||(s=li(e,n.line))==0?(c=It(t.view[0].line),d=t.view[0].node):(c=It(t.view[s].line),d=t.view[s-1].node.nextSibling);var h=li(e,i.line),y,_;if(h==t.view.length-1?(y=t.viewTo-1,_=t.lineDiv.lastChild):(y=It(t.view[h+1].line)-1,_=t.view[h+1].node.previousSibling),!d)return!1;for(var W=e.doc.splitLines(uc(e,d,_,c,y)),ge=kr(e.doc,ze(c,0),ze(y,st(e.doc,y).text.length));W.length>1&&ge.length>1;)if(bt(W)==bt(ge))W.pop(),ge.pop(),y--;else if(W[0]==ge[0])W.shift(),ge.shift(),c++;else break;for(var se=0,Ne=0,qe=W[0],We=ge[0],Qe=Math.min(qe.length,We.length);se<Qe&&qe.charCodeAt(se)==We.charCodeAt(se);)++se;for(var Je=bt(W),Ve=bt(ge),nt=Math.min(Je.length-(W.length==1?se:0),Ve.length-(ge.length==1?se:0));Ne<nt&&Je.charCodeAt(Je.length-Ne-1)==Ve.charCodeAt(Ve.length-Ne-1);)++Ne;if(W.length==1&&ge.length==1&&c==n.line)for(;se&&se>n.ch&&Je.charCodeAt(Je.length-Ne-1)==Ve.charCodeAt(Ve.length-Ne-1);)se--,Ne++;W[W.length-1]=Je.slice(0,Je.length-Ne).replace(/^\u200b+/,""),W[0]=W[0].slice(se).replace(/\u200b+$/,"");var dt=ze(c,se),ft=ze(y,ge.length?bt(ge).length-Ne:0);if(W.length>1||W[0]||ct(dt,ft))return Hi(e.doc,W,dt,ft,"+input"),!0},Ht.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ht.prototype.reset=function(){this.forceCompositionEnd()},Ht.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ht.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Ht.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Pn(this.cm,function(){return An(e.cm)})},Ht.prototype.setUneditable=function(e){e.contentEditable="false"},Ht.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||pn(this.cm,es)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ht.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ht.prototype.onContextMenu=function(){},Ht.prototype.resetPosition=function(){},Ht.prototype.needsContentAttribute=!0;function Cl(e,t){var r=Ai(e,t.line);if(!r||r.hidden)return null;var n=st(e.doc,t.line),i=xr(r,n,t.line),s=ue(n,e.doc.direction),c="left";if(s){var d=K(s,t.ch);c=d%2?"right":"left"}var h=Ti(i.map,t.ch,c);return h.offset=h.collapse=="right"?h.end:h.start,h}function lc(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function $i(e,t){return t&&(e.bad=!0),e}function uc(e,t,r,n,i){var s="",c=!1,d=e.doc.lineSeparator(),h=!1;function y(se){return function(Ne){return Ne.id==se}}function _(){c&&(s+=d,h&&(s+=d),c=h=!1)}function W(se){se&&(_(),s+=se)}function ge(se){if(se.nodeType==1){var Ne=se.getAttribute("cm-text");if(Ne){W(Ne);return}var qe=se.getAttribute("cm-marker"),We;if(qe){var Qe=e.findMarks(ze(n,0),ze(i+1,0),y(+qe));Qe.length&&(We=Qe[0].find(0))&&W(kr(e.doc,We.from,We.to).join(d));return}if(se.getAttribute("contenteditable")=="false")return;var Je=/^(pre|div|p|li|table|br)$/i.test(se.nodeName);if(!/^br$/i.test(se.nodeName)&&se.textContent.length==0)return;Je&&_();for(var Ve=0;Ve<se.childNodes.length;Ve++)ge(se.childNodes[Ve]);/^(pre|p)$/i.test(se.nodeName)&&(h=!0),Je&&(c=!0)}else se.nodeType==3&&W(se.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ge(t),t!=r;)t=t.nextSibling,h=!1;return s}function ha(e,t,r){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[r],!n)return $i(e.clipPos(ze(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var s=e.display.view[i];if(s.node==n)return cc(s,t,r)}}function cc(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!q(n,t))return $i(ze(It(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var s=e.rest?bt(e.rest):e.line;return $i(ze(It(s),s.text.length),i)}var c=t.nodeType==3?t:null,d=t;for(!c&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(c=t.firstChild,r&&(r=c.nodeValue.length));d.parentNode!=n;)d=d.parentNode;var h=e.measure,y=h.maps;function _(We,Qe,Je){for(var Ve=-1;Ve<(y?y.length:0);Ve++)for(var nt=Ve<0?h.map:y[Ve],dt=0;dt<nt.length;dt+=3){var ft=nt[dt+2];if(ft==We||ft==Qe){var Dt=It(Ve<0?e.line:e.rest[Ve]),Rt=nt[dt]+Je;return(Je<0||ft!=We)&&(Rt=nt[dt+(Je?1:0)]),ze(Dt,Rt)}}}var W=_(c,d,r);if(W)return $i(W,i);for(var ge=d.nextSibling,se=c?c.nodeValue.length-r:0;ge;ge=ge.nextSibling){if(W=_(ge,ge.firstChild,0),W)return $i(ze(W.line,W.ch-se),i);se+=ge.textContent.length}for(var Ne=d.previousSibling,qe=r;Ne;Ne=Ne.previousSibling){if(W=_(Ne,Ne.firstChild,-1),W)return $i(ze(W.line,W.ch+qe),i);qe+=Ne.textContent.length}}var an=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ot,this.hasSelection=!1,this.composing=null,this.resetting=!1};an.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Y&&(i.style.width="0px"),I(i,"input",function(){k&&B>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),I(i,"paste",function(c){Ye(n,c)||bl(c,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function s(c){if(!Ye(n,c)){if(n.somethingSelected())pa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var d=wl(n);pa({lineWise:!0,text:d.text}),c.type=="cut"?n.setSelections(d.ranges,null,Tt):(r.prevInput="",i.value=d.text.join(`
52
+ `),S(i))}else return;c.type=="cut"&&(n.state.cutIncoming=+new Date)}}I(i,"cut",s),I(i,"copy",s),I(e.scroller,"paste",function(c){if(!(cr(e,c)||Ye(n,c))){if(!i.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var d=new Event("paste");d.clipboardData=c.clipboardData,i.dispatchEvent(d)}}),I(e.lineSpace,"selectstart",function(c){cr(e,c)||at(c)}),I(i,"compositionstart",function(){var c=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:c,range:n.markText(c,n.getCursor("to"),{className:"CodeMirror-composing"})}}),I(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},an.prototype.createField=function(e){this.wrapper=Sl(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;ts(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},an.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},an.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=ps(e);if(e.options.moveInputWithCursor){var i=Ge(e,r.sel.primary().head,"div"),s=t.wrapper.getBoundingClientRect(),c=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+c.top-s.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+c.left-s.left))}return n},an.prototype.showSelection=function(e){var t=this.cm,r=t.display;Be(r.cursorDiv,e.cursors),Be(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},an.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&S(this.textarea),k&&B>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",k&&B>=9&&(this.hasSelection=null));this.resetting=!1}},an.prototype.getField=function(){return this.textarea},an.prototype.supportsTouch=function(){return!1},an.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Z||ce(me(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},an.prototype.blur=function(){this.textarea.blur()},an.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},an.prototype.receivedFocus=function(){this.slowPoll()},an.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},an.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},an.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Or(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(k&&B>=9&&this.hasSelection===i||G&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var s=i.charCodeAt(0);if(s==8203&&!n&&(n="\u200B"),s==8666)return this.reset(),this.cm.execCommand("undo")}for(var c=0,d=Math.min(n.length,i.length);c<d&&n.charCodeAt(c)==i.charCodeAt(c);)++c;return Pn(t,function(){es(t,i.slice(c),n.length-c,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
53
+ `)>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},an.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},an.prototype.onKeyPress=function(){k&&B>=9&&(this.hasSelection=null),this.fastPoll()},an.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var s=si(r,e),c=n.scroller.scrollTop;if(!s||fe)return;var d=r.options.resetSelectionOnContextMenu;d&&r.doc.sel.contains(s)==-1&&pn(r,wn)(r.doc,jr(s),Tt);var h=i.style.cssText,y=t.wrapper.style.cssText,_=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
54
+ top: `+(e.clientY-_.top-5)+"px; left: "+(e.clientX-_.left-5)+`px;
55
+ z-index: 1000; background: `+(k?"rgba(255, 255, 255, .05)":"transparent")+`;
56
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var W;N&&(W=i.ownerDocument.defaultView.scrollY),n.input.focus(),N&&i.ownerDocument.defaultView.scrollTo(null,W),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=se,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function ge(){if(i.selectionStart!=null){var qe=r.somethingSelected(),We="\u200B"+(qe?i.value:"");i.value="\u21DA",i.value=We,t.prevInput=qe?"":"\u200B",i.selectionStart=1,i.selectionEnd=We.length,n.selForContextMenu=r.doc.sel}}function se(){if(t.contextMenuPending==se&&(t.contextMenuPending=!1,t.wrapper.style.cssText=y,i.style.cssText=h,k&&B<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=c),i.selectionStart!=null)){(!k||k&&B<9)&&ge();var qe=0,We=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?pn(r,Ws)(r):qe++<10?n.detectingSelectAll=setTimeout(We,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(We,200)}}if(k&&B>=9&&ge(),ye){Ot(e);var Ne=function(){Xe(window,"mouseup",Ne),setTimeout(se,20)};I(window,"mouseup",Ne)}else setTimeout(se,50)},an.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},an.prototype.setUneditable=function(){},an.prototype.needsContentAttribute=!1;function fc(e,t){if(t=t?$e(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=ce(me(e));t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=d.getValue()}var i;if(e.form&&(I(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var s=e.form;i=s.submit;try{var c=s.submit=function(){n(),s.submit=i,s.submit(),s.submit=c}}catch(h){}}t.finishInit=function(h){h.save=n,h.getTextArea=function(){return e},h.toTextArea=function(){h.toTextArea=isNaN,n(),e.parentNode.removeChild(h.getWrapperElement()),e.style.display="",e.form&&(Xe(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var d=Gt(function(h){return e.parentNode.insertBefore(h,e.nextSibling)},t);return d}function dc(e){e.off=Xe,e.on=I,e.wheelEventPixels=bu,e.Doc=Tn,e.splitLines=Zr,e.countColumn=Ke,e.findColumn=qt,e.isWordChar=j,e.Pass=ht,e.signal=je,e.Line=f,e.changeEnd=Ur,e.scrollbarModel=bs,e.Pos=ze,e.cmpPos=ct,e.modes=Gn,e.mimeModes=en,e.resolveMode=On,e.getMode=or,e.modeExtensions=ar,e.extendMode=yi,e.copyState=$n,e.startState=Zi,e.innerMode=bi,e.commands=Fo,e.keyMap=Tr,e.keyName=ol,e.isModifierKey=rl,e.lookupKey=Ri,e.normalizeKeyMap=zu,e.StringStream=Kt,e.SharedTextMarker=Ao,e.TextMarker=Xr,e.LineWidget=Eo,e.e_preventDefault=at,e.e_stopPropagation=kt,e.e_stop=Ot,e.addClass=ke,e.contains=q,e.rmClass=we,e.keyNames=Kr}rc(Gt),sc(Gt);var pc="iter insert remove copy getEditor constructor".split(" ");for(var ga in Tn.prototype)Tn.prototype.hasOwnProperty(ga)&&Ze(pc,ga)<0&&(Gt.prototype[ga]=(function(e){return function(){return e.apply(this.doc,arguments)}})(Tn.prototype[ga]));return gt(Tn),Gt.inputStyles={textarea:an,contenteditable:Ht},Gt.defineMode=function(e){!Gt.defaults.mode&&e!="null"&&(Gt.defaults.mode=e),Nn.apply(this,arguments)},Gt.defineMIME=zn,Gt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Gt.defineMIME("text/plain","null"),Gt.defineExtension=function(e,t){Gt.prototype[e]=t},Gt.defineDocExtension=function(e,t){Tn.prototype[e]=t},Gt.fromTextArea=fc,dc(Gt),Gt.version="5.65.20",Gt}))}}),Il=Xt({"node_modules/codemirror/addon/edit/continuelist.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],T):T(CodeMirror)})(function(T){"use strict";var w=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,b=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,A=/[*+-]\s/;T.commands.newlineAndIndentContinueMarkdownList=function(D){if(D.getOption("disableInput"))return T.Pass;for(var k=D.listSelections(),B=[],N=0;N<k.length;N++){var U=k[N].head,L=D.getStateAfter(U.line),pe=T.innerMode(D.getMode(),L);if(pe.mode.name!=="markdown"&&pe.mode.helperType!=="markdown"){D.execCommand("newlineAndIndent");return}else L=pe.state;var fe=L.list!==!1,ie=L.quote!==0,oe=D.getLine(U.line),he=w.exec(oe),Y=/^\s*$/.test(oe.slice(0,U.ch));if(!k[N].empty()||!fe&&!ie||!he||Y){D.execCommand("newlineAndIndent");return}if(b.test(oe)){var z=ie&&/>\s*$/.test(oe),Z=!/>\s*$/.test(oe);(z||Z)&&D.replaceRange("",{line:U.line,ch:0},{line:U.line,ch:U.ch+1}),B[N]=`
57
+ `}else{var G=he[1],be=he[5],ee=!(A.test(he[2])||he[2].indexOf(">")>=0),l=ee?parseInt(he[3],10)+1+he[4]:he[2].replace("x"," ");B[N]=`
58
+ `+G+l+be,ee&&C(D,U)}}D.replaceSelections(B)};function C(D,k){var B=k.line,N=0,U=0,L=w.exec(D.getLine(B)),pe=L[1];do{N+=1;var fe=B+N,ie=D.getLine(fe),oe=w.exec(ie);if(oe){var he=oe[1],Y=parseInt(L[3],10)+N-U,z=parseInt(oe[3],10),Z=z;if(pe===he&&!isNaN(z))Y===z&&(Z=z+1),Y>z&&(Z=Y+1),D.replaceRange(ie.replace(w,he+Z+oe[4]+oe[5]),{line:fe,ch:0},{line:fe,ch:ie.length});else{if(pe.length>he.length||pe.length<he.length&&N===1)return;U+=1}}}while(oe)}})}}),_l=Xt({"node_modules/easymde/src/js/codemirror/tablist.js"(){var Q=qn();Q.commands.tabAndIndentMarkdownList=function(le){var T=le.listSelections(),w=T[0].head,b=le.getStateAfter(w.line),A=b.list!==!1;if(A){le.execCommand("indentMore");return}if(le.options.indentWithTabs)le.execCommand("insertTab");else{var C=Array(le.options.tabSize+1).join(" ");le.replaceSelection(C)}},Q.commands.shiftTabAndUnindentMarkdownList=function(le){var T=le.listSelections(),w=T[0].head,b=le.getStateAfter(w.line),A=b.list!==!1;if(A){le.execCommand("indentLess");return}if(le.options.indentWithTabs)le.execCommand("insertTab");else{var C=Array(le.options.tabSize+1).join(" ");le.replaceSelection(C)}}}}),Hl=Xt({"node_modules/codemirror/addon/display/fullscreen.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],T):T(CodeMirror)})(function(T){"use strict";T.defineOption("fullScreen",!1,function(A,C,D){D==T.Init&&(D=!1),!D!=!C&&(C?w(A):b(A))});function w(A){var C=A.getWrapperElement();A.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:C.style.width,height:C.style.height},C.style.width="",C.style.height="auto",C.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",A.refresh()}function b(A){var C=A.getWrapperElement();C.className=C.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var D=A.state.fullScreenRestore;C.style.width=D.width,C.style.height=D.height,window.scrollTo(D.scrollLeft,D.scrollTop),A.refresh()}})}}),as=Xt({"node_modules/codemirror/mode/xml/xml.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],T):T(CodeMirror)})(function(T){"use strict";var w={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},b={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};T.defineMode("xml",function(A,C){var D=A.indentUnit,k={},B=C.htmlMode?w:b;for(var N in B)k[N]=B[N];for(var N in C)k[N]=C[N];var U,L;function pe($,Le){function Ee(ke){return Le.tokenize=ke,ke($,Le)}var q=$.next();if(q=="<")return $.eat("!")?$.eat("[")?$.match("CDATA[")?Ee(oe("atom","]]>")):null:$.match("--")?Ee(oe("comment","-->")):$.match("DOCTYPE",!0,!0)?($.eatWhile(/[\w\._\-]/),Ee(he(1))):null:$.eat("?")?($.eatWhile(/[\w\._\-]/),Le.tokenize=oe("meta","?>"),"meta"):(U=$.eat("/")?"closeTag":"openTag",Le.tokenize=fe,"tag bracket");if(q=="&"){var ce;return $.eat("#")?$.eat("x")?ce=$.eatWhile(/[a-fA-F\d]/)&&$.eat(";"):ce=$.eatWhile(/[\d]/)&&$.eat(";"):ce=$.eatWhile(/[\w\.\-:]/)&&$.eat(";"),ce?"atom":"error"}else return $.eatWhile(/[^&<]/),null}pe.isInText=!0;function fe($,Le){var Ee=$.next();if(Ee==">"||Ee=="/"&&$.eat(">"))return Le.tokenize=pe,U=Ee==">"?"endTag":"selfcloseTag","tag bracket";if(Ee=="=")return U="equals",null;if(Ee=="<"){Le.tokenize=pe,Le.state=be,Le.tagName=Le.tagStart=null;var q=Le.tokenize($,Le);return q?q+" tag error":"tag error"}else return/[\'\"]/.test(Ee)?(Le.tokenize=ie(Ee),Le.stringStartCol=$.column(),Le.tokenize($,Le)):($.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ie($){var Le=function(Ee,q){for(;!Ee.eol();)if(Ee.next()==$){q.tokenize=fe;break}return"string"};return Le.isInAttribute=!0,Le}function oe($,Le){return function(Ee,q){for(;!Ee.eol();){if(Ee.match(Le)){q.tokenize=pe;break}Ee.next()}return $}}function he($){return function(Le,Ee){for(var q;(q=Le.next())!=null;){if(q=="<")return Ee.tokenize=he($+1),Ee.tokenize(Le,Ee);if(q==">")if($==1){Ee.tokenize=pe;break}else return Ee.tokenize=he($-1),Ee.tokenize(Le,Ee)}return"meta"}}function Y($){return $&&$.toLowerCase()}function z($,Le,Ee){this.prev=$.context,this.tagName=Le||"",this.indent=$.indented,this.startOfLine=Ee,(k.doNotIndent.hasOwnProperty(Le)||$.context&&$.context.noIndent)&&(this.noIndent=!0)}function Z($){$.context&&($.context=$.context.prev)}function G($,Le){for(var Ee;;){if(!$.context||(Ee=$.context.tagName,!k.contextGrabbers.hasOwnProperty(Y(Ee))||!k.contextGrabbers[Y(Ee)].hasOwnProperty(Y(Le))))return;Z($)}}function be($,Le,Ee){return $=="openTag"?(Ee.tagStart=Le.column(),ee):$=="closeTag"?l:be}function ee($,Le,Ee){return $=="word"?(Ee.tagName=Le.current(),L="tag",Me):k.allowMissingTagName&&$=="endTag"?(L="tag bracket",Me($,Le,Ee)):(L="error",ee)}function l($,Le,Ee){if($=="word"){var q=Le.current();return Ee.context&&Ee.context.tagName!=q&&k.implicitlyClosed.hasOwnProperty(Y(Ee.context.tagName))&&Z(Ee),Ee.context&&Ee.context.tagName==q||k.matchClosing===!1?(L="tag",ve):(L="tag error",ye)}else return k.allowMissingTagName&&$=="endTag"?(L="tag bracket",ve($,Le,Ee)):(L="error",ye)}function ve($,Le,Ee){return $!="endTag"?(L="error",ve):(Z(Ee),be)}function ye($,Le,Ee){return L="error",ve($,Le,Ee)}function Me($,Le,Ee){if($=="word")return L="attribute",we;if($=="endTag"||$=="selfcloseTag"){var q=Ee.tagName,ce=Ee.tagStart;return Ee.tagName=Ee.tagStart=null,$=="selfcloseTag"||k.autoSelfClosers.hasOwnProperty(Y(q))?G(Ee,q):(G(Ee,q),Ee.context=new z(Ee,q,ce==Ee.indented)),be}return L="error",Me}function we($,Le,Ee){return $=="equals"?Oe:(k.allowMissing||(L="error"),Me($,Le,Ee))}function Oe($,Le,Ee){return $=="string"?Be:$=="word"&&k.allowUnquoted?(L="string",Me):(L="error",Me($,Le,Ee))}function Be($,Le,Ee){return $=="string"?Be:Me($,Le,Ee)}return{startState:function($){var Le={tokenize:pe,state:be,indented:$||0,tagName:null,tagStart:null,context:null};return $!=null&&(Le.baseIndent=$),Le},token:function($,Le){if(!Le.tagName&&$.sol()&&(Le.indented=$.indentation()),$.eatSpace())return null;U=null;var Ee=Le.tokenize($,Le);return(Ee||U)&&Ee!="comment"&&(L=null,Le.state=Le.state(U||Ee,$,Le),L&&(Ee=L=="error"?Ee+" error":L)),Ee},indent:function($,Le,Ee){var q=$.context;if($.tokenize.isInAttribute)return $.tagStart==$.indented?$.stringStartCol+1:$.indented+D;if(q&&q.noIndent)return T.Pass;if($.tokenize!=fe&&$.tokenize!=pe)return Ee?Ee.match(/^(\s*)/)[0].length:0;if($.tagName)return k.multilineTagIndentPastTag!==!1?$.tagStart+$.tagName.length+2:$.tagStart+D*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/<!\[CDATA\[/.test(Le))return 0;var ce=Le&&/^<(\/)?([\w_:\.-]*)/.exec(Le);if(ce&&ce[1])for(;q;)if(q.tagName==ce[2]){q=q.prev;break}else if(k.implicitlyClosed.hasOwnProperty(Y(q.tagName)))q=q.prev;else break;else if(ce)for(;q;){var ke=k.contextGrabbers[Y(q.tagName)];if(ke&&ke.hasOwnProperty(Y(ce[2])))q=q.prev;else break}for(;q&&q.prev&&!q.startOfLine;)q=q.prev;return q?q.indent+D:$.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function($){$.state==Oe&&($.state=Me)},xmlCurrentTag:function($){return $.tagName?{name:$.tagName,close:$.type=="closeTag"}:null},xmlCurrentContext:function($){for(var Le=[],Ee=$.context;Ee;Ee=Ee.prev)Le.push(Ee.tagName);return Le.reverse()}}}),T.defineMIME("text/xml","xml"),T.defineMIME("application/xml","xml"),T.mimeModes.hasOwnProperty("text/html")||T.defineMIME("text/html",{name:"xml",htmlMode:!0})})}}),Pl=Xt({"node_modules/codemirror/mode/meta.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],T):T(CodeMirror)})(function(T){"use strict";T.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var w=0;w<T.modeInfo.length;w++){var b=T.modeInfo[w];b.mimes&&(b.mime=b.mimes[0])}T.findModeByMIME=function(A){A=A.toLowerCase();for(var C=0;C<T.modeInfo.length;C++){var D=T.modeInfo[C];if(D.mime==A)return D;if(D.mimes){for(var k=0;k<D.mimes.length;k++)if(D.mimes[k]==A)return D}}if(/\+xml$/.test(A))return T.findModeByMIME("application/xml");if(/\+json$/.test(A))return T.findModeByMIME("application/json")},T.findModeByExtension=function(A){A=A.toLowerCase();for(var C=0;C<T.modeInfo.length;C++){var D=T.modeInfo[C];if(D.ext){for(var k=0;k<D.ext.length;k++)if(D.ext[k]==A)return D}}},T.findModeByFileName=function(A){for(var C=0;C<T.modeInfo.length;C++){var D=T.modeInfo[C];if(D.file&&D.file.test(A))return D}var k=A.lastIndexOf("."),B=k>-1&&A.substring(k+1,A.length);if(B)return T.findModeByExtension(B)},T.findModeByName=function(A){A=A.toLowerCase();for(var C=0;C<T.modeInfo.length;C++){var D=T.modeInfo[C];if(D.name.toLowerCase()==A)return D;if(D.alias){for(var k=0;k<D.alias.length;k++)if(D.alias[k].toLowerCase()==A)return D}}}})}}),ss=Xt({"node_modules/codemirror/mode/markdown/markdown.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn(),as(),Pl()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],T):T(CodeMirror)})(function(T){"use strict";T.defineMode("markdown",function(w,b){var A=T.getMode(w,"text/html"),C=A.name=="null";function D(S){if(T.findModeByName){var p=T.findModeByName(S);p&&(S=p.mime||p.mimes[0])}var P=T.getMode(w,S);return P.name=="null"?null:P}b.highlightFormatting===void 0&&(b.highlightFormatting=!1),b.maxBlockquoteDepth===void 0&&(b.maxBlockquoteDepth=0),b.taskLists===void 0&&(b.taskLists=!1),b.strikethrough===void 0&&(b.strikethrough=!1),b.emoji===void 0&&(b.emoji=!1),b.fencedCodeBlockHighlighting===void 0&&(b.fencedCodeBlockHighlighting=!0),b.fencedCodeBlockDefaultMode===void 0&&(b.fencedCodeBlockDefaultMode="text/plain"),b.xml===void 0&&(b.xml=!0),b.tokenTypeOverrides===void 0&&(b.tokenTypeOverrides={});var k={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var B in k)k.hasOwnProperty(B)&&b.tokenTypeOverrides[B]&&(k[B]=b.tokenTypeOverrides[B]);var N=/^([*\-_])(?:\s*\1){2,}\s*$/,U=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,L=/^\[(x| )\](?=\s)/i,pe=b.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,fe=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ie=/^[^#!\[\]*_\\<>` "'(~:]+/,oe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,he=/^\s*\[[^\]]+?\]:.*$/,Y=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,z=" ";function Z(S,p,P){return p.f=p.inline=P,P(S,p)}function G(S,p,P){return p.f=p.block=P,P(S,p)}function be(S){return!S||!/\S/.test(S.string)}function ee(S){if(S.linkTitle=!1,S.linkHref=!1,S.linkText=!1,S.em=!1,S.strong=!1,S.strikethrough=!1,S.quote=0,S.indentedCode=!1,S.f==ve){var p=C;if(!p){var P=T.innerMode(A,S.htmlState);p=P.mode.name=="xml"&&P.state.tagStart===null&&!P.state.context&&P.state.tokenize.isInText}p&&(S.f=Oe,S.block=l,S.htmlState=null)}return S.trailingSpace=0,S.trailingSpaceNewLine=!1,S.prevLine=S.thisLine,S.thisLine={stream:null},null}function l(S,p){var P=S.column()===p.indentation,me=be(p.prevLine.stream),Ce=p.indentedCode,Pe=p.prevLine.hr,$e=p.list!==!1,Ke=(p.listStack[p.listStack.length-1]||0)+3;p.indentedCode=!1;var ot=p.indentation;if(p.indentationDiff===null&&(p.indentationDiff=p.indentation,$e)){for(p.list=null;ot<p.listStack[p.listStack.length-1];)p.listStack.pop(),p.listStack.length?p.indentation=p.listStack[p.listStack.length-1]:p.list=!1;p.list!==!1&&(p.indentationDiff=ot-p.listStack[p.listStack.length-1])}var Ze=!me&&!Pe&&!p.prevLine.header&&(!$e||!Ce)&&!p.prevLine.fencedCodeEnd,pt=(p.list===!1||Pe||me)&&p.indentation<=Ke&&S.match(N),ht=null;if(p.indentationDiff>=4&&(Ce||p.prevLine.fencedCodeEnd||p.prevLine.header||me))return S.skipToEnd(),p.indentedCode=!0,k.code;if(S.eatSpace())return null;if(P&&p.indentation<=Ke&&(ht=S.match(pe))&&ht[1].length<=6)return p.quote=0,p.header=ht[1].length,p.thisLine.header=!0,b.highlightFormatting&&(p.formatting="header"),p.f=p.inline,Me(p);if(p.indentation<=Ke&&S.eat(">"))return p.quote=P?1:p.quote+1,b.highlightFormatting&&(p.formatting="quote"),S.eatSpace(),Me(p);if(!pt&&!p.setext&&P&&p.indentation<=Ke&&(ht=S.match(U))){var Tt=ht[1]?"ol":"ul";return p.indentation=ot+S.current().length,p.list=!0,p.quote=0,p.listStack.push(p.indentation),p.em=!1,p.strong=!1,p.code=!1,p.strikethrough=!1,b.taskLists&&S.match(L,!1)&&(p.taskList=!0),p.f=p.inline,b.highlightFormatting&&(p.formatting=["list","list-"+Tt]),Me(p)}else{if(P&&p.indentation<=Ke&&(ht=S.match(oe,!0)))return p.quote=0,p.fencedEndRE=new RegExp(ht[1]+"+ *$"),p.localMode=b.fencedCodeBlockHighlighting&&D(ht[2]||b.fencedCodeBlockDefaultMode),p.localMode&&(p.localState=T.startState(p.localMode)),p.f=p.block=ye,b.highlightFormatting&&(p.formatting="code-block"),p.code=-1,Me(p);if(p.setext||(!Ze||!$e)&&!p.quote&&p.list===!1&&!p.code&&!pt&&!he.test(S.string)&&(ht=S.lookAhead(1))&&(ht=ht.match(fe)))return p.setext?(p.header=p.setext,p.setext=0,S.skipToEnd(),b.highlightFormatting&&(p.formatting="header")):(p.header=ht[0].charAt(0)=="="?1:2,p.setext=p.header),p.thisLine.header=!0,p.f=p.inline,Me(p);if(pt)return S.skipToEnd(),p.hr=!0,p.thisLine.hr=!0,k.hr;if(S.peek()==="[")return Z(S,p,q)}return Z(S,p,p.inline)}function ve(S,p){var P=A.token(S,p.htmlState);if(!C){var me=T.innerMode(A,p.htmlState);(me.mode.name=="xml"&&me.state.tagStart===null&&!me.state.context&&me.state.tokenize.isInText||p.md_inside&&S.current().indexOf(">")>-1)&&(p.f=Oe,p.block=l,p.htmlState=null)}return P}function ye(S,p){var P=p.listStack[p.listStack.length-1]||0,me=p.indentation<P,Ce=P+3;if(p.fencedEndRE&&p.indentation<=Ce&&(me||S.match(p.fencedEndRE))){b.highlightFormatting&&(p.formatting="code-block");var Pe;return me||(Pe=Me(p)),p.localMode=p.localState=null,p.block=l,p.f=Oe,p.fencedEndRE=null,p.code=0,p.thisLine.fencedCodeEnd=!0,me?G(S,p,p.block):Pe}else return p.localMode?p.localMode.token(S,p.localState):(S.skipToEnd(),k.code)}function Me(S){var p=[];if(S.formatting){p.push(k.formatting),typeof S.formatting=="string"&&(S.formatting=[S.formatting]);for(var P=0;P<S.formatting.length;P++)p.push(k.formatting+"-"+S.formatting[P]),S.formatting[P]==="header"&&p.push(k.formatting+"-"+S.formatting[P]+"-"+S.header),S.formatting[P]==="quote"&&(!b.maxBlockquoteDepth||b.maxBlockquoteDepth>=S.quote?p.push(k.formatting+"-"+S.formatting[P]+"-"+S.quote):p.push("error"))}if(S.taskOpen)return p.push("meta"),p.length?p.join(" "):null;if(S.taskClosed)return p.push("property"),p.length?p.join(" "):null;if(S.linkHref?p.push(k.linkHref,"url"):(S.strong&&p.push(k.strong),S.em&&p.push(k.em),S.strikethrough&&p.push(k.strikethrough),S.emoji&&p.push(k.emoji),S.linkText&&p.push(k.linkText),S.code&&p.push(k.code),S.image&&p.push(k.image),S.imageAltText&&p.push(k.imageAltText,"link"),S.imageMarker&&p.push(k.imageMarker)),S.header&&p.push(k.header,k.header+"-"+S.header),S.quote&&(p.push(k.quote),!b.maxBlockquoteDepth||b.maxBlockquoteDepth>=S.quote?p.push(k.quote+"-"+S.quote):p.push(k.quote+"-"+b.maxBlockquoteDepth)),S.list!==!1){var me=(S.listStack.length-1)%3;me?me===1?p.push(k.list2):p.push(k.list3):p.push(k.list1)}return S.trailingSpaceNewLine?p.push("trailing-space-new-line"):S.trailingSpace&&p.push("trailing-space-"+(S.trailingSpace%2?"a":"b")),p.length?p.join(" "):null}function we(S,p){if(S.match(ie,!0))return Me(p)}function Oe(S,p){var P=p.text(S,p);if(typeof P!="undefined")return P;if(p.list)return p.list=null,Me(p);if(p.taskList){var me=S.match(L,!0)[1]===" ";return me?p.taskOpen=!0:p.taskClosed=!0,b.highlightFormatting&&(p.formatting="task"),p.taskList=!1,Me(p)}if(p.taskOpen=!1,p.taskClosed=!1,p.header&&S.match(/^#+$/,!0))return b.highlightFormatting&&(p.formatting="header"),Me(p);var Ce=S.next();if(p.linkTitle){p.linkTitle=!1;var Pe=Ce;Ce==="("&&(Pe=")"),Pe=(Pe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $e="^\\s*(?:[^"+Pe+"\\\\]+|\\\\\\\\|\\\\.)"+Pe;if(S.match(new RegExp($e),!0))return k.linkHref}if(Ce==="`"){var Ke=p.formatting;b.highlightFormatting&&(p.formatting="code"),S.eatWhile("`");var ot=S.current().length;if(p.code==0&&(!p.quote||ot==1))return p.code=ot,Me(p);if(ot==p.code){var Ze=Me(p);return p.code=0,Ze}else return p.formatting=Ke,Me(p)}else if(p.code)return Me(p);if(Ce==="\\"&&(S.next(),b.highlightFormatting)){var pt=Me(p),ht=k.formatting+"-escape";return pt?pt+" "+ht:ht}if(Ce==="!"&&S.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return p.imageMarker=!0,p.image=!0,b.highlightFormatting&&(p.formatting="image"),Me(p);if(Ce==="["&&p.imageMarker&&S.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return p.imageMarker=!1,p.imageAltText=!0,b.highlightFormatting&&(p.formatting="image"),Me(p);if(Ce==="]"&&p.imageAltText){b.highlightFormatting&&(p.formatting="image");var pt=Me(p);return p.imageAltText=!1,p.image=!1,p.inline=p.f=$,pt}if(Ce==="["&&!p.image)return p.linkText&&S.match(/^.*?\]/)||(p.linkText=!0,b.highlightFormatting&&(p.formatting="link")),Me(p);if(Ce==="]"&&p.linkText){b.highlightFormatting&&(p.formatting="link");var pt=Me(p);return p.linkText=!1,p.inline=p.f=S.match(/\(.*?\)| ?\[.*?\]/,!1)?$:Oe,pt}if(Ce==="<"&&S.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){p.f=p.inline=Be,b.highlightFormatting&&(p.formatting="link");var pt=Me(p);return pt?pt+=" ":pt="",pt+k.linkInline}if(Ce==="<"&&S.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){p.f=p.inline=Be,b.highlightFormatting&&(p.formatting="link");var pt=Me(p);return pt?pt+=" ":pt="",pt+k.linkEmail}if(b.xml&&Ce==="<"&&S.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Tt=S.string.indexOf(">",S.pos);if(Tt!=-1){var rt=S.string.substring(S.start,Tt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(rt)&&(p.md_inside=!0)}return S.backUp(1),p.htmlState=T.startState(A),G(S,p,ve)}if(b.xml&&Ce==="<"&&S.match(/^\/\w*?>/))return p.md_inside=!1,"tag";if(Ce==="*"||Ce==="_"){for(var Qt=1,qt=S.pos==1?" ":S.string.charAt(S.pos-2);Qt<3&&S.eat(Ce);)Qt++;var Vt=S.peek()||" ",Jt=!/\s/.test(Vt)&&(!Y.test(Vt)||/\s/.test(qt)||Y.test(qt)),bt=!/\s/.test(qt)&&(!Y.test(qt)||/\s/.test(Vt)||Y.test(Vt)),mn=null,Lt=null;if(Qt%2&&(!p.em&&Jt&&(Ce==="*"||!bt||Y.test(qt))?mn=!0:p.em==Ce&&bt&&(Ce==="*"||!Jt||Y.test(Vt))&&(mn=!1)),Qt>1&&(!p.strong&&Jt&&(Ce==="*"||!bt||Y.test(qt))?Lt=!0:p.strong==Ce&&bt&&(Ce==="*"||!Jt||Y.test(Vt))&&(Lt=!1)),Lt!=null||mn!=null){b.highlightFormatting&&(p.formatting=mn==null?"strong":Lt==null?"em":"strong em"),mn===!0&&(p.em=Ce),Lt===!0&&(p.strong=Ce);var Ze=Me(p);return mn===!1&&(p.em=!1),Lt===!1&&(p.strong=!1),Ze}}else if(Ce===" "&&(S.eat("*")||S.eat("_"))){if(S.peek()===" ")return Me(p);S.backUp(1)}if(b.strikethrough){if(Ce==="~"&&S.eatWhile(Ce)){if(p.strikethrough){b.highlightFormatting&&(p.formatting="strikethrough");var Ze=Me(p);return p.strikethrough=!1,Ze}else if(S.match(/^[^\s]/,!1))return p.strikethrough=!0,b.highlightFormatting&&(p.formatting="strikethrough"),Me(p)}else if(Ce===" "&&S.match("~~",!0)){if(S.peek()===" ")return Me(p);S.backUp(2)}}if(b.emoji&&Ce===":"&&S.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){p.emoji=!0,b.highlightFormatting&&(p.formatting="emoji");var jt=Me(p);return p.emoji=!1,jt}return Ce===" "&&(S.match(/^ +$/,!1)?p.trailingSpace++:p.trailingSpace&&(p.trailingSpaceNewLine=!0)),Me(p)}function Be(S,p){var P=S.next();if(P===">"){p.f=p.inline=Oe,b.highlightFormatting&&(p.formatting="link");var me=Me(p);return me?me+=" ":me="",me+k.linkInline}return S.match(/^[^>]+/,!0),k.linkInline}function $(S,p){if(S.eatSpace())return null;var P=S.next();return P==="("||P==="["?(p.f=p.inline=Ee(P==="("?")":"]"),b.highlightFormatting&&(p.formatting="link-string"),p.linkHref=!0,Me(p)):"error"}var Le={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ee(S){return function(p,P){var me=p.next();if(me===S){P.f=P.inline=Oe,b.highlightFormatting&&(P.formatting="link-string");var Ce=Me(P);return P.linkHref=!1,Ce}return p.match(Le[S]),P.linkHref=!0,Me(P)}}function q(S,p){return S.match(/^([^\]\\]|\\.)*\]:/,!1)?(p.f=ce,S.next(),b.highlightFormatting&&(p.formatting="link"),p.linkText=!0,Me(p)):Z(S,p,Oe)}function ce(S,p){if(S.match("]:",!0)){p.f=p.inline=ke,b.highlightFormatting&&(p.formatting="link");var P=Me(p);return p.linkText=!1,P}return S.match(/^([^\]\\]|\\.)+/,!0),k.linkText}function ke(S,p){return S.eatSpace()?null:(S.match(/^[^\s]+/,!0),S.peek()===void 0?p.linkTitle=!0:S.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),p.f=p.inline=Oe,k.linkHref+" url")}var _e={startState:function(){return{f:l,prevLine:{stream:null},thisLine:{stream:null},block:l,htmlState:null,indentation:0,inline:Oe,text:we,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(S){return{f:S.f,prevLine:S.prevLine,thisLine:S.thisLine,block:S.block,htmlState:S.htmlState&&T.copyState(A,S.htmlState),indentation:S.indentation,localMode:S.localMode,localState:S.localMode?T.copyState(S.localMode,S.localState):null,inline:S.inline,text:S.text,formatting:!1,linkText:S.linkText,linkTitle:S.linkTitle,linkHref:S.linkHref,code:S.code,em:S.em,strong:S.strong,strikethrough:S.strikethrough,emoji:S.emoji,header:S.header,setext:S.setext,hr:S.hr,taskList:S.taskList,list:S.list,listStack:S.listStack.slice(0),quote:S.quote,indentedCode:S.indentedCode,trailingSpace:S.trailingSpace,trailingSpaceNewLine:S.trailingSpaceNewLine,md_inside:S.md_inside,fencedEndRE:S.fencedEndRE}},token:function(S,p){if(p.formatting=!1,S!=p.thisLine.stream){if(p.header=0,p.hr=!1,S.match(/^\s*$/,!0))return ee(p),null;if(p.prevLine=p.thisLine,p.thisLine={stream:S},p.taskList=!1,p.trailingSpace=0,p.trailingSpaceNewLine=!1,!p.localState&&(p.f=p.block,p.f!=ve)){var P=S.match(/^\s*/,!0)[0].replace(/\t/g,z).length;if(p.indentation=P,p.indentationDiff=null,P>0)return null}}return p.f(S,p)},innerMode:function(S){return S.block==ve?{state:S.htmlState,mode:A}:S.localState?{state:S.localState,mode:S.localMode}:{state:S,mode:_e}},indent:function(S,p,P){return S.block==ve&&A.indent?A.indent(S.htmlState,p,P):S.localState&&S.localMode.indent?S.localMode.indent(S.localState,p,P):T.Pass},blankLine:ee,getType:Me,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return _e},"xml"),T.defineMIME("text/markdown","markdown"),T.defineMIME("text/x-markdown","markdown")})}}),ls=Xt({"node_modules/codemirror/addon/mode/overlay.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],T):T(CodeMirror)})(function(T){"use strict";T.overlayMode=function(w,b,A){return{startState:function(){return{base:T.startState(w),overlay:T.startState(b),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(C){return{base:T.copyState(w,C.base),overlay:T.copyState(b,C.overlay),basePos:C.basePos,baseCur:null,overlayPos:C.overlayPos,overlayCur:null}},token:function(C,D){return(C!=D.streamSeen||Math.min(D.basePos,D.overlayPos)<C.start)&&(D.streamSeen=C,D.basePos=D.overlayPos=C.start),C.start==D.basePos&&(D.baseCur=w.token(C,D.base),D.basePos=C.pos),C.start==D.overlayPos&&(C.pos=C.start,D.overlayCur=b.token(C,D.overlay),D.overlayPos=C.pos),C.pos=Math.min(D.basePos,D.overlayPos),D.overlayCur==null?D.baseCur:D.baseCur!=null&&D.overlay.combineTokens||A&&D.overlay.combineTokens==null?D.baseCur+" "+D.overlayCur:D.overlayCur},indent:w.indent&&function(C,D,k){return w.indent(C.base,D,k)},electricChars:w.electricChars,innerMode:function(C){return{state:C.base,mode:w}},blankLine:function(C){var D,k;return w.blankLine&&(D=w.blankLine(C.base)),b.blankLine&&(k=b.blankLine(C.overlay)),k==null?D:A&&D!=null?D+" "+k:k}}}})}}),Rl=Xt({"node_modules/codemirror/addon/display/placeholder.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],T):T(CodeMirror)})(function(T){T.defineOption("placeholder","",function(B,N,U){var L=U&&U!=T.Init;if(N&&!L)B.on("blur",C),B.on("change",D),B.on("swapDoc",D),T.on(B.getInputField(),"compositionupdate",B.state.placeholderCompose=function(){A(B)}),D(B);else if(!N&&L){B.off("blur",C),B.off("change",D),B.off("swapDoc",D),T.off(B.getInputField(),"compositionupdate",B.state.placeholderCompose),w(B);var pe=B.getWrapperElement();pe.className=pe.className.replace(" CodeMirror-empty","")}N&&!B.hasFocus()&&C(B)});function w(B){B.state.placeholder&&(B.state.placeholder.parentNode.removeChild(B.state.placeholder),B.state.placeholder=null)}function b(B){w(B);var N=B.state.placeholder=document.createElement("pre");N.style.cssText="height: 0; overflow: visible",N.style.direction=B.getOption("direction"),N.className="CodeMirror-placeholder CodeMirror-line-like";var U=B.getOption("placeholder");typeof U=="string"&&(U=document.createTextNode(U)),N.appendChild(U),B.display.lineSpace.insertBefore(N,B.display.lineSpace.firstChild)}function A(B){setTimeout(function(){var N=!1;if(B.lineCount()==1){var U=B.getInputField();N=U.nodeName=="TEXTAREA"?!B.getLine(0).length:!/[^\u200b]/.test(U.querySelector(".CodeMirror-line").textContent)}N?b(B):w(B)},20)}function C(B){k(B)&&b(B)}function D(B){var N=B.getWrapperElement(),U=k(B);N.className=N.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?b(B):w(B)}function k(B){return B.lineCount()===1&&B.getLine(0)===""}})}}),ql=Xt({"node_modules/codemirror/addon/display/autorefresh.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],T):T(CodeMirror)})(function(T){"use strict";T.defineOption("autoRefresh",!1,function(A,C){A.state.autoRefresh&&(b(A,A.state.autoRefresh),A.state.autoRefresh=null),C&&A.display.wrapper.offsetHeight==0&&w(A,A.state.autoRefresh={delay:C.delay||250})});function w(A,C){function D(){A.display.wrapper.offsetHeight?(b(A,C),A.display.lastWrapHeight!=A.display.wrapper.clientHeight&&A.refresh()):C.timeout=setTimeout(D,C.delay)}C.timeout=setTimeout(D,C.delay),C.hurry=function(){clearTimeout(C.timeout),C.timeout=setTimeout(D,50)},T.on(window,"mouseup",C.hurry),T.on(window,"keyup",C.hurry)}function b(A,C){clearTimeout(C.timeout),T.off(window,"mouseup",C.hurry),T.off(window,"keyup",C.hurry)}})}}),zl=Xt({"node_modules/codemirror/addon/selection/mark-selection.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],T):T(CodeMirror)})(function(T){"use strict";T.defineOption("styleSelectedText",!1,function(L,pe,fe){var ie=fe&&fe!=T.Init;pe&&!ie?(L.state.markedSelection=[],L.state.markedSelectionStyle=typeof pe=="string"?pe:"CodeMirror-selectedtext",N(L),L.on("cursorActivity",w),L.on("change",b)):!pe&&ie&&(L.off("cursorActivity",w),L.off("change",b),B(L),L.state.markedSelection=L.state.markedSelectionStyle=null)});function w(L){L.state.markedSelection&&L.operation(function(){U(L)})}function b(L){L.state.markedSelection&&L.state.markedSelection.length&&L.operation(function(){B(L)})}var A=8,C=T.Pos,D=T.cmpPos;function k(L,pe,fe,ie){if(D(pe,fe)!=0)for(var oe=L.state.markedSelection,he=L.state.markedSelectionStyle,Y=pe.line;;){var z=Y==pe.line?pe:C(Y,0),Z=Y+A,G=Z>=fe.line,be=G?fe:C(Z,0),ee=L.markText(z,be,{className:he});if(ie==null?oe.push(ee):oe.splice(ie++,0,ee),G)break;Y=Z}}function B(L){for(var pe=L.state.markedSelection,fe=0;fe<pe.length;++fe)pe[fe].clear();pe.length=0}function N(L){B(L);for(var pe=L.listSelections(),fe=0;fe<pe.length;fe++)k(L,pe[fe].from(),pe[fe].to())}function U(L){if(!L.somethingSelected())return B(L);if(L.listSelections().length>1)return N(L);var pe=L.getCursor("start"),fe=L.getCursor("end"),ie=L.state.markedSelection;if(!ie.length)return k(L,pe,fe);var oe=ie[0].find(),he=ie[ie.length-1].find();if(!oe||!he||fe.line-pe.line<=A||D(pe,he.to)>=0||D(fe,oe.from)<=0)return N(L);for(;D(pe,oe.from)>0;)ie.shift().clear(),oe=ie[0].find();for(D(pe,oe.from)<0&&(oe.to.line-pe.line<A?(ie.shift().clear(),k(L,pe,oe.to,0)):k(L,pe,oe.from,0));D(fe,he.to)<0;)ie.pop().clear(),he=ie[ie.length-1].find();D(fe,he.to)>0&&(fe.line-he.from.line<A?(ie.pop().clear(),k(L,he.from,fe)):k(L,he.to,fe))}})}}),$l=Xt({"node_modules/codemirror/addon/search/searchcursor.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],T):T(CodeMirror)})(function(T){"use strict";var w=T.Pos;function b(Y){var z=Y.flags;return z!=null?z:(Y.ignoreCase?"i":"")+(Y.global?"g":"")+(Y.multiline?"m":"")}function A(Y,z){for(var Z=b(Y),G=Z,be=0;be<z.length;be++)G.indexOf(z.charAt(be))==-1&&(G+=z.charAt(be));return Z==G?Y:new RegExp(Y.source,G)}function C(Y){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(Y.source)}function D(Y,z,Z){z=A(z,"g");for(var G=Z.line,be=Z.ch,ee=Y.lastLine();G<=ee;G++,be=0){z.lastIndex=be;var l=Y.getLine(G),ve=z.exec(l);if(ve)return{from:w(G,ve.index),to:w(G,ve.index+ve[0].length),match:ve}}}function k(Y,z,Z){if(!C(z))return D(Y,z,Z);z=A(z,"gm");for(var G,be=1,ee=Z.line,l=Y.lastLine();ee<=l;){for(var ve=0;ve<be&&!(ee>l);ve++){var ye=Y.getLine(ee++);G=G==null?ye:G+`
59
+ `+ye}be=be*2,z.lastIndex=Z.ch;var Me=z.exec(G);if(Me){var we=G.slice(0,Me.index).split(`
60
+ `),Oe=Me[0].split(`
61
+ `),Be=Z.line+we.length-1,$=we[we.length-1].length;return{from:w(Be,$),to:w(Be+Oe.length-1,Oe.length==1?$+Oe[0].length:Oe[Oe.length-1].length),match:Me}}}}function B(Y,z,Z){for(var G,be=0;be<=Y.length;){z.lastIndex=be;var ee=z.exec(Y);if(!ee)break;var l=ee.index+ee[0].length;if(l>Y.length-Z)break;(!G||l>G.index+G[0].length)&&(G=ee),be=ee.index+1}return G}function N(Y,z,Z){z=A(z,"g");for(var G=Z.line,be=Z.ch,ee=Y.firstLine();G>=ee;G--,be=-1){var l=Y.getLine(G),ve=B(l,z,be<0?0:l.length-be);if(ve)return{from:w(G,ve.index),to:w(G,ve.index+ve[0].length),match:ve}}}function U(Y,z,Z){if(!C(z))return N(Y,z,Z);z=A(z,"gm");for(var G,be=1,ee=Y.getLine(Z.line).length-Z.ch,l=Z.line,ve=Y.firstLine();l>=ve;){for(var ye=0;ye<be&&l>=ve;ye++){var Me=Y.getLine(l--);G=G==null?Me:Me+`
62
+ `+G}be*=2;var we=B(G,z,ee);if(we){var Oe=G.slice(0,we.index).split(`
63
+ `),Be=we[0].split(`
64
+ `),$=l+Oe.length,Le=Oe[Oe.length-1].length;return{from:w($,Le),to:w($+Be.length-1,Be.length==1?Le+Be[0].length:Be[Be.length-1].length),match:we}}}}var L,pe;String.prototype.normalize?(L=function(Y){return Y.normalize("NFD").toLowerCase()},pe=function(Y){return Y.normalize("NFD")}):(L=function(Y){return Y.toLowerCase()},pe=function(Y){return Y});function fe(Y,z,Z,G){if(Y.length==z.length)return Z;for(var be=0,ee=Z+Math.max(0,Y.length-z.length);;){if(be==ee)return be;var l=be+ee>>1,ve=G(Y.slice(0,l)).length;if(ve==Z)return l;ve>Z?ee=l:be=l+1}}function ie(Y,z,Z,G){if(!z.length)return null;var be=G?L:pe,ee=be(z).split(/\r|\n\r?/);e:for(var l=Z.line,ve=Z.ch,ye=Y.lastLine()+1-ee.length;l<=ye;l++,ve=0){var Me=Y.getLine(l).slice(ve),we=be(Me);if(ee.length==1){var Oe=we.indexOf(ee[0]);if(Oe==-1)continue e;var Z=fe(Me,we,Oe,be)+ve;return{from:w(l,fe(Me,we,Oe,be)+ve),to:w(l,fe(Me,we,Oe+ee[0].length,be)+ve)}}else{var Be=we.length-ee[0].length;if(we.slice(Be)!=ee[0])continue e;for(var $=1;$<ee.length-1;$++)if(be(Y.getLine(l+$))!=ee[$])continue e;var Le=Y.getLine(l+ee.length-1),Ee=be(Le),q=ee[ee.length-1];if(Ee.slice(0,q.length)!=q)continue e;return{from:w(l,fe(Me,we,Be,be)+ve),to:w(l+ee.length-1,fe(Le,Ee,q.length,be))}}}}function oe(Y,z,Z,G){if(!z.length)return null;var be=G?L:pe,ee=be(z).split(/\r|\n\r?/);e:for(var l=Z.line,ve=Z.ch,ye=Y.firstLine()-1+ee.length;l>=ye;l--,ve=-1){var Me=Y.getLine(l);ve>-1&&(Me=Me.slice(0,ve));var we=be(Me);if(ee.length==1){var Oe=we.lastIndexOf(ee[0]);if(Oe==-1)continue e;return{from:w(l,fe(Me,we,Oe,be)),to:w(l,fe(Me,we,Oe+ee[0].length,be))}}else{var Be=ee[ee.length-1];if(we.slice(0,Be.length)!=Be)continue e;for(var $=1,Z=l-ee.length+1;$<ee.length-1;$++)if(be(Y.getLine(Z+$))!=ee[$])continue e;var Le=Y.getLine(l+1-ee.length),Ee=be(Le);if(Ee.slice(Ee.length-ee[0].length)!=ee[0])continue e;return{from:w(l+1-ee.length,fe(Le,Ee,Le.length-ee[0].length,be)),to:w(l,fe(Me,we,Be.length,be))}}}}function he(Y,z,Z,G){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=Y,Z=Z?Y.clipPos(Z):w(0,0),this.pos={from:Z,to:Z};var be;typeof G=="object"?be=G.caseFold:(be=G,G=null),typeof z=="string"?(be==null&&(be=!1),this.matches=function(ee,l){return(ee?oe:ie)(Y,z,l,be)}):(z=A(z,"gm"),!G||G.multiline!==!1?this.matches=function(ee,l){return(ee?U:k)(Y,z,l)}:this.matches=function(ee,l){return(ee?N:D)(Y,z,l)})}he.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(Y){var z=this.doc.clipPos(Y?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(z=w(z.line,z.ch),Y?(z.ch--,z.ch<0&&(z.line--,z.ch=(this.doc.getLine(z.line)||"").length)):(z.ch++,z.ch>(this.doc.getLine(z.line)||"").length&&(z.ch=0,z.line++)),T.cmpPos(z,this.doc.clipPos(z))!=0))return this.atOccurrence=!1;var Z=this.matches(Y,z);if(this.afterEmptyMatch=Z&&T.cmpPos(Z.from,Z.to)==0,Z)return this.pos=Z,this.atOccurrence=!0,this.pos.match||!0;var G=w(Y?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:G,to:G},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(Y,z){if(this.atOccurrence){var Z=T.splitLines(Y);this.doc.replaceRange(Z,this.pos.from,this.pos.to,z),this.pos.to=w(this.pos.from.line+Z.length-1,Z[Z.length-1].length+(Z.length==1?this.pos.from.ch:0))}}},T.defineExtension("getSearchCursor",function(Y,z,Z){return new he(this.doc,Y,z,Z)}),T.defineDocExtension("getSearchCursor",function(Y,z,Z){return new he(this,Y,z,Z)}),T.defineExtension("selectMatches",function(Y,z){for(var Z=[],G=this.getSearchCursor(Y,this.getCursor("from"),z);G.findNext()&&!(T.cmpPos(G.to(),this.getCursor("to"))>0);)Z.push({anchor:G.from(),head:G.to()});Z.length&&this.setSelections(Z,0)})})}}),Wl=Xt({"node_modules/codemirror/mode/gfm/gfm.js"(Q,le){(function(T){typeof Q=="object"&&typeof le=="object"?T(qn(),ss(),ls()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],T):T(CodeMirror)})(function(T){"use strict";var w=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;T.defineMode("gfm",function(b,A){var C=0;function D(U){return U.code=!1,null}var k={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(U){return{code:U.code,codeBlock:U.codeBlock,ateSpace:U.ateSpace}},token:function(U,L){if(L.combineTokens=null,L.codeBlock)return U.match(/^```+/)?(L.codeBlock=!1,null):(U.skipToEnd(),null);if(U.sol()&&(L.code=!1),U.sol()&&U.match(/^```+/))return U.skipToEnd(),L.codeBlock=!0,null;if(U.peek()==="`"){U.next();var pe=U.pos;U.eatWhile("`");var fe=1+U.pos-pe;return L.code?fe===C&&(L.code=!1):(C=fe,L.code=!0),null}else if(L.code)return U.next(),null;if(U.eatSpace())return L.ateSpace=!0,null;if((U.sol()||L.ateSpace)&&(L.ateSpace=!1,A.gitHubSpice!==!1)){if(U.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return L.combineTokens=!0,"link";if(U.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return L.combineTokens=!0,"link"}return U.match(w)&&U.string.slice(U.start-2,U.start)!="]("&&(U.start==0||/\W/.test(U.string.charAt(U.start-1)))?(L.combineTokens=!0,"link"):(U.next(),null)},blankLine:D},B={taskLists:!0,strikethrough:!0,emoji:!0};for(var N in A)B[N]=A[N];return B.name="markdown",T.overlayMode(T.getMode(b,B),k)},"markdown"),T.defineMIME("text/x-gfm","gfm")})}}),jl=Xt({"(disabled):fs"(){}}),Ul=Xt({"node_modules/typo-js/typo.js"(Q,le){var T;(function(){"use strict";T=function(w,b,A,C){C=C||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=C.flags||{},this.memoized={},this.loaded=!1;var D=this,k,B,N,U,L;if(w)if(D.dictionary=w,b&&A)he();else if(typeof window!="undefined"&&(window.chrome&&window.chrome.runtime||window.browser&&window.browser.runtime)){var pe=window.chrome&&window.chrome.runtime?window.chrome.runtime:window.browser.runtime;C.dictionaryPath?k=C.dictionaryPath:k="typo/dictionaries",b||fe(pe.getURL(k+"/"+w+"/"+w+".aff"),ie),A||fe(pe.getURL(k+"/"+w+"/"+w+".dic"),oe)}else C.dictionaryPath?k=C.dictionaryPath:typeof __dirname!="undefined"?k=__dirname+"/dictionaries":k="./dictionaries",b||fe(k+"/"+w+"/"+w+".aff",ie),A||fe(k+"/"+w+"/"+w+".dic",oe);function fe(Y,z){var Z=D._readFile(Y,null,C==null?void 0:C.asyncLoad);C!=null&&C.asyncLoad?Z.then(function(G){z(G)}):z(Z)}function ie(Y){b=Y,A&&he()}function oe(Y){A=Y,b&&he()}function he(){for(D.rules=D._parseAFF(b),D.compoundRuleCodes={},B=0,U=D.compoundRules.length;B<U;B++){var Y=D.compoundRules[B];for(N=0,L=Y.length;N<L;N++)D.compoundRuleCodes[Y[N]]=[]}"ONLYINCOMPOUND"in D.flags&&(D.compoundRuleCodes[D.flags.ONLYINCOMPOUND]=[]),D.dictionaryTable=D._parseDIC(A);for(B in D.compoundRuleCodes)D.compoundRuleCodes[B].length===0&&delete D.compoundRuleCodes[B];for(B=0,U=D.compoundRules.length;B<U;B++){var z=D.compoundRules[B],Z="";for(N=0,L=z.length;N<L;N++){var G=z[N];G in D.compoundRuleCodes?Z+="("+D.compoundRuleCodes[G].join("|")+")":Z+=G}D.compoundRules[B]=new RegExp("^"+Z+"$","i")}D.loaded=!0,C!=null&&C.asyncLoad&&(C!=null&&C.loadedCallback)&&C.loadedCallback(D)}return this},T.prototype={load:function(w){for(var b in w)w.hasOwnProperty(b)&&(this[b]=w[b]);return this},_readFile:function(w,b,A){var C;if(b=b||"utf8",typeof XMLHttpRequest!="undefined"){var D=new XMLHttpRequest;if(D.open("GET",w,!!A),(C=D.overrideMimeType)===null||C===void 0||C.call(D,"text/plain; charset="+b),A){var k=new Promise(function(N,U){D.onload=function(){D.status===200?N(D.responseText):U(D.statusText)},D.onerror=function(){U(D.statusText)}});return D.send(null),k}else return D.send(null),D.responseText}else if(typeof Al!="undefined"){var B=jl();try{if(B.existsSync(w))return B.readFileSync(w,b);console.log("Path "+w+" does not exist.")}catch(N){console.log(N)}return""}return""},_parseAFF:function(w){var b={},A,C,D,k,B,N,U,L,pe=w.split(/\r?\n/);for(B=0,U=pe.length;B<U;B++)if(A=this._removeAffixComments(pe[B]),A=A.trim(),!!A){var fe=A.split(/\s+/),ie=fe[0];if(ie==="PFX"||ie==="SFX"){var oe=fe[1],he=fe[2];D=parseInt(fe[3],10);var Y=[];for(N=B+1,L=B+1+D;N<L;N++){C=pe[N],k=C.split(/\s+/);var z=k[2],Z=k[3].split("/"),G=Z[0];G==="0"&&(G="");var be=this.parseRuleCodes(Z[1]),ee=k[4],l={add:G};be.length>0&&(l.continuationClasses=be),ee!=="."&&(ie==="SFX"?l.match=new RegExp(ee+"$"):l.match=new RegExp("^"+ee)),z!="0"&&(ie==="SFX"?l.remove=new RegExp(z+"$"):l.remove=z),Y.push(l)}b[oe]={type:ie,combineable:he==="Y",entries:Y},B+=D}else if(ie==="COMPOUNDRULE"){for(D=parseInt(fe[1],10),N=B+1,L=B+1+D;N<L;N++)A=pe[N],k=A.split(/\s+/),this.compoundRules.push(k[1]);B+=D}else ie==="REP"?(k=A.split(/\s+/),k.length===3&&this.replacementTable.push([k[1],k[2]])):this.flags[ie]=fe[1]}return b},_removeAffixComments:function(w){return w.match(/^\s*#/)?"":w},_parseDIC:function(w){w=this._removeDicComments(w);var b=w.split(/\r?\n/),A={};function C(Oe,Be){A.hasOwnProperty(Oe)||(A[Oe]=null),Be.length>0&&(A[Oe]===null&&(A[Oe]=[]),A[Oe].push(Be))}for(var D=1,k=b.length;D<k;D++){var B=b[D];if(B){var N=B.replace(/\s.*$/,""),U=N.split("/",2),L=U[0];if(U.length>1){var pe=this.parseRuleCodes(U[1]);(!("NEEDAFFIX"in this.flags)||pe.indexOf(this.flags.NEEDAFFIX)===-1)&&C(L,pe);for(var fe=0,ie=pe.length;fe<ie;fe++){var oe=pe[fe],he=this.rules[oe];if(he)for(var Y=this._applyRule(L,he),z=0,Z=Y.length;z<Z;z++){var G=Y[z];if(C(G,[]),he.combineable)for(var be=fe+1;be<ie;be++){var ee=pe[be],l=this.rules[ee];if(l&&l.combineable&&he.type!=l.type)for(var ve=this._applyRule(G,l),ye=0,Me=ve.length;ye<Me;ye++){var we=ve[ye];C(we,[])}}}oe in this.compoundRuleCodes&&this.compoundRuleCodes[oe].push(L)}}else C(L.trim(),[])}}return A},_removeDicComments:function(w){return w=w.replace(/^\t.*$/mg,""),w},parseRuleCodes:function(w){if(w)if("FLAG"in this.flags)if(this.flags.FLAG==="long"){for(var b=[],A=0,C=w.length;A<C;A+=2)b.push(w.substr(A,2));return b}else return this.flags.FLAG==="num"?w.split(","):this.flags.FLAG==="UTF-8"?Array.from(w):w.split("");else return w.split("");else return[]},_applyRule:function(w,b){for(var A=b.entries,C=[],D=0,k=A.length;D<k;D++){var B=A[D];if(!B.match||w.match(B.match)){var N=w;if(B.remove&&(N=N.replace(B.remove,"")),b.type==="SFX"?N=N+B.add:N=B.add+N,C.push(N),"continuationClasses"in B)for(var U=0,L=B.continuationClasses.length;U<L;U++){var pe=this.rules[B.continuationClasses[U]];pe&&(C=C.concat(this._applyRule(N,pe)))}}}return C},check:function(w){if(!this.loaded)throw"Dictionary not loaded.";if(!w)return!1;var b=w.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(b))return!0;if(b.toUpperCase()===b){var A=b[0]+b.substring(1).toLowerCase();if(this.hasFlag(A,"KEEPCASE"))return!1;if(this.checkExact(A)||this.checkExact(b.toLowerCase()))return!0}var C=b[0].toLowerCase()+b.substring(1);if(C!==b){if(this.hasFlag(C,"KEEPCASE"))return!1;if(this.checkExact(C))return!0}return!1},checkExact:function(w){if(!this.loaded)throw"Dictionary not loaded.";var b=this.dictionaryTable[w],A,C;if(typeof b=="undefined"){if("COMPOUNDMIN"in this.flags&&w.length>=this.flags.COMPOUNDMIN){for(A=0,C=this.compoundRules.length;A<C;A++)if(w.match(this.compoundRules[A]))return!0}}else{if(b===null)return!0;if(typeof b=="object"){for(A=0,C=b.length;A<C;A++)if(!this.hasFlag(w,"ONLYINCOMPOUND",b[A]))return!0}}return!1},hasFlag:function(w,b,A){if(!this.loaded)throw"Dictionary not loaded.";return!!(b in this.flags&&(typeof A=="undefined"&&(A=Array.prototype.concat.apply([],this.dictionaryTable[w])),A&&A.indexOf(this.flags[b])!==-1))},alphabet:"",suggest:function(w,b){if(!this.loaded)throw"Dictionary not loaded.";if(b=b||5,this.memoized.hasOwnProperty(w)){var A=this.memoized[w].limit;if(b<=A||this.memoized[w].suggestions.length<A)return this.memoized[w].suggestions.slice(0,b)}if(this.check(w))return[];for(var C=0,D=this.replacementTable.length;C<D;C++){var k=this.replacementTable[C];if(w.indexOf(k[0])!==-1){var B=w.replace(k[0],k[1]);if(this.check(B))return[B]}}if(!this.alphabet){this.alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","TRY"in this.flags&&(this.alphabet+=this.flags.TRY),"WORDCHARS"in this.flags&&(this.alphabet+=this.flags.WORDCHARS);var N=this.alphabet.split("");N.sort();for(var U={},C=0;C<N.length;C++)U[N[C]]=!0;this.alphabet="";for(var C in U)this.alphabet+=C}var L=this;function pe(ie,oe){var he={},Y,z,Z,G,be,ee,l=L.alphabet.length;for(var ve in ie)for(Y=0,G=ve.length+1;Y<G;Y++){var ye=[ve.substring(0,Y),ve.substring(Y)];if(ye[1]&&(ee=ye[0]+ye[1].substring(1),(!oe||L.check(ee))&&(ee in he?he[ee]+=1:he[ee]=1)),ye[1].length>1&&ye[1][1]!==ye[1][0]&&(ee=ye[0]+ye[1][1]+ye[1][0]+ye[1].substring(2),(!oe||L.check(ee))&&(ee in he?he[ee]+=1:he[ee]=1)),ye[1]){var Me=ye[1].substring(0,1).toUpperCase()===ye[1].substring(0,1)?"uppercase":"lowercase";for(z=0;z<l;z++){var we=L.alphabet[z];Me==="uppercase"&&(we=we.toUpperCase()),we!=ye[1].substring(0,1)&&(ee=ye[0]+we+ye[1].substring(1),(!oe||L.check(ee))&&(ee in he?he[ee]+=1:he[ee]=1))}}if(ye[1])for(z=0;z<l;z++){var Me=ye[0].substring(-1).toUpperCase()===ye[0].substring(-1)&&ye[1].substring(0,1).toUpperCase()===ye[1].substring(0,1)?"uppercase":"lowercase",we=L.alphabet[z];Me==="uppercase"&&(we=we.toUpperCase()),ee=ye[0]+we+ye[1],(!oe||L.check(ee))&&(ee in he?he[ee]+=1:he[ee]=1)}}return he}function fe(ie){var oe,he=pe((oe={},oe[ie]=!0,oe)),Y=pe(he,!0),z=Y;for(var Z in he)L.check(Z)&&(Z in z?z[Z]+=he[Z]:z[Z]=he[Z]);var G,be,ee=[];for(G in z)z.hasOwnProperty(G)&&(L.hasFlag(G,"PRIORITYSUGGEST")&&(z[G]+=1e3),ee.push([G,z[G]]));function l(we,Oe){var Be=we[1],$=Oe[1];return Be<$?-1:Be>$?1:Oe[0].localeCompare(we[0])}ee.sort(l).reverse();var ve=[],ye="lowercase";ie.toUpperCase()===ie?ye="uppercase":ie.substr(0,1).toUpperCase()+ie.substr(1).toLowerCase()===ie&&(ye="capitalized");var Me=b;for(G=0;G<Math.min(Me,ee.length);G++)ye==="uppercase"?ee[G][0]=ee[G][0].toUpperCase():ye==="capitalized"&&(ee[G][0]=ee[G][0].substr(0,1).toUpperCase()+ee[G][0].substr(1)),!L.hasFlag(ee[G][0],"NOSUGGEST")&&ve.indexOf(ee[G][0])===-1?ve.push(ee[G][0]):Me++;return ve}return this.memoized[w]={suggestions:fe(w),limit:b},this.memoized[w].suggestions}}})(),typeof le!="undefined"&&(le.exports=T)}}),Gl=Xt({"node_modules/codemirror-spell-checker/src/js/spell-checker.js"(Q,le){"use strict";var T=Ul();function w(b){if(b=b||{},typeof b.codeMirrorInstance!="function"||typeof b.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){"use strict";return String.prototype.indexOf.apply(this,arguments)!==-1}),b.codeMirrorInstance.defineMode("spell-checker",function(A){if(!w.aff_loading){w.aff_loading=!0;var C=new XMLHttpRequest;C.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),C.onload=function(){C.readyState===4&&C.status===200&&(w.aff_data=C.responseText,w.num_loaded++,w.num_loaded==2&&(w.typo=new T("en_US",w.aff_data,w.dic_data,{platform:"any"})))},C.send(null)}if(!w.dic_loading){w.dic_loading=!0;var D=new XMLHttpRequest;D.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),D.onload=function(){D.readyState===4&&D.status===200&&(w.dic_data=D.responseText,w.num_loaded++,w.num_loaded==2&&(w.typo=new T("en_US",w.aff_data,w.dic_data,{platform:"any"})))},D.send(null)}var k='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',B={token:function(U){var L=U.peek(),pe="";if(k.includes(L))return U.next(),null;for(;(L=U.peek())!=null&&!k.includes(L);)pe+=L,U.next();return w.typo&&!w.typo.check(pe)?"spell-error":null}},N=b.codeMirrorInstance.getMode(A,A.backdrop||"text/plain");return b.codeMirrorInstance.overlayMode(N,B,!0)})}w.num_loaded=0,w.aff_loading=!1,w.dic_loading=!1,w.aff_data="",w.dic_data="",w.typo,le.exports=w}}),Xl=Xt({"node_modules/easymde/node_modules/marked/lib/marked.cjs"(Q){"use strict";function le(xe,Se){for(var j=0;j<Se.length;j++){var x=Se[j];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(xe,k(x.key),x)}}function T(xe,Se,j){return Se&&le(xe.prototype,Se),j&&le(xe,j),Object.defineProperty(xe,"prototype",{writable:!1}),xe}function w(){return w=Object.assign?Object.assign.bind():function(xe){for(var Se=1;Se<arguments.length;Se++){var j=arguments[Se];for(var x in j)Object.prototype.hasOwnProperty.call(j,x)&&(xe[x]=j[x])}return xe},w.apply(this,arguments)}function b(xe,Se){if(xe){if(typeof xe=="string")return A(xe,Se);var j=Object.prototype.toString.call(xe).slice(8,-1);if(j==="Object"&&xe.constructor&&(j=xe.constructor.name),j==="Map"||j==="Set")return Array.from(xe);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return A(xe,Se)}}function A(xe,Se){(Se==null||Se>xe.length)&&(Se=xe.length);for(var j=0,x=new Array(Se);j<Se;j++)x[j]=xe[j];return x}function C(xe,Se){var j=typeof Symbol!="undefined"&&xe[Symbol.iterator]||xe["@@iterator"];if(j)return(j=j.call(xe)).next.bind(j);if(Array.isArray(xe)||(j=b(xe))||Se&&xe&&typeof xe.length=="number"){j&&(xe=j);var x=0;return function(){return x>=xe.length?{done:!0}:{done:!1,value:xe[x++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
65
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(xe,Se){if(typeof xe!="object"||xe===null)return xe;var j=xe[Symbol.toPrimitive];if(j!==void 0){var x=j.call(xe,Se||"default");if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Se==="string"?String:Number)(xe)}function k(xe){var Se=D(xe,"string");return typeof Se=="symbol"?Se:String(Se)}function B(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}Q.defaults=B();function N(xe){Q.defaults=xe}var U=/[&<>"']/,L=new RegExp(U.source,"g"),pe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,fe=new RegExp(pe.source,"g"),ie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},oe=function(Se){return ie[Se]};function he(xe,Se){if(Se){if(U.test(xe))return xe.replace(L,oe)}else if(pe.test(xe))return xe.replace(fe,oe);return xe}var Y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function z(xe){return xe.replace(Y,function(Se,j){return j=j.toLowerCase(),j==="colon"?":":j.charAt(0)==="#"?j.charAt(1)==="x"?String.fromCharCode(parseInt(j.substring(2),16)):String.fromCharCode(+j.substring(1)):""})}var Z=/(^|[^\[])\^/g;function G(xe,Se){xe=typeof xe=="string"?xe:xe.source,Se=Se||"";var j={replace:function(M,J){return J=J.source||J,J=J.replace(Z,"$1"),xe=xe.replace(M,J),j},getRegex:function(){return new RegExp(xe,Se)}};return j}var be=/[^\w:]/g,ee=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function l(xe,Se,j){if(xe){var x;try{x=decodeURIComponent(z(j)).replace(be,"").toLowerCase()}catch(M){return null}if(x.indexOf("javascript:")===0||x.indexOf("vbscript:")===0||x.indexOf("data:")===0)return null}Se&&!ee.test(j)&&(j=Oe(Se,j));try{j=encodeURI(j).replace(/%25/g,"%")}catch(M){return null}return j}var ve={},ye=/^[^:]+:\/*[^/]*$/,Me=/^([^:]+:)[\s\S]*$/,we=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Oe(xe,Se){ve[" "+xe]||(ye.test(xe)?ve[" "+xe]=xe+"/":ve[" "+xe]=Le(xe,"/",!0)),xe=ve[" "+xe];var j=xe.indexOf(":")===-1;return Se.substring(0,2)==="//"?j?Se:xe.replace(Me,"$1")+Se:Se.charAt(0)==="/"?j?Se:xe.replace(we,"$1")+Se:xe+Se}var Be={exec:function(){}};function $(xe,Se){var j=xe.replace(/\|/g,function(J,O,ne){for(var g=!1,F=O;--F>=0&&ne[F]==="\\";)g=!g;return g?"|":" |"}),x=j.split(/ \|/),M=0;if(x[0].trim()||x.shift(),x.length>0&&!x[x.length-1].trim()&&x.pop(),x.length>Se)x.splice(Se);else for(;x.length<Se;)x.push("");for(;M<x.length;M++)x[M]=x[M].trim().replace(/\\\|/g,"|");return x}function Le(xe,Se,j){var x=xe.length;if(x===0)return"";for(var M=0;M<x;){var J=xe.charAt(x-M-1);if(J===Se&&!j)M++;else if(J!==Se&&j)M++;else break}return xe.slice(0,x-M)}function Ee(xe,Se){if(xe.indexOf(Se[1])===-1)return-1;for(var j=xe.length,x=0,M=0;M<j;M++)if(xe[M]==="\\")M++;else if(xe[M]===Se[0])x++;else if(xe[M]===Se[1]&&(x--,x<0))return M;return-1}function q(xe){xe&&xe.sanitize&&!xe.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ce(xe,Se){if(Se<1)return"";for(var j="";Se>1;)Se&1&&(j+=xe),Se>>=1,xe+=xe;return j+xe}function ke(xe,Se,j,x){var M=Se.href,J=Se.title?he(Se.title):null,O=xe[1].replace(/\\([\[\]])/g,"$1");if(xe[0].charAt(0)!=="!"){x.state.inLink=!0;var ne={type:"link",raw:j,href:M,title:J,text:O,tokens:x.inlineTokens(O)};return x.state.inLink=!1,ne}return{type:"image",raw:j,href:M,title:J,text:he(O)}}function _e(xe,Se){var j=xe.match(/^(\s+)(?:```)/);if(j===null)return Se;var x=j[1];return Se.split(`
66
+ `).map(function(M){var J=M.match(/^\s+/);if(J===null)return M;var O=J[0];return O.length>=x.length?M.slice(x.length):M}).join(`
67
+ `)}var S=(function(){function xe(j){this.options=j||Q.defaults}var Se=xe.prototype;return Se.space=function(x){var M=this.rules.block.newline.exec(x);if(M&&M[0].length>0)return{type:"space",raw:M[0]}},Se.code=function(x){var M=this.rules.block.code.exec(x);if(M){var J=M[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:M[0],codeBlockStyle:"indented",text:this.options.pedantic?J:Le(J,`
68
+ `)}}},Se.fences=function(x){var M=this.rules.block.fences.exec(x);if(M){var J=M[0],O=_e(J,M[3]||"");return{type:"code",raw:J,lang:M[2]?M[2].trim().replace(this.rules.inline._escapes,"$1"):M[2],text:O}}},Se.heading=function(x){var M=this.rules.block.heading.exec(x);if(M){var J=M[2].trim();if(/#$/.test(J)){var O=Le(J,"#");(this.options.pedantic||!O||/ $/.test(O))&&(J=O.trim())}return{type:"heading",raw:M[0],depth:M[1].length,text:J,tokens:this.lexer.inline(J)}}},Se.hr=function(x){var M=this.rules.block.hr.exec(x);if(M)return{type:"hr",raw:M[0]}},Se.blockquote=function(x){var M=this.rules.block.blockquote.exec(x);if(M){var J=M[0].replace(/^ *>[ \t]?/gm,""),O=this.lexer.state.top;this.lexer.state.top=!0;var ne=this.lexer.blockTokens(J);return this.lexer.state.top=O,{type:"blockquote",raw:M[0],tokens:ne,text:J}}},Se.list=function(x){var M=this.rules.block.list.exec(x);if(M){var J,O,ne,g,F,H,K,re,ue,te,I,Ae,Xe=M[1].trim(),je=Xe.length>1,Ye={type:"list",raw:"",ordered:je,start:je?+Xe.slice(0,-1):"",loose:!1,items:[]};Xe=je?"\\d{1,9}\\"+Xe.slice(-1):"\\"+Xe,this.options.pedantic&&(Xe=je?Xe:"[*+-]");for(var ut=new RegExp("^( {0,3}"+Xe+")((?:[ ][^\\n]*)?(?:\\n|$))");x&&(Ae=!1,!(!(M=ut.exec(x))||this.rules.block.hr.test(x)));){if(J=M[0],x=x.substring(J.length),re=M[2].split(`
69
+ `,1)[0].replace(/^\t+/,function(Ut){return" ".repeat(3*Ut.length)}),ue=x.split(`
70
+ `,1)[0],this.options.pedantic?(g=2,I=re.trimLeft()):(g=M[2].search(/[^ ]/),g=g>4?1:g,I=re.slice(g),g+=M[1].length),H=!1,!re&&/^ *$/.test(ue)&&(J+=ue+`
71
+ `,x=x.substring(ue.length+1),Ae=!0),!Ae)for(var it=new RegExp("^ {0,"+Math.min(3,g-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))"),gt=new RegExp("^ {0,"+Math.min(3,g-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),at=new RegExp("^ {0,"+Math.min(3,g-1)+"}(?:```|~~~)"),kt=new RegExp("^ {0,"+Math.min(3,g-1)+"}#");x&&(te=x.split(`
72
+ `,1)[0],ue=te,this.options.pedantic&&(ue=ue.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(at.test(ue)||kt.test(ue)||it.test(ue)||gt.test(x)));){if(ue.search(/[^ ]/)>=g||!ue.trim())I+=`
73
+ `+ue.slice(g);else{if(H||re.search(/[^ ]/)>=4||at.test(re)||kt.test(re)||gt.test(re))break;I+=`
74
+ `+ue}!H&&!ue.trim()&&(H=!0),J+=te+`
75
+ `,x=x.substring(te.length+1),re=ue.slice(g)}Ye.loose||(K?Ye.loose=!0:/\n *\n *$/.test(J)&&(K=!0)),this.options.gfm&&(O=/^\[[ xX]\] /.exec(I),O&&(ne=O[0]!=="[ ] ",I=I.replace(/^\[[ xX]\] +/,""))),Ye.items.push({type:"list_item",raw:J,task:!!O,checked:ne,loose:!1,text:I}),Ye.raw+=J}Ye.items[Ye.items.length-1].raw=J.trimRight(),Ye.items[Ye.items.length-1].text=I.trimRight(),Ye.raw=Ye.raw.trimRight();var Et=Ye.items.length;for(F=0;F<Et;F++)if(this.lexer.state.top=!1,Ye.items[F].tokens=this.lexer.blockTokens(Ye.items[F].text,[]),!Ye.loose){var Ot=Ye.items[F].tokens.filter(function(Ut){return Ut.type==="space"}),zt=Ot.length>0&&Ot.some(function(Ut){return/\n.*\n/.test(Ut.raw)});Ye.loose=zt}if(Ye.loose)for(F=0;F<Et;F++)Ye.items[F].loose=!0;return Ye}},Se.html=function(x){var M=this.rules.block.html.exec(x);if(M){var J={type:"html",raw:M[0],pre:!this.options.sanitizer&&(M[1]==="pre"||M[1]==="script"||M[1]==="style"),text:M[0]};if(this.options.sanitize){var O=this.options.sanitizer?this.options.sanitizer(M[0]):he(M[0]);J.type="paragraph",J.text=O,J.tokens=this.lexer.inline(O)}return J}},Se.def=function(x){var M=this.rules.block.def.exec(x);if(M){var J=M[1].toLowerCase().replace(/\s+/g," "),O=M[2]?M[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",ne=M[3]?M[3].substring(1,M[3].length-1).replace(this.rules.inline._escapes,"$1"):M[3];return{type:"def",tag:J,raw:M[0],href:O,title:ne}}},Se.table=function(x){var M=this.rules.block.table.exec(x);if(M){var J={type:"table",header:$(M[1]).map(function(K){return{text:K}}),align:M[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:M[3]&&M[3].trim()?M[3].replace(/\n[ \t]*$/,"").split(`
76
+ `):[]};if(J.header.length===J.align.length){J.raw=M[0];var O=J.align.length,ne,g,F,H;for(ne=0;ne<O;ne++)/^ *-+: *$/.test(J.align[ne])?J.align[ne]="right":/^ *:-+: *$/.test(J.align[ne])?J.align[ne]="center":/^ *:-+ *$/.test(J.align[ne])?J.align[ne]="left":J.align[ne]=null;for(O=J.rows.length,ne=0;ne<O;ne++)J.rows[ne]=$(J.rows[ne],J.header.length).map(function(K){return{text:K}});for(O=J.header.length,g=0;g<O;g++)J.header[g].tokens=this.lexer.inline(J.header[g].text);for(O=J.rows.length,g=0;g<O;g++)for(H=J.rows[g],F=0;F<H.length;F++)H[F].tokens=this.lexer.inline(H[F].text);return J}}},Se.lheading=function(x){var M=this.rules.block.lheading.exec(x);if(M)return{type:"heading",raw:M[0],depth:M[2].charAt(0)==="="?1:2,text:M[1],tokens:this.lexer.inline(M[1])}},Se.paragraph=function(x){var M=this.rules.block.paragraph.exec(x);if(M){var J=M[1].charAt(M[1].length-1)===`
77
+ `?M[1].slice(0,-1):M[1];return{type:"paragraph",raw:M[0],text:J,tokens:this.lexer.inline(J)}}},Se.text=function(x){var M=this.rules.block.text.exec(x);if(M)return{type:"text",raw:M[0],text:M[0],tokens:this.lexer.inline(M[0])}},Se.escape=function(x){var M=this.rules.inline.escape.exec(x);if(M)return{type:"escape",raw:M[0],text:he(M[1])}},Se.tag=function(x){var M=this.rules.inline.tag.exec(x);if(M)return!this.lexer.state.inLink&&/^<a /i.test(M[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(M[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(M[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(M[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:M[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(M[0]):he(M[0]):M[0]}},Se.link=function(x){var M=this.rules.inline.link.exec(x);if(M){var J=M[2].trim();if(!this.options.pedantic&&/^</.test(J)){if(!/>$/.test(J))return;var O=Le(J.slice(0,-1),"\\");if((J.length-O.length)%2===0)return}else{var ne=Ee(M[2],"()");if(ne>-1){var g=M[0].indexOf("!")===0?5:4,F=g+M[1].length+ne;M[2]=M[2].substring(0,ne),M[0]=M[0].substring(0,F).trim(),M[3]=""}}var H=M[2],K="";if(this.options.pedantic){var re=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(H);re&&(H=re[1],K=re[3])}else K=M[3]?M[3].slice(1,-1):"";return H=H.trim(),/^</.test(H)&&(this.options.pedantic&&!/>$/.test(J)?H=H.slice(1):H=H.slice(1,-1)),ke(M,{href:H&&H.replace(this.rules.inline._escapes,"$1"),title:K&&K.replace(this.rules.inline._escapes,"$1")},M[0],this.lexer)}},Se.reflink=function(x,M){var J;if((J=this.rules.inline.reflink.exec(x))||(J=this.rules.inline.nolink.exec(x))){var O=(J[2]||J[1]).replace(/\s+/g," ");if(O=M[O.toLowerCase()],!O){var ne=J[0].charAt(0);return{type:"text",raw:ne,text:ne}}return ke(J,O,J[0],this.lexer)}},Se.emStrong=function(x,M,J){J===void 0&&(J="");var O=this.rules.inline.emStrong.lDelim.exec(x);if(O&&!(O[3]&&J.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var ne=O[1]||O[2]||"";if(!ne||ne&&(J===""||this.rules.inline.punctuation.exec(J))){var g=O[0].length-1,F,H,K=g,re=0,ue=O[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ue.lastIndex=0,M=M.slice(-1*x.length+g);(O=ue.exec(M))!=null;)if(F=O[1]||O[2]||O[3]||O[4]||O[5]||O[6],!!F){if(H=F.length,O[3]||O[4]){K+=H;continue}else if((O[5]||O[6])&&g%3&&!((g+H)%3)){re+=H;continue}if(K-=H,!(K>0)){H=Math.min(H,H+K+re);var te=x.slice(0,g+O.index+(O[0].length-F.length)+H);if(Math.min(g,H)%2){var I=te.slice(1,-1);return{type:"em",raw:te,text:I,tokens:this.lexer.inlineTokens(I)}}var Ae=te.slice(2,-2);return{type:"strong",raw:te,text:Ae,tokens:this.lexer.inlineTokens(Ae)}}}}}},Se.codespan=function(x){var M=this.rules.inline.code.exec(x);if(M){var J=M[2].replace(/\n/g," "),O=/[^ ]/.test(J),ne=/^ /.test(J)&&/ $/.test(J);return O&&ne&&(J=J.substring(1,J.length-1)),J=he(J,!0),{type:"codespan",raw:M[0],text:J}}},Se.br=function(x){var M=this.rules.inline.br.exec(x);if(M)return{type:"br",raw:M[0]}},Se.del=function(x){var M=this.rules.inline.del.exec(x);if(M)return{type:"del",raw:M[0],text:M[2],tokens:this.lexer.inlineTokens(M[2])}},Se.autolink=function(x,M){var J=this.rules.inline.autolink.exec(x);if(J){var O,ne;return J[2]==="@"?(O=he(this.options.mangle?M(J[1]):J[1]),ne="mailto:"+O):(O=he(J[1]),ne=O),{type:"link",raw:J[0],text:O,href:ne,tokens:[{type:"text",raw:O,text:O}]}}},Se.url=function(x,M){var J;if(J=this.rules.inline.url.exec(x)){var O,ne;if(J[2]==="@")O=he(this.options.mangle?M(J[0]):J[0]),ne="mailto:"+O;else{var g;do g=J[0],J[0]=this.rules.inline._backpedal.exec(J[0])[0];while(g!==J[0]);O=he(J[0]),J[1]==="www."?ne="http://"+J[0]:ne=J[0]}return{type:"link",raw:J[0],text:O,href:ne,tokens:[{type:"text",raw:O,text:O}]}}},Se.inlineText=function(x,M){var J=this.rules.inline.text.exec(x);if(J){var O;return this.lexer.state.inRawBlock?O=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(J[0]):he(J[0]):J[0]:O=he(this.options.smartypants?M(J[0]):J[0]),{type:"text",raw:J[0],text:O}}},xe})(),p={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Be,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};p._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,p._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,p.def=G(p.def).replace("label",p._label).replace("title",p._title).getRegex(),p.bullet=/(?:[*+-]|\d{1,9}[.)])/,p.listItemStart=G(/^( *)(bull) */).replace("bull",p.bullet).getRegex(),p.list=G(p.list).replace(/bull/g,p.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+p.def.source+")").getRegex(),p._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",p._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,p.html=G(p.html,"i").replace("comment",p._comment).replace("tag",p._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),p.paragraph=G(p._paragraph).replace("hr",p.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",p._tag).getRegex(),p.blockquote=G(p.blockquote).replace("paragraph",p.paragraph).getRegex(),p.normal=w({},p),p.gfm=w({},p.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),p.gfm.table=G(p.gfm.table).replace("hr",p.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",p._tag).getRegex(),p.gfm.paragraph=G(p._paragraph).replace("hr",p.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",p.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",p._tag).getRegex(),p.pedantic=w({},p.normal,{html:G(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",p._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Be,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:G(p.normal._paragraph).replace("hr",p.hr).replace("heading",` *#{1,6} *[^
78
+ ]`).replace("lheading",p.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var P={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Be,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Be,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};P._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",P.punctuation=G(P.punctuation).replace(/punctuation/g,P._punctuation).getRegex(),P.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,P.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,P._comment=G(p._comment).replace("(?:-->|$)","-->").getRegex(),P.emStrong.lDelim=G(P.emStrong.lDelim).replace(/punct/g,P._punctuation).getRegex(),P.emStrong.rDelimAst=G(P.emStrong.rDelimAst,"g").replace(/punct/g,P._punctuation).getRegex(),P.emStrong.rDelimUnd=G(P.emStrong.rDelimUnd,"g").replace(/punct/g,P._punctuation).getRegex(),P._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,P._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,P._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,P.autolink=G(P.autolink).replace("scheme",P._scheme).replace("email",P._email).getRegex(),P._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,P.tag=G(P.tag).replace("comment",P._comment).replace("attribute",P._attribute).getRegex(),P._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,P._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,P._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,P.link=G(P.link).replace("label",P._label).replace("href",P._href).replace("title",P._title).getRegex(),P.reflink=G(P.reflink).replace("label",P._label).replace("ref",p._label).getRegex(),P.nolink=G(P.nolink).replace("ref",p._label).getRegex(),P.reflinkSearch=G(P.reflinkSearch,"g").replace("reflink",P.reflink).replace("nolink",P.nolink).getRegex(),P.normal=w({},P),P.pedantic=w({},P.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:G(/^!?\[(label)\]\((.*?)\)/).replace("label",P._label).getRegex(),reflink:G(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",P._label).getRegex()}),P.gfm=w({},P.normal,{escape:G(P.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),P.gfm.url=G(P.gfm.url,"i").replace("email",P.gfm._extended_email).getRegex(),P.breaks=w({},P.gfm,{br:G(P.br).replace("{2,}","*").getRegex(),text:G(P.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function me(xe){return xe.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Ce(xe){var Se="",j,x,M=xe.length;for(j=0;j<M;j++)x=xe.charCodeAt(j),Math.random()>.5&&(x="x"+x.toString(16)),Se+="&#"+x+";";return Se}var Pe=(function(){function xe(j){this.tokens=[],this.tokens.links=Object.create(null),this.options=j||Q.defaults,this.options.tokenizer=this.options.tokenizer||new S,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var x={block:p.normal,inline:P.normal};this.options.pedantic?(x.block=p.pedantic,x.inline=P.pedantic):this.options.gfm&&(x.block=p.gfm,this.options.breaks?x.inline=P.breaks:x.inline=P.gfm),this.tokenizer.rules=x}xe.lex=function(x,M){var J=new xe(M);return J.lex(x)},xe.lexInline=function(x,M){var J=new xe(M);return J.inlineTokens(x)};var Se=xe.prototype;return Se.lex=function(x){x=x.replace(/\r\n|\r/g,`
79
+ `),this.blockTokens(x,this.tokens);for(var M;M=this.inlineQueue.shift();)this.inlineTokens(M.src,M.tokens);return this.tokens},Se.blockTokens=function(x,M){var J=this;M===void 0&&(M=[]),this.options.pedantic?x=x.replace(/\t/g," ").replace(/^ +$/gm,""):x=x.replace(/^( *)(\t+)/gm,function(K,re,ue){return re+" ".repeat(ue.length)});for(var O,ne,g,F;x;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(K){return(O=K.call({lexer:J},x,M))?(x=x.substring(O.raw.length),M.push(O),!0):!1}))){if(O=this.tokenizer.space(x)){x=x.substring(O.raw.length),O.raw.length===1&&M.length>0?M[M.length-1].raw+=`
80
+ `:M.push(O);continue}if(O=this.tokenizer.code(x)){x=x.substring(O.raw.length),ne=M[M.length-1],ne&&(ne.type==="paragraph"||ne.type==="text")?(ne.raw+=`
81
+ `+O.raw,ne.text+=`
82
+ `+O.text,this.inlineQueue[this.inlineQueue.length-1].src=ne.text):M.push(O);continue}if(O=this.tokenizer.fences(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.heading(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.hr(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.blockquote(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.list(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.html(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.def(x)){x=x.substring(O.raw.length),ne=M[M.length-1],ne&&(ne.type==="paragraph"||ne.type==="text")?(ne.raw+=`
83
+ `+O.raw,ne.text+=`
84
+ `+O.raw,this.inlineQueue[this.inlineQueue.length-1].src=ne.text):this.tokens.links[O.tag]||(this.tokens.links[O.tag]={href:O.href,title:O.title});continue}if(O=this.tokenizer.table(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.lheading(x)){x=x.substring(O.raw.length),M.push(O);continue}if(g=x,this.options.extensions&&this.options.extensions.startBlock&&(function(){var K=1/0,re=x.slice(1),ue=void 0;J.options.extensions.startBlock.forEach(function(te){ue=te.call({lexer:this},re),typeof ue=="number"&&ue>=0&&(K=Math.min(K,ue))}),K<1/0&&K>=0&&(g=x.substring(0,K+1))})(),this.state.top&&(O=this.tokenizer.paragraph(g))){ne=M[M.length-1],F&&ne.type==="paragraph"?(ne.raw+=`
85
+ `+O.raw,ne.text+=`
86
+ `+O.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ne.text):M.push(O),F=g.length!==x.length,x=x.substring(O.raw.length);continue}if(O=this.tokenizer.text(x)){x=x.substring(O.raw.length),ne=M[M.length-1],ne&&ne.type==="text"?(ne.raw+=`
87
+ `+O.raw,ne.text+=`
88
+ `+O.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ne.text):M.push(O);continue}if(x){var H="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(H);break}else throw new Error(H)}}return this.state.top=!0,M},Se.inline=function(x,M){return M===void 0&&(M=[]),this.inlineQueue.push({src:x,tokens:M}),M},Se.inlineTokens=function(x,M){var J=this;M===void 0&&(M=[]);var O,ne,g,F=x,H,K,re;if(this.tokens.links){var ue=Object.keys(this.tokens.links);if(ue.length>0)for(;(H=this.tokenizer.rules.inline.reflinkSearch.exec(F))!=null;)ue.includes(H[0].slice(H[0].lastIndexOf("[")+1,-1))&&(F=F.slice(0,H.index)+"["+ce("a",H[0].length-2)+"]"+F.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(H=this.tokenizer.rules.inline.blockSkip.exec(F))!=null;)F=F.slice(0,H.index)+"["+ce("a",H[0].length-2)+"]"+F.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(H=this.tokenizer.rules.inline.escapedEmSt.exec(F))!=null;)F=F.slice(0,H.index+H[0].length-2)+"++"+F.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;x;)if(K||(re=""),K=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(I){return(O=I.call({lexer:J},x,M))?(x=x.substring(O.raw.length),M.push(O),!0):!1}))){if(O=this.tokenizer.escape(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.tag(x)){x=x.substring(O.raw.length),ne=M[M.length-1],ne&&O.type==="text"&&ne.type==="text"?(ne.raw+=O.raw,ne.text+=O.text):M.push(O);continue}if(O=this.tokenizer.link(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.reflink(x,this.tokens.links)){x=x.substring(O.raw.length),ne=M[M.length-1],ne&&O.type==="text"&&ne.type==="text"?(ne.raw+=O.raw,ne.text+=O.text):M.push(O);continue}if(O=this.tokenizer.emStrong(x,F,re)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.codespan(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.br(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.del(x)){x=x.substring(O.raw.length),M.push(O);continue}if(O=this.tokenizer.autolink(x,Ce)){x=x.substring(O.raw.length),M.push(O);continue}if(!this.state.inLink&&(O=this.tokenizer.url(x,Ce))){x=x.substring(O.raw.length),M.push(O);continue}if(g=x,this.options.extensions&&this.options.extensions.startInline&&(function(){var I=1/0,Ae=x.slice(1),Xe=void 0;J.options.extensions.startInline.forEach(function(je){Xe=je.call({lexer:this},Ae),typeof Xe=="number"&&Xe>=0&&(I=Math.min(I,Xe))}),I<1/0&&I>=0&&(g=x.substring(0,I+1))})(),O=this.tokenizer.inlineText(g,me)){x=x.substring(O.raw.length),O.raw.slice(-1)!=="_"&&(re=O.raw.slice(-1)),K=!0,ne=M[M.length-1],ne&&ne.type==="text"?(ne.raw+=O.raw,ne.text+=O.text):M.push(O);continue}if(x){var te="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(te);break}else throw new Error(te)}}return M},T(xe,null,[{key:"rules",get:function(){return{block:p,inline:P}}}]),xe})(),$e=(function(){function xe(j){this.options=j||Q.defaults}var Se=xe.prototype;return Se.code=function(x,M,J){var O=(M||"").match(/\S*/)[0];if(this.options.highlight){var ne=this.options.highlight(x,O);ne!=null&&ne!==x&&(J=!0,x=ne)}return x=x.replace(/\n$/,"")+`
89
+ `,O?'<pre><code class="'+this.options.langPrefix+he(O)+'">'+(J?x:he(x,!0))+`</code></pre>
90
+ `:"<pre><code>"+(J?x:he(x,!0))+`</code></pre>
91
+ `},Se.blockquote=function(x){return`<blockquote>
92
+ `+x+`</blockquote>
93
+ `},Se.html=function(x){return x},Se.heading=function(x,M,J,O){if(this.options.headerIds){var ne=this.options.headerPrefix+O.slug(J);return"<h"+M+' id="'+ne+'">'+x+"</h"+M+`>
94
+ `}return"<h"+M+">"+x+"</h"+M+`>
95
+ `},Se.hr=function(){return this.options.xhtml?`<hr/>
96
+ `:`<hr>
97
+ `},Se.list=function(x,M,J){var O=M?"ol":"ul",ne=M&&J!==1?' start="'+J+'"':"";return"<"+O+ne+`>
98
+ `+x+"</"+O+`>
99
+ `},Se.listitem=function(x){return"<li>"+x+`</li>
100
+ `},Se.checkbox=function(x){return"<input "+(x?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Se.paragraph=function(x){return"<p>"+x+`</p>
101
+ `},Se.table=function(x,M){return M&&(M="<tbody>"+M+"</tbody>"),`<table>
102
+ <thead>
103
+ `+x+`</thead>
104
+ `+M+`</table>
105
+ `},Se.tablerow=function(x){return`<tr>
106
+ `+x+`</tr>
107
+ `},Se.tablecell=function(x,M){var J=M.header?"th":"td",O=M.align?"<"+J+' align="'+M.align+'">':"<"+J+">";return O+x+("</"+J+`>
108
+ `)},Se.strong=function(x){return"<strong>"+x+"</strong>"},Se.em=function(x){return"<em>"+x+"</em>"},Se.codespan=function(x){return"<code>"+x+"</code>"},Se.br=function(){return this.options.xhtml?"<br/>":"<br>"},Se.del=function(x){return"<del>"+x+"</del>"},Se.link=function(x,M,J){if(x=l(this.options.sanitize,this.options.baseUrl,x),x===null)return J;var O='<a href="'+x+'"';return M&&(O+=' title="'+M+'"'),O+=">"+J+"</a>",O},Se.image=function(x,M,J){if(x=l(this.options.sanitize,this.options.baseUrl,x),x===null)return J;var O='<img src="'+x+'" alt="'+J+'"';return M&&(O+=' title="'+M+'"'),O+=this.options.xhtml?"/>":">",O},Se.text=function(x){return x},xe})(),Ke=(function(){function xe(){}var Se=xe.prototype;return Se.strong=function(x){return x},Se.em=function(x){return x},Se.codespan=function(x){return x},Se.del=function(x){return x},Se.html=function(x){return x},Se.text=function(x){return x},Se.link=function(x,M,J){return""+J},Se.image=function(x,M,J){return""+J},Se.br=function(){return""},xe})(),ot=(function(){function xe(){this.seen={}}var Se=xe.prototype;return Se.serialize=function(x){return x.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Se.getNextSafeSlug=function(x,M){var J=x,O=0;if(this.seen.hasOwnProperty(J)){O=this.seen[x];do O++,J=x+"-"+O;while(this.seen.hasOwnProperty(J))}return M||(this.seen[x]=O,this.seen[J]=0),J},Se.slug=function(x,M){M===void 0&&(M={});var J=this.serialize(x);return this.getNextSafeSlug(J,M.dryrun)},xe})(),Ze=(function(){function xe(j){this.options=j||Q.defaults,this.options.renderer=this.options.renderer||new $e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ke,this.slugger=new ot}xe.parse=function(x,M){var J=new xe(M);return J.parse(x)},xe.parseInline=function(x,M){var J=new xe(M);return J.parseInline(x)};var Se=xe.prototype;return Se.parse=function(x,M){M===void 0&&(M=!0);var J="",O,ne,g,F,H,K,re,ue,te,I,Ae,Xe,je,Ye,ut,it,gt,at,kt,Et=x.length;for(O=0;O<Et;O++){if(I=x[O],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[I.type]&&(kt=this.options.extensions.renderers[I.type].call({parser:this},I),kt!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(I.type))){J+=kt||"";continue}switch(I.type){case"space":continue;case"hr":{J+=this.renderer.hr();continue}case"heading":{J+=this.renderer.heading(this.parseInline(I.tokens),I.depth,z(this.parseInline(I.tokens,this.textRenderer)),this.slugger);continue}case"code":{J+=this.renderer.code(I.text,I.lang,I.escaped);continue}case"table":{for(ue="",re="",F=I.header.length,ne=0;ne<F;ne++)re+=this.renderer.tablecell(this.parseInline(I.header[ne].tokens),{header:!0,align:I.align[ne]});for(ue+=this.renderer.tablerow(re),te="",F=I.rows.length,ne=0;ne<F;ne++){for(K=I.rows[ne],re="",H=K.length,g=0;g<H;g++)re+=this.renderer.tablecell(this.parseInline(K[g].tokens),{header:!1,align:I.align[g]});te+=this.renderer.tablerow(re)}J+=this.renderer.table(ue,te);continue}case"blockquote":{te=this.parse(I.tokens),J+=this.renderer.blockquote(te);continue}case"list":{for(Ae=I.ordered,Xe=I.start,je=I.loose,F=I.items.length,te="",ne=0;ne<F;ne++)ut=I.items[ne],it=ut.checked,gt=ut.task,Ye="",ut.task&&(at=this.renderer.checkbox(it),je?ut.tokens.length>0&&ut.tokens[0].type==="paragraph"?(ut.tokens[0].text=at+" "+ut.tokens[0].text,ut.tokens[0].tokens&&ut.tokens[0].tokens.length>0&&ut.tokens[0].tokens[0].type==="text"&&(ut.tokens[0].tokens[0].text=at+" "+ut.tokens[0].tokens[0].text)):ut.tokens.unshift({type:"text",text:at}):Ye+=at),Ye+=this.parse(ut.tokens,je),te+=this.renderer.listitem(Ye,gt,it);J+=this.renderer.list(te,Ae,Xe);continue}case"html":{J+=this.renderer.html(I.text);continue}case"paragraph":{J+=this.renderer.paragraph(this.parseInline(I.tokens));continue}case"text":{for(te=I.tokens?this.parseInline(I.tokens):I.text;O+1<Et&&x[O+1].type==="text";)I=x[++O],te+=`
109
+ `+(I.tokens?this.parseInline(I.tokens):I.text);J+=M?this.renderer.paragraph(te):te;continue}default:{var Ot='Token with "'+I.type+'" type was not found.';if(this.options.silent){console.error(Ot);return}else throw new Error(Ot)}}}return J},Se.parseInline=function(x,M){M=M||this.renderer;var J="",O,ne,g,F=x.length;for(O=0;O<F;O++){if(ne=x[O],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ne.type]&&(g=this.options.extensions.renderers[ne.type].call({parser:this},ne),g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(ne.type))){J+=g||"";continue}switch(ne.type){case"escape":{J+=M.text(ne.text);break}case"html":{J+=M.html(ne.text);break}case"link":{J+=M.link(ne.href,ne.title,this.parseInline(ne.tokens,M));break}case"image":{J+=M.image(ne.href,ne.title,ne.text);break}case"strong":{J+=M.strong(this.parseInline(ne.tokens,M));break}case"em":{J+=M.em(this.parseInline(ne.tokens,M));break}case"codespan":{J+=M.codespan(ne.text);break}case"br":{J+=M.br();break}case"del":{J+=M.del(this.parseInline(ne.tokens,M));break}case"text":{J+=M.text(ne.text);break}default:{var H='Token with "'+ne.type+'" type was not found.';if(this.options.silent){console.error(H);return}else throw new Error(H)}}}return J},xe})(),pt=(function(){function xe(j){this.options=j||Q.defaults}var Se=xe.prototype;return Se.preprocess=function(x){return x},Se.postprocess=function(x){return x},xe})();pt.passThroughHooks=new Set(["preprocess","postprocess"]);function ht(xe,Se,j){return function(x){if(x.message+=`
110
+ Please report this to https://github.com/markedjs/marked.`,xe){var M="<p>An error occurred:</p><pre>"+he(x.message+"",!0)+"</pre>";if(Se)return Promise.resolve(M);if(j){j(null,M);return}return M}if(Se)return Promise.reject(x);if(j){j(x);return}throw x}}function Tt(xe,Se){return function(j,x,M){typeof x=="function"&&(M=x,x=null);var J=w({},x);x=w({},rt.defaults,J);var O=ht(x.silent,x.async,M);if(typeof j=="undefined"||j===null)return O(new Error("marked(): input parameter is undefined or null"));if(typeof j!="string")return O(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(j)+", string expected"));if(q(x),x.hooks&&(x.hooks.options=x),M){var ne=x.highlight,g;try{x.hooks&&(j=x.hooks.preprocess(j)),g=xe(j,x)}catch(ue){return O(ue)}var F=function(te){var I;if(!te)try{x.walkTokens&&rt.walkTokens(g,x.walkTokens),I=Se(g,x),x.hooks&&(I=x.hooks.postprocess(I))}catch(Ae){te=Ae}return x.highlight=ne,te?O(te):M(null,I)};if(!ne||ne.length<3||(delete x.highlight,!g.length))return F();var H=0;rt.walkTokens(g,function(ue){ue.type==="code"&&(H++,setTimeout(function(){ne(ue.text,ue.lang,function(te,I){if(te)return F(te);I!=null&&I!==ue.text&&(ue.text=I,ue.escaped=!0),H--,H===0&&F()})},0))}),H===0&&F();return}if(x.async)return Promise.resolve(x.hooks?x.hooks.preprocess(j):j).then(function(ue){return xe(ue,x)}).then(function(ue){return x.walkTokens?Promise.all(rt.walkTokens(ue,x.walkTokens)).then(function(){return ue}):ue}).then(function(ue){return Se(ue,x)}).then(function(ue){return x.hooks?x.hooks.postprocess(ue):ue}).catch(O);try{x.hooks&&(j=x.hooks.preprocess(j));var K=xe(j,x);x.walkTokens&&rt.walkTokens(K,x.walkTokens);var re=Se(K,x);return x.hooks&&(re=x.hooks.postprocess(re)),re}catch(ue){return O(ue)}}}function rt(xe,Se,j){return Tt(Pe.lex,Ze.parse)(xe,Se,j)}rt.options=rt.setOptions=function(xe){return rt.defaults=w({},rt.defaults,xe),N(rt.defaults),rt},rt.getDefaults=B,rt.defaults=Q.defaults,rt.use=function(){for(var xe=rt.defaults.extensions||{renderers:{},childTokens:{}},Se=arguments.length,j=new Array(Se),x=0;x<Se;x++)j[x]=arguments[x];j.forEach(function(M){var J=w({},M);if(J.async=rt.defaults.async||J.async||!1,M.extensions&&(M.extensions.forEach(function(ne){if(!ne.name)throw new Error("extension name required");if(ne.renderer){var g=xe.renderers[ne.name];g?xe.renderers[ne.name]=function(){for(var F=arguments.length,H=new Array(F),K=0;K<F;K++)H[K]=arguments[K];var re=ne.renderer.apply(this,H);return re===!1&&(re=g.apply(this,H)),re}:xe.renderers[ne.name]=ne.renderer}if(ne.tokenizer){if(!ne.level||ne.level!=="block"&&ne.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");xe[ne.level]?xe[ne.level].unshift(ne.tokenizer):xe[ne.level]=[ne.tokenizer],ne.start&&(ne.level==="block"?xe.startBlock?xe.startBlock.push(ne.start):xe.startBlock=[ne.start]:ne.level==="inline"&&(xe.startInline?xe.startInline.push(ne.start):xe.startInline=[ne.start]))}ne.childTokens&&(xe.childTokens[ne.name]=ne.childTokens)}),J.extensions=xe),M.renderer&&(function(){var ne=rt.defaults.renderer||new $e,g=function(K){var re=ne[K];ne[K]=function(){for(var ue=arguments.length,te=new Array(ue),I=0;I<ue;I++)te[I]=arguments[I];var Ae=M.renderer[K].apply(ne,te);return Ae===!1&&(Ae=re.apply(ne,te)),Ae}};for(var F in M.renderer)g(F);J.renderer=ne})(),M.tokenizer&&(function(){var ne=rt.defaults.tokenizer||new S,g=function(K){var re=ne[K];ne[K]=function(){for(var ue=arguments.length,te=new Array(ue),I=0;I<ue;I++)te[I]=arguments[I];var Ae=M.tokenizer[K].apply(ne,te);return Ae===!1&&(Ae=re.apply(ne,te)),Ae}};for(var F in M.tokenizer)g(F);J.tokenizer=ne})(),M.hooks&&(function(){var ne=rt.defaults.hooks||new pt,g=function(K){var re=ne[K];pt.passThroughHooks.has(K)?ne[K]=function(ue){if(rt.defaults.async)return Promise.resolve(M.hooks[K].call(ne,ue)).then(function(I){return re.call(ne,I)});var te=M.hooks[K].call(ne,ue);return re.call(ne,te)}:ne[K]=function(){for(var ue=arguments.length,te=new Array(ue),I=0;I<ue;I++)te[I]=arguments[I];var Ae=M.hooks[K].apply(ne,te);return Ae===!1&&(Ae=re.apply(ne,te)),Ae}};for(var F in M.hooks)g(F);J.hooks=ne})(),M.walkTokens){var O=rt.defaults.walkTokens;J.walkTokens=function(ne){var g=[];return g.push(M.walkTokens.call(this,ne)),O&&(g=g.concat(O.call(this,ne))),g}}rt.setOptions(J)})},rt.walkTokens=function(xe,Se){for(var j=[],x=function(){var ne=J.value;switch(j=j.concat(Se.call(rt,ne)),ne.type){case"table":{for(var g=C(ne.header),F;!(F=g()).done;){var H=F.value;j=j.concat(rt.walkTokens(H.tokens,Se))}for(var K=C(ne.rows),re;!(re=K()).done;)for(var ue=re.value,te=C(ue),I;!(I=te()).done;){var Ae=I.value;j=j.concat(rt.walkTokens(Ae.tokens,Se))}break}case"list":{j=j.concat(rt.walkTokens(ne.items,Se));break}default:rt.defaults.extensions&&rt.defaults.extensions.childTokens&&rt.defaults.extensions.childTokens[ne.type]?rt.defaults.extensions.childTokens[ne.type].forEach(function(Xe){j=j.concat(rt.walkTokens(ne[Xe],Se))}):ne.tokens&&(j=j.concat(rt.walkTokens(ne.tokens,Se)))}},M=C(xe),J;!(J=M()).done;)x();return j},rt.parseInline=Tt(Pe.lexInline,Ze.parseInline),rt.Parser=Ze,rt.parser=Ze.parse,rt.Renderer=$e,rt.TextRenderer=Ke,rt.Lexer=Pe,rt.lexer=Pe.lex,rt.Tokenizer=S,rt.Slugger=ot,rt.Hooks=pt,rt.parse=rt;var Qt=rt.options,qt=rt.setOptions,Vt=rt.use,Jt=rt.walkTokens,bt=rt.parseInline,mn=rt,Lt=Ze.parse,jt=Pe.lex;Q.Hooks=pt,Q.Lexer=Pe,Q.Parser=Ze,Q.Renderer=$e,Q.Slugger=ot,Q.TextRenderer=Ke,Q.Tokenizer=S,Q.getDefaults=B,Q.lexer=jt,Q.marked=rt,Q.options=Qt,Q.parse=mn,Q.parseInline=bt,Q.parser=Lt,Q.setOptions=qt,Q.use=Vt,Q.walkTokens=Jt}}),Kl=Xt({"node_modules/easymde/src/js/easymde.js"(Q,le){"use strict";var T=qn();Il(),_l(),Hl(),ss(),ls(),Rl(),ql(),zl(),$l(),Wl(),as();var w=Gl(),b=Xl().marked,A=/Mac/.test(navigator.platform),C=new RegExp(/(<a.*?https?:\/\/.*?[^a]>)+?/g),D={toggleBold:G,toggleItalic:be,drawLink:_e,toggleHeadingSmaller:ye,toggleHeadingBigger:Me,drawImage:S,toggleBlockquote:ve,toggleOrderedList:ce,toggleUnorderedList:q,toggleCodeBlock:l,togglePreview:Ze,toggleStrikethrough:ee,toggleHeading1:we,toggleHeading2:Oe,toggleHeading3:Be,toggleHeading4:$,toggleHeading5:Le,toggleHeading6:Ee,cleanBlock:ke,drawTable:Ce,drawHorizontalRule:Pe,undo:$e,redo:Ke,toggleSideBySide:ot,toggleFullScreen:Z},k={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},B=function(g){for(var F in D)if(D[F]===g)return F;return null},N=function(){var g=!1;return(function(F){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(F)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(F.substr(0,4)))&&(g=!0)})(navigator.userAgent||navigator.vendor||window.opera),g};function U(g){for(var F;(F=C.exec(g))!==null;){var H=F[0];if(H.indexOf("target=")===-1){var K=H.replace(/>$/,' target="_blank">');g=g.replace(H,K)}}return g}function L(g){for(var F=new DOMParser,H=F.parseFromString(g,"text/html"),K=H.getElementsByTagName("li"),re=0;re<K.length;re++)for(var ue=K[re],te=0;te<ue.children.length;te++){var I=ue.children[te];I instanceof HTMLInputElement&&I.type==="checkbox"&&(ue.style.marginLeft="-1.5em",ue.style.listStyleType="none")}return H.documentElement.innerHTML}function pe(g){return A?g=g.replace("Ctrl","Cmd"):g=g.replace("Cmd","Ctrl"),g}function fe(g,F,H,K){var re=ie(g,!1,F,H,"button",K);re.classList.add("easymde-dropdown"),re.onclick=function(){re.focus()};var ue=document.createElement("div");ue.className="easymde-dropdown-content";for(var te=0;te<g.children.length;te++){var I=g.children[te],Ae;typeof I=="string"&&I in jt?Ae=ie(jt[I],!0,F,H,"button",K):Ae=ie(I,!0,F,H,"button",K),Ae.addEventListener("click",function(Xe){Xe.stopPropagation()},!1),ue.appendChild(Ae)}return re.appendChild(ue),re}function ie(g,F,H,K,re,ue){g=g||{};var te=document.createElement(re);if(g.attributes)for(var I in g.attributes)Object.prototype.hasOwnProperty.call(g.attributes,I)&&te.setAttribute(I,g.attributes[I]);var Ae=ue.options.toolbarButtonClassPrefix?ue.options.toolbarButtonClassPrefix+"-":"";te.className=Ae+g.name,te.setAttribute("type",re),H=H==null?!0:H,g.text&&(te.innerText=g.text),g.name&&g.name in K&&(D[g.name]=g.action),g.title&&H&&(te.title=he(g.title,g.action,K),A&&(te.title=te.title.replace("Ctrl","\u2318"),te.title=te.title.replace("Alt","\u2325"))),g.title&&te.setAttribute("aria-label",g.title),g.noDisable&&te.classList.add("no-disable"),g.noMobile&&te.classList.add("no-mobile");var Xe=[];typeof g.className!="undefined"&&(Xe=g.className.split(" "));for(var je=[],Ye=0;Ye<Xe.length;Ye++){var ut=Xe[Ye];ut.match(/^fa([srlb]|(-[\w-]*)|$)/)?je.push(ut):te.classList.add(ut)}if(te.tabIndex=-1,je.length>0){for(var it=document.createElement("i"),gt=0;gt<je.length;gt++){var at=je[gt];it.classList.add(at)}te.appendChild(it)}return typeof g.icon!="undefined"&&(te.innerHTML=g.icon),g.action&&F&&(typeof g.action=="function"?te.onclick=function(kt){kt.preventDefault(),g.action(ue)}:typeof g.action=="string"&&(te.onclick=function(kt){kt.preventDefault(),window.open(g.action,"_blank")})),te}function oe(){var g=document.createElement("i");return g.className="separator",g.innerHTML="|",g}function he(g,F,H){var K,re=g;return F&&(K=B(F),H[K]&&(re+=" ("+pe(H[K])+")")),re}function Y(g,F){F=F||g.getCursor("start");var H=g.getTokenAt(F);if(!H.type)return{};for(var K=H.type.split(" "),re={},ue,te,I=0;I<K.length;I++)ue=K[I],ue==="strong"?re.bold=!0:ue==="variable-2"?(te=g.getLine(F.line),/^\s*\d+\.\s/.test(te)?re["ordered-list"]=!0:re["unordered-list"]=!0):ue==="atom"?re.quote=!0:ue==="em"?re.italic=!0:ue==="quote"?re.quote=!0:ue==="strikethrough"?re.strikethrough=!0:ue==="comment"?re.code=!0:ue==="link"&&!re.image?re.link=!0:ue==="image"?re.image=!0:ue.match(/^header(-[1-6])?$/)&&(re[ue.replace("header","heading")]=!0);return re}var z="";function Z(g){var F=g.codemirror;F.setOption("fullScreen",!F.getOption("fullScreen")),F.getOption("fullScreen")?(z=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=z;var H=F.getWrapperElement(),K=H.nextSibling;if(K.classList.contains("editor-preview-active-side"))if(g.options.sideBySideFullscreen===!1){var re=H.parentNode;F.getOption("fullScreen")?re.classList.remove("sided--no-fullscreen"):re.classList.add("sided--no-fullscreen")}else ot(g);if(g.options.onToggleFullScreen&&g.options.onToggleFullScreen(F.getOption("fullScreen")||!1),typeof g.options.maxHeight!="undefined"&&(F.getOption("fullScreen")?(F.getScrollerElement().style.removeProperty("height"),K.style.removeProperty("height")):(F.getScrollerElement().style.height=g.options.maxHeight,g.setPreviewMaxHeight())),g.toolbar_div.classList.toggle("fullscreen"),g.toolbarElements&&g.toolbarElements.fullscreen){var ue=g.toolbarElements.fullscreen;ue.classList.toggle("active")}}function G(g){Qt(g,"bold",g.options.blockStyles.bold)}function be(g){Qt(g,"italic",g.options.blockStyles.italic)}function ee(g){Qt(g,"strikethrough","~~")}function l(g){var F=g.options.blockStyles.code;function H(sn){if(typeof sn!="object")throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeof sn+": "+sn;return sn.styles&&sn.styles[2]&&sn.styles[2].indexOf("formatting-code-block")!==-1}function K(sn){return sn.state.base.base||sn.state.base}function re(sn,Gn,en,Nn,zn){en=en||sn.getLineHandle(Gn),Nn=Nn||sn.getTokenAt({line:Gn,ch:1}),zn=zn||!!en.text&&sn.getTokenAt({line:Gn,ch:en.text.length-1});var On=Nn.type?Nn.type.split(" "):[];return zn&&K(zn).indentedCode?"indented":On.indexOf("comment")===-1?!1:K(Nn).fencedChars||K(zn).fencedChars||H(en)?"fenced":"single"}function ue(sn,Gn,en,Nn){var zn=Gn.line+1,On=en.line+1,or=Gn.line!==en.line,ar=Nn+`
111
+ `,yi=`
112
+ `+Nn;or&&On++,or&&en.ch===0&&(yi=Nn+`
113
+ `,On--),pt(sn,!1,[ar,yi]),sn.setSelection({line:zn,ch:0},{line:On,ch:0})}var te=g.codemirror,I=te.getCursor("start"),Ae=te.getCursor("end"),Xe=te.getTokenAt({line:I.line,ch:I.ch||1}),je=te.getLineHandle(I.line),Ye=re(te,I.line,je,Xe),ut,it,gt;if(Ye==="single"){var at=je.text.slice(0,I.ch).replace("`",""),kt=je.text.slice(I.ch).replace("`","");te.replaceRange(at+kt,{line:I.line,ch:0},{line:I.line,ch:99999999999999}),I.ch--,I!==Ae&&Ae.ch--,te.setSelection(I,Ae),te.focus()}else if(Ye==="fenced")if(I.line!==Ae.line||I.ch!==Ae.ch){for(ut=I.line;ut>=0&&(je=te.getLineHandle(ut),!H(je));ut--);var Et=te.getTokenAt({line:ut,ch:1}),Ot=K(Et).fencedChars,zt,Ut,fn,kn;H(te.getLineHandle(I.line))?(zt="",Ut=I.line):H(te.getLineHandle(I.line-1))?(zt="",Ut=I.line-1):(zt=Ot+`
114
+ `,Ut=I.line),H(te.getLineHandle(Ae.line))?(fn="",kn=Ae.line,Ae.ch===0&&(kn+=1)):Ae.ch!==0&&H(te.getLineHandle(Ae.line+1))?(fn="",kn=Ae.line+1):(fn=Ot+`
115
+ `,kn=Ae.line+1),Ae.ch===0&&(kn-=1),te.operation(function(){te.replaceRange(fn,{line:kn,ch:0},{line:kn+(fn?0:1),ch:0}),te.replaceRange(zt,{line:Ut,ch:0},{line:Ut+(zt?0:1),ch:0})}),te.setSelection({line:Ut+(zt?1:0),ch:0},{line:kn+(zt?1:-1),ch:0}),te.focus()}else{var ir=I.line;if(H(te.getLineHandle(I.line))&&(re(te,I.line+1)==="fenced"?(ut=I.line,ir=I.line+1):(it=I.line,ir=I.line-1)),ut===void 0)for(ut=ir;ut>=0&&(je=te.getLineHandle(ut),!H(je));ut--);if(it===void 0)for(gt=te.lineCount(),it=ir;it<gt&&(je=te.getLineHandle(it),!H(je));it++);te.operation(function(){te.replaceRange("",{line:ut,ch:0},{line:ut+1,ch:0}),te.replaceRange("",{line:it-1,ch:0},{line:it,ch:0})}),te.focus()}else if(Ye==="indented"){if(I.line!==Ae.line||I.ch!==Ae.ch)ut=I.line,it=Ae.line,Ae.ch===0&&it--;else{for(ut=I.line;ut>=0;ut--)if(je=te.getLineHandle(ut),!je.text.match(/^\s*$/)&&re(te,ut,je)!=="indented"){ut+=1;break}for(gt=te.lineCount(),it=I.line;it<gt;it++)if(je=te.getLineHandle(it),!je.text.match(/^\s*$/)&&re(te,it,je)!=="indented"){it-=1;break}}var Nr=te.getLineHandle(it+1),mi=Nr&&te.getTokenAt({line:it+1,ch:Nr.text.length-1}),Zr=mi&&K(mi).indentedCode;Zr&&te.replaceRange(`
116
+ `,{line:it+1,ch:0});for(var Or=ut;Or<=it;Or++)te.indentLine(Or,"subtract");te.focus()}else{var Yi=I.line===Ae.line&&I.ch===Ae.ch&&I.ch===0,Qr=I.line!==Ae.line;Yi||Qr?ue(te,I,Ae,F):pt(te,!1,["`","`"])}}function ve(g){Tt(g.codemirror,"quote")}function ye(g){ht(g.codemirror,"smaller")}function Me(g){ht(g.codemirror,"bigger")}function we(g){ht(g.codemirror,void 0,1)}function Oe(g){ht(g.codemirror,void 0,2)}function Be(g){ht(g.codemirror,void 0,3)}function $(g){ht(g.codemirror,void 0,4)}function Le(g){ht(g.codemirror,void 0,5)}function Ee(g){ht(g.codemirror,void 0,6)}function q(g){var F=g.codemirror,H="*";["-","+","*"].includes(g.options.unorderedListStyle)&&(H=g.options.unorderedListStyle),Tt(F,"unordered-list",H)}function ce(g){Tt(g.codemirror,"ordered-list")}function ke(g){qt(g.codemirror)}function _e(g){var F=g.options,H="https://";if(F.promptURLs){var K=prompt(F.promptTexts.link,H);if(!K)return!1;H=p(K)}rt(g,"link",F.insertTexts.link,H)}function S(g){var F=g.options,H="https://";if(F.promptURLs){var K=prompt(F.promptTexts.image,H);if(!K)return!1;H=p(K)}rt(g,"image",F.insertTexts.image,H)}function p(g){return encodeURI(g).replace(/([\\()])/g,"\\$1")}function P(g){g.openBrowseFileWindow()}function me(g,F){var H=g.codemirror,K=Y(H),re=g.options,ue=F.substr(F.lastIndexOf("/")+1),te=ue.substring(ue.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(te))pt(H,K.image,re.insertTexts.uploadedImage,F);else{var I=re.insertTexts.link;I[0]="["+ue,pt(H,K.link,I,F)}g.updateStatusBar("upload-image",g.options.imageTexts.sbOnUploaded.replace("#image_name#",ue)),setTimeout(function(){g.updateStatusBar("upload-image",g.options.imageTexts.sbInit)},1e3)}function Ce(g){var F=g.codemirror,H=Y(F),K=g.options;pt(F,H.table,K.insertTexts.table)}function Pe(g){var F=g.codemirror,H=Y(F),K=g.options;pt(F,H.image,K.insertTexts.horizontalRule)}function $e(g){var F=g.codemirror;F.undo(),F.focus()}function Ke(g){var F=g.codemirror;F.redo(),F.focus()}function ot(g){var F=g.codemirror,H=F.getWrapperElement(),K=H.nextSibling,re=g.toolbarElements&&g.toolbarElements["side-by-side"],ue=!1,te=H.parentNode;K.classList.contains("editor-preview-active-side")?(g.options.sideBySideFullscreen===!1&&te.classList.remove("sided--no-fullscreen"),K.classList.remove("editor-preview-active-side"),re&&re.classList.remove("active"),H.classList.remove("CodeMirror-sided")):(setTimeout(function(){F.getOption("fullScreen")||(g.options.sideBySideFullscreen===!1?te.classList.add("sided--no-fullscreen"):Z(g)),K.classList.add("editor-preview-active-side")},1),re&&re.classList.add("active"),H.classList.add("CodeMirror-sided"),ue=!0);var I=H.lastChild;if(I.classList.contains("editor-preview-active")){I.classList.remove("editor-preview-active");var Ae=g.toolbarElements.preview,Xe=g.toolbar_div;Ae.classList.remove("active"),Xe.classList.remove("disabled-for-preview")}var je=function(){var ut=g.options.previewRender(g.value(),K);ut!=null&&(K.innerHTML=ut)};if(F.sideBySideRenderingFunction||(F.sideBySideRenderingFunction=je),ue){var Ye=g.options.previewRender(g.value(),K);Ye!=null&&(K.innerHTML=Ye),F.on("update",F.sideBySideRenderingFunction)}else F.off("update",F.sideBySideRenderingFunction);F.refresh()}function Ze(g){var F=g.codemirror,H=F.getWrapperElement(),K=g.toolbar_div,re=g.options.toolbar?g.toolbarElements.preview:!1,ue=H.lastChild,te=F.getWrapperElement().nextSibling;if(te.classList.contains("editor-preview-active-side")&&ot(g),!ue||!ue.classList.contains("editor-preview-full")){if(ue=document.createElement("div"),ue.className="editor-preview-full",g.options.previewClass)if(Array.isArray(g.options.previewClass))for(var I=0;I<g.options.previewClass.length;I++)ue.classList.add(g.options.previewClass[I]);else typeof g.options.previewClass=="string"&&ue.classList.add(g.options.previewClass);H.appendChild(ue)}ue.classList.contains("editor-preview-active")?(ue.classList.remove("editor-preview-active"),re&&(re.classList.remove("active"),K.classList.remove("disabled-for-preview"))):(setTimeout(function(){ue.classList.add("editor-preview-active")},1),re&&(re.classList.add("active"),K.classList.add("disabled-for-preview")));var Ae=g.options.previewRender(g.value(),ue);Ae!==null&&(ue.innerHTML=Ae)}function pt(g,F,H,K){if(!g.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var re,ue=H[0],te=H[1],I={},Ae={};Object.assign(I,g.getCursor("start")),Object.assign(Ae,g.getCursor("end")),K&&(ue=ue.replace("#url#",K),te=te.replace("#url#",K)),F?(re=g.getLine(I.line),ue=re.slice(0,I.ch),te=re.slice(I.ch),g.replaceRange(ue+te,{line:I.line,ch:0})):(re=g.getSelection(),g.replaceSelection(ue+re+te),I.ch+=ue.length,I!==Ae&&(Ae.ch+=ue.length)),g.setSelection(I,Ae),g.focus()}}function ht(g,F,H){if(!g.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var K=g.getCursor("start"),re=g.getCursor("end"),ue=K.line;ue<=re.line;ue++)(function(te){var I=g.getLine(te),Ae=I.search(/[^#]/);F!==void 0?Ae<=0?F=="bigger"?I="###### "+I:I="# "+I:Ae==6&&F=="smaller"?I=I.substr(7):Ae==1&&F=="bigger"?I=I.substr(2):F=="bigger"?I=I.substr(1):I="#"+I:Ae<=0?I="#".repeat(H)+" "+I:Ae==H?I=I.substr(Ae+1):I="#".repeat(H)+" "+I.substr(Ae+1),g.replaceRange(I,{line:te,ch:0},{line:te,ch:99999999999999})})(ue);g.focus()}}function Tt(g,F,H){if(!g.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var K=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,re=/^\s*/,ue=Y(g),te=g.getCursor("start"),I=g.getCursor("end"),Ae={quote:/^(\s*)>\s+/,"unordered-list":K,"ordered-list":K},Xe=function(gt,at){var kt={quote:">","unordered-list":H,"ordered-list":"%%i."};return kt[gt].replace("%%i",at)},je=function(gt,at){var kt={quote:">","unordered-list":"\\"+H,"ordered-list":"\\d+."},Et=new RegExp(kt[gt]);return at&&Et.test(at)},Ye=function(gt,at,kt){var Et=K.exec(at),Ot=Xe(gt,ut);return Et!==null?(je(gt,Et[2])&&(Ot=""),at=Et[1]+Ot+Et[3]+at.replace(re,"").replace(Ae[gt],"$1")):kt==!1&&(at=Ot+" "+at),at},ut=1,it=te.line;it<=I.line;it++)(function(gt){var at=g.getLine(gt);ue[F]?at=at.replace(Ae[F],"$1"):(F=="unordered-list"&&(at=Ye("ordered-list",at,!0)),at=Ye(F,at,!1),ut+=1),g.replaceRange(at,{line:gt,ch:0},{line:gt,ch:99999999999999})})(it);g.focus()}}function rt(g,F,H,K){if(!(!g.codemirror||g.isPreviewActive())){var re=g.codemirror,ue=Y(re),te=ue[F];if(!te){pt(re,te,H,K);return}var I=re.getCursor("start"),Ae=re.getCursor("end"),Xe=re.getLine(I.line),je=Xe.slice(0,I.ch),Ye=Xe.slice(I.ch);F=="link"?je=je.replace(/(.*)[^!]\[/,"$1"):F=="image"&&(je=je.replace(/(.*)!\[$/,"$1")),Ye=Ye.replace(/]\(.*?\)/,""),re.replaceRange(je+Ye,{line:I.line,ch:0},{line:I.line,ch:99999999999999}),I.ch-=H[0].length,I!==Ae&&(Ae.ch-=H[0].length),re.setSelection(I,Ae),re.focus()}}function Qt(g,F,H,K){if(!(!g.codemirror||g.isPreviewActive())){K=typeof K=="undefined"?H:K;var re=g.codemirror,ue=Y(re),te,I=H,Ae=K,Xe=re.getCursor("start"),je=re.getCursor("end");ue[F]?(te=re.getLine(Xe.line),I=te.slice(0,Xe.ch),Ae=te.slice(Xe.ch),F=="bold"?(I=I.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),Ae=Ae.replace(/(\*\*|__)/,"")):F=="italic"?(I=I.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),Ae=Ae.replace(/(\*|_)/,"")):F=="strikethrough"&&(I=I.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),Ae=Ae.replace(/(\*\*|~~)/,"")),re.replaceRange(I+Ae,{line:Xe.line,ch:0},{line:Xe.line,ch:99999999999999}),F=="bold"||F=="strikethrough"?(Xe.ch-=2,Xe!==je&&(je.ch-=2)):F=="italic"&&(Xe.ch-=1,Xe!==je&&(je.ch-=1))):(te=re.getSelection(),F=="bold"?(te=te.split("**").join(""),te=te.split("__").join("")):F=="italic"?(te=te.split("*").join(""),te=te.split("_").join("")):F=="strikethrough"&&(te=te.split("~~").join("")),re.replaceSelection(I+te+Ae),Xe.ch+=H.length,je.ch=Xe.ch+te.length),re.setSelection(Xe,je),re.focus()}}function qt(g){if(!g.getWrapperElement().lastChild.classList.contains("editor-preview-active"))for(var F=g.getCursor("start"),H=g.getCursor("end"),K,re=F.line;re<=H.line;re++)K=g.getLine(re),K=K.replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),g.replaceRange(K,{line:re,ch:0},{line:re,ch:99999999999999})}function Vt(g,F){if(Math.abs(g)<1024)return""+g+F[0];var H=0;do g/=1024,++H;while(Math.abs(g)>=1024&&H<F.length);return""+g.toFixed(1)+F[H]}function Jt(g,F){for(var H in F)Object.prototype.hasOwnProperty.call(F,H)&&(F[H]instanceof Array?g[H]=F[H].concat(g[H]instanceof Array?g[H]:[]):F[H]!==null&&typeof F[H]=="object"&&F[H].constructor===Object?g[H]=Jt(g[H]||{},F[H]):g[H]=F[H]);return g}function bt(g){for(var F=1;F<arguments.length;F++)g=Jt(g,arguments[F]);return g}function mn(g){var F=/[a-zA-Z0-9_\u00A0-\u02AF\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,H=g.match(F),K=0;if(H===null)return K;for(var re=0;re<H.length;re++)H[re].charCodeAt(0)>=19968?K+=H[re].length:K+=1;return K}var Lt={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},jt={bold:{name:"bold",action:G,className:Lt.bold,title:"Bold",default:!0},italic:{name:"italic",action:be,className:Lt.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:ee,className:Lt.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:ye,className:Lt.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:ye,className:Lt["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:Me,className:Lt["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:we,className:Lt["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:Oe,className:Lt["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:Be,className:Lt["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:l,className:Lt.code,title:"Code"},quote:{name:"quote",action:ve,className:Lt.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:q,className:Lt["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:ce,className:Lt["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:ke,className:Lt["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:_e,className:Lt.link,title:"Create Link",default:!0},image:{name:"image",action:S,className:Lt.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:P,className:Lt["upload-image"],title:"Import an image"},table:{name:"table",action:Ce,className:Lt.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:Pe,className:Lt["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:Ze,className:Lt.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:ot,className:Lt["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:Z,className:Lt.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:Lt.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:$e,className:Lt.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:Ke,className:Lt.redo,noDisable:!0,title:"Redo"}},xe={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["",`
117
+
118
+ | Column 1 | Column 2 | Column 3 |
119
+ | -------- | -------- | -------- |
120
+ | Text | Text | Text |
121
+
122
+ `],horizontalRule:["",`
123
+
124
+ -----
125
+
126
+ `]},Se={link:"URL for the link:",image:"URL of the image:"},j={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},x={bold:"**",code:"```",italic:"*"},M={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},J={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#).
127
+ Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function O(g){g=g||{},g.parent=this;var F=!0;if(g.autoDownloadFontAwesome===!1&&(F=!1),g.autoDownloadFontAwesome!==!0)for(var H=document.styleSheets,K=0;K<H.length;K++)H[K].href&&H[K].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(F=!1);if(F){var re=document.createElement("link");re.rel="stylesheet",re.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(re)}if(g.element)this.element=g.element;else if(g.element===null){console.log("EasyMDE: Error. No element was found.");return}if(g.toolbar===void 0){g.toolbar=[];for(var ue in jt)Object.prototype.hasOwnProperty.call(jt,ue)&&(ue.indexOf("separator-")!=-1&&g.toolbar.push("|"),(jt[ue].default===!0||g.showIcons&&g.showIcons.constructor===Array&&g.showIcons.indexOf(ue)!=-1)&&g.toolbar.push(ue))}if(Object.prototype.hasOwnProperty.call(g,"previewClass")||(g.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(g,"status")||(g.status=["autosave","lines","words","cursor"],g.uploadImage&&g.status.unshift("upload-image")),g.previewRender||(g.previewRender=function(I){return this.parent.markdown(I)}),g.parsingConfig=bt({highlightFormatting:!0},g.parsingConfig||{}),g.insertTexts=bt({},xe,g.insertTexts||{}),g.promptTexts=bt({},Se,g.promptTexts||{}),g.blockStyles=bt({},x,g.blockStyles||{}),g.autosave!=null&&(g.autosave.timeFormat=bt({},j,g.autosave.timeFormat||{})),g.iconClassMap=bt({},Lt,g.iconClassMap||{}),g.shortcuts=bt({},k,g.shortcuts||{}),g.maxHeight=g.maxHeight||void 0,g.direction=g.direction||"ltr",typeof g.maxHeight!="undefined"?g.minHeight=g.maxHeight:g.minHeight=g.minHeight||"300px",g.errorCallback=g.errorCallback||function(I){alert(I)},g.uploadImage=g.uploadImage||!1,g.imageMaxSize=g.imageMaxSize||2097152,g.imageAccept=g.imageAccept||"image/png, image/jpeg, image/gif, image/avif",g.imageTexts=bt({},M,g.imageTexts||{}),g.errorMessages=bt({},J,g.errorMessages||{}),g.imagePathAbsolute=g.imagePathAbsolute||!1,g.imageCSRFName=g.imageCSRFName||"csrfmiddlewaretoken",g.imageCSRFHeader=g.imageCSRFHeader||!1,g.imageInputName=g.imageInputName||"image",g.autosave!=null&&g.autosave.unique_id!=null&&g.autosave.unique_id!=""&&(g.autosave.uniqueId=g.autosave.unique_id),g.overlayMode&&g.overlayMode.combine===void 0&&(g.overlayMode.combine=!0),this.options=g,this.render(),g.initialValue&&(!this.options.autosave||this.options.autosave.foundSavedValue!==!0)&&this.value(g.initialValue),g.uploadImage){var te=this;this.codemirror.on("dragenter",function(I,Ae){te.updateStatusBar("upload-image",te.options.imageTexts.sbOnDragEnter),Ae.stopPropagation(),Ae.preventDefault()}),this.codemirror.on("dragend",function(I,Ae){te.updateStatusBar("upload-image",te.options.imageTexts.sbInit),Ae.stopPropagation(),Ae.preventDefault()}),this.codemirror.on("dragleave",function(I,Ae){te.updateStatusBar("upload-image",te.options.imageTexts.sbInit),Ae.stopPropagation(),Ae.preventDefault()}),this.codemirror.on("dragover",function(I,Ae){te.updateStatusBar("upload-image",te.options.imageTexts.sbOnDragEnter),Ae.stopPropagation(),Ae.preventDefault()}),this.codemirror.on("drop",function(I,Ae){Ae.stopPropagation(),Ae.preventDefault(),g.imageUploadFunction?te.uploadImagesUsingCustomFunction(g.imageUploadFunction,Ae.dataTransfer.files):te.uploadImages(Ae.dataTransfer.files)}),this.codemirror.on("paste",function(I,Ae){g.imageUploadFunction?te.uploadImagesUsingCustomFunction(g.imageUploadFunction,Ae.clipboardData.files):te.uploadImages(Ae.clipboardData.files)})}}O.prototype.uploadImages=function(g,F,H){if(g.length!==0){for(var K=[],re=0;re<g.length;re++)K.push(g[re].name),this.uploadImage(g[re],F,H);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",K.join(", ")))}},O.prototype.uploadImagesUsingCustomFunction=function(g,F){if(F.length!==0){for(var H=[],K=0;K<F.length;K++)H.push(F[K].name),this.uploadImageUsingCustomFunction(g,F[K]);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",H.join(", ")))}},O.prototype.updateStatusBar=function(g,F){if(this.gui.statusbar){var H=this.gui.statusbar.getElementsByClassName(g);H.length===1?this.gui.statusbar.getElementsByClassName(g)[0].textContent=F:H.length===0?console.log("EasyMDE: status bar item "+g+" was not found."):console.log("EasyMDE: Several status bar items named "+g+" was found.")}},O.prototype.markdown=function(g){if(b){var F;if(this.options&&this.options.renderingConfig&&this.options.renderingConfig.markedOptions?F=this.options.renderingConfig.markedOptions:F={},this.options&&this.options.renderingConfig&&this.options.renderingConfig.singleLineBreaks===!1?F.breaks=!1:F.breaks=!0,this.options&&this.options.renderingConfig&&this.options.renderingConfig.codeSyntaxHighlighting===!0){var H=this.options.renderingConfig.hljs||window.hljs;H&&(F.highlight=function(re,ue){return ue&&H.getLanguage(ue)?H.highlight(ue,re).value:H.highlightAuto(re).value})}b.use(F);var K=b.parse(g);return this.options.renderingConfig&&typeof this.options.renderingConfig.sanitizerFunction=="function"&&(K=this.options.renderingConfig.sanitizerFunction.call(this,K)),K=U(K),K=L(K),K}},O.prototype.render=function(g){if(g||(g=this.element||document.getElementsByTagName("textarea")[0]),this._rendered&&this._rendered===g)return;this.element=g;var F=this.options,H=this,K={};for(var re in F.shortcuts)F.shortcuts[re]!==null&&D[re]!==null&&(function(kt){K[pe(F.shortcuts[kt])]=function(){var Et=D[kt];typeof Et=="function"?Et(H):typeof Et=="string"&&window.open(Et,"_blank")}})(re);K.Enter="newlineAndIndentContinueMarkdownList",K.Tab="tabAndIndentMarkdownList",K["Shift-Tab"]="shiftTabAndUnindentMarkdownList",K.Esc=function(kt){kt.getOption("fullScreen")&&Z(H)},this.documentOnKeyDown=function(kt){kt=kt||window.event,kt.keyCode==27&&H.codemirror.getOption("fullScreen")&&Z(H)},document.addEventListener("keydown",this.documentOnKeyDown,!1);var ue,te;F.overlayMode?(T.defineMode("overlay-mode",function(kt){return T.overlayMode(T.getMode(kt,F.spellChecker!==!1?"spell-checker":"gfm"),F.overlayMode.mode,F.overlayMode.combine)}),ue="overlay-mode",te=F.parsingConfig,te.gitHubSpice=!1):(ue=F.parsingConfig,ue.name="gfm",ue.gitHubSpice=!1),F.spellChecker!==!1&&(ue="spell-checker",te=F.parsingConfig,te.name="gfm",te.gitHubSpice=!1,typeof F.spellChecker=="function"?F.spellChecker({codeMirrorInstance:T}):w({codeMirrorInstance:T}));function I(kt,Et,Ot){return{addNew:!1}}if(this.codemirror=T.fromTextArea(g,{mode:ue,backdrop:te,theme:F.theme!=null?F.theme:"easymde",tabSize:F.tabSize!=null?F.tabSize:2,indentUnit:F.tabSize!=null?F.tabSize:2,indentWithTabs:F.indentWithTabs!==!1,lineNumbers:F.lineNumbers===!0,autofocus:F.autofocus===!0,extraKeys:K,direction:F.direction,lineWrapping:F.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:F.placeholder||g.getAttribute("placeholder")||"",styleSelectedText:F.styleSelectedText!=null?F.styleSelectedText:!N(),scrollbarStyle:F.scrollbarStyle!=null?F.scrollbarStyle:"native",configureMouse:I,inputStyle:F.inputStyle!=null?F.inputStyle:N()?"contenteditable":"textarea",spellcheck:F.nativeSpellcheck!=null?F.nativeSpellcheck:!0,autoRefresh:F.autoRefresh!=null?F.autoRefresh:!1}),this.codemirror.getScrollerElement().style.minHeight=F.minHeight,typeof F.maxHeight!="undefined"&&(this.codemirror.getScrollerElement().style.height=F.maxHeight),F.forceSync===!0){var Ae=this.codemirror;Ae.on("change",function(){Ae.save()})}this.gui={};var Xe=document.createElement("div");Xe.classList.add("EasyMDEContainer"),Xe.setAttribute("role","application");var je=this.codemirror.getWrapperElement();je.parentNode.insertBefore(Xe,je),Xe.appendChild(je),F.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),F.status!==!1&&(this.gui.statusbar=this.createStatusbar()),F.autosave!=null&&F.autosave.enabled===!0&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(H._autosave_timeout),H._autosave_timeout=setTimeout(function(){H.autosave()},H.options.autosave.submit_delay||H.options.autosave.delay||1e3)}));function Ye(kt,Et){var Ot,zt=window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","");return kt<zt?Ot=Et+"px":Ot=Et/kt*100+"%",Ot}var ut=this;function it(kt,Et){var Ot=new URL(Et.url,document.baseURI).href;kt.setAttribute("data-img-src",Ot),kt.setAttribute("style","--bg-image:url("+Ot+");--width:"+Et.naturalWidth+"px;--height:"+Ye(Et.naturalWidth,Et.naturalHeight)),ut.codemirror.setSize()}function gt(){F.previewImagesInEditor&&Xe.querySelectorAll(".cm-image-marker").forEach(function(kt){var Et=kt.parentElement;if(Et.innerText.match(/^!\[.*?\]\(.*\)/g)&&!Et.hasAttribute("data-img-src")){var Ot=Et.innerText.match(/!\[.*?\]\((.*?)\)/);if(window.EMDEimagesCache||(window.EMDEimagesCache={}),Ot&&Ot.length>=2){var zt=Ot[1];if(F.imagesPreviewHandler){var Ut=F.imagesPreviewHandler(Ot[1]);typeof Ut=="string"&&(zt=Ut)}if(window.EMDEimagesCache[zt])it(Et,window.EMDEimagesCache[zt]);else{window.EMDEimagesCache[zt]={};var fn=document.createElement("img");fn.onload=function(){window.EMDEimagesCache[zt]={naturalWidth:fn.naturalWidth,naturalHeight:fn.naturalHeight,url:zt},it(Et,window.EMDEimagesCache[zt])},fn.src=zt}}}})}this.codemirror.on("update",function(){gt()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(F.autofocus===!0||g.autofocus)&&this.codemirror.focus();var at=this.codemirror;setTimeout(function(){at.refresh()}.bind(at),0)},O.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function ne(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(g){return!1}else return!1;return!0}O.prototype.autosave=function(){if(ne()){var g=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(g.element.form!=null&&g.element.form!=null&&g.element.form.addEventListener("submit",function(){clearTimeout(g.autosaveTimeoutId),g.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+g.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var F=g.value();F!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,F):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var H=document.getElementById("autosaved");if(H!=null&&H!=null&&H!=""){var K=new Date,re=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(K),ue=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;H.innerHTML=ue+re}}else console.log("EasyMDE: localStorage not available, cannot autosave")},O.prototype.clearAutosavedValue=function(){if(ne()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")},O.prototype.openBrowseFileWindow=function(g,F){var H=this,K=this.gui.toolbar.getElementsByClassName("imageInput")[0];K.click();function re(ue){H.options.imageUploadFunction?H.uploadImagesUsingCustomFunction(H.options.imageUploadFunction,ue.target.files):H.uploadImages(ue.target.files,g,F),K.removeEventListener("change",re)}K.addEventListener("change",re)},O.prototype.uploadImage=function(g,F,H){var K=this;F=F||function(Xe){me(K,Xe)};function re(Ae){K.updateStatusBar("upload-image",Ae),setTimeout(function(){K.updateStatusBar("upload-image",K.options.imageTexts.sbInit)},1e4),H&&typeof H=="function"&&H(Ae),K.options.errorCallback(Ae)}function ue(Ae){var Xe=K.options.imageTexts.sizeUnits.split(",");return Ae.replace("#image_name#",g.name).replace("#image_size#",Vt(g.size,Xe)).replace("#image_max_size#",Vt(K.options.imageMaxSize,Xe))}if(g.size>this.options.imageMaxSize){re(ue(this.options.errorMessages.fileTooLarge));return}var te=new FormData;te.append("image",g),K.options.imageCSRFToken&&!K.options.imageCSRFHeader&&te.append(K.options.imageCSRFName,K.options.imageCSRFToken);var I=new XMLHttpRequest;I.upload.onprogress=function(Ae){if(Ae.lengthComputable){var Xe=""+Math.round(Ae.loaded*100/Ae.total);K.updateStatusBar("upload-image",K.options.imageTexts.sbProgress.replace("#file_name#",g.name).replace("#progress#",Xe))}},I.open("POST",this.options.imageUploadEndpoint),K.options.imageCSRFToken&&K.options.imageCSRFHeader&&I.setRequestHeader(K.options.imageCSRFName,K.options.imageCSRFToken),I.onload=function(){try{var Ae=JSON.parse(this.responseText)}catch(Xe){console.error("EasyMDE: The server did not return a valid json."),re(ue(K.options.errorMessages.importError));return}this.status===200&&Ae&&!Ae.error&&Ae.data&&Ae.data.filePath?F((K.options.imagePathAbsolute?"":window.location.origin+"/")+Ae.data.filePath):Ae.error&&Ae.error in K.options.errorMessages?re(ue(K.options.errorMessages[Ae.error])):Ae.error?re(ue(Ae.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),re(ue(K.options.errorMessages.importError)))},I.onerror=function(Ae){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+Ae.target.status+" ("+Ae.target.statusText+")"),re(K.options.errorMessages.importError)},I.send(te)},O.prototype.uploadImageUsingCustomFunction=function(g,F){var H=this;function K(te){me(H,te)}function re(te){var I=ue(te);H.updateStatusBar("upload-image",I),setTimeout(function(){H.updateStatusBar("upload-image",H.options.imageTexts.sbInit)},1e4),H.options.errorCallback(I)}function ue(te){var I=H.options.imageTexts.sizeUnits.split(",");return te.replace("#image_name#",F.name).replace("#image_size#",Vt(F.size,I)).replace("#image_max_size#",Vt(H.options.imageMaxSize,I))}g.apply(this,[F,K,re])},O.prototype.setPreviewMaxHeight=function(){var g=this.codemirror,F=g.getWrapperElement(),H=F.nextSibling,K=parseInt(window.getComputedStyle(F).paddingTop),re=parseInt(window.getComputedStyle(F).borderTopWidth),ue=parseInt(this.options.maxHeight),te=ue+K*2+re*2,I=te.toString()+"px";H.style.height=I},O.prototype.createSideBySide=function(){var g=this.codemirror,F=g.getWrapperElement(),H=F.nextSibling;if(!H||!H.classList.contains("editor-preview-side")){if(H=document.createElement("div"),H.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var K=0;K<this.options.previewClass.length;K++)H.classList.add(this.options.previewClass[K]);else typeof this.options.previewClass=="string"&&H.classList.add(this.options.previewClass);F.parentNode.insertBefore(H,F.nextSibling)}if(typeof this.options.maxHeight!="undefined"&&this.setPreviewMaxHeight(),this.options.syncSideBySidePreviewScroll===!1)return H;var re=!1,ue=!1;return g.on("scroll",function(te){if(re){re=!1;return}ue=!0;var I=te.getScrollInfo().height-te.getScrollInfo().clientHeight,Ae=parseFloat(te.getScrollInfo().top)/I,Xe=(H.scrollHeight-H.clientHeight)*Ae;H.scrollTop=Xe}),H.onscroll=function(){if(ue){ue=!1;return}re=!0;var te=H.scrollHeight-H.clientHeight,I=parseFloat(H.scrollTop)/te,Ae=(g.getScrollInfo().height-g.getScrollInfo().clientHeight)*I;g.scrollTo(0,Ae)},H},O.prototype.createToolbar=function(g){if(g=g||this.options.toolbar,!(!g||g.length===0)){var F;for(F=0;F<g.length;F++)jt[g[F]]!=null&&(g[F]=jt[g[F]]);var H=document.createElement("div");H.className="editor-toolbar",H.setAttribute("role","toolbar");var K=this,re={};for(K.toolbar=g,F=0;F<g.length;F++)if(!(g[F].name=="guide"&&K.options.toolbarGuideIcon===!1)&&!(K.options.hideIcons&&K.options.hideIcons.indexOf(g[F].name)!=-1)&&!((g[F].name=="fullscreen"||g[F].name=="side-by-side")&&N())){if(g[F]==="|"){for(var ue=!1,te=F+1;te<g.length;te++)g[te]!=="|"&&(!K.options.hideIcons||K.options.hideIcons.indexOf(g[te].name)==-1)&&(ue=!0);if(!ue)continue}(function(Xe){var je;if(Xe==="|"?je=oe():Xe.children?je=fe(Xe,K.options.toolbarTips,K.options.shortcuts,K):je=ie(Xe,!0,K.options.toolbarTips,K.options.shortcuts,"button",K),re[Xe.name||Xe]=je,H.appendChild(je),Xe.name==="upload-image"){var Ye=document.createElement("input");Ye.className="imageInput",Ye.type="file",Ye.multiple=!0,Ye.name=K.options.imageInputName,Ye.accept=K.options.imageAccept,Ye.style.display="none",Ye.style.opacity=0,H.appendChild(Ye)}})(g[F])}K.toolbar_div=H,K.toolbarElements=re;var I=this.codemirror;I.on("cursorActivity",function(){var Xe=Y(I);for(var je in re)(function(Ye){var ut=re[Ye];Xe[Ye]?ut.classList.add("active"):Ye!="fullscreen"&&Ye!="side-by-side"&&ut.classList.remove("active")})(je)});var Ae=I.getWrapperElement();return Ae.parentNode.insertBefore(H,Ae),H}},O.prototype.createStatusbar=function(g){g=g||this.options.status;var F=this.options,H=this.codemirror;if(!(!g||g.length===0)){var K=[],re,ue,te,I;for(re=0;re<g.length;re++)if(ue=void 0,te=void 0,I=void 0,typeof g[re]=="object")K.push({className:g[re].className,defaultValue:g[re].defaultValue,onUpdate:g[re].onUpdate,onActivity:g[re].onActivity});else{var Ae=g[re];Ae==="words"?(I=function(it){it.innerHTML=mn(H.getValue())},ue=function(it){it.innerHTML=mn(H.getValue())}):Ae==="lines"?(I=function(it){it.innerHTML=H.lineCount()},ue=function(it){it.innerHTML=H.lineCount()}):Ae==="cursor"?(I=function(it){it.innerHTML="1:1"},te=function(it){var gt=H.getCursor(),at=gt.line+1,kt=gt.ch+1;it.innerHTML=at+":"+kt}):Ae==="autosave"?I=function(it){F.autosave!=null&&F.autosave.enabled===!0&&it.setAttribute("id","autosaved")}:Ae==="upload-image"&&(I=function(it){it.innerHTML=F.imageTexts.sbInit}),K.push({className:Ae,defaultValue:I,onUpdate:ue,onActivity:te})}var Xe=document.createElement("div");for(Xe.className="editor-statusbar",re=0;re<K.length;re++){var je=K[re],Ye=document.createElement("span");Ye.className=je.className,typeof je.defaultValue=="function"&&je.defaultValue(Ye),typeof je.onUpdate=="function"&&this.codemirror.on("update",(function(it,gt){return function(){gt.onUpdate(it)}})(Ye,je)),typeof je.onActivity=="function"&&this.codemirror.on("cursorActivity",(function(it,gt){return function(){gt.onActivity(it)}})(Ye,je)),Xe.appendChild(Ye)}var ut=this.codemirror.getWrapperElement();return ut.parentNode.insertBefore(Xe,ut.nextSibling),Xe}},O.prototype.value=function(g){var F=this.codemirror;if(g===void 0)return F.getValue();if(F.getDoc().setValue(g),this.isPreviewActive()){var H=F.getWrapperElement(),K=H.lastChild,re=this.options.previewRender(g,K);re!==null&&(K.innerHTML=re)}return this},O.toggleBold=G,O.toggleItalic=be,O.toggleStrikethrough=ee,O.toggleBlockquote=ve,O.toggleHeadingSmaller=ye,O.toggleHeadingBigger=Me,O.toggleHeading1=we,O.toggleHeading2=Oe,O.toggleHeading3=Be,O.toggleHeading4=$,O.toggleHeading5=Le,O.toggleHeading6=Ee,O.toggleCodeBlock=l,O.toggleUnorderedList=q,O.toggleOrderedList=ce,O.cleanBlock=ke,O.drawLink=_e,O.drawImage=S,O.drawUploadedImage=P,O.drawTable=Ce,O.drawHorizontalRule=Pe,O.undo=$e,O.redo=Ke,O.togglePreview=Ze,O.toggleSideBySide=ot,O.toggleFullScreen=Z,O.prototype.toggleBold=function(){G(this)},O.prototype.toggleItalic=function(){be(this)},O.prototype.toggleStrikethrough=function(){ee(this)},O.prototype.toggleBlockquote=function(){ve(this)},O.prototype.toggleHeadingSmaller=function(){ye(this)},O.prototype.toggleHeadingBigger=function(){Me(this)},O.prototype.toggleHeading1=function(){we(this)},O.prototype.toggleHeading2=function(){Oe(this)},O.prototype.toggleHeading3=function(){Be(this)},O.prototype.toggleHeading4=function(){$(this)},O.prototype.toggleHeading5=function(){Le(this)},O.prototype.toggleHeading6=function(){Ee(this)},O.prototype.toggleCodeBlock=function(){l(this)},O.prototype.toggleUnorderedList=function(){q(this)},O.prototype.toggleOrderedList=function(){ce(this)},O.prototype.cleanBlock=function(){ke(this)},O.prototype.drawLink=function(){_e(this)},O.prototype.drawImage=function(){S(this)},O.prototype.drawUploadedImage=function(){P(this)},O.prototype.drawTable=function(){Ce(this)},O.prototype.drawHorizontalRule=function(){Pe(this)},O.prototype.undo=function(){$e(this)},O.prototype.redo=function(){Ke(this)},O.prototype.togglePreview=function(){Ze(this)},O.prototype.toggleSideBySide=function(){ot(this)},O.prototype.toggleFullScreen=function(){Z(this)},O.prototype.isPreviewActive=function(){var g=this.codemirror,F=g.getWrapperElement(),H=F.lastChild;return H.classList.contains("editor-preview-active")},O.prototype.isSideBySideActive=function(){var g=this.codemirror,F=g.getWrapperElement(),H=F.nextSibling;return H.classList.contains("editor-preview-active-side")},O.prototype.isFullscreenActive=function(){var g=this.codemirror;return g.getOption("fullScreen")},O.prototype.getState=function(){var g=this.codemirror;return Y(g)},O.prototype.toTextArea=function(){var g=this.codemirror,F=g.getWrapperElement(),H=F.parentNode;H&&(this.gui.toolbar&&H.removeChild(this.gui.toolbar),this.gui.statusbar&&H.removeChild(this.gui.statusbar),this.gui.sideBySide&&H.removeChild(this.gui.sideBySide)),H.parentNode.insertBefore(F,H),H.remove(),g.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())},le.exports=O}}),hc=hr(Fl()),Gi=Q=>Q.getBoundingClientRect().height,us=()=>{let Q=window.innerHeight*.01;document.querySelector("html").setAttribute("style",`--vh:${Q}px;`);let le=document.querySelector("header"),T=document.querySelector("footer");if(!le||!T)return;let w=window.innerHeight-Gi(le)-Gi(T);document.querySelector("main").setAttribute("style",`--mh:${w}px;`)};us(),window.onresize=us;var Yl=document.querySelectorAll("[data-deployment-method]"),cs=window.location.hash.toString().toLowerCase().substring(1),ya=[];Yl.forEach(Q=>{let le=Q.getAttribute("data-deployment-method");ya.includes(le)||ya.push(le),Q.addEventListener("click",()=>{document.cookie=`deployment_method=${le}; path=/`},!1)}),ya.includes(cs)&&(document.cookie=`deployment_method=${cs}; path=/`),Ui(),Mr(),(()=>{let Q=document.getElementById("topNoticeAlert"),le=window.sessionStorage.getItem("notice"),T=document.getElementById("cookieNoticeAlert"),w="chocolatey_hide_cookies_notice";Q&&(le?Q.remove():Q.classList.remove("d-none"),Q.querySelector("button").addEventListener("click",()=>sessionStorage.setItem("notice","true"),!1)),T&&(Wt(w)?T.remove():T.classList.remove("d-none"),T.querySelectorAll("button").forEach(b=>{b.addEventListener("click",()=>{~location.hostname.indexOf("chocolatey.org")?document.cookie=`${w}=true; ${Fr()}path=/; domain=chocolatey.org;`:document.cookie=`${w}=true; ${Fr()}path=/;`},!1)}))})(),Ui(),Mr(),(()=>{let Q=document.getElementById("announcementCookie"),le=document.getElementById("announcementCount"),T=document.querySelectorAll(".notification-badge-announcements"),w=document.querySelectorAll(".btn-announcement-notifications");if(le&&Q){if(!Wt(Q.value))for(let b of T)b.innerText=le.value,b.classList.remove("d-none");w.forEach(b=>{b.addEventListener("click",()=>{if(!Wt(Q.value)){~location.hostname.indexOf("chocolatey.org")?document.cookie=`${Q.value}=true; ${Fr()}path=/; domain=chocolatey.org;`:document.cookie=`${Q.value}=true; ${Fr()}path=/;`;for(let A of T)A.classList.add("d-none")}},!1)})}})();var Zl=hr(_o());(()=>{let Q=T=>{if(T.isAuthenticated){let w=document.querySelectorAll(".user-authenticated-name");document.body.classList.add("user-authenticated");for(let b of w)b.nodeName==="A"?b.setAttribute("href",`/profiles/${T.userName}`):b.innerText=T.userName}else document.body.classList.add("user-unauthenticated")},le=()=>{document.body.classList.add("user-unauthenticated")};Zl.default.ajax({type:"POST",url:`${window.location.protocol}//${window.location.host}`,contentType:"application/json; charset=utf-8",dataType:"json",success:Q,error:le})})(),(()=>{let Q=document.querySelectorAll(".carousel-h");if(Q){let le=window.matchMedia("(max-width: 576px)"),T=w=>{Q.forEach(b=>{let A=bootstrap.Carousel.getOrCreateInstance(b,{interval:2e4});w.matches?A.pause():A.cycle()})};T(le),le.addEventListener("change",()=>T(le))}})();var Ql=hr(Ml());(()=>{let Q=new Ql.default(".btn-copy"),le=document.querySelectorAll(".user-select-all");Q.on("success",T=>{if(T.trigger.classList.contains("copy-to-clipboard-button"))T.trigger.textContent="Copied!",setTimeout(()=>{T.trigger.blur(),setTimeout(()=>{T.trigger.textContent="Copy"},200)},2e3);else{let w=new bootstrap.Button(T.trigger);setTimeout(()=>{w.toggle()},2e3)}T.clearSelection()}),le&&le.forEach(T=>T.addEventListener("click",()=>T.select(),!1))})(),(()=>{let Q=document.querySelectorAll(".callout"),le=document.querySelectorAll("blockquote"),T=w=>{w.forEach(b=>{let A=b.querySelector(".callout-header");if(b.nodeName==="BLOCKQUOTE"&&b.querySelector("p:first-child")&&b.querySelector("p:first-child").textContent.includes(":choco-")&&(A=b.querySelector("p:first-child")),A){let C="",D="",k=A.textContent;b.classList.contains("callout-success")||k.includes(":choco-success:")?(D="success",C="check",b.classList.add("callout-success")):b.classList.contains("callout-danger")||k.includes(":choco-danger:")?(D="danger",C="xmark",b.classList.add("callout-danger")):b.classList.contains("callout-warning")||k.includes(":choco-warning:")?(D="warning",C="triangle-exclamation",b.classList.add("callout-warning")):b.classList.contains("callout-tip")||k.includes(":choco-tip:")?(D="tip",C="lightbulb",b.classList.add("callout-tip")):(D="info",C="info",b.classList.add("callout-info")),k.includes(":choco-")&&(k=k.replace(/:.+?:/,"").trim());let B=`<div class="callout-header d-flex align-items-center"><span class="flex-shrink-0 text-bg-${D} h-px-30 w-px-30 d-flex align-items-center justify-content-center rounded me-3"><span class="fa-solid fa-${C}"></span></span><p class="lead"><strong>${k}</strong></p></div>`;A.outerHTML=B}})};T(Q),T(le)})();var Vl=Q=>{Q.innerHTML=Q.innerHTML.trim()};(()=>{let Q=document.querySelectorAll("code"),le=document.querySelectorAll("pre");Q.forEach(Vl),(()=>{let w=window.location.href;if(["en-us/choco/commands/","en-us/create/commands/"].some(A=>w.includes(A))){let A=document.querySelectorAll("h2");for(let C of A){let D=C.textContent.trim();if(D==="Examples"||D==="Usage"){let k=C.nextElementSibling;for(;k&&k.tagName!=="H2";){if(k.tagName==="PRE"&&k.firstElementChild&&k.firstElementChild.tagName==="CODE"){let B=k.firstElementChild,U=B.textContent.split(`
128
+ `).map(L=>L.trim());B.textContent=U.join(`
129
+ `)}k=k.nextElementSibling}}}}})();for(let w of le)!w.classList.contains("highlight-delay")&&!w.classList.contains("d-format-none")&&(w.classList.add("line-numbers","language-none"),Prism.highlightAll())})();var Xi=Q=>Q.replace(/[.]/g,"\\$&"),fs=Q=>{let le=[],T=Q;for(;T!=document;)le.push(T.parentNode),T=T.parentNode;return le};(()=>{let Q=()=>{if(location.hash){let b=document.querySelector(Xi(location.hash));if(b){let A=b,C=fs(b).filter(D=>D!=document&&D.classList.contains("collapse"));C.length==0&&b.classList.contains("collapse")&&C.push(b),C.reverse().forEach((D,k,B)=>{D=document.getElementById(Xi(D.id)),bootstrap.Collapse.getOrCreateInstance(D,{toggle:!1}).show(),D.addEventListener("shown.bs.collapse",U=>{U.stopImmediatePropagation(),k===B.length-1&&A.scrollIntoView()})})}}},le=()=>{if(location.hash){let b=document.querySelector(`[data-bs-toggle="tab"][href="${Xi(location.hash)}"]`);if(b){let A=b,C=fs(b).filter(D=>D!=document&&D.classList.contains("tab-pane"));C.push(b),C.reverse().forEach((D,k,B)=>{D.id.includes("-tab")||(D=document.getElementById(`${Xi(D.id)}-tab`)),bootstrap.Tab.getOrCreateInstance(D,{toggle:!1}).show(),D.addEventListener("shown.bs.tab",U=>{U.stopImmediatePropagation(),k===B.length-1&&A.scrollIntoView()})})}}};Q(),le(),window.addEventListener("hashchange",Q,!1),window.addEventListener("hashchange",le,!1);let T=document.querySelectorAll(".btn-collapse-target");T&&T.forEach(b=>{b.addEventListener("click",()=>{let A=document.querySelector(b.getAttribute("data-collapse-target"));bootstrap.Collapse.getOrCreateInstance(A,{toggle:!1}).show()},!1)});let w=b=>{b.addEventListener("click",A=>{history.pushState(null,null,A.target.hash)})};document.querySelectorAll('[data-bs-toggle="tab"]:not(.d-hash-none)').forEach(b=>w(b)),document.querySelectorAll('[data-bs-toggle="collapse"]:not(.d-hash-none)').forEach(b=>w(b))})(),(()=>{let Q=document.querySelector(".collapse-lg");if(Q){let le=window.matchMedia("(max-width: 1199px)"),T=bootstrap.Collapse.getOrCreateInstance(Q,{toggle:!1});Q.querySelectorAll("a").forEach(b=>{b.addEventListener("click",()=>{le.matches&&(b.classList.add("active-scroll"),T.hide())},!1)}),Q.addEventListener("hidden.bs.collapse",()=>{let b=Q.querySelector(".active-scroll");b&&(document.querySelector(Xi(b.getAttribute("href"))).scrollIntoView(),b.classList.remove("active-scroll"))});let w=b=>{b.matches?T.hide():T.show()};w(le),le.addEventListener("change",()=>w(le))}})(),document.addEventListener("click",Q=>{if(!document.querySelector("header").contains(Q.target)&&document.querySelector(".navbar-nested-collapse .collapse.show")){let w=document.querySelector(".navbar-nested-collapse .collapse.show");bootstrap.Collapse.getOrCreateInstance(w,{toggle:!1}).hide()}}),(()=>{let Q=document.querySelector(".collapse-y-height"),le=document.getElementById("mainContent"),T=w=>{let b=w.getBoundingClientRect();return{left:b.left+window.scrollX,top:b.top+window.scrollY}};if(Q&&le){let w=()=>{if(window.innerWidth>=768)if(T(le).top+Gi(le)<window.innerHeight){let A=window.innerHeight-Gi(document.querySelector("header"))-Gi(document.querySelector("footer"));Q.style.height=`${A}px`}else Q.style.height="";else Q.style.height=""};w(),new ResizeObserver(()=>w()).observe(document.body),window.onresize=w}})(),(()=>{let Q=()=>{document.querySelectorAll(".dropdown-hover .dropdown-toggle").forEach(T=>{let w=bootstrap.Dropdown.getOrCreateInstance(T);T.parentElement.addEventListener("mouseover",()=>{T.nextElementSibling.classList.contains("show")||(T.addEventListener("show.bs.dropdown",()=>{T.parentElement.classList.add("active")}),w.show())}),T.addEventListener("hide.bs.dropdown",()=>{T.parentElement.classList.remove("active")}),T.parentElement.addEventListener("mouseleave",()=>{w.hide()})})};window.matchMedia("(min-width: 768px)").matches&&Q(),window.addEventListener("resize",()=>{window.matchMedia("(min-width: 768px)").matches&&Q()})})(),(()=>{if(window.location.pathname.includes("courses")){(()=>{let N=window.location.pathname;N=N.replace(/\/$/,""),N=decodeURIComponent(N),document.querySelectorAll(".course-list li a").forEach(U=>{let L=U.getAttribute("href");N.substring(0,L.indexOf("courses/").length)===L&&window.localStorage.setItem("active",L)}),document.querySelectorAll(".course-list:not(.authenticated) li a").forEach(U=>{let L=U.getAttribute("href");if(N.substring(0,L.indexOf("courses/").length)===L){let pe=localStorage.completed===void 0?[]:JSON.parse(localStorage.completed);pe.indexOf(L)==-1&&pe.push(L),localStorage.completed=JSON.stringify(pe)}})})(),(()=>{let N=window.localStorage.getItem("active");if(N){let L=document.querySelectorAll(`.course-list li a[href="${N}"]`);for(let pe of L)pe.parentNode.classList.add("active")}let U=localStorage.completed===void 0?[]:JSON.parse(localStorage.completed);for(let L in U){let pe=document.querySelectorAll(`.course-list li a[href="${U[L]}"]`);for(let fe of pe)!fe.parentNode.classList.contains("active")&&!document.querySelector(".course-list").classList.contains("authenticated")&&fe.parentNode.classList.add("completed")}document.querySelector(".course-list").classList.contains("authenticated")&&localStorage.removeItem("completed"),document.querySelector(".course-list li").addEventListener("mouseenter",L=>L.target.children[0].classList.add("hover")),document.querySelector(".course-list li").addEventListener("mouseleave",L=>L.target.children[0].classList.remove("hover"))})(),document.querySelectorAll("#additionalCourses .course-list a").forEach(N=>{N.innerHTML='<span class="additional-module">...</span>'});let T=document.getElementById("quiz-modal");T&&window.location.search.includes("quiz=true")&&bootstrap.Modal.getOrCreateInstance(T,{keyboard:!1,backdrop:"static"}).show();let w=document.querySelector("#quiz .mod-completed"),b=document.querySelectorAll("#quiz .course-question"),A=document.querySelectorAll('#quiz input[type="radio"]'),C=document.querySelector("#quiz .btn");w&&(A.forEach(N=>{N.value=="1"?(N.classList.add("correct"),N.checked=!0):N.disabled=!0}),C.classList.add("d-none")),A.forEach(N=>{N.addEventListener("change",()=>{let U=document.querySelectorAll('#quiz input[type="radio"]:checked'),L=N.parentNode.children;if(b.length==U.length&&C.classList.remove("disabled"),N.value=="1")N.classList.add("true");else{N.classList.add("false");for(let pe of L)pe.classList.remove("true")}for(let pe of L)pe.classList.remove("wrong")})}),C&&C.addEventListener("click",N=>{let U=document.querySelectorAll("#quiz .correct").length+document.querySelectorAll("#quiz .true").length;if(b.length!=U){N.preventDefault(),C.classList.remove("btn-primary"),C.classList.add("btn-danger"),C.setAttribute("value","Recheck Answers");for(let L of A)if(L.checked===!1&&L.classList.remove("false"),L.classList.contains("true")&&(L.classList.remove("true"),L.classList.add("correct")),L.classList.contains("false")&&(L.classList.remove("false"),L.classList.add("wrong")),L.classList.contains("correct")){let pe=L.parentNode.children;for(let fe of pe)fe.classList.remove("wrong"),fe.classList.contains("correct")||(fe.disabled=!0)}}});let D=document.querySelector("#installation-pop");D&&(()=>{let N=window.localStorage.getItem("method"),U=document.querySelector("#select-method"),L=document.querySelector("#reselect-method"),pe=bootstrap.Modal.getOrCreateInstance(D,{keyboard:!1,backdrop:"static"}),fe=oe=>{document.querySelector(`#${oe}`).style.display="block",document.querySelector(`#${oe}`).classList.add("method"),document.querySelector(`#${oe}`).scrollIntoView()};N?fe(N):pe.show();let ie=oe=>{let he=oe.target.value.substring(oe.target.value.indexOf("#")+1);pe.hide(),document.querySelector(".method")&&(document.querySelector(".method").style.display="none",document.querySelector(".method").classList.remove("method")),window.localStorage.setItem("method",he),window.history.replaceState(null,null,`?method=${he}`),fe(he)};U.addEventListener("change",ie),L.addEventListener("change",ie)})();let B=document.querySelectorAll("pre");for(let N of B)N.classList.add("line-numbers");Prism.highlightAll()}})(),Mr();var ba=()=>{let Q=Wt("deployment_method")?document.querySelectorAll(`[data-deployment-method="${Wt("deployment_method")}"]`):document.querySelectorAll('[data-deployment-method="individual"]');for(let le of Q)bootstrap.Tab.getOrCreateInstance(le,{toggle:!1}).show()},Ki=()=>{document.querySelectorAll(".copy-command").forEach(Q=>{let le=Q.querySelector("code").getAttribute("class").split(" "),T=Q.querySelector("button");T&&(T.classList.add("btn-copy"),T.setAttribute("data-clipboard-target",`.${le[0]}`))})};Mr(),document.addEventListener("DOMContentLoaded",()=>{let Q="http://internal/odata/repo",le=document.querySelectorAll(".contains-internal-repo-url"),T=document.querySelectorAll("[data-deployment-method]"),w=document.querySelectorAll(".internal-repo-url-input");for(let A of le)A.innerHTML=A.innerHTML.replace(/(INTERNAL REPO URL)/g,`<span class="internalRepoUrl">${Q}</span>`);w.forEach(A=>{if(Wt("internal_repo_url"))for(let D of w)D.value=Wt("internal_repo_url");let C=()=>{let D=document.querySelectorAll(".internalRepoUrl");for(let k of w)k.value=A.value;if(A.value){for(let k of D)k.innerHTML=A.value;for(let k of le)k.querySelector(".internal-repo-url-warning")&&k.querySelector(".internal-repo-url-warning").remove()}else{for(let k of D)k.innerHTML=Q;for(let k of le)if(!k.querySelector(".internal-repo-url-warning")){let B=document.createElement("p");B.classList.add("internal-repo-url-warning","callout","callout-danger","text-danger","fw-bold","small"),B.innerText="You must enter your internal repository url above before proceeding.",k.prepend(B)}}};C(),A.addEventListener("keyup",()=>{document.cookie=`internal_repo_url=${A.value}; path=/`,C()})});let b=()=>{let A=document.querySelector(".install-steps-generic");if(Wt("deployment_method")=="individual"||!Wt("deployment_method")){let C=document.querySelector("#individual-method-tab");C&&bootstrap.Tab.getOrCreateInstance(C,{toggle:!1}).show()}else{let C=document.querySelector("#organization-method-tab");C&&bootstrap.Tab.getOrCreateInstance(C,{toggle:!1}).show()}A&&(Wt("deployment_method")=="chef"||Wt("deployment_method")=="puppet"?A.classList.add("d-none"):A.classList.remove("d-none"))};T.forEach(A=>{A.addEventListener("click",()=>b(),!1)}),ba(),b(),Ki()}),document.addEventListener("DOMContentLoaded",()=>{let Q=[].slice.call(document.querySelectorAll("video.lazy"));if("IntersectionObserver"in window){let le=new IntersectionObserver(T=>{T.forEach(w=>{if(w.isIntersecting){for(let b in w.target.children){let A=w.target.children[b];typeof A.tagName=="string"&&A.tagName==="SOURCE"&&(A.src=A.dataset.src)}w.target.load(),w.target.classList.remove("lazy"),le.unobserve(w.target)}})});Q.forEach(T=>le.observe(T))}}),(()=>{let Q=document.querySelectorAll(".authentication-error"),le=document.querySelector("#loader");for(let T of Q)T.remove();le&&setTimeout(()=>le.remove(),5e3)})(),(()=>{let Q=document.querySelectorAll('.task-list-item [type="checkbox"]');Q&&Q.forEach(le=>{le.classList.add("form-check-input"),le.outerHTML=`<div class="form-check">${le.outerHTML}<label class="form-check-label"></label></div>`})})(),document.querySelectorAll(".modal-auto-close").forEach(le=>{le.querySelector(".modal-auto-close-btn").addEventListener("click",()=>{bootstrap.Modal.getOrCreateInstance(le,{keyboard:!1,backdrop:"static"}).hide()})}),(()=>{let Q=document.getElementById("tempdata-message");Q&&bootstrap.Modal.getOrCreateInstance(Q,{keyboard:!1}).show();let le=document.querySelectorAll(".video-story .modal");le&&le.forEach(b=>{let A=b.querySelector("iframe");A&&(b.addEventListener("show.bs.modal",()=>{A.setAttribute("src",A.getAttribute("data-src"))}),b.addEventListener("hide.bs.modal",()=>{A.setAttribute("src","")}))});let T=document.getElementById("Modal_EmailSuccess");if(T&&window.location.search.includes("emailsuccess=true")){let b=bootstrap.Modal.getOrCreateInstance(T,{keyboard:!1,backdrop:"static"});b.show(),T.addEventListener("hidden.bs.modal",()=>{b.dispose()})}let w=document.querySelectorAll(".list-chocolatey-fest-speaker");for(let b of w)b.querySelectorAll(".btn-link").forEach((C,D)=>{if(D>=1){let k=C.parentNode,B=document.createElement("span");B.innerText="&",k.insertBefore(B,C)}})})();var gr=hr(_o());(0,gr.default)(".nav-scrollspy .nav-link").each((Q,le)=>{let T=(0,gr.default)(le).attr("href"),w=b=>{if(b==="#"){(0,gr.default)(le).parent().remove();return}~b.indexOf(".")&&(b=b.replace(/\./g,"\\.")),(0,gr.default)(b).length&&((0,gr.default)(window).scrollTop()>(0,gr.default)(b).offset().top-30&&(0,gr.default)(b).is(":visible")?((0,gr.default)(`a[href="${b}"].nav-link`).addClass("active active-page"),(0,gr.default)(`a[href="${b}"].nav-link`).parent().prev().find("a.active").removeClass("active active-page")):(0,gr.default)(`a[href="${b}"].nav-link`).removeClass("active active-page"))};w(T),window.addEventListener("scroll",()=>{w(T)})});var gc=hr(Bl());(()=>{let Q=document.querySelectorAll(".btn-show-hide");Q&&Q.forEach(le=>{le.addEventListener("click",()=>{le.textContent.includes("Show")?le.textContent=le.textContent.replace("Show","Hide"):le.textContent.includes("Hide")&&(le.textContent=le.textContent.replace("Hide","Show"))})})})();var xa=hr(_o());(0,xa.default)(".shuffle").each((Q,le)=>{let T=(0,xa.default)(le).children().has("img");for(;T.length;)(0,xa.default)(le).prepend(T.splice(Math.floor(Math.random()*T.length),1)[0])}),Ui(),Mr(),window.addEventListener("DOMContentLoaded",()=>{let Q="data-choco-tab-multi",le=document.querySelectorAll(`[${Q}]`),T=new Set;if(le&&le.length>0){for(let w of le){let b=w.getAttribute(Q).replace(/\s/g,""),A=null;if(b){try{A=JSON.parse(b!=null?b:"")}catch(C){return}for(let C in A)Object.prototype.hasOwnProperty.call(A,C)&&T.add(C);w.addEventListener("click",()=>{let C=w.getAttribute(Q).replace(/\s/g,"");for(let k of le){let B=k.getAttribute(Q).replace(/\s/g,"");B!=null&&B.includes(C!=null?C:"")&&window.bootstrap.Tab.getOrCreateInstance(k).show()}let D=~location.hostname.indexOf("chocolatey.org")?"domain=chocolatey.org;":"";for(let k in A)if(Object.prototype.hasOwnProperty.call(A,k)){let B=A[k];document.cookie=`${k}=${B}; ${Fr()}path=/; ${D}`}})}}for(let w of T){let b=Wt(w);if(b)for(let A of le){let C=A.getAttribute(Q).replace(/\s/g,"");C!=null&&C.includes(w)&&(C!=null&&C.includes(b))&&window.bootstrap.Tab.getOrCreateInstance(A).show()}}}}),(()=>{let Q=document.querySelector("#terminal .card-body");if(Q){let le=Q.querySelector("span[data-animate]"),T=le.getAttribute("data-animate").split(","),w=0,b=0,A="",C=1,D=()=>{if(b+=C,!T[w])w=0;else if(b<-1)w++,C=1;else if(T[w][b]!==void 0)A=T[w].substring(0,b+1),le.innerHTML=A;else if(b>0&&!T[w][b])return A=T[w].substring(0,b+1),C=-1,le.innerHTML=A,setTimeout(D,2e3);le.innerHTML=A,setTimeout(D,100)};D()}})(),(()=>{let le=[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map(T=>new bootstrap.Tooltip(T))})(),document.querySelectorAll(".dropdown-theme").forEach(le=>{le.querySelectorAll(".dropdown-toggle").forEach(T=>{T.addEventListener("hide.bs.dropdown",()=>{document.querySelectorAll("main").forEach(w=>{w.classList.remove("z-0")})}),T.addEventListener("show.bs.dropdown",()=>{document.querySelectorAll("main").forEach(w=>{w.classList.add("z-0")})})})});var Ho=hr(_o()),Jl=hr(Kl());Ui(),Mr(),(()=>{let Q="chocolatey_hide_packages_disclaimer";if(!Wt(Q)){let N=document.getElementById("package-disclaimer");N&&(bootstrap.Modal.getOrCreateInstance(N,{keyboard:!1,backdrop:"static"}).show(),N.addEventListener("hidden.bs.modal",()=>{document.cookie=`${Q}=true; ${Fr()} path=/;`}))}let le=document.getElementById("package-warning");if(le){let N="chocolatey_hide_packages_warning",U=bootstrap.Collapse.getOrCreateInstance(le,{toggle:!1});if(!Wt(N)){let L=document.querySelector("#callout-package-warning .btn");U.show(),L.textContent=L.textContent.replace("Show","Hide")}le.addEventListener("shown.bs.collapse",()=>{document.cookie=`${N}=true`})}let T=document.querySelector(".btn-preferences");if(T){let N=document.getElementById("preferenceGridView"),U=Wt("preferenceGridView"),L=document.getElementById("preferenceModView"),pe=Wt("preferenceModView");U&&(N.checked=!0),pe&&(L.checked=!0),T.addEventListener("click",()=>{N.checked?document.cookie="preferenceGridView=true":N.checked||(document.cookie="preferenceGridView=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"),L&&(L.checked?document.cookie="preferenceModView=true":L.checked||(document.cookie="preferenceModView=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")),location.reload()},!1)}let w=document.querySelectorAll("#description pre");w&&w.forEach(N=>{N.classList.add("line-numbers","border"),N.innerHTML=`<code>${N.innerHTML}</code>`,Prism.highlightAllUnder(document.getElementById("description"))}),(0,Ho.default)(".comments-list").each((N,U)=>{let L=(0,Ho.default)(U);L.find(":contains('(maintainer)')").addClass("comment-title comment-maintainer"),L.find("h4:contains('(reviewer)')").addClass("comment-title comment-reviewer"),L.children().not(".comment-title").addClass("comment-body"),(0,Ho.default)(".comments-list pre").contents().unwrap().wrap("<p></p>"),L.find(".comment-title").each((ie,oe)=>{let he=(0,Ho.default)(oe),z=he.text().split(" on");he.nextUntil(".comment-title").addBack().wrapAll('<span class="comment-group"></span>'),z.length==2&&he.text(z[0]).after(`<h6 class="comment-date">on ${z[1]}</h6>`)});let pe=L.find(".comment-maintainer").parent(),fe=L.find(".comment-reviewer").parent();L.hasClass("user-unknown")&&(pe.addClass("chat-left"),fe.addClass("chat-right")),L.hasClass("user-maintainer")&&(pe.addClass("chat-right"),fe.addClass("chat-left")),L.hasClass("user-moderator")&&(pe.addClass("chat-left"),fe.addClass("chat-right")),L.parent().scrollTop(L.parent()[0].scrollHeight-L.parent()[0].clientHeight)});let b=document.querySelectorAll('[class*="file-path-"]');b&&b.forEach(N=>{N.querySelector("pre").classList.contains("line-numbers")||N.addEventListener("show.bs.collapse",()=>{let U=N.previousElementSibling.innerText;switch(U.includes("\\")&&(U=U.substring(U.lastIndexOf("\\")+1)),U=U.substring(U.indexOf(".")+1),U){case"ps1":case"psm1":U="powershell";break;case"xml":case"config":case"nuspec":case"nuspec.template":U="xml";break;case"js":case"json":U="js";break;default:U="none"}N.querySelector("pre").classList.add("line-numbers"),N.querySelector("code").classList.add(`language-${U}`),Prism.highlightElement(N.querySelector("code"))})});let A=document.querySelector("#files .btn-collapse-files");A&&A.addEventListener("click",()=>{let N=document.querySelectorAll("#files .btn"),U=document.querySelectorAll('.moderation-view [class*="file-path-"]');if(A.classList.contains("btn-success")){A.innerText=A.innerText.replace("Expand","Collapse"),A.classList.remove("btn-success"),A.classList.add("btn-danger");for(let L of N)L.innerText=L.innerText.replace("Show","Hide");for(let L of U)bootstrap.Collapse.getOrCreateInstance(L,{toggle:!1}).show()}else if(A.classList.contains("btn-danger")){A.innerText=A.innerText.replace("Collapse","Expand"),A.classList.remove("btn-danger"),A.classList.add("btn-success");for(let L of N)L.innerText=L.innerText.replace("Hide","Show");for(let L of U)bootstrap.Collapse.getOrCreateInstance(L,{toggle:!1}).hide()}},!1);let C=document.querySelectorAll(".text-editor");C&&C.forEach(N=>{let U;switch(N.id){case"NewReviewComments":U="Add to Review Comments";break;case"ExemptedFromVerificationReason":U="Verification Exempted Reason";break;case"ExemptedFromScannerReason":U="Scanner Exempted Reason";break;case"ExemptedFromValidatorReason":U="Validator Exempted Reason"}let L=new Jl.default({element:N,autoDownloadFontAwesome:!1,placeholder:U,toolbar:["bold","italic","heading","strikethrough","|","quote","unordered-list","ordered-list","code","|","link","image","|","side-by-side","fullscreen","|","preview"]});L.render();let pe=document.createElement("SPAN");pe.classList.add("ms-1"),pe.innerText=" Preview",N.nextSibling.querySelector("button.preview").classList.add("fw-bold","text-primary"),N.nextSibling.querySelector("button.preview").style.width="90px",N.nextSibling.querySelector(".fa-eye").after(pe),L.element.cmirror=L.codemirror});let D=document.querySelectorAll(".text-editor-refresh");D&&D.forEach(N=>{N.addEventListener("shown.bs.collapse",()=>{N.classList.contains(".text-editor-refreshed")||(document.querySelector(`#${N.id} textarea`).cmirror.refresh(),document.getElementById(N.id).classList.add("text-editor-refreshed"))})});let k=document.getElementById("instructions");if(k){let N="chocolatey_hide_comment_instructions";k.addEventListener("hidden.bs.collapse",()=>{Wt("chocolatey_hide_comment_instructions")||(document.cookie=`${N}=true;path=/`)}),k.addEventListener("shown.bs.collapse",()=>{Wt("chocolatey_hide_comment_instructions")&&(document.cookie=`${N}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`)})}(N=>{N&&N.addEventListener("click",()=>{let U=document.querySelectorAll("tr.truncate-results");for(let L of U)L.classList.contains("d-none")?L.classList.remove("d-none"):L.classList.add("d-none")})})(document.querySelector("#versionTableTruncateResults"))})();var Po=Q=>Q.split(/\r?\n/).filter(le=>le.trim()!=="").join(`
130
+ `);Mr(),(()=>{let Q=localStorage.packageList===void 0?[]:JSON.parse(localStorage.packageList),le=document.getElementById("modalScriptBuilder"),T=bootstrap.Modal.getOrCreateInstance(le,{keyboard:!1,backdrop:"static"}),w=document.querySelectorAll("[data-deployment-method]"),b=document.querySelector("#builder-step-3-tab"),A=document.querySelector("#builder-step-4-tab"),C=document.querySelector("#builder-step-5-tab"),D=document.querySelector(".builder-individual"),k=document.querySelector(".builder-organization"),B=we=>{we.classList.contains("btn-builder-text")?we.innerHTML='<span class="fa-solid fa-circle-minus" alt="Remove from Script Builder"></span> Remove from Script Builder':we.innerHTML='<span class="fa-solid fa-circle-minus" alt="Remove from Script Builder"></span>',we.classList.remove("btn-success"),we.classList.add("btn-danger")},N=(we,Oe,Be,$,Le,Ee,q)=>{let ce=document.querySelectorAll(".storage");for(let ke of ce)ke.innerHTML+=`<hr />
131
+ <div id="${Be}" class="d-flex flex-row align-items-start storage-row ${Be}">
132
+ <div class="ratio ratio-1x1 package-image-header">
133
+ <div class="d-flex flex-fill align-items-center justify-content-center package-icon">
134
+ <img class="package-image" src="${q}${Ee}" height="30" width="30" onerror="this.src='/Content/Images/packageDefaultIcon-50x50.png'">
135
+ </div>
136
+ </div>
137
+ <div class="mx-2">
138
+ <a class="text-reset btn-link mb-0 h5 text-break" href="/packages/${Le}/${$}">${we}</a>
139
+ <p class="mb-0"><small>${$}</small></p>
140
+ </div>
141
+ <button class="btn btn-sm btn-builder btn-danger ms-auto" value="${Oe}" title="${we}" version="${$}" image="${Ee}"><span class="fa-solid fa-circle-minus"></span></button>
142
+ </div>`},U=we=>we.indexOf("--")>=0?we.substr(0,we.indexOf("--")).trim():we,L=we=>we.includes("packageDefaultIcon")?"/Content/Images/":"/content/packageimages/";if(Q.length>0)for(let we in Q){let Oe=Q[we].split(" , "),Be=Oe[0],$=Oe[1],Le=Oe[2],Ee=Oe[3],q=U(Ee),ce=L(Le),ke=document.querySelectorAll(`.btn-builder[value="${Ee}"]`),_e=`package-${Be.replace(/[^a-z0-9\s]/gi,"").replace(/[_\s]/g,"")}-${$.replace(/\./gi,"")}`;for(let S of ke)B(S);N(Be,Ee,_e,$,q,Le,ce)}let pe=()=>{let we=document.querySelector(".notification-badge-builder"),Oe=document.querySelector(".btn-view-builder");if(we.innerHTML=localStorage.packageList?JSON.parse(localStorage.packageList).length:0,Q.length>0)Oe.classList.remove("d-none");else{let Be=document.getElementById("navScriptBuilder"),$=bootstrap.Offcanvas.getOrCreateInstance(Be,{toggle:!1});T.hide(),$.hide(),Oe.classList.add("d-none")}};pe();let fe=we=>{we.classList.contains("btn-builder-text")?we.innerHTML='<span class="fa-solid fa-circle-plus" alt="Add to Script Builder"></span> Add to Script Builder':we.innerHTML='<span class="fa-solid fa-circle-plus" alt="Add to Script Builder"></span>',we.classList.remove("btn-danger"),we.classList.add("btn-success")},ie=()=>{document.querySelectorAll(".btn-builder").forEach(Oe=>{Oe.addEventListener("click",Be=>{Be.stopImmediatePropagation();let $=Oe.getAttribute("title"),Le=Oe.getAttribute("value"),Ee=Oe.getAttribute("version"),q=`package-${$.replace(/[^a-z0-9\s]/gi,"").replace(/[_\s]/g,"")}-${Ee.replace(/\./gi,"")}`,ce=/[^/]*$/.exec(Oe.getAttribute("image"))[0],ke=document.querySelectorAll(`.btn-builder[value="${Le}"]:not(.btn-builder-version)`),_e=U(Le),S=L(ce),p=()=>{for(let me of ke)B(me);N($,Le,q,Ee,_e,ce,S),ie(),Q.push(`${$} , ${Ee} , ${ce} , ${Le}`),localStorage.packageList=JSON.stringify(Q)},P=(me,Ce,Pe,$e)=>{me&&($=me,Ee=Ce,ce=Pe,Le=$e,ke=document.querySelectorAll(`.btn-builder[value="${$e}"]:not(.btn-builder-version)`),q=`package-${me.replace(/[^a-z0-9\s]/gi,"").replace(/[_\s]/g,"")}-${Ce.replace(/\./gi,"")}`);for(let ot of ke)fe(ot);let Ke=document.querySelectorAll(`.storage .${q}`);for(let ot of Ke)ot.previousElementSibling.remove(),ot.remove();for(let ot in Q)Q[ot]==`${$} , ${Ee} , ${ce} , ${Le}`&&Q.splice(ot,1);localStorage.packageList=JSON.stringify(Q)};if(!Oe.classList.contains("btn-builder-version")){for(let me in Q)if(Q.length!=0&&Oe.classList.contains("btn-success")){let Ce=Q[me].split(" , "),Pe=Ce[0],$e=Ce[1],Ke=Ce[2],ot=Ce[3];if(Y(ot)==Y(Le)){let Ze=document.getElementById("modalScriptBuilderVersionWarning"),pt=bootstrap.Modal.getOrCreateInstance(Ze,{keyboard:!1,backdrop:"static"});Ze.addEventListener("show.bs.modal",()=>{let ht=document.querySelector(".btn-builder-version"),Tt=document.querySelector(".current-version"),rt=document.querySelector(".new-version");ht.setAttribute("value",Le),ht.setAttribute("title",$),ht.setAttribute("version",Ee),ht.setAttribute("image",ce),ht.setAttribute("value-current",ot),ht.setAttribute("title-current",Pe),ht.setAttribute("version-current",$e),ht.setAttribute("image-current",Ke),Tt.innerText=$e,rt.innerText=Ee}),pt.show();return}}}Oe.classList.contains("btn-builder-version")?(p(),P(Oe.getAttribute("title-current"),Oe.getAttribute("version-current"),Oe.getAttribute("image-current"),Oe.getAttribute("value-current"))):Oe.classList.contains("btn-danger")?P():p(),pe()},!1)})};ie(),ba();let oe=()=>{Wt("deployment_method")=="individual"||!Wt("deployment_method")?(b.innerHTML='<strong><span class="d-none d-sm-inline-block me-1">STEP</span><span>3</span></strong><p class="mb-0 d-none d-lg-block">Install Script / Config</p>',A.classList.add("d-none"),A.parentElement.classList.add("d-none"),C.classList.add("d-none"),C.parentElement.classList.add("d-none"),k.classList.add("d-none"),D.classList.remove("d-none"),D.classList.add("active"),k.classList.remove("active")):(b.innerHTML='<strong><span class="d-none d-sm-inline-block me-1">STEP</span><span>3</span></strong><p class="mb-0 d-none d-lg-block">Internal Repo Url</p>',A.classList.remove("d-none"),A.parentElement.classList.remove("d-none"),C.classList.remove("d-none"),C.parentElement.classList.remove("d-none"),k.classList.remove("d-none"),D.classList.add("d-none"),D.classList.remove("active"),k.classList.add("active"))};oe();let he=(we,Oe)=>{we.classList.add(Oe),Prism.highlightElement(we)},Y=we=>(we.indexOf("--")>0&&(we=we.split("--"),we=we[0].trim()),we),z=we=>we.indexOf("--pre")>0,Z=()=>{if(Wt("deployment_method")=="individual"||!Wt("deployment_method")){let we=document.querySelector(".command-builder-individual");we.innerHTML="";for(let Oe in Q){let Be=Q[Oe].split(" , "),$=Be[1],Le=Y(Be[3]),Ee=z(Be[3])?" --pre":"";we.innerHTML+=`choco install ${Le} --version ${$}${Ee} -y
143
+ `}he(we,"language-powershell")}},G=()=>{let we=document.querySelector(".internal-repo-url-input").value?document.querySelector(".internal-repo-url-input").value:"http://internal/odata/repo",Oe=document.querySelectorAll(".command-injected-environment-script"),Be=document.querySelector(".command-builder-environment-one"),$=document.querySelector(".command-builder-environment-two");for(let Le of Oe)Le.innerHTML="";$.innerHTML=`choco push --source="'${we}'"`;for(let Le in Q){let Ee=Q[Le].split(" , "),q=Ee[1],ce=Y(Ee[3]),ke=z(Ee[3])?" --pre":"";Be.innerHTML+=`choco download ${ce} --internalize --version='${q}${ke}' --source=https://community.chocolatey.org/api/v2/
144
+ `}he(Be,"language-powershell"),he($,"language-powershell")},be=()=>{let we=document.querySelector(".internal-repo-url-input").value?document.querySelector(".internal-repo-url-input").value:"http://internal/odata/repo",Oe=document.querySelectorAll(".command-injected-organization-script"),Be=document.querySelector(".command-builder-organization-ansible"),$=document.querySelector(".command-builder-organization-chef"),Le=document.querySelector(".command-builder-organization-psdsc"),Ee=document.querySelector(".command-builder-organization-puppet"),q=document.querySelector(".command-builder-organization-generic-one"),ce=document.querySelector(".command-builder-organization-generic-two");for(let ke of Oe)ke.innerHTML="";switch(Wt("deployment_method")){case"ansible":for(let ke in Q){let _e=Q[ke].split(" , "),S=_e[1],p=Y(_e[3]),P=z(_e[3])?"allow_prerelease: yes":"";Be.innerHTML+=`
145
+ - name: Install ${p}
146
+ win_chocolatey:
147
+ name: ${p}
148
+ version: '${S}'
149
+ source: ${we}
150
+ state: present
151
+ ${P}`}Be.innerHTML=Po(Be.innerHTML),he(Be,"language-yaml");break;case"chef":for(let ke in Q){let _e=Q[ke].split(" , "),S=_e[1],p=Y(_e[3]),P=z(_e[3])?"options '--prerelease'":"";$.innerHTML+=`
152
+ chocolatey_package '${p}' do
153
+ action :install
154
+ source '${we}'
155
+ version '${S}'
156
+ ${P}
157
+ end`}$.innerHTML=Po($.innerHTML),he($,"language-ruby");break;case"psdsc":for(let ke in Q){let _e=Q[ke].split(" , "),S=_e[1],p=Y(_e[3]),P=z(_e[3])?'chocoParams = "--prerelease"':"",me=z(_e[3])?" ":"";Le.innerHTML+=`
158
+ cChocoPackageInstaller ${p}
159
+ {
160
+ Name ${me} = "${p}"
161
+ Version ${me} = "${S}"
162
+ Source ${me} = "${we}"
163
+ ${P}
164
+ }`}Le.innerHTML=Po(Le.innerHTML),he(Le,"language-powershell");break;case"puppet":for(let ke in Q){let _e=Q[ke].split(" , "),S=_e[1],p=Y(_e[3]),P=z(_e[3])?"install_options => ['--prerelease'],":"",me=z(_e[3])?" ":"";Ee.innerHTML+=`
165
+ package { '${p}':
166
+ ensure ${me} => '${S}',
167
+ ${P}
168
+ provider ${me} => 'chocolatey',
169
+ source ${me} => '${we}',
170
+ }`}Ee.innerHTML=Po(Ee.innerHTML),he(Ee,"language-puppet");break;case"generic":ce.innerHTML=`function Install-ChocolateyPackage {
171
+ param (
172
+ [Parameter(Mandatory, Position=0)]
173
+ [string]$PackageName,
174
+
175
+ [string]$Source,
176
+
177
+ [alias("Params")]
178
+ [string]$PackageParameters,
179
+
180
+ [string]$Version,
181
+
182
+ [alias("Pre")]
183
+ [switch]$Prerelease,
184
+
185
+ [switch]$UseInstallNotUpgrade
186
+ )
187
+
188
+ $chocoExecutionArgs = "choco.exe"
189
+ if ($UseInstallNotUpgrade) {
190
+ $chocoExecutionArgs += " install"
191
+ } else {
192
+ $chocoExecutionArgs += " upgrade"
193
+ }
194
+
195
+ $chocoExecutionArgs += " $PackageName -y --source='$Source'"
196
+ if ($Prerelease) { $chocoExecutionArgs += " --prerelease"}
197
+ if ($Version) { $chocoExecutionArgs += " --version='$Version'"}
198
+ if ($PackageParameters -and $PackageParameters -ne '') { $chocoExecutionArgs += " --package-parameters='$PackageParameters'"}
199
+
200
+ Invoke-Expression -Command $chocoExecutionArgs
201
+ $exitCode = $LASTEXITCODE
202
+ $validExitCodes = @(0, 1605, 1614, 1641, 3010)
203
+ if ($validExitCodes -notcontains $exitCode) {
204
+ throw "Error with package installation. See above."
205
+ }
206
+ }
207
+
208
+ <span></span>`;for(let ke in Q){let _e=Q[ke].split(" , "),S=_e[1],p=Y(_e[3]),P=z(_e[3])?" --prerelease":"",me=z(_e[3])?" -Prerelease":"";q.innerHTML+=`choco upgrade ${p} -y --source="'${we}'" --version "'${S}'"${P} [other options]
209
+ `,ce.querySelector("span").innerHTML+=`Install-ChocolateyPackage ${p} -Source ${we} -Version ${S}${me}
210
+ `}he(q,"language-powershell"),he(ce,"language-powershell");break;default:}},ee=()=>{let we=document.querySelector("#builder-steps .active"),Oe=document.querySelector("#builder-steps .active").closest("li").nextElementSibling,Be=document.querySelector("#builder-steps .active").closest("li").previousElementSibling,$=document.querySelector(".internal-repo-url-input"),Le=bootstrap.Tab.getOrCreateInstance(b,{toggle:!1});if(Oe)if(Oe.firstElementChild.classList.contains("d-none"))for(let q of l)q.classList.add("disabled");else{if(!$.value&&we.id=="builder-step-4-tab"){Le.show();return}if($.value){for(let q of l)q.classList.remove("disabled");A.classList.remove("disabled"),C.classList.remove("disabled")}else{if(we.id=="builder-step-3-tab")for(let q of l)q.classList.add("disabled");else for(let q of l)q.classList.remove("disabled");A.classList.add("disabled"),C.classList.add("disabled")}}else{for(let Ee of l)Ee.classList.add("disabled");if(!$.value&&we.id=="builder-step-5-tab"){Le.show();return}}if(Be)for(let Ee of ve)Ee.classList.remove("disabled");else for(let Ee of ve)Ee.classList.add("disabled")};le.addEventListener("show.bs.modal",()=>{Z(),G(),be(),ee(),Ki()}),b.addEventListener("show.bs.tab",()=>{Z(),Ki()}),A.addEventListener("show.bs.tab",()=>{G(),Ki()}),C.addEventListener("show.bs.tab",()=>{be(),Ki()}),w.forEach(we=>{we.addEventListener("click",()=>{ba(),oe()},!1)});let l=document.querySelectorAll(".btn-next-step"),ve=document.querySelectorAll(".btn-prev-step");l.forEach(we=>{we.addEventListener("click",()=>{let Oe=document.querySelector("#builder-steps .active").closest("li").nextElementSibling;if(Oe&&(!b.classList.contains("active")||!D.classList.contains("active"))){let Be=Oe.firstElementChild;bootstrap.Tab.getOrCreateInstance(Be,{toggle:!1}).show()}},!1)}),ve.forEach(we=>{we.addEventListener("click",()=>{let Oe=document.querySelector("#builder-steps .active").closest("li").previousElementSibling;if(Oe){let Be=Oe.firstElementChild;bootstrap.Tab.getOrCreateInstance(Be,{toggle:!1}).show()}},!1)}),document.querySelectorAll('#builder-steps a[data-bs-toggle="pill"]').forEach(we=>{we.addEventListener("shown.bs.tab",()=>{ee()})}),document.querySelectorAll(".internal-repo-url-input").forEach(we=>{we.addEventListener("keyup",()=>{ee()})});let ye=(we,Oe)=>{let Be=document.createElement("a");Be.setAttribute("href",`data:text/xml;charset=utf-8,${encodeURIComponent(Oe)}`),Be.setAttribute("download",we),Be.style.display="none",document.body.appendChild(Be),Be.click(),document.body.removeChild(Be)},Me=we=>{let Oe="packages.config",$="",Le="";we.split(/>\s*</).forEach(Ee=>{Ee.match(/^\/\w/)&&(Le=Le.substring(1)),$+=`${Le}<${Ee}>\r
211
+ `,Ee.match(/^<?\w[^>]*[^\/]$/)&&(Le+=" ")}),we=$.substring(1,$.length-3),ye(Oe,we)};document.querySelector(".btn-xml").addEventListener("click",()=>{let we=document.implementation.createDocument(null,"packages");new XMLSerializer().serializeToString(we);let Oe=new DOMParser,$='<?xml version="1.0" encoding="utf-8"?>'+new XMLSerializer().serializeToString(we),Le=Oe.parseFromString($,"application/xml"),Ee=Le.getElementsByTagName("packages");for(let ce in Q){let ke=Q[ce].split(" , "),_e=ke[1],S=Y(ke[3]),p=z(ke[3]),P=Le.createElement("package");Ee[0].appendChild(P),P.setAttribute("id",S),P.setAttribute("version",_e),p&&P.setAttribute("prerelease","true")}let q=new XMLSerializer().serializeToString(Le);Me(q)},!1),document.querySelectorAll(".btn-bulk-package-download").forEach(we=>{we.addEventListener("click",Oe=>{Oe.preventDefault();for(let Be in Q){let $=Q[Be].split(" , "),Le=$[1],Ee=Y($[3]);window.open(`https://community.chocolatey.org/api/v2/package/${Ee}/${Le}`)}},!1)})})()})();})();
212
+ /**
213
+ * Prism: Lightweight, robust, elegant syntax highlighting
214
+ *
215
+ * @license MIT <https://opensource.org/licenses/MIT>
216
+ * @author Lea Verou <https://lea.verou.me>
217
+ * @namespace
218
+ * @public
219
+ */
220
+ /*! Bundled license information:
221
+
222
+ jquery/dist/jquery.js:
223
+ (*!
224
+ * jQuery JavaScript Library v3.7.1
225
+ * https://jquery.com/
226
+ *
227
+ * Copyright OpenJS Foundation and other contributors
228
+ * Released under the MIT license
229
+ * https://jquery.org/license
230
+ *
231
+ * Date: 2023-08-28T13:37Z
232
+ *)
233
+
234
+ clipboard/dist/clipboard.js:
235
+ (*!
236
+ * clipboard.js v2.0.11
237
+ * https://clipboardjs.com/
238
+ *
239
+ * Licensed MIT © Zeno Rocha
240
+ *)
241
+ */